Sam Thursfield
2db11f1383
Sort user commandline options when generating 'scan-build' target
...
We receive these options from the 'argparse' module in a random
order. To ensure the build.ninja file doesn't include random variations
we should sort them before writing them back out.
8 years ago
Nirbheek Chauhan
c52963cd16
vala: Allow installation into default directories
...
For generated headers, vapis, and GIRs.
https://github.com/mesonbuild/meson/pull/1469#issuecomment-292814000
8 years ago
Jussi Pakkanen
eaaaee6421
Merge pull request #1596 from centricular/test-rebuilds
...
Test that build and custom targets are rebuilt on changes
8 years ago
Jussi Pakkanen
315a52533c
Merge pull request #1606 from dcbaker/vs_modules_defs
...
Allow passing generated files to shared_module vs_module_def. Closes #1605
8 years ago
Jussi Pakkanen
42d1661bd9
Merge pull request #1588 from absmall/method
...
Add an option to dependencies called 'method'.
8 years ago
Nirbheek Chauhan
371e3d3e87
install scripts: Actually check if it was found
...
Closes https://github.com/mesonbuild/meson/issues/1600
8 years ago
Aaron Small
1fbf6300c5
Use an enum instead of strings for method names.
...
If a non-string value is passed as a method, reject this explicitly
with a clear error message rather than trying to match with it and
failing.
8 years ago
Dylan Baker
6402a8193a
Provide nice error for invalid types to shared_library vs_module_defs
...
This just provides a nice error message for passing invalid types.
8 years ago
Dylan Baker
c49f5aefd8
Allow using generated files to shared_library vs_module_defs. Closes #1605
...
This detects and allows passing a generated file as a vs_module_def, it
also adds a testcase that tests using configure_file to generate the
.def file.
8 years ago
Nirbheek Chauhan
711c0cbd67
vs: Fix depend_files support in custom targets
...
This was totally broken and we didn't notice because we had no tests
for it at all.
8 years ago
Nirbheek Chauhan
cdae69c0f8
vs: Pretty-print all vcxproj output
...
We were more hesitant to do this earlier because it might have messed
up custom_target command lines, but since we always use a wrapper for
that now, it should be ok to do this.
Add a test in the form of a funky generator script.
8 years ago
Nirbheek Chauhan
b603aba3ec
Add tests for target and custom_target rebuild
...
Test that changing src tree headers rebuilds targets, and test that
changing any file used in a custom_target will rebuild it.
8 years ago
Jussi Pakkanen
7d5e4012fe
Merge pull request #1598 from centricular/fix-module-instdir
...
Fix shared module installation directory on Windows
8 years ago
Nirbheek Chauhan
fd030a1efd
tests/windows/7: Fix test on Cygwin
...
Not sure how this was missed.
8 years ago
Nirbheek Chauhan
878b0f1401
Fix shared module installation directory on Windows
8 years ago
Jussi Pakkanen
27e2c23efc
Colorize terminal output of mesontest. Closes #1593 .
8 years ago
Jussi Pakkanen
4c6f99a31a
Check that requested executables are available. Closes #1591 .
8 years ago
Jussi Pakkanen
0b772f37c0
Merge pull request #1575 from centricular/unit-tests-more-backends
...
Run unit tests on more backends
8 years ago
Jussi Pakkanen
1652dccea2
Merge pull request #1469 from centricular/install-secondary-outputs
...
Support multiple install dirs for built/custom targets
8 years ago
Nirbheek Chauhan
5791cb7c4b
unit tests: exe_suffix is '.exe' on Cygwin
8 years ago
Nirbheek Chauhan
a68ca716b3
appveyor.yml: Move cygwin and mingw up the list
...
They are the 'weird' platforms, so we want them to be run first.
That way we don't have to wait for all the other tests before finding
out that something broke.
8 years ago
Nirbheek Chauhan
36e8291a6a
unit tests: Run another linuxlike test on all platforms
8 years ago
Nirbheek Chauhan
4f0d42967e
tests: Move appveyor platform workaround to run_tests.py
...
This is also needed for the unit tests
8 years ago
Nirbheek Chauhan
68c8bb49c3
vs: Pass absolute path of files to run_target
...
Fixes https://github.com/mesonbuild/meson/issues/957 for the VS backend
8 years ago
Nirbheek Chauhan
a51d582c72
unit tests: Skip tests that need Ninja
...
Such as tests that use the compiler db, or install things.
8 years ago
Nirbheek Chauhan
f80d471345
unit tests: Fix running specific targets with MSBuild
...
/t:targetname syntax doesn't work, but running the vcxproj does work
Also use the Backend enum everywhere.
8 years ago
Nirbheek Chauhan
a331bf1162
unit tests: Run on all backends, not just Ninja
8 years ago
Nirbheek Chauhan
7e4a67c790
run_project_tests: Clean on backends that can't install
...
Also sets more groundwork for running unit tests with backends other
that Ninja.
Transferring global state to executors is totally broken in Python 3.4
so just serialize all the commands.
8 years ago
Nirbheek Chauhan
388e5a63dc
project tests: Add a new BuildStep called validate
8 years ago
Nirbheek Chauhan
323fe43413
run_project_tests: Clean-up backend detection a bit
...
Set a global variable that has it so other places can use it, and
error out on unknown backends
8 years ago
Nirbheek Chauhan
d755228afe
tests: Factor out common code to run_tests
...
And use generic build/clean/test/install commands in the unit tests,
just like project tests. This sets the groundwork for running the unit
tests with all backends.
8 years ago
Nirbheek Chauhan
4646958917
run_tests: Improve the backend detection
8 years ago
Richard Hughes
0e8eba7f64
gnome: Allow modules to optionally generate ObjectManager boilerplate
...
Fixes: https://github.com/mesonbuild/meson/issues/1539
8 years ago
Aaron Small
98a0f3ea40
Rename the pkgconfig method to pkg-config
8 years ago
Aaron Small
76c8491d77
Add an option to dependencies called 'method'. This can be used to
...
configure a detection method, for those types of dependencies that have
more than one means of detection.
The default detection methods are unchanged if 'method' is not
specified, and all dependencies support the method 'auto', which is the
same as not specifying a method.
The dependencies which do support multiple detection methods
additionally support other values, depending on the dependency.
8 years ago
Wade Berrier
b89af8b6dd
Add support for BOOST_INCLUDEDIR and BOOST_LIBRARYDIR
...
In case they are not decendants of BOOST_ROOT...
(Idea copied from CMake FindBoost)
Fix for #1562
authors.txt: add myself as requested
8 years ago
Jussi Pakkanen
62b86824f0
Make link whole work on OSX.
8 years ago
Jussi Pakkanen
cbc8d6e537
Fix link whole on VS backend.
8 years ago
Jussi Pakkanen
a718f1a334
Skip test on VS earlier than 2015.
8 years ago
Jussi Pakkanen
d152c1b5d5
Add option to link the entire contents of a static library to a target.
8 years ago
Nirbheek Chauhan
79208fd9c4
Test whether runpath/rpath override LD_LIBRARY_PATH
...
For details, see: https://github.com/mesonbuild/meson/issues/1383
8 years ago
Jussi Pakkanen
761b28371a
Merge pull request #1518 from centricular/mesonintrospect-evar
...
Export MESONINTROSPECT to postconf/install/run_command scripts
8 years ago
Jussi Pakkanen
664c2c909b
Merge pull request #1580 from pitti/feature/add-arguments-language-list
...
Add support for language list in add_*_arguments
8 years ago
Jussi Pakkanen
aad21d2639
Merge pull request #1567 from jon-turney/cygwin
...
Add Cygwin support
8 years ago
Dylan Baker
af820b77d8
Allow specifying windres binary in cross files
...
When cross compiling with mingw it's problematic to assume that there is
a binary called windres, and having to set it via an environment
variable seems wrong when there is a handy cross-file for just such a
situation.
This patch allows setting windres in the [binaries] section of the cross
file. If the build is a cross build, then the windows module will check
for windres being set in the cross file before checking the WINDRES
environment variable or looking for a windres binary.
8 years ago
Philipp Ittershagen
a00ab548eb
add_project_arguments: allow call after subproject()
...
This commit fixes #1554 by removing the restriction of add_project_arguments()
to be called before any subproject() statement.
8 years ago
Jon Turney
44c54affda
Add Cygwin/x86_64 to AppVeyor CI matrix
...
Install ninja and packages needed for tests
Don't bother with x86 for speed and reliability reasons
8 years ago
Philipp Ittershagen
69d07fe75a
add_{project,global}_arguments: support language list
...
This patch adds support for specifying a list of languages when calling
add_project_arguments and add_global_arguments.
8 years ago
Jon Turney
2930d3bda6
Ignore missing .pdb files when not using MSVS
...
This fixes 'test cases/windows/1 basic' on Cygwin
8 years ago
Jon Turney
85f989f744
Don't run framework tests on Cygwin
8 years ago