Dylan Baker
d3d0d4affb
tests/15 mixed pch: Add a test using only the headers
...
Which is supposed to work for GCC and Clang.
7 years ago
Dylan Baker
1270af4b9a
tests/15 mixed pch: Use current style
7 years ago
Matthias Klumpp
b57b82eaf9
Add test for subprojects in subdirectories
7 years ago
Tim-Philipp Müller
47508e217f
tests: add test to make sure include_directories() order is maintained
7 years ago
Jussi Pakkanen
54d7817087
User options can "yield to" a user option of the same name in superproject. Closes ##2853.
7 years ago
Jussi Pakkanen
0204895143
Expose integer options to build option files.
7 years ago
Jussi Pakkanen
a288b524bc
Add support for hex int literals.
7 years ago
Aleksey Filippov
549f9a41e5
Rename install_subdir() option elide_directory to strip_directory
7 years ago
Aleksey Filippov
8ca3cc0c3d
Add elide_directory keyword for install_subdir() function
...
If elide_directory=true install_subdir() installs directory contents
instead of directory itself, eliding name of the source directory.
Closes #2869 .
7 years ago
Jussi Pakkanen
6cd7372e26
Comparing objects of different type prints a warning. Closes #2870 .
7 years ago
Jon Turney
227ad7605b
Same for libwmf
7 years ago
Martin Kelly
36aca4cd3c
add meson.project_license() builtin
...
This Fixes #2941 .
7 years ago
Xavier Claessens
6e2e94c645
pkgconfig: Also ignore not found deps passed directly to pc generator
...
Currently only not found deps implicitly pulled from a Library object
are ignored. We should also ignore not found deps passed directly to
generate() method.
This makes the unit testing more complicated because libfoo pkgconfig
dependency cannot be found when generated from the within the same
meson.build.
7 years ago
Jussi Pakkanen
59d0434039
Removed two deprecations from 2016.
7 years ago
Hemmo Nieminen
fc8912384c
Fix a SideCI issue about an unused import in a unit test.
7 years ago
Hemmo Nieminen
7cf9c0a644
Rename a test to avoid duplicate numbering.
7 years ago
Jon Turney
cdf241420c
Same for cups
7 years ago
Jon Turney
638095125d
Same for pcap
7 years ago
Jon Turney
57cb597871
Same for Vulkan
7 years ago
Jon Turney
3748f5465a
Same for SDL2
7 years ago
Jon Turney
bd128bc301
Test case for GL pkgconfig dependency
...
Test that the GL pkgconfig dependency is actually a pkgconfig dependency
7 years ago
Nikita Churaev
de8018a17d
Add `export_dynamic` argument to `executable`. ( #2662 )
7 years ago
Dylan Baker
62fc6e7412
tests: fix "140 get define" on NetBSD
...
NetBSD's zlib is older (1.2.3), and doesn't have ZLIB_VER_MAJOR.
7 years ago
Dylan Baker
997b66d3ed
tests: fix "135 generated assembly" test on NetBSD
...
Which has GCC and uses GAS.
7 years ago
Dylan Baker
4cea88c2bb
tests: use GAS style assembly for FreeBSD as well
7 years ago
Dylan Baker
ae4bd83493
tests: Fix 135 generated assembly on DragonFly BSD
...
Which uses a modern version of GCC and Clang, which supports gas.
Tested with x86_64, but I assume that x86 and arm have the same problem.
7 years ago
Dylan Baker
087421f922
tests: Add define tests for netbsd
7 years ago
Dylan Baker
b72be62929
tests: Add Dragonfly BSD
...
which uses __DragonFly__
7 years ago
Dylan Baker
a44221db06
tests: Add freebsd to get define test.
7 years ago
Jon Turney
fd66692f73
Fix a problem when anyone actually tries to use a non-found dependency
...
Fix BuildTarget.add_deps() to handle class Dependency
Extend test case to cover uses of the not-found dependency object
7 years ago
Jon Turney
198251395a
Add a test of prefix-dependent defaults for project(default_options:)
...
See #2811
7 years ago
Xavier Claessens
2881db7379
pkgconfig: Move pc file checks to run_unittests.py
7 years ago
Xavier Claessens
49977686b5
pkgconfig: Use the pc file we generated for libraries
7 years ago
Xavier Claessens
1c0570906c
pkgconfig: Allow passing Dependency objects to library(_private)
...
Special case ThreadDependency by taking compiler's flags and
PkgConfigDependency by adding them in requires(.private) instead. For
other Dependency objects just take their link_args and compile_args.
Closes #2725
7 years ago
Xavier Claessens
2ff37ae41a
pkgconfig: Early abort tests if pkg-config is not present
7 years ago
Jussi Pakkanen
b949c4792d
Preserve_path_from should be a kwarg of process(), not generator().
7 years ago
Jussi Pakkanen
ee9832cdb1
Added standalone test case for subdir preservation.
7 years ago
Eric Engestrom
3d63f21b60
Fix `array` type name
...
c9351ce30c
introduced the type as `array`,
so mintro should expose it under the same name.
(while at it, rename test 169 to be coherent)
7 years ago
Dylan Baker
b56450f9b2
tests: Add haiku to get define test
7 years ago
Xavier Claessens
e2afaf40c0
Fix duplicated test case 168
7 years ago
Jon Turney
87e6201214
Document and improve not-found dependency objects
...
Document dependency('', required:false) usage.
Avoid emitting 'Dependency found: NO'.
7 years ago
Jussi Pakkanen
678daad6cc
Created a new disabler type.
7 years ago
Jussi Pakkanen
6d03111638
Minor fixes.
7 years ago
Joergen Ibsen
521933357d
Fix path for str arguments to depend_files
...
Fixes #2633
7 years ago
Joergen Ibsen
312bc2ca81
Fix string format recursive replace
...
Also error on placeholder index out of range.
7 years ago
Jussi Pakkanen
754e33e574
Renamed test dir to avoid duplicates.
7 years ago
Jussi Pakkanen
f8a419b27d
String arguments can permit arbitrary string values
...
by leaving out the choices keyword.
7 years ago
Nirbheek Chauhan
1223872513
tests/common/167: Port test interpreter to Windows
...
Which means using fgets, unfortunately.
7 years ago
Dylan Baker
c9351ce30c
Add new array type option
...
This exposes the already existing UserStringArrayOption class through
the meson_options.txt. The intention is to provide a way for projects to
take list/array type arguments and validate that all of the elements in
that array are valid without using complex looping constructrs.
7 years ago
Nirbheek Chauhan
abcace7ee1
dependencies: Fix parsing of shebangs with spaces
...
While finding an external program, we should only split the shebang
once since that is what Linux and BSD also do. This is also why
everyone uses #!/usr/bin/env in their shebangs since that allows
you to run an interpreter in a path with spaces in it.
See `man execve` for more details, specifically the sections for
interpreter scripts.
7 years ago