Nicolas Schneider
060f195fe0
vs2010: add generated libs as link dependencies
9 years ago
Nicolas Schneider
1ccb4b3a51
vs2010: add dirs of custom_target generated files to include dirs
9 years ago
Nirbheek Chauhan
aa7202d42f
compilers: Remove outdated MSVC implementation of cc.find_library
...
With the change to cc.links to translate unix link flags, this is no
longer needed and is wrong because it hasn't kept-up with the improved
default cc.find_library implementation.
9 years ago
Nirbheek Chauhan
d87f2f5b42
compilers: Convert args to cc.{links,run} from unix to native
...
This allows build files to pass -L and -l flags and have them converted
automatically as needed.
9 years ago
Nirbheek Chauhan
ed774a68c6
scripts/meson_exe: prepend extra_paths to PATH instead of appending
...
This way locally-built DLLs and EXEs are preferred over system-wide ones
9 years ago
Nirbheek Chauhan
35ef1d109a
CustomTarget: require install_dir only when install is true ( #519 )
9 years ago
Nirbheek Chauhan
8cd359acbb
Regex used for configuration data substitution was too broad ( #520 )
9 years ago
Nirbheek Chauhan
2c687b02c2
Fix symbol-exists check for cross_sizeof and add the same check to cross_alignment
...
The previous check was failing while checking pointer sizes such as
void* due to a syntax error.
9 years ago
Nirbheek Chauhan
9a9654c4bd
Fix off-by-one in cross_sizeof and cross_alignment on MSVC
9 years ago
Nirbheek Chauhan
86aa51232e
backends: Don't duplicate test setup data file name
...
Instead, return the values of the test and benchmark setup data files so
that the ninja/osx/vs backends can use those filenames instead of
hard-coding them.
9 years ago
Nirbheek Chauhan
e3bc2e5c68
ninja: Set PATH for CustomTargets with built EXEs on Windows
...
When a CustomTarget is run with a command that is an executable built
by the project which also has a DLL built in the same project as a
dependency, the EXE can't run on Windows because the DLL can't be found.
On UNIX-like systems, we set the RPATH using the linker so these
dependencies can be found, but on Windows the only way is to set the
PATH environment variable.
The same problem exists for tests, so we reuse that infrastructure by
creating a new meson_exe.py script that can be used as a wrapper to run
CustomTarget commands on Windows. This can later also be extended to add
support for setting an environment while calling the command needed to
generate a CustomTarget: https://github.com/mesonbuild/meson/issues/266
9 years ago
Nirbheek Chauhan
2bdaa1f0c1
Separate out cpu_method to environment.py and add amd64 quirk
9 years ago
Nirbheek Chauhan
c0765b0e8d
Don't require an exe_wrapper when cross-compiling 32-bit on 64-bit
...
Almost all 64-bit x86 OSes can run 32-bit x86 binaries natively. Detect
that case and don't require an exe wrapper.
9 years ago
Nirbheek Chauhan
563b978bf2
On failure, print exceptions encountered while searching for compilers ( #515 )
9 years ago
Nirbheek Chauhan
b56f008f80
compilers: Fix cross_sizeof when the type doesn't exist ( #514 )
...
compilers: Fix cross_sizeof when the type doesn't exist
9 years ago
trhd
a76693f338
Fix a bug (typo) seen when printing the logs from failed tests. ( #513 )
9 years ago
Jussi Pakkanen
27134e8e04
Increment version number for new development.
9 years ago
Jussi Pakkanen
a952717b4f
Bump version number for release.
9 years ago
Nirbheek Chauhan
e72523ae41
compilers: Use compiler-specific no-optimization flags
...
MSVC doesn't understand -O0. It uses -Od (or /Od) instead.
9 years ago
Jussi Pakkanen
48e678db76
Strip leading source tree dir name from install files if it exists.
9 years ago
Nirbheek Chauhan
804a3ca72a
compilers: Debug optimization level should be -O0 ( #509 )
...
Without any -O options, gcc does not generate properly debuggable code.
> With no -O option at all, some compiler passes that collect information useful
> for debugging do not run at all
gcc recommends -Og, but that isn't supported by clang, so we use -O0
See https://github.com/mesonbuild/meson/pull/509 for more discussion
9 years ago
Tim-Philipp Müller
3b5dcdbd42
gnome: only print warning when gresource-related functionality is used ( #510 )
...
It's confusing to print this when using stuff that works just fine.
9 years ago
Nirbheek Chauhan
4e084e7ac1
compilers: Also support built-in functions in cc.has_function
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
Nicolas Schneider
536edb65d6
vs2010: replace " with \" in /D command line args
...
The /D switch strips any quotes except when they are escaped.
9 years ago
Nicolas Schneider
eb69b268d4
Revert "Fix Windows. Again."
...
This reverts commit e522a9f268
.
9 years ago
Jussi Pakkanen
e44229b9c2
Removed no longer used attribute from rpm generator. Closes #502 .
9 years ago
Jussi Pakkanen
737fde65fa
Bring back the old manual search to cc.find_library.
9 years ago
Jussi Pakkanen
6841672eb5
Import fix. Closes #498 .
9 years ago
Hemmo Nieminen
3f3fcace3d
mconf: Include testing related options when printing build configuration.
9 years ago
Hemmo Nieminen
2eb392cdc0
Implement errorlogs builtin option.
9 years ago
Hemmo Nieminen
7fb04c207b
Implement stdsplit builtin option.
9 years ago
Hemmo Nieminen
af6f4c9b9c
coredata: Centralize builtin option descriptions and definitions.
9 years ago
Jussi Pakkanen
16b3e22016
Removed lingering coverage flags.
9 years ago
Jussi Pakkanen
e0792295bc
Whitespace fixing.
9 years ago
Jussi Pakkanen
4352398caf
Fix output dir of coverage-html.
9 years ago
Jussi Pakkanen
6291fb4056
Put buildtype flags to vala compiles.
9 years ago
Jussi Pakkanen
3415c3a693
Add coverage option to compilers.
9 years ago
Jussi Pakkanen
a42a4d7bf3
If should be elif.
9 years ago
Jussi Pakkanen
e522a9f268
Fix Windows. Again.
9 years ago
Jussi Pakkanen
ea092fefc2
Use individual tempdirs for building and installing in unit tests.
9 years ago
Hemmo Nieminen
336904b553
Move MesonException from coredata to mesonlib.
9 years ago
Hemmo Nieminen
5764bee2f4
meson_test: Don't print logs from failing tests that are expected to fail.
9 years ago
Hemmo Nieminen
297749581d
meson_test: Add support for --print-errorlogs option.
...
This option can be used to control whether the logs from failing tests
should be shown to the user after the tests have been executed.
9 years ago
Hemmo Nieminen
f2868420ca
meson_test: Add support for --no-stdsplit option.
9 years ago
Hemmo Nieminen
457ecb6be7
meson_test: Move "options" to a global variable.
9 years ago
Jussi Pakkanen
519df3defa
Only check cl banner string on Windows. Closes #491 .
9 years ago
Jussi Pakkanen
26f647d728
And private libraries.
9 years ago
Jussi Pakkanen
67377e69b5
Invoke depfixer in-process to make it faster. Closes #480 .
9 years ago