Debian Codegraph @

test cases/unit/90 devenv/meson.build

raw
1 project('devenv', 'c')
2
3 meson.add_devenv('TEST_A=1')
4 foo_dep = dependency('foo', fallback: 'sub')
5
6 env = environment()
7 env.append('TEST_B', ['2', '3'], separator: '+')
8 meson.add_devenv(env)
9
10 meson.add_devenv({'TEST_B': '0'}, separator: '+', method: 'prepend')
11
12 env = environment({'TEST_B': ['4']}, separator: '+', method: 'append')
13 meson.add_devenv(env)
14
15 # This exe links on a library built in another directory. On Windows this means
16 # PATH must contain builddir/subprojects/sub to be able to run it.
17 executable('app', 'main.c', dependencies: foo_dep, install: true)
18
19 env = environment({'TEST_C': ['/prefix']}, method: 'prepend')
20 meson.add_devenv(env)
21 env = environment({'TEST_C': ['/suffix']}, method: 'append')
22 meson.add_devenv(env)
23
24 # Reproducer for https://github.com/mesonbuild/meson/issues/12032
25 pkgconf = import('pkgconfig')