Elliott Sales de Andrade
4c71695e41
Use context manager for file I/O.
...
There are a few cases where a context manager cannot be used, such as
the logger.
8 years ago
Jussi Pakkanen
c4ade56150
Added sysconfdir option. Closes #694 .
8 years ago
Nirbheek Chauhan
018fa4b90f
vs: Fix regen_checker by using the correct coredata mtime
...
After c01b183e5
, the mtime of coredata.dat is always newer than all the
other build files, which made regen_checker think that they always had
to be regenerated. Now we set the mtime of the file to a value before
the build files are generated and that makes everything behave as it did
earlier.
8 years ago
Jussi Pakkanen
9e37c8a308
Warn if PKG_CONFIG_PATH has changed because it may cause dependency detection to fail. Closes #626 .
9 years ago
Nirbheek Chauhan
c01b183e54
mesonmain: Dump the coredata last
...
Otherwise we'll mark the build directory as successfully configured even
if there's an error while doing the actual generation.
Reported on IRC by 'sdgsgad'
9 years ago
Nicolas Schneider
fba749fcb7
extract vs2015backend into own file
9 years ago
Nicolas Schneider
3bedca0257
add vs2015 backend
9 years ago
Jussi Pakkanen
1a0938cc25
Automagic scan-build support.
9 years ago
Jussi Pakkanen
dc148e0702
Remove all special casing for gettext and use elementary operations instead.
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
Hemmo Nieminen
af6f4c9b9c
coredata: Centralize builtin option descriptions and definitions.
9 years ago
Hemmo Nieminen
336904b553
Move MesonException from coredata to mesonlib.
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
Nirbheek Chauhan
11f63105d0
New builtin option: libexecdir for installation of helper executables
9 years ago
Nicolas Schneider
92187501ed
Can add postconfigure script.
9 years ago
Nicolas Schneider
ac5ee0c414
dump coredata to file before calling backend.generate()
...
This ensures that all build files always have a later timestamp than
coredata.dat, which is used to check if the build files must be
regenerated.
9 years ago
Jussi Pakkanen
d88223bd61
Do delayed argument setting properly this time.
9 years ago
Jussi Pakkanen
0469128f46
Preserve 'C:\' as an absolute path in prefix.
9 years ago
Nirbheek Chauhan
a901024d33
When erroring out due to invalid prefix, print the value
...
Helps with debugging what's going wrong
9 years ago
Jussi Pakkanen
755d22afbd
Strip trailing slash from prefix. Closes #366 .
9 years ago
Jussi Pakkanen
7435df8399
Moved backends to their own module.
9 years ago
Tim-Philipp Müller
f5d63cd47e
meson: try harder to infer build and source directories if called without arguments
...
If there's no meson.build file in the current directory
and there is one in the parent directory, assume that
we are in the build directory.
9 years ago
Jussi Pakkanen
eda57f887a
Improve command line arg behaviour.
9 years ago
Jussi Pakkanen
d6e176f455
Made gtkdoc and run targets work.
9 years ago
Jussi Pakkanen
23b98cd6e6
Renamed meson package to mesonbuild so that we can have a script named meson in the same toplevel dir.
9 years ago
Jussi Pakkanen
4c31e7774d
Finalize moduleification so that full test suite runs.
9 years ago
Jussi Pakkanen
66c01401de
Moved scripts in the module and started work to run them via the main meson command.
9 years ago
Jussi Pakkanen
a5508d3fd3
Can run most of test suite (with hacks).
9 years ago
Jussi Pakkanen
8b1039fa30
Organise files into a module structure.
9 years ago
Thibault Saunier
33b2a414e9
Make it working on python 3.3
9 years ago
Yoav Alon
a4809cf632
Added support for extended command line to overcome OS command line length limitation
9 years ago
Jussi Pakkanen
1caf7e6f4a
Yet another step in the neverending saga of -Wpedantic.
9 years ago
Wink Saville
60896c0f04
Add --version to command line arguments.
9 years ago
Jussi Pakkanen
63e803ae0f
Made shared the default libtype as it is faster for daily development.
9 years ago
Jussi Pakkanen
8495075cee
Turned builtin options into proper objects.
9 years ago
Jussi Pakkanen
e2313b85d7
Refactored builtin options to a dictionary and created a new default library target type.
9 years ago
Jussi Pakkanen
c0070aadae
Now that projects can easily override defaults, return warning level to 2.
9 years ago
Jussi Pakkanen
572ce0f451
Added cpu family property to system information.
9 years ago
Thibault Saunier
c24573483d
Do not use intr before it exists
9 years ago
Jussi Pakkanen
067935ce76
Added conf option for build tree layout.
9 years ago
Jussi Pakkanen
384365c843
Added outdir() method to build targets so we can make output dirs togglable.
9 years ago
Jussi Pakkanen
c7e367ac16
Can set default warning with an envvar.
9 years ago
Jussi Pakkanen
6cca79b052
Added multiple selectable warning levels.
9 years ago
Jussi Pakkanen
9d559b2b39
More robust windows detection and more logs.
9 years ago
Jussi Pakkanen
bd5b4deeda
Better sanity testing.
9 years ago
Jussi Pakkanen
30d0c2292f
Support target-only cross compilation properly.
10 years ago
Jussi Pakkanen
37b2a195bd
Get build machine's CPU info too.
10 years ago
Jussi Pakkanen
463d08d545
Now host_machine, build_machine and target_machine are properly separated and return correct values.
10 years ago
Igor Gnatenko
174e72413f
style: fix indenting in meson.py
...
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
10 years ago