[gnome-bluetooth/wip/hadess/gtk-includes] tests: Fix bluetooth-utils test build



commit 754b5d61d8872a13c813b0e65cc7c320f97479be
Author: Bastien Nocera <hadess hadess net>
Date:   Mon Dec 6 14:08:39 2021 +0100

    tests: Fix bluetooth-utils test build
    
    gnome-bluetooth-enum-types.h could be missing at this point, make sure
    it's built before we compile the test program.

 lib/meson.build   | 3 ++-
 tests/meson.build | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/lib/meson.build b/lib/meson.build
index 31d7d31b..978cd596 100644
--- a/lib/meson.build
+++ b/lib/meson.build
@@ -42,10 +42,11 @@ built_sources += gnome.compile_resources(
   export: true,
 )
 
-built_sources += gnome.mkenums_simple(
+enum_sources = gnome.mkenums_simple(
   'gnome-bluetooth-enum-types',
   sources : headers,
 )
+built_sources += enum_sources
 
 client = 'bluetooth-client'
 
diff --git a/tests/meson.build b/tests/meson.build
index eccb2539..1d1b2e0e 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -28,7 +28,7 @@ test('test-bluetooth-device-test',
 )
 
 test_bluetooth_utils = executable('test-bluetooth-utils',
-  'test-bluetooth-utils.c',
+  [ 'test-bluetooth-utils.c', enum_sources ],
   include_directories: [ top_inc, lib_inc],
   dependencies: deps + private_deps,
   c_args: cflags,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]