summaryrefslogtreecommitdiff
path: root/src/tests/efl_mono/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/efl_mono/meson.build')
-rw-r--r--src/tests/efl_mono/meson.build26
1 files changed, 24 insertions, 2 deletions
diff --git a/src/tests/efl_mono/meson.build b/src/tests/efl_mono/meson.build
index b01e274..52c6e31 100644
--- a/src/tests/efl_mono/meson.build
+++ b/src/tests/efl_mono/meson.build
@@ -25,7 +25,7 @@ foreach mono_gen_file : eo_files
25 eo_file_targets += custom_target('eolian_mono_gen_'+mono_gen_file.underscorify()+'', 25 eo_file_targets += custom_target('eolian_mono_gen_'+mono_gen_file.underscorify()+'',
26 input : mono_gen_file, 26 input : mono_gen_file,
27 output : [mono_gen_file + '.cs'], 27 output : [mono_gen_file + '.cs'],
28 command : [eolian_mono_gen, '-I', meson.current_source_dir(), eolian_include_directories, 28 command : [eolian_mono_gen, beta_option, '-I', meson.current_source_dir(), eolian_include_directories,
29 '--dllimport', 'efl_mono_native_test', 29 '--dllimport', 'efl_mono_native_test',
30 '-o', join_paths(meson.current_build_dir(), mono_gen_file + '.cs'), 30 '-o', join_paths(meson.current_build_dir(), mono_gen_file + '.cs'),
31 '@INPUT@']) 31 '@INPUT@'])
@@ -34,6 +34,7 @@ endforeach
34efl_mono_test = library('efl_mono_test', 34efl_mono_test = library('efl_mono_test',
35 eo_file_targets, 35 eo_file_targets,
36 link_with : [efl_mono], 36 link_with : [efl_mono],
37 cs_args : extra_cs_args
37) 38)
38 39
39efl_mono_src = [ 40efl_mono_src = [
@@ -47,7 +48,6 @@ efl_mono_src = [
47 'Eo.cs', 48 'Eo.cs',
48 'EoPromises.cs', 49 'EoPromises.cs',
49 'Errors.cs', 50 'Errors.cs',
50 'Evas.cs',
51 'Events.cs', 51 'Events.cs',
52 'FunctionPointers.cs', 52 'FunctionPointers.cs',
53 'FunctionPointerMarshalling.cs', 53 'FunctionPointerMarshalling.cs',
@@ -64,11 +64,33 @@ efl_mono_src = [
64efl_mono_suite = executable('efl-mono-suite', 64efl_mono_suite = executable('efl-mono-suite',
65 efl_mono_src, 65 efl_mono_src,
66 link_with : [efl_mono, efl_mono_test], 66 link_with : [efl_mono, efl_mono_test],
67 cs_args : extra_cs_args
67) 68)
68 69
69env = environment() 70env = environment()
70env.set('MONO_PATH', efl_mono_test_suite_path ) 71env.set('MONO_PATH', efl_mono_test_suite_path )
71 72
73if (cs_is_dotnet)
74env.set('LD_LIBRARY_PATH', efl_mono_test_suite_path )
75copy_prog = find_program(['cp', 'copy'])
76
77configure_file(input : 'efl-mono-suite.runtimeconfig.json',
78 output : 'efl-mono-suite.runtimeconfig.json',
79 copy : true)
80
81custom_target('copy_efl_mono_dll',
82 build_by_default : true,
83 input : efl_mono,
84 output : efl_mono.full_path().split('/')[-1],
85 command : [copy_prog, '@INPUT@', '@OUTPUT@'])
86
87custom_target('copy_efl_mono_lib_dll',
88 build_by_default : true,
89 input : efl_mono_lib,
90 output : efl_mono_lib.full_path().split('/')[-1],
91 command : [copy_prog, '@INPUT@', '@OUTPUT@'])
92endif
93
72config_libs = ['eina', 'ecore', 'eo', 'efl', 'evas', 'eldbus', 'elementary'] 94config_libs = ['eina', 'ecore', 'eo', 'efl', 'evas', 'eldbus', 'elementary']
73load_lib = '' 95load_lib = ''
74 96