summaryrefslogtreecommitdiffstats
path: root/test cases/common/230 external project/libfoo/meson.build
blob: a2512aa6fddb0c95426f67c1ad217e5e9bfa3cfd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
mod = import('unstable-external_project')

target_system = target_machine.system()
if target_system in ['windows', 'cygwin']
  libext = 'dll'
elif target_system == 'darwin'
  libext = 'dylib'
else
  libext = 'so'
endif

p = mod.add_project('configure',
  configure_options : [
    '--prefix=@PREFIX@',
    '--libdir=@PREFIX@/@LIBDIR@',
    '--includedir=@PREFIX@/@INCLUDEDIR@',
    '--libext=' + libext,
  ],
  depends: somelib,
)

libfoo_dep = declare_dependency(link_with : somelib,
  dependencies : p.dependency('foo'))