Matthias Klumpp
3eb90414f6
Add testcase for mixed C and D compilation
8 years ago
Matthias Klumpp
56823272ab
Implement D support
...
This patch adds support for the D programming language[1] to Meson.
The following compilers are supported:
* LDC
* GDC
* DMD
[1]: http://dlang.org/
8 years ago
Nirbheek Chauhan
2549ed8290
Add a test to find libfoo.X.dylib via -lfoo
...
Alex Băluț reported that on OS X libfoo.0.dylib cannot be found as -lfoo by the
linker, and you must use -lfoo.0 instead. Add a test for this so the CI can
catch such problems. The next commit will contain the fix.
8 years ago
Nirbheek Chauhan
909a62ca1a
test common/86: Move static library back ( #662 )
...
This reverts 15ab984d8e
Also see #459
8 years ago
Jussi Pakkanen
b382abdd2c
Forbid nested ternary operations.
8 years ago
Jussi Pakkanen
d90fcb4048
Created ternary operator. Closes #538 .
8 years ago
Nirbheek Chauhan
9f67c29eb4
Add test for the new find program workaround for Windows
8 years ago
Nirbheek Chauhan
d8b9b12adb
Ninja now supports backslash in command args, so we can too
...
At the same time, this also adds a bunch of tests that document and keep
track of how we expect quoting to pass through via Ninja to the
compiler.
We need at least Ninja 1.6.0 for this.
This fixes https://github.com/mesonbuild/meson/issues/489
8 years ago
Nirbheek Chauhan
a2344d5aa6
Test that the 'libdir' project() option works
8 years ago
Jussi Pakkanen
f3c793b9c1
Added test for a prebuilt static library and a declare_dependency that uses it.
8 years ago
Nirbheek Chauhan
88aafd363e
Normalize the path of a configured file to avoid dupes ( #640 )
8 years ago
Nirbheek Chauhan
f8d7588372
test 60 install script: Don't install any files when using msvc
...
The test is stricter now and our install script doesn't work without
bash
8 years ago
Jussi Pakkanen
c0057da133
Can get arbitrary data from cross file properties.
9 years ago
Jussi Pakkanen
70e84f9080
Use new run_target format.
9 years ago
Nirbheek Chauhan
0640fe0215
Add test for usage of generated File sources in libraries
...
This tests the previous commit:
vs: Fix usage of mesonlib.File.rel_to_builddir with generated files
9 years ago
Nirbheek Chauhan
6c055c7c3c
Add test for configure_file in custom target command list
...
This was not tested at all earlier
9 years ago
Nirbheek Chauhan
8ad4779a05
Add test for installation of libraries in subprojects
...
The original test's subproject-install check had to be removed because
library names are now properly platform-specific
9 years ago
Nirbheek Chauhan
45c8557dc6
Fix tests for the new library/executable naming scheme
...
Also add new tests for the platform-specific and compiler-specific
versioning scheme.
A rough summary is:
1. A bug in how run_tests.py:validate_install checked for files has been
fixed. Earlier it wasn't checking the install directory properly.
2. Shared libraries are no longer installed in common tests, and the
library name/path testing is now done in platform-specific tests.
3. Executables are now always called something?exe in the
installed_files.txt file, and the suffix automatically corrected
depending on the platform.
4. If a test installs a file called 'no-installed-files', the installed
files for that test are not validated. This is required to implement
compiler-specific tests for library names/paths such as MSVC vs MinGW
5. The platform-specific file renaming in run_tests.py has been mostly
removed since it is broken for shared libraries and isn't needed for
static libraries.
6. run_tests.py now reports all missing and extra files. The logic for
finding these has been reworked.
9 years ago
Jussi Pakkanen
0733c0f9a1
Changed run_target to take command as kwarg and add depends. This makes it behave the same as custom_target.
9 years ago
Jussi Pakkanen
ea4fe8e417
Run_target can run binaries obtained with find_program.
9 years ago
Nirbheek Chauhan
a927380098
Add a test for the broken cached version compare
...
https://github.com/mesonbuild/meson/pull/610
9 years ago
Nirbheek Chauhan
0623f71e36
Add a linuxlike test case for subdir include order
...
Needs glib-2.0 as a pkg-config dependency
9 years ago
Nirbheek Chauhan
c631cac04c
tests: Fix 103 manygen when both cl and gcc are available
...
Meson uses the 'CC' environment variable, so manygen.py should too
9 years ago
Jussi Pakkanen
15ab984d8e
Finish appveyor integration by moving static library in a subdir to avoid clashes.
9 years ago
Jussi Pakkanen
475175f4b5
Can use generator outputs in custom targets. Closes #587 .
9 years ago
Jussi Pakkanen
f0626e6cc1
Created failing test for using generated outputs in a custom target.
9 years ago
Jussi Pakkanen
d4adf0983b
Add special casing for VS which ignores unknown arguments.
9 years ago
Jussi Pakkanen
beef7cb291
Added functionality to pick the first supported argument from a list. Closes #583 .
9 years ago
Jussi Pakkanen
d8d989d9b8
Add a has_arg method to compiler to check whether it supports a given argument.
9 years ago
Jussi Pakkanen
de73d85ad8
Removed vs nomod test because it fails at compile time but the framework needs it to fail at configure time.
9 years ago
Jussi Pakkanen
177e286b3c
Can generate config headers without an input file. Closes #549 .
9 years ago
Nirbheek Chauhan
fdc95c2ea4
Add various tests for versioned dependency checking
...
Both pkg-config and subproject-based dependencies
Linux-like because we need zlib for the tests to work
9 years ago
Jussi Pakkanen
0482635c12
Handle case of install_subdirring a subdir.
9 years ago
Jussi Pakkanen
beb6827413
Installing subdirs now merges with existing files in the target dir.
9 years ago
Jussi Pakkanen
144565fabf
Added method to get current project name.
9 years ago
Jussi Pakkanen
16e032c289
Fix installing manpages from subdirs.
9 years ago
Jussi Pakkanen
cc055387cd
Can have multiple Qt resource files in a single target. Closes #572 .
9 years ago
Jussi Pakkanen
cff4e7d299
Can query version strings of dependencies.
9 years ago
Jussi Pakkanen
b5013a573a
Added semantic versioning comparison method to strings.
9 years ago
Nicolas Schneider
a29d9c2c33
vs: fix generators that use indexed output replacements (like @OUTPUT0@)
9 years ago
Nirbheek Chauhan
7aa24c7d0a
compilers: Fix header stub change that broke has_function checks on Windows ( #559 )
...
Fixes https://github.com/mesonbuild/meson/issues/558
9 years ago
Jussi Pakkanen
d8e08224da
Helper function to get the install dir of a gtkdoc module. Closes #551 .
9 years ago
Jussi Pakkanen
2a3a1ce8e0
Join() convenience method for strings. Closes #552 .
9 years ago
Jussi Pakkanen
695aa0b8c2
Made cstdlib a subproject.
9 years ago
Nirbheek Chauhan
0ac33b8857
tests/common/43: Better, more descriptive error messages
9 years ago
Jussi Pakkanen
0e469426dd
Created simple C project with own libc.
9 years ago
Jussi Pakkanen
48e678db76
Strip leading source tree dir name from install files if it exists.
9 years ago
Tim-Philipp Müller
1934ddfc5b
Improve cc.has_function() check to not require any includes and detect stubs
...
We now use .links() to detect if a C compiler function is available
or not, that way the user doesn't need to specify all the possible
includes for the check, which simplifies things considerably.
Also detect glibc stub functions that will never work and return
false for them.
Closes #437
9 years ago
Nirbheek Chauhan
700010e452
New API: cc.has_header_symbol to check if a header defines a specific symbol
...
Also supports a 'prefix' keyword argument for feature checks such as _GNU_SOURCE
or for headers that need to be included first
9 years ago
Jussi Pakkanen
26f647d728
And private libraries.
9 years ago