Dylan Baker
e991c4d454
Use SPDX-License-Identifier consistently
...
This replaces all of the Apache blurbs at the start of each file with an
`# SPDX-License-Identifier: Apache-2.0` string. It also fixes existing
uses to be consistent in capitalization, and to be placed above any
copyright notices.
This removes nearly 3000 lines of boilerplate from the project (only
python files), which no developer cares to look at.
SPDX is in common use, particularly in the Linux kernel, and is the
recommended format for Meson's own `project(license: )` field
11 months ago
Daniel Mensinger
955a29a92d
docs: Added pickle generator
3 years ago
Daniel Mensinger
ad65a699f9
docs: Initial reference manual generator
3 years ago
Daniel Mensinger
765aff5a42
coverage: Enable coverage reports
3 years ago
Jussi Pakkanen
e75e3976fa
Condense test directory names.
4 years ago
Jussi Pakkanen
9d1e747d17
Condense test directory names again.
4 years ago
Dylan Baker
29ef4478df
compilers/d: Add b_ndebug support
...
D lang compilers have an option -release (or similar) which turns off
asserts, contracts, and other runtime type checking. This patch wires
that up to the b_ndebug flag.
Fixes #7082
5 years ago
Jussi Pakkanen
f39600647d
Condense test directory names.
5 years ago
Jussi Pakkanen
972535a6ac
Condense test dirs.
6 years ago
Jussi Pakkanen
17bfbb99e5
Condense test dirs.
6 years ago
Eric Engestrom
3d63f21b60
Fix `array` type name
...
c9351ce30c
introduced the type as `array`,
so mintro should expose it under the same name.
(while at it, rename test 169 to be coherent)
7 years ago
Jussi Pakkanen
6d03111638
Minor fixes.
7 years ago
Dylan Baker
c9351ce30c
Add new array type option
...
This exposes the already existing UserStringArrayOption class through
the meson_options.txt. The intention is to provide a way for projects to
take list/array type arguments and validate that all of the elements in
that array are valid without using complex looping constructrs.
7 years ago
Dylan Baker
dda5e8cadb
Allow CustomTarget's to be indexed
...
This allows a CustomTarget to be indexed, and the resulting indexed
value (a CustomTargetIndex type), to be used as a source in other
targets. This will confer a dependency on the original target, but only
inserts the source file returning by index the original target's
outputs. This can allow a CustomTarget that creates both a header and a
code file to have it's outputs split, for example.
Fixes #1470
7 years ago
Franz Zapata
4b5a0e5de7
Reintroduce Python Zipapp support
...
* Added `main` function as an entry point.
* Created `__main__.py` to allow the creation of Zipapps without explicitly
calling `meson:main`.
8 years ago
Jussi Pakkanen
455e55f8e5
Back to .py suffix in files. Closes #394 .
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
2ee27504a8
Moved mesonconf implementation in the module.
9 years ago
Jussi Pakkanen
ec44795f8a
Moved all wrap related things to their own submodule.
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
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.
9 years ago
Jussi Pakkanen
37b2a195bd
Get build machine's CPU info too.
9 years ago
Jussi Pakkanen
463d08d545
Now host_machine, build_machine and target_machine are properly separated and return correct values.
9 years ago
Igor Gnatenko
174e72413f
style: fix indenting in meson.py
...
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
10 years ago
Igor Gnatenko
79417eac80
meson: fix undefined-variable in backends chooser
...
E:146,57: Undefined variable 'options' (undefined-variable)
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
10 years ago
Igor Gnatenko
9616bed9fc
introduce check python version in meson.py
...
To ensure that people will not confused that something won't work.
Related: https://github.com/miit-pm/RWD/pull/1#issuecomment-102607931
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
10 years ago
Jussi Pakkanen
b5cec55835
Moved functionality from __main__ to a function to make it callable.
10 years ago
Jussi Pakkanen
ef180676c2
Add command line switch to print version number.
10 years ago
Jussi Pakkanen
3f46cd7fb3
Added gobject-introspection to gnome module.
10 years ago
Jussi Pakkanen
c0f097c0c7
Fix argparse to make rebuild work again.
10 years ago
Jussi Pakkanen
baa0782a22
Use argparse in introspector.
10 years ago
Jussi Pakkanen
b82584641a
Use argparse instead of optparse in meson.py.
10 years ago
Jussi Pakkanen
22c23ee1fb
Added Debian multilib support.
10 years ago