mirror of
https://gitlab.com/qemu-project/meson.git
synced 2025-07-03 02:30:36 +08:00
Test whether internal-dep include order is preserved
https://github.com/mesonbuild/meson/issues/1495
This commit is contained in:
@ -19,4 +19,12 @@ subdir('sub3')
|
||||
# The directory where the target resides
|
||||
subdir('sub4')
|
||||
|
||||
# Test that the order in which internal dependencies are specified is
|
||||
# preserved. This is needed especially when subprojects get involved and
|
||||
# multiple build-root config.h files exist, and we must be sure that the
|
||||
# correct one is found: https://github.com/mesonbuild/meson/issues/1495
|
||||
f = executable('somefxe', 'sub4/main.c',
|
||||
dependencies : [correctinc, dep, wronginc])
|
||||
|
||||
test('eh', e)
|
||||
test('oh', f)
|
||||
|
@ -1 +1,2 @@
|
||||
j = include_directories('.')
|
||||
wronginc = declare_dependency(include_directories : j)
|
||||
|
@ -2,3 +2,5 @@ e = executable('someexe', 'main.c',
|
||||
c_args : ['-I' + sub3],
|
||||
include_directories : j,
|
||||
dependencies : dep)
|
||||
|
||||
correctinc = declare_dependency(include_directories : include_directories('.'))
|
||||
|
Reference in New Issue
Block a user