Nirbheek Chauhan
c33e7a68a1
Also reuse subproject-based fallback dependencies
...
This allows a project to use the same fallbacks dependency from the same
subproject multiple times in the same way that external dependencies can be.
Also change the format of the dependency identifier to ensure that fallback
checks with different dirname/varname aren't mistakenly reused. We now use
a tuple for this because the format is simpler to construct and it gives us the
same immutability guarantees as a string which is needed for using it as
a dictionary key.
9 years ago
Nirbheek Chauhan
f2256ba098
interpreter: Check if subproject version is defined before comparing
...
Without this Meson gives a cryptic error emitted from inside
mesonlib.version_compare()
9 years ago
Nirbheek Chauhan
065dcee7f3
interpreter: Switch to prev_subdir on non-existant subdir ( #571 )
9 years ago
Jussi Pakkanen
cff4e7d299
Can query version strings of dependencies.
9 years ago
Jussi Pakkanen
b5013a573a
Added semantic versioning comparison method to strings.
9 years ago
Jussi Pakkanen
28b555d2c8
Whitespace fix to test new Docker setup.
9 years ago
Jussi Pakkanen
7694321276
Renamed compile&link args and made them accessible from get_option.
9 years ago
Jussi Pakkanen
4377f773e0
Can set global linker arguments. Closes #536 .
9 years ago
Jussi Pakkanen
ac152a2282
Every target must have a non-empty name.
9 years ago
Jussi Pakkanen
3b3c05f6b1
Can pass extra args to xgettext. Closes #554 .
9 years ago
Jussi Pakkanen
2a3a1ce8e0
Join() convenience method for strings. Closes #552 .
9 years ago
Nirbheek Chauhan
7aad3ff658
interpretor: Fix typo in has_exe_wrapper
...
The function wasn't working at all because of this
9 years ago
Jussi Pakkanen
afe7252476
Can specify a stdlib subproject that is used implicitly on all targets with said language.
9 years ago
Jussi Pakkanen
dc148e0702
Remove all special casing for gettext and use elementary operations instead.
9 years ago
Hemmo Nieminen
7da51f3756
Do not append a period to test suite names.
9 years ago
Nirbheek Chauhan
2bdaa1f0c1
Separate out cpu_method to environment.py and add amd64 quirk
9 years ago
Nirbheek Chauhan
c0765b0e8d
Don't require an exe_wrapper when cross-compiling 32-bit on 64-bit
...
Almost all 64-bit x86 OSes can run 32-bit x86 binaries natively. Detect
that case and don't require an exe wrapper.
9 years ago
Nirbheek Chauhan
700010e452
New API: cc.has_header_symbol to check if a header defines a specific symbol
...
Also supports a 'prefix' keyword argument for feature checks such as _GNU_SOURCE
or for headers that need to be included first
9 years ago
Jussi Pakkanen
737fde65fa
Bring back the old manual search to cc.find_library.
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
12a4e7d7e7
Moved gettext into i18n module.
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
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
Jussi Pakkanen
8b6848ebc3
Add dir support for find_library and remove deprecated standalone version. Closes #450 .
9 years ago
Jussi Pakkanen
19046fd854
Added new base options and some sample opts for gcc.
9 years ago
Jussi Pakkanen
6b548a1c75
Added find_library method and deprecated the standalone version. Closes #396 .
9 years ago
Tim-Philipp Müller
3c8468cd4d
Add string underscorify() function
...
So we can easily construct the defines for include headers and
struct checks and such.
9 years ago
Tim-Philipp Müller
02e84df010
Add more string functions: contains(), to_upper() and to_lower()
9 years ago
Nicolas Schneider
5e1fdb8b97
use positional instead of keyword args for add_postconf_script
9 years ago
Nicolas Schneider
9f9f73fa52
add args support for add_postconf_script
9 years ago
Nicolas Schneider
92187501ed
Can add postconfigure script.
9 years ago
Jussi Pakkanen
52b66edb6c
Can specify compile and link args for internal deps.
9 years ago
Jussi Pakkanen
d88223bd61
Do delayed argument setting properly this time.
9 years ago
Nirbheek Chauhan
601ff91622
interpreter: Add path() method to ExternalProgramHolder types
...
In practice, this means we can do
flex = find_program('flex')
flex.path() # Gives the full path to the flex binary
9 years ago
Jussi Pakkanen
bbe4656c51
Guard against subdir segments in output files.
9 years ago
Jussi Pakkanen
fc08f60b9f
Do not cache found programs because it is unreliable. Closes #374 .
9 years ago
Jussi Pakkanen
8cd3c8124a
Can add languages only if they are available. Closes #365 .
9 years ago
Jussi Pakkanen
4cd671e69e
More comparison operators. Closes #363 .
9 years ago
Jussi Pakkanen
0c96dbff3a
String to int conversion. Closes #362 .
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
ec44795f8a
Moved all wrap related things to their own submodule.
9 years ago
Jussi Pakkanen
4c31e7774d
Finalize moduleification so that full test suite runs.
9 years ago
Jussi Pakkanen
61cb4ae9ca
Can compile full test suite.
9 years ago
Jussi Pakkanen
8b1039fa30
Organise files into a module structure.
9 years ago
Jussi Pakkanen
65bd9a2f69
Can use external libs as dependencies of dependencies. Closes #321 .
9 years ago
Jussi Pakkanen
4c041e2aec
Can tag include directories as system dirs to reduce compiler warning noise. Closes #345 .
9 years ago
Martin Ejdestig
cd5121c0ec
Fix vcs_tag missing fallback error string
9 years ago