The Meson Build System
http://mesonbuild.com/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
472 B
12 lines
472 B
project('shared module', 'c') |
|
|
|
dl = meson.get_compiler('c').find_library('dl', required : false) |
|
l = shared_library('runtime', 'runtime.c') |
|
# Do NOT link the module with the runtime library. This |
|
# is a common approach for plugins that are only used |
|
# with dlopen. Any symbols are resolved dynamically |
|
# at runtime |
|
m = shared_module('mymodule', 'module.c') |
|
e = executable('prog', 'prog.c', link_with : l, dependencies : dl) |
|
test('import test', e, args : [m.full_path()]) |
|
|
|
|