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.
30 lines
718 B
30 lines
718 B
subdir('dep2') |
|
|
|
dep1sources = ['dep1.c', 'dep1.h'] |
|
|
|
# Do not need to link to dep2lib because we don't use any symbols from it |
|
dep1lib = shared_library( |
|
'dep1lib', |
|
sources : dep1sources, |
|
dependencies : gobj, |
|
install : true |
|
) |
|
|
|
# But the gir does need it because it we use the MesonDep2* structure defined |
|
# in the header |
|
dep1gir = gnome.generate_gir( |
|
dep1lib, |
|
sources : dep1sources, |
|
nsversion : '1.0', |
|
namespace : 'MesonDep1', |
|
symbol_prefix : 'meson', |
|
identifier_prefix : 'Meson', |
|
header: 'dep1.h', |
|
includes : ['GObject-2.0', 'MesonDep2-1.0'], |
|
dependencies : [dep2_dep], |
|
install : true |
|
) |
|
|
|
dep1_dep = declare_dependency(link_with : dep1lib, |
|
dependencies : [dep2_dep], |
|
sources : [dep1gir])
|
|
|