Dylan Baker
e245e57865
Warn on unknown command line arguments
...
I have a tendency to typo things. Humans in general are bad at spotting
spelling mistakes, computers are not. This patches prints the bad
options and provides the generic meson "This will be a hard error
someday" message.
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
Jussi Pakkanen
08ef881c86
Extracted compiler definitions to their own file.
10 years ago
Jussi Pakkanen
525f0ae6d2
Harmonised copyright declarations.
10 years ago
Jussi Pakkanen
a5863477f8
Kill end of line whitespace dead.
10 years ago
Jussi Pakkanen
55759e4aa9
Can specify project options on the command line and the override defaults.
10 years ago
Jussi Pakkanen
83237f2b38
Added option for werror.
11 years ago
Jussi Pakkanen
ac871dd6e2
OCD
11 years ago
Jussi Pakkanen
b626d017a2
Specify build flags per build type.
11 years ago
Jussi Pakkanen
d99717d9d2
Some cleanups.
11 years ago
Jussi Pakkanen
1967b64180
Separated backends into their own files.
11 years ago
Jussi Pakkanen
b8aba2010b
Basic pieces for an XCode project generator.
11 years ago
Jussi Pakkanen
bc97fb5c85
Backend work is start.
11 years ago