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
Jussi Pakkanen
5bc1009109
Add if_found kwarg to subdir().
7 years ago
Joergen Ibsen
dad5779d3c
Add test for five escapes before n
7 years ago
Joergen Ibsen
b9a0589067
Fix escaping of newlines in string literals
...
Replace '\n' escape sequence before '\\' to allow a literal backslash
to be inserted before the character 'n'.
Fixes #2682
7 years ago
Iñigo Martínez
3d0a9b7911
interpreter: Reduce to_sring method to base 10
...
The int's to_string method implementation has been reduced to base
10.
7 years ago
Iñigo Martínez
30f2c4857c
interpreter: Support to_string method for int values
...
Although some other base types like boolean objects can be expresed
as strings, this is not possible with int objects.
This patch adds support to express int values as strings as hex,
decimal or octal values.
7 years ago
Joergen Ibsen
91a0126590
Improve escaping in configuration files
...
Replace pairs of backslashes before '@' or '\@' with singles (allows
escaping the escape character). Do not consume next '@' after '\@'.
7 years ago
Josh Soref
7771d267f5
spelling: precedence
7 years ago
Josh Soref
49f8d28ef5
spelling: overridden
7 years ago
Josh Soref
f2835004ea
spelling: necessary
7 years ago
Josh Soref
8aab7fea5a
spelling: executable
7 years ago
Josh Soref
1d708d14f7
spelling: arithmetic
7 years ago
Joergen Ibsen
80157a5ea3
Make prefix substitution test uppercase
7 years ago
Dylan Baker
f818e9df58
Add a configtool_variable method to dependency
...
This mirrors the get_pkgconfig_variable but for config tool based
dependencies.
7 years ago