Aleksey Filippov
cd245eccbd
Add declare_dependency() test for link_whole
7 years ago
Jon Turney
cd5dba5358
Fix flake8 'imported but unused' reports
...
$ flake8 | grep F401
./meson.py:17:1: F401 'mesonbuild.mesonlib' imported but unused
./meson.py:18:1: F401 'locale' imported but unused
./run_unittests.py:24:1: F401 'sys' imported but unused
./mesonbuild/minit.py:2:1: F401 'pyclbr.Function' imported but unused
./mesonbuild/minit.py:18:1: F401 'os' imported but unused
./mesonbuild/backend/vs2010backend.py:15:1: F401 'sys' imported but unused
./mesonbuild/backend/xcodebackend.py:19:1: F401 'sys' imported but unused
./mesonbuild/dependencies/ui.py:20:1: F401 'shutil' imported but unused
./mesonbuild/modules/python3.py:15:1: F401 'sys' imported but unused
./mesonbuild/modules/unstable_icestorm.py:15:1: F401 '..compilers' imported but unused
./mesonbuild/modules/unstable_icestorm.py:15:1: F401 '..mlog' imported but unused
./test cases/common/98 gen extra/srcgen3.py:3:1: F401 'os' imported but unused
7 years ago
Aleksey Filippov
d040ce4165
Refactor 'common/145 whole archive' test case
...
Former test is extremely hard to follow,
target names are inconsistent with directory names,
test case mixes up 2 separate testing scenarios,
names are meaningless. In order to fix this
provides comments what each command is doing and why,
renamed targets into descriptive and longer names,
made names consistent with contents so that it is easier
to follow test logic without looking up source code.
7 years ago
Jussi Pakkanen
cb176e9303
Look up compilers based on sources from deps, too. Closes #2768 .
7 years ago
Aleksey Filippov
d6b5d7fe9f
Add library with generated_pc and PkgConfigDependency support to pkgconfig.generate()
7 years ago
Jussi Pakkanen
0c3af38c3e
Renamed test dir with duplicate number.
7 years ago
Aleksey Filippov
c88f569599
Fix comment misprint in 'test cases/common/51 pkgconfig-gen/dependencies'
7 years ago
Peter Hutterer
6b550ae91f
Allow for missing install_dir in install_data()
...
The documentation doesn't require it and the interpreter code works around the
possibility of it being None. The ninja backend code however fails with
File "/home/whot/code/meson/mesonbuild/backend/ninjabackend.py", line 796, in generate_data_install
dstabs = os.path.join(subdir or None, plain_f)
File "/usr/lib64/python3.6/posixpath.py", line 78, in join
a = os.fspath(a)
TypeError: expected str, bytes or os.PathLike object, not NoneType
If install_dir is missing, default to datadir/projectname
7 years ago
Jon Turney
56286fd2b8
Fix test cases/failing/52 inconsistent comparison
...
Since PR #2884 , this is failing with an exception
Keep the behaviour we have had since PR #1810 (0.41.0), that ordering
comparisons of different types fail with an InterpreterException.
Also warn about equality comparisons of different types, which will one day
become an error, as per PR #2884 .
7 years ago
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