Jussi Pakkanen
833520afb5
Merge branch 'vs-fixinclude'
9 years ago
Jussi Pakkanen
1d89d091f8
Merge branch 'vs-extraargs'
9 years ago
Jussi Pakkanen
5ea24bafdd
Merge branch 'samename'
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
Jussi Pakkanen
37d7473615
Merge pull request #478 from centricular/sizeof_no_symbol
...
Return -1 from cc.sizeof if the symbol could not be found
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
Jussi Pakkanen
46c324eb6e
Error out if trying to install with Python 2.
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
3de7c34714
add test for extracting two objects with the same source file name
9 years ago
Nicolas Schneider
0c4aab6eed
vs2010: support same source file names in different subdirs
9 years ago
Jussi Pakkanen
7019daaab0
Binary name clarification.
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
5b3c9e262b
Check option files too.
9 years ago
Jussi Pakkanen
d87eb7d290
Merge branch 'base_options'.
9 years ago
Jussi Pakkanen
9071c8fc45
Merge branch 'Custom target absolute paths'.
9 years ago
Jussi Pakkanen
c1a0bd9a52
Merge pull request #441 from nioncode/vs-compile-args
...
vs2010: fix compile args
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
Jussi Pakkanen
4bb665a577
Merge pull request #464 from tp-m/bool-to-string-and-to-int
...
Add bool to_string() and to_int() methods.
9 years ago
Jussi Pakkanen
a3d49ca1ce
Merge pull request #453 from nioncode/vs-customTargetDependencies
...
vs2010: fix dependencies of CustomTarget
9 years ago
Jussi Pakkanen
6eaeb05f8b
Merge pull request #463 from tp-m/plus-assign-for-strings-and-ints
...
Add += support for strings and integers
9 years ago
Jussi Pakkanen
1bd3135bcb
Merge pull request #461 from nirbheek/msvc-filter-clibs
...
compilers: While linking, filter out libraries that are bundled with the MSVC runtime
9 years ago
Jussi Pakkanen
254a688124
Pip clarification.
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
dc049660e7
Merge pull request #456 from nirbheek/implement_libexecdir
...
New builtin option: libexecdir for installation of helper executables
9 years ago
Jussi Pakkanen
2e73994978
Merge pull request #455 from nirbheek/meson_install_shebang_parsing
...
meson_install.py: Start by checking if the shebang is directly runnable
9 years ago
Jussi Pakkanen
7844fd54d9
Merge pull request #458 from nioncode/vs-object-extraction
...
vs2010: fix object extraction
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
Jussi Pakkanen
8b6848ebc3
Add dir support for find_library and remove deprecated standalone version. Closes #450 .
9 years ago
Nicolas Schneider
147b7aa356
vs2010: add explicit objects as 'Object' ItemGroup instead of link dependency
...
This has two effects:
1. It makes targets with only object files work (test case 88).
2. It adds the object files to the project in the VS IDE.
9 years ago
Nicolas Schneider
d72cc6e6f8
vs2010: fix object extraction
...
1. Dependencies must be set up with the target's id instead of its
basename.
2. Extracted object output file names must not include the directory
prefix, because MSBuild puts all object files into the same directory
and names them srcfilename.obj instead of dir/filename.obj or
dir_filename.obj.
9 years ago
Nirbheek Chauhan
11f63105d0
New builtin option: libexecdir for installation of helper executables
9 years ago