summaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2018-10-19 16:18:39 +0200
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2018-10-24 12:05:58 +0200
commite85311c99286988f98ce081148f6f9e298086c2d (patch)
tree9479f9b7c887904044b08fd2fb217f8b41971837 /src/tests
parente19d2391476965d7b8e8865a766734947cc3099f (diff)
meson: here comes cxx bindings
this commits is bringing cxx bindings. You can enable / disable them with the cxx option. Differential Revision: https://phab.enlightenment.org/D7181
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/ecore_cxx/meson.build29
-rw-r--r--src/tests/edje_cxx/meson.build9
-rw-r--r--src/tests/eet_cxx/meson.build21
-rw-r--r--src/tests/eina_cxx/meson.build55
-rw-r--r--src/tests/eldbus_cxx/meson.build21
-rw-r--r--src/tests/elementary_cxx/meson.build9
-rw-r--r--src/tests/eo_cxx/meson.build20
-rw-r--r--src/tests/eolian_cxx/meson.build74
-rw-r--r--src/tests/evas_cxx/meson.build9
9 files changed, 247 insertions, 0 deletions
diff --git a/src/tests/ecore_cxx/meson.build b/src/tests/ecore_cxx/meson.build
new file mode 100644
index 0000000000..75547f1258
--- /dev/null
+++ b/src/tests/ecore_cxx/meson.build
@@ -0,0 +1,29 @@
1ecore_cxx_suite_deps = [check, ecore_cxx]
2
3ecore_cxx_suite_src = [
4 'ecore_cxx_suite.cc',
5 'ecore_cxx_suite.h',
6 'ecore_cxx_test_safe_call.cc',
7]
8
9
10ecore_cxx_suite = executable('ecore_cxx_suite',
11 ecore_cxx_suite_src,
12 dependencies: [ecore_cxx_suite_deps, check],
13 cpp_args : [
14 '-DTESTS_BUILD_DIR="'+meson.current_build_dir()+'"',
15 '-DTESTS_SRC_DIR="'+meson.current_source_dir()+'"']
16)
17
18executable('ecore_cxx_suite_compile_test',
19 'cxx_compile_test.cc',
20 dependencies: [ecore_cxx_suite_deps, check],
21 cpp_args : [
22 '-DTESTS_BUILD_DIR="'+meson.current_build_dir()+'"',
23 '-DTESTS_SRC_DIR="'+meson.current_source_dir()+'"']
24)
25
26test('ecore_cxx-suite', ecore_cxx_suite,
27 timeout : 10*60,
28 env : test_env
29)
diff --git a/src/tests/edje_cxx/meson.build b/src/tests/edje_cxx/meson.build
new file mode 100644
index 0000000000..0d706a294f
--- /dev/null
+++ b/src/tests/edje_cxx/meson.build
@@ -0,0 +1,9 @@
1edje_cxx_suite_deps = [check, edje_cxx]
2
3executable('edje_cxx_suite_compile_test',
4 'cxx_compile_test.cc',
5 dependencies: [edje_cxx_suite_deps, check],
6 cpp_args : [
7 '-DTESTS_BUILD_DIR="'+meson.current_build_dir()+'"',
8 '-DTESTS_SRC_DIR="'+meson.current_source_dir()+'"']
9)
diff --git a/src/tests/eet_cxx/meson.build b/src/tests/eet_cxx/meson.build
new file mode 100644
index 0000000000..f3f3fb8046
--- /dev/null
+++ b/src/tests/eet_cxx/meson.build
@@ -0,0 +1,21 @@
1eet_cxx_suite_deps = [check, eet_cxx]
2
3eet_cxx_suite_src = [
4 'eet_cxx_suite.cc',
5 'eet_cxx_suite.h',
6 'eet_cxx_test_descriptors.cc',
7]
8
9eet_cxx_suite = executable('eet_cxx_suite',
10 eet_cxx_suite_src,
11 dependencies: [eet_cxx_suite_deps, check],
12 cpp_args : [
13 '-DTESTS_BUILD_DIR="'+meson.current_build_dir()+'"',
14 '-DTESTS_SRC_DIR="'+meson.current_source_dir()+'"']
15)
16
17
18test('ecore_cxx-suite', eet_cxx_suite,
19 timeout : 10*60,
20 env : test_env
21)
diff --git a/src/tests/eina_cxx/meson.build b/src/tests/eina_cxx/meson.build
new file mode 100644
index 0000000000..07470a2e0d
--- /dev/null
+++ b/src/tests/eina_cxx/meson.build
@@ -0,0 +1,55 @@
1eina_cxx_suite_deps = [check]
2
3eina_cxx_suite_src = [
4 'eina_cxx_suite.cc',
5 'eina_cxx_test_inlist.cc',
6 'eina_cxx_test_log.cc',
7 'eina_cxx_test_inarray.cc',
8 'eina_cxx_test_iterator.cc',
9 'eina_cxx_test_ptrarray.cc',
10 'eina_cxx_test_ptrlist.cc',
11 'eina_cxx_test_stringshare.cc',
12 'eina_cxx_test_error.cc',
13 'eina_cxx_test_accessor.cc',
14 'eina_cxx_test_thread.cc',
15 'eina_cxx_test_optional.cc',
16 'eina_cxx_test_value.cc',
17 'simple.c',
18 'eina_cxx_suite.h'
19]
20
21
22pub_eo_files = [
23 'simple.eo'
24]
25
26foreach eo_file : pub_eo_files
27 priv_eo_file_target += custom_target('eolian_gen_eina_cxx_' + eo_file,
28 input : eo_file,
29 output : [eo_file + '.h'],
30 command : [eolian_gen, '-I', meson.current_source_dir(), eolian_include_directories,
31 '-o', 'h:' + join_paths(meson.current_build_dir(), eo_file + '.h'),
32 '-o', 'c:' + join_paths(meson.current_build_dir(), eo_file + '.c'),
33 '-gch', '@INPUT@'])
34 priv_eo_file_target += custom_target('eolian_cxx_gen_eina_cxx_' + eo_file,
35 input : eo_file,
36 output : [eo_file + '.hh'],
37 command : [eolian_cxx_gen, '-I', meson.current_source_dir(), eolian_include_directories,
38 '-o', join_paths(meson.current_build_dir(), eo_file + '.hh'),
39 '@INPUT@'])
40endforeach
41
42eina_cxx_suite = executable('eina_cxx_suite',
43 eina_cxx_suite_src + priv_eo_file_target,
44 include_directories : config_dir,
45 dependencies: [eina_cxx_suite_deps, check, eina, eina_cxx, eo_cxx, ecore],
46 cpp_args : [
47 '-DTESTS_BUILD_DIR="'+meson.current_build_dir()+'"',
48 '-DTESTS_SRC_DIR="'+meson.current_source_dir()+'"'
49 ]
50)
51
52test('eina_cxx-suite', eina_cxx_suite,
53 timeout : 10*60,
54 env : test_env
55)
diff --git a/src/tests/eldbus_cxx/meson.build b/src/tests/eldbus_cxx/meson.build
new file mode 100644
index 0000000000..e3e04e5290
--- /dev/null
+++ b/src/tests/eldbus_cxx/meson.build
@@ -0,0 +1,21 @@
1eldbus_cxx_suite_deps = [check, eldbus_cxx]
2
3eldbus_cxx_suite_src = [
4 'eldbus_cxx_suite.cc',
5 'eldbus_cxx_suite.h',
6 'eldbus_cxx_test_eldbus_client.cc',
7 'eldbus_cxx_test_eldbus_connect.cc',
8]
9
10eldbus_cxx_suite = executable('eldbus_cxx_suite',
11 eldbus_cxx_suite_src,
12 dependencies: [eldbus_cxx_suite_deps, check],
13 cpp_args : [
14 '-DTESTS_BUILD_DIR="'+meson.current_build_dir()+'"',
15 '-DTESTS_SRC_DIR="'+meson.current_source_dir()+'"']
16)
17
18test('eldbus_cxx-suite', eldbus_cxx_suite,
19 timeout : 10*60,
20 env : test_env
21)
diff --git a/src/tests/elementary_cxx/meson.build b/src/tests/elementary_cxx/meson.build
new file mode 100644
index 0000000000..1ced02bdca
--- /dev/null
+++ b/src/tests/elementary_cxx/meson.build
@@ -0,0 +1,9 @@
1elementary_cxx_suite_deps = [check, elementary_cxx]
2
3executable('elementary_cxx_suite_compile_test',
4 ['cxx_compile_test.cc', 'cxx_dummy_compile_test.cc'],
5 dependencies: [elementary_cxx_suite_deps, check],
6 cpp_args : [
7 '-DTESTS_BUILD_DIR="'+meson.current_build_dir()+'"',
8 '-DTESTS_SRC_DIR="'+meson.current_source_dir()+'"']
9)
diff --git a/src/tests/eo_cxx/meson.build b/src/tests/eo_cxx/meson.build
new file mode 100644
index 0000000000..43e487da57
--- /dev/null
+++ b/src/tests/eo_cxx/meson.build
@@ -0,0 +1,20 @@
1eo_cxx_suite_deps = [check, eina_cxx, eo_cxx]
2
3eo_cxx_suite_src = [
4 'eo_cxx_suite.cc',
5 'eo_cxx_suite.h'
6]
7
8eo_cxx_suite = executable('eo_cxx_suite',
9 eo_cxx_suite_src,
10 include_directories : config_dir,
11 dependencies: [eo_cxx_suite_deps, check],
12 cpp_args : [
13 '-DTESTS_BUILD_DIR="'+meson.current_build_dir()+'"',
14 '-DTESTS_SRC_DIR="'+meson.current_source_dir()+'"']
15)
16
17test('eo_cxx-suite', eo_cxx_suite,
18 timeout : 10*60,
19 env : test_env
20)
diff --git a/src/tests/eolian_cxx/meson.build b/src/tests/eolian_cxx/meson.build
new file mode 100644
index 0000000000..1c7a961277
--- /dev/null
+++ b/src/tests/eolian_cxx/meson.build
@@ -0,0 +1,74 @@
1eolian_cxx_suite_deps = [check, eolian_cxx, eina_cxx, eo_cxx, ecore]
2
3eolian_cxx_suite_src = files([
4 'eolian_cxx_suite.cc',
5 'eolian_cxx_test_parse.cc',
6 'a.c',
7 'b.c',
8 'c.c',
9 'd.c',
10 'eolian_cxx_test_binding.cc',
11 'eolian_cxx_test_address_of.cc',
12 'eolian_cxx_test_wrapper.cc',
13 'simple.c',
14 'name_name.c',
15 'name_name_cxx.cc',
16 'generic.c',
17 'name1_name2_type_generation.c',
18 'eolian_cxx_test_inheritance.cc',
19 'eolian_cxx_test_generate.cc',
20 'eolian_cxx_test_documentation.cc',
21 'eolian_cxx_test_cyclic.cc',
22 'complex.c',
23 'complex_cxx.cc',
24 'eolian_cxx_suite.h'
25])
26
27pub_eo_files = [
28 'a.eo',
29 'b.eo',
30 'c.eo',
31 'd.eo',
32 'complex.eo',
33 'cyclic1.eo',
34 'cyclic2.eo',
35 'docs.eo',
36 'generic.eo',
37 'name1_name2_type_generation.eo',
38 'name_name.eo',
39 'ns_name.eo',
40 'ns_name_other.eo',
41 'simple.eo'
42]
43
44pub_eo_file_target = []
45
46foreach eo_file : pub_eo_files
47 pub_eo_file_target += custom_target('eolian_cxx_gen_' + eo_file,
48 input : eo_file,
49 output : [eo_file + '.hh'],
50 command : [eolian_cxx_gen, '-I', meson.current_source_dir(), eolian_include_directories,
51 '-o', join_paths(meson.current_build_dir(), eo_file + '.hh'),
52 '@INPUT@'])
53 pub_eo_file_target += custom_target('eolian_gen_' + eo_file,
54 input : eo_file,
55 output : [eo_file + '.h'],
56 command : [eolian_gen, '-I', meson.current_source_dir(), eolian_include_directories,
57 '-o', 'h:' + join_paths(meson.current_build_dir(), eo_file + '.h'),
58 '-o', 'c:' + join_paths(meson.current_build_dir(), eo_file + '.c'),
59 '-gch', '@INPUT@'])
60endforeach
61
62eolian_cxx_suite = executable('eolian_cxx_suite',
63 eolian_cxx_suite_src + pub_eo_file_target,
64 dependencies: [eolian_cxx_suite_deps, eo_cxx, check],
65 # package_c_args contains -D definitions for the package
66 cpp_args : package_c_args +[
67 '-DTESTS_BUILD_DIR="'+meson.current_build_dir()+'"',
68 '-DTESTS_SRC_DIR="'+meson.current_source_dir()+'"']
69)
70
71test('eolian_cxx-suite', eolian_cxx_suite,
72 timeout : 10*60,
73 env : test_env
74)
diff --git a/src/tests/evas_cxx/meson.build b/src/tests/evas_cxx/meson.build
new file mode 100644
index 0000000000..d84c1e2c12
--- /dev/null
+++ b/src/tests/evas_cxx/meson.build
@@ -0,0 +1,9 @@
1evas_cxx_suite_deps = [check, evas_cxx]
2
3executable('evas_cxx_suite_compile_test',
4 'cxx_compile_test.cc',
5 dependencies: [evas_cxx_suite_deps, check],
6 cpp_args : [
7 '-DTESTS_BUILD_DIR="'+meson.current_build_dir()+'"',
8 '-DTESTS_SRC_DIR="'+meson.current_source_dir()+'"']
9)