diff options
author | Tim-Philipp Müller <tim@centricular.com> | 2015-10-15 22:29:15 +0300 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2017-05-13 21:29:01 +0300 |
commit | 84ce28d3e75ad0ea49540dc05f4cbce24eef5956 (patch) | |
tree | 0dfc6ae6edef5df091ac58ba2b96502bf0ad32b5 /examples | |
parent | 249c709e90458ecef7a068df553ea41a83eedf0f (diff) |
meson: add meson build
Includes contributions from Nirbheek Chauhan <nirbheek@centricular.com>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/meson.build | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/examples/meson.build b/examples/meson.build new file mode 100644 index 0000000..6e76660 --- /dev/null +++ b/examples/meson.build @@ -0,0 +1,29 @@ +if not meson.is_cross_build() + + examples = ['example1', 'example2', 'example3', 'mt19937ar'] + + foreach ex : examples + + orc_c = custom_target (ex + 'orc.c', + output : ex + 'orc.c', + input : files(ex + 'orc.orc'), + command : [orcc, '--include', 'stdint.h', '--implementation', '-o', '@OUTPUT@', '@INPUT@']) + + orc_h = custom_target (ex + 'orc.h', + output : ex + 'orc.h', + input : files(ex + 'orc.orc'), + command : [orcc, '--include', 'stdint.h', '--header', '-o', '@OUTPUT@', '@INPUT@']) + + executable (ex, ex + '.c', orc_h, orc_c, + install: false, + dependencies: [libm, orc_dep, orc_test_dep]) + + endforeach + + if backend == 'mmx' or backend == 'all' + executable ('volscale', 'volscale.c', + install: false, + dependencies: [libm, orc_dep, orc_test_dep]) + endif + +endif # meson.is_cross_build() |