summaryrefslogtreecommitdiff
path: root/src/bindings/mono/meson.build
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2019-01-17 21:43:57 +0900
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2019-01-17 21:45:49 +0900
commit586bc5207e63bd8f622f466749781e397fc5e921 (patch)
tree41cea82422433821ecd6a2ab55f15fbf20c7aec8 /src/bindings/mono/meson.build
parentadc2e674af528c01ca5bb11d56edc475bce5cc4d (diff)
efl-mono: Enable selecting to build @beta items
Summary: For autotools, use --enable-csharp-beta to enable the generation of beta methods and properties, for meson use -Dmono-beta=true. By default, no beta method or property is generated. Reviewers: woohyun, segfaultxavi, bu5hm4n, lauromoura Reviewed By: woohyun Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D7637
Diffstat (limited to 'src/bindings/mono/meson.build')
-rw-r--r--src/bindings/mono/meson.build9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/bindings/mono/meson.build b/src/bindings/mono/meson.build
index 411c29f..e5f2cf5 100644
--- a/src/bindings/mono/meson.build
+++ b/src/bindings/mono/meson.build
@@ -67,6 +67,11 @@ efl_mono_lib = library('eflcustomexportsmono',
67 dependencies : [eo, eina] 67 dependencies : [eo, eina]
68) 68)
69 69
70beta_option = []
71if (get_option('mono-beta'))
72 beta_option = '-b'
73endif
74
70mono_generator_target = [] 75mono_generator_target = []
71mono_files = [] 76mono_files = []
72foreach lib : mono_sublibs 77foreach lib : mono_sublibs
@@ -88,7 +93,7 @@ foreach lib : mono_sublibs
88 mono_generator_target += custom_target('eolian_mono_gen_'+mono_gen_file.underscorify()+'', 93 mono_generator_target += custom_target('eolian_mono_gen_'+mono_gen_file.underscorify()+'',
89 input : join_paths(subdir_file_location, mono_gen_file), 94 input : join_paths(subdir_file_location, mono_gen_file),
90 output : [mono_gen_file + '.cs'], 95 output : [mono_gen_file + '.cs'],
91 command : [eolian_mono_gen, '-I', meson.current_source_dir(), eolian_include_directories, 96 command : [eolian_mono_gen, beta_option, '-I', meson.current_source_dir(), eolian_include_directories,
92 '--dllimport', package_name, 97 '--dllimport', package_name,
93 '-o', join_paths(meson.current_build_dir(), mono_gen_file + '.cs'), 98 '-o', join_paths(meson.current_build_dir(), mono_gen_file + '.cs'),
94 '@INPUT@']) 99 '@INPUT@'])
@@ -107,7 +112,7 @@ foreach mono_gen_file : legacy_evas_required_by_mono
107 mono_generator_target += custom_target('eolian_mono_gen_'+mono_gen_file.underscorify()+'', 112 mono_generator_target += custom_target('eolian_mono_gen_'+mono_gen_file.underscorify()+'',
108 input : join_paths(subdir_file_location, mono_gen_file), 113 input : join_paths(subdir_file_location, mono_gen_file),
109 output : [mono_gen_file + '.cs'], 114 output : [mono_gen_file + '.cs'],
110 command : [eolian_mono_gen, '-I', meson.current_source_dir(), eolian_include_directories, 115 command : [eolian_mono_gen, beta_option, '-I', meson.current_source_dir(), eolian_include_directories,
111 '--dllimport', 'evas', 116 '--dllimport', 'evas',
112 '-o', join_paths(meson.current_build_dir(), mono_gen_file + '.cs'), 117 '-o', join_paths(meson.current_build_dir(), mono_gen_file + '.cs'),
113 '@INPUT@']) 118 '@INPUT@'])