summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2019-02-11 17:34:16 +0100
committerStefan Schmidt <s.schmidt@samsung.com>2019-02-12 16:24:24 +0100
commite908142da6e27a8e38f29895770d5d40f8587498 (patch)
tree161bc332ec179ad89badec243d4c272712ee9c8c
parentfac3fa1c882d679eaf38f24d81703045f1cd13d3 (diff)
build: also build eo-tests with debug profile
this checks that eo-dbg is also working in the same manner as normal eo Reviewed-by: Stefan Schmidt <stefan@datenfreihafen.org> Differential Revision: https://phab.enlightenment.org/D7911
-rw-r--r--src/lib/eo/meson.build9
-rw-r--r--src/tests/eo/access/meson.build12
-rw-r--r--src/tests/eo/children/meson.build12
-rw-r--r--src/tests/eo/composite_objects/meson.build12
-rw-r--r--src/tests/eo/constructors/meson.build12
-rw-r--r--src/tests/eo/function_overrides/meson.build12
-rw-r--r--src/tests/eo/interface/meson.build12
-rw-r--r--src/tests/eo/mixin/meson.build11
-rw-r--r--src/tests/eo/signals/meson.build12
-rw-r--r--src/tests/eo/suite/meson.build13
10 files changed, 116 insertions, 1 deletions
diff --git a/src/lib/eo/meson.build b/src/lib/eo/meson.build
index e8b32c424c..1e344293ef 100644
--- a/src/lib/eo/meson.build
+++ b/src/lib/eo/meson.build
@@ -50,7 +50,7 @@ eo_lib = library('eo',
50 version : meson.project_version() 50 version : meson.project_version()
51) 51)
52 52
53library('eo_dbg', 53eo_lib_dbg = library('eo_dbg',
54 eo_src, pub_eo_file_target, 54 eo_src, pub_eo_file_target,
55 dependencies: [eina, valgrind, dl, execinfo], 55 dependencies: [eina, valgrind, dl, execinfo],
56 install: true, 56 install: true,
@@ -65,6 +65,13 @@ eo = declare_dependency(
65 dependencies: eo_deps + eo_pub_deps, 65 dependencies: eo_deps + eo_pub_deps,
66) 66)
67 67
68eo_dbg = declare_dependency(
69 include_directories: [include_directories('.')],
70 link_with: eo_lib_dbg,
71 sources : pub_eo_file_target + priv_eo_file_target,
72 dependencies: eo_deps + eo_pub_deps,
73)
74
68install_data(pub_eo_files + pub_eo_types_files, 75install_data(pub_eo_files + pub_eo_types_files,
69 install_dir: join_paths(eolian_include_dir, package_version_name) 76 install_dir: join_paths(eolian_include_dir, package_version_name)
70) 77)
diff --git a/src/tests/eo/access/meson.build b/src/tests/eo/access/meson.build
index 79bc65f982..da7fce354f 100644
--- a/src/tests/eo/access/meson.build
+++ b/src/tests/eo/access/meson.build
@@ -18,3 +18,15 @@ eo_access = executable('eo_access',
18test('eo-access', eo_access, 18test('eo-access', eo_access,
19 env : test_env 19 env : test_env
20) 20)
21
22eo_access = executable('eo_access_dbg',
23 eo_access_src,
24 dependencies: [eo_dbg],
25 c_args : [
26 '-DTESTS_BUILD_DIR="'+meson.current_build_dir()+'"',
27 '-DTESTS_SRC_DIR="'+meson.current_source_dir()+'"']
28)
29
30test('eo-access-dbg', eo_access,
31 env : test_env
32)
diff --git a/src/tests/eo/children/meson.build b/src/tests/eo/children/meson.build
index e740b5cc9b..ac55d805f4 100644
--- a/src/tests/eo/children/meson.build
+++ b/src/tests/eo/children/meson.build
@@ -15,3 +15,15 @@ eo_children = executable('eo_children',
15test('eo-children', eo_children, 15test('eo-children', eo_children,
16 env : test_env 16 env : test_env
17) 17)
18
19eo_children = executable('eo_children_dbg',
20 eo_children_src,
21 dependencies: [eo_dbg],
22 c_args : [
23 '-DTESTS_BUILD_DIR="'+meson.current_build_dir()+'"',
24 '-DTESTS_SRC_DIR="'+meson.current_source_dir()+'"']
25)
26
27test('eo-children-dbg', eo_children,
28 env : test_env
29)
diff --git a/src/tests/eo/composite_objects/meson.build b/src/tests/eo/composite_objects/meson.build
index 578d4fabbc..0a47e14313 100644
--- a/src/tests/eo/composite_objects/meson.build
+++ b/src/tests/eo/composite_objects/meson.build
@@ -17,3 +17,15 @@ eo_composite_objects = executable('eo_composite_objects',
17test('eo-composite-objects', eo_composite_objects, 17test('eo-composite-objects', eo_composite_objects,
18 env : test_env 18 env : test_env
19) 19)
20
21eo_composite_objects = executable('eo_composite_objects_dbg',
22 eo_composite_objects_src,
23 dependencies: [eo_dbg],
24 c_args : [
25 '-DTESTS_BUILD_DIR="'+meson.current_build_dir()+'"',
26 '-DTESTS_SRC_DIR="'+meson.current_source_dir()+'"']
27)
28
29test('eo-composite-objects-dbg', eo_composite_objects,
30 env : test_env
31)
diff --git a/src/tests/eo/constructors/meson.build b/src/tests/eo/constructors/meson.build
index 612c7be3ec..b90058ce5c 100644
--- a/src/tests/eo/constructors/meson.build
+++ b/src/tests/eo/constructors/meson.build
@@ -29,3 +29,15 @@ eo_constructors = executable('eo_constructors',
29test('eo-constructors', eo_constructors, 29test('eo-constructors', eo_constructors,
30 env : test_env 30 env : test_env
31) 31)
32
33eo_constructors = executable('eo_constructors_dbg',
34 eo_constructors_src,
35 dependencies: [eo_dbg],
36 c_args : [
37 '-DTESTS_BUILD_DIR="'+meson.current_build_dir()+'"',
38 '-DTESTS_SRC_DIR="'+meson.current_source_dir()+'"']
39)
40
41test('eo-constructors-dbg', eo_constructors,
42 env : test_env
43)
diff --git a/src/tests/eo/function_overrides/meson.build b/src/tests/eo/function_overrides/meson.build
index fb2b8dcadb..b616e51cce 100644
--- a/src/tests/eo/function_overrides/meson.build
+++ b/src/tests/eo/function_overrides/meson.build
@@ -21,3 +21,15 @@ eo_function_overrides = executable('eo_function_overrides',
21test('eo-function-overrides', eo_interface, 21test('eo-function-overrides', eo_interface,
22 env : test_env 22 env : test_env
23) 23)
24
25eo_function_overrides = executable('eo_function_overrides_dbg',
26 eo_function_overrides_src,
27 dependencies: [eo_dbg],
28 c_args : [
29 '-DTESTS_BUILD_DIR="'+meson.current_build_dir()+'"',
30 '-DTESTS_SRC_DIR="'+meson.current_source_dir()+'"']
31)
32
33test('eo-function-overrides-dbg', eo_interface,
34 env : test_env
35)
diff --git a/src/tests/eo/interface/meson.build b/src/tests/eo/interface/meson.build
index 77f725734b..16b109ac1a 100644
--- a/src/tests/eo/interface/meson.build
+++ b/src/tests/eo/interface/meson.build
@@ -19,3 +19,15 @@ eo_interface = executable('eo_interface',
19test('eo-interface', eo_interface, 19test('eo-interface', eo_interface,
20 env : test_env 20 env : test_env
21) 21)
22
23eo_interface = executable('eo_interface_dbg',
24 eo_interface_src,
25 dependencies: [eo_dbg],
26 c_args : [
27 '-DTESTS_BUILD_DIR="'+meson.current_build_dir()+'"',
28 '-DTESTS_SRC_DIR="'+meson.current_source_dir()+'"']
29)
30
31test('eo-interface-dbg', eo_interface,
32 env : test_env
33)
diff --git a/src/tests/eo/mixin/meson.build b/src/tests/eo/mixin/meson.build
index 5ae83a9672..3e2d73a4b9 100644
--- a/src/tests/eo/mixin/meson.build
+++ b/src/tests/eo/mixin/meson.build
@@ -25,3 +25,14 @@ eo_mixin = executable('eo_mixin',
25test('eo-mixins', eo_mixin, 25test('eo-mixins', eo_mixin,
26 env : test_env 26 env : test_env
27) 27)
28eo_mixin = executable('eo_mixin_dbg',
29 eo_mixin_src,
30 dependencies: [eo_dbg],
31 c_args : [
32 '-DTESTS_BUILD_DIR="'+meson.current_build_dir()+'"',
33 '-DTESTS_SRC_DIR="'+meson.current_source_dir()+'"']
34)
35
36test('eo-mixins-dbg', eo_mixin,
37 env : test_env
38)
diff --git a/src/tests/eo/signals/meson.build b/src/tests/eo/signals/meson.build
index 37006ac3fc..3786367657 100644
--- a/src/tests/eo/signals/meson.build
+++ b/src/tests/eo/signals/meson.build
@@ -15,3 +15,15 @@ eo_signals = executable('eo_signals',
15test('eo-signals', eo_signals, 15test('eo-signals', eo_signals,
16 env : test_env 16 env : test_env
17) 17)
18
19eo_signals = executable('eo_signals_dbg',
20 eo_signals_src,
21 dependencies: [eo_dbg],
22 c_args : [
23 '-DTESTS_BUILD_DIR="'+meson.current_build_dir()+'"',
24 '-DTESTS_SRC_DIR="'+meson.current_source_dir()+'"']
25)
26
27test('eo-signals-dbg', eo_signals,
28 env : test_env
29)
diff --git a/src/tests/eo/suite/meson.build b/src/tests/eo/suite/meson.build
index 39f73787e7..d7f8ae3fd4 100644
--- a/src/tests/eo/suite/meson.build
+++ b/src/tests/eo/suite/meson.build
@@ -32,3 +32,16 @@ eo_suite = executable('eo_suite',
32test('eo-suite', eo_suite, 32test('eo-suite', eo_suite,
33 env : test_env 33 env : test_env
34) 34)
35
36eo_suite = executable('eo_suite_dbg',
37 eo_suite_src,
38 dependencies: [eo_dbg, check, valgrind],
39 c_args : [
40 '-DTESTS_BUILD_DIR="'+meson.current_build_dir()+'"',
41 '-DEO_DEBUG=1',
42 '-DTESTS_SRC_DIR="'+meson.current_source_dir()+'"']
43)
44
45test('eo-suite-dbg', eo_suite,
46 env : test_env
47)