Last active
December 21, 2017 20:41
-
-
Save marcelhollerbach/5fca9797636d17639a456c3877934871 to your computer and use it in GitHub Desktop.
meson helper for efl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#We need: | |
# meson.current_build_dir() | |
# meson.current_source_dir() | |
# pub_eo_files | |
# priv_eo_files | |
# dir_package_include | |
#we define | |
# pub_eo_file_target | |
# priv_eo_file_target | |
# eo_file_targets | |
pub_eo_file_target = [] | |
foreach eo_file : pub_eo_files | |
pub_eo_file_target += custom_target('eolian_gen_' + eo_file, | |
input : eo_file, | |
output : [eo_file + '.h'], | |
install : true, | |
install_dir : dir_package_include, | |
command : [eolian_gen, '-I', meson.current_source_dir(), eolian_include_directories, | |
'-o', 'h:' + join_paths(meson.current_build_dir(), eo_file + '.h'), | |
'-o', 'c:' + join_paths(meson.current_build_dir(), eo_file + '.c'), | |
'-gch', '@INPUT@']) | |
endforeach | |
priv_eo_file_target = [] | |
foreach eo_file : priv_eo_files | |
priv_eo_file_target += custom_target('eolian_gen_' + eo_file, | |
input : eo_file, | |
output : [eo_file + '.h'], | |
command : [eolian_gen, '-I', meson.current_source_dir(), eolian_include_directories, | |
'-o', 'h:' + join_paths(meson.current_build_dir(), eo_file + '.h'), | |
'-o', 'c:' + join_paths(meson.current_build_dir(), eo_file + '.c'), | |
'-gch', '@INPUT@']) | |
endforeach | |
eo_file_targets = pub_eo_file_target + priv_eo_file_target | |
eolian_include_directories += ['-I', meson.current_source_dir()] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment