forked from AuroraMiddleware/gtk
c18a1ac1a1
The script assumes that the git program is in the PATH which may not be always the case, so if git was not found, fallback to the former behavior of making VCS_TAG an empty string if the profile option was not set to 'devel'. Also fix the call to the script so that we do indeed call GIT on the source GIT repo so that we can get the right short SHA1 sum. Re-organize the code a bit in the process, so that things seem cleaner.
20 lines
502 B
Meson
20 lines
502 B
Meson
gen_demo_header = find_program('../build-aux/meson/gen-demo-header.py')
|
|
demo_profile = get_option('profile')
|
|
|
|
demo_conf_h = declare_dependency(
|
|
sources: custom_target('demo-header',
|
|
command: [gen_demo_header, meson.source_root(), demo_profile],
|
|
capture: true,
|
|
output: 'demo_conf.h',
|
|
build_by_default: true,
|
|
build_always_stale: true,
|
|
)
|
|
)
|
|
|
|
subdir('constraint-editor')
|
|
subdir('gtk-demo')
|
|
subdir('icon-browser')
|
|
subdir('node-editor')
|
|
subdir('widget-factory')
|
|
subdir('print-editor')
|