Skip to content

Instantly share code, notes, and snippets.

@marcelhollerbach
Last active December 21, 2017 20:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marcelhollerbach/5fca9797636d17639a456c3877934871 to your computer and use it in GitHub Desktop.
Save marcelhollerbach/5fca9797636d17639a456c3877934871 to your computer and use it in GitHub Desktop.
meson helper for efl
#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