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
Jussi Pakkanen
c0c9a96c36
Can set requires manually into generated pc files.
9 years ago
Jussi Pakkanen
74265135bd
Add global arguments to vala compilations.
9 years ago
Nirbheek Chauhan
1713fa0297
Add shared_library argument for a Visual Studio module definitions file
...
On MSVC, shared libraries only export symbols that have been explicitly exported
either as part of the symbol prototype or via a module definitions file.
On compilers other than MSVC, all symbols are exported in the shared library by
default and the format for the list of symbols to export is different, so this
is only used with the VisualStudio compiler.
The module defs file path can either be relative to the current source directory
or an absolute path using meson.source_root() + '/some/path'
9 years ago
Nicolas Schneider
b970ef692f
vs2010: add extra_files to project
9 years ago
Nicolas Schneider
33e842e50a
vs2010: fix transitive dependencies
9 years ago
Nicolas Schneider
a33d9d56cf
vs2010: support EXTRA_ARGS for generators
9 years ago
Nicolas Schneider
c2a9f81b68
vs2010: fix generated files' path
...
Generated files should always come with the correct relative path set,
so we don't have to modify it at all.
9 years ago
Nicolas Schneider
ba8b650cda
vs2010: fix relative path to target private dir for generators
...
backend.get_target_private_dir() includes the target directory in the path.
However, we want to treat all paths relative from the target directory,
because that's where our VS project file lives in.
9 years ago
Nicolas Schneider
330be891c1
vs2010: fix generator command
...
A shebang line on Windows will be resolved to [binary, script_path].
Thus, we need to use both instead of just taking the first element of the
command.
9 years ago
Nicolas Schneider
30e2a5feae
vs2010: fix include directories
...
Everything in the VS project file is relative to the project file itself.
The project file gets put in the target.subdir, so to include files from
there we just need to use '.'. To include from the private dir, we
need to use the relative path from the target dir to the target private
dir.
9 years ago
Nicolas Schneider
9c17f0cd93
vs2010: support private include dirs
9 years ago
Jussi Pakkanen
12a4e7d7e7
Moved gettext into i18n module.
9 years ago
Nirbheek Chauhan
a8c6fd6aa4
compilers: Return -1 from cc.sizeof if the symbol could not be found
...
Allows people to avoid adding a separate check for the symbol existing in case
it's platform-specific
9 years ago
Nicolas Schneider
fd8180ddcb
move source file conflict detection into Vs2010 backend
9 years ago
Nicolas Schneider
84804fc531
vs2010: use copy of buildtype_args to not change global state
...
We do not want the modifications of general_args to propagate to the
global buildtype_args.
9 years ago
Nicolas Schneider
8787ec3ea2
vs2010: fix object extraction with same source file name
...
This also refactors determine_ext_objs() to use inheritance instead of a
method flag for determining the object output name.
9 years ago
Nicolas Schneider
0c4aab6eed
vs2010: support same source file names in different subdirs
9 years ago
Jussi Pakkanen
317a735b07
Error out if using a not found binary in the build. Closes #469 .
9 years ago
Tim-Philipp Müller
8945c85f96
Fix up typo in precompiled headers base option handling
9 years ago
Jussi Pakkanen
8b619420f9
Open Meson and option files explicitly as utf-8. Closes #467 .
9 years ago
Jussi Pakkanen
a405f7a499
Grab base options from the command line.
9 years ago
Jussi Pakkanen
79de463993
Converted precompiled headers into a base option.
9 years ago
Jussi Pakkanen
0c63f75aaf
Converted coverage into a base option.
9 years ago
Jussi Pakkanen
0c9c29b6b6
Preserve b_ prefix for base option names.
9 years ago
Tim-Philipp Müller
3eea1703ff
Add bool to_string() and to_int() methods
...
bool to_int() will return 0 or 1, useful if one wants to set
a define to 0 or 1 based on a boolean result instead of having
it just defined or undefined.
bool to_string() will return 'true' or 'false' by default same
as when using it to format a string, but with the additional
possibility to specify two extra string arguments to be returned
as true/false values, e.g. to_string('yes', 'no'). This can be
useful when outputting messages to be shown to the user.
9 years ago
Tim-Philipp Müller
fcbd60c291
Add += support for strings and integers
9 years ago
Nirbheek Chauhan
57e01c2964
compilers: While linking, filter out libraries that are bundled with the MSVC runtime
9 years ago
Jussi Pakkanen
ae1f284ade
Added base options to Clang compilers.
9 years ago
Nirbheek Chauhan
64a0dc6269
Implement cc.find_library for the Visual Studio C/C++ compilers
...
Without this find_library always succeeds because MSVC just ignores -lfoo
as an invalid argument
9 years ago
Jussi Pakkanen
90c799fc61
Do not use lundef on OSX.
9 years ago
Jussi Pakkanen
b5c7cca0dc
Works when mixing Java and C.
9 years ago
Jussi Pakkanen
de03ae5af0
Fix mesonintrospect.
9 years ago