Commit Graph

31 Commits

Author SHA1 Message Date
Hemmo Nieminen 7da51f3756 Do not append a period to test suite names. 2016-05-10 20:58:39 +03:00
Nirbheek Chauhan 2bdaa1f0c1 Separate out cpu_method to environment.py and add amd64 quirk 2016-04-15 00:25:35 +05:30
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.
2016-04-15 00:25:34 +05:30
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
2016-04-07 20:53:12 +05:30
Jussi Pakkanen cab5ce4fc0 Merge pull request #438 from trhd/testing_options
New options for controlling test output.
2016-04-06 23:10:20 +03:00
Jussi Pakkanen 737fde65fa Bring back the old manual search to cc.find_library. 2016-04-04 22:18:14 +03:00
Hemmo Nieminen af6f4c9b9c coredata: Centralize builtin option descriptions and definitions. 2016-04-04 02:52:30 +03:00
Hemmo Nieminen 336904b553 Move MesonException from coredata to mesonlib. 2016-04-01 00:52:45 +03:00
Jussi Pakkanen d87eb7d290 Merge branch 'base_options'. 2016-03-20 22:04:24 +02:00
Jussi Pakkanen 8b619420f9 Open Meson and option files explicitly as utf-8. Closes #467. 2016-03-20 21:21:23 +02:00
Jussi Pakkanen a405f7a499 Grab base options from the command line. 2016-03-20 20:43:32 +02:00
Jussi Pakkanen 4bb665a577 Merge pull request #464 from tp-m/bool-to-string-and-to-int
Add bool to_string() and to_int() methods.
2016-03-20 18:53:01 +02:00
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.
2016-03-19 17:57:11 +00:00
Tim-Philipp Müller fcbd60c291 Add += support for strings and integers 2016-03-19 17:11:53 +00:00
Jussi Pakkanen 8b6848ebc3 Add dir support for find_library and remove deprecated standalone version. Closes #450. 2016-03-17 20:55:19 +02:00
Jussi Pakkanen 19046fd854 Added new base options and some sample opts for gcc. 2016-03-16 21:55:03 +02:00
Jussi Pakkanen 6b548a1c75 Added find_library method and deprecated the standalone version. Closes #396. 2016-03-12 17:00:55 +02:00
Tim-Philipp Müller 3c8468cd4d Add string underscorify() function
So we can easily construct the defines for include headers and
struct checks and such.
2016-03-12 14:15:54 +00:00
Tim-Philipp Müller 02e84df010 Add more string functions: contains(), to_upper() and to_lower() 2016-03-12 14:15:31 +00:00
Nicolas Schneider 5e1fdb8b97 use positional instead of keyword args for add_postconf_script 2016-03-02 21:32:50 +01:00
Nicolas Schneider 9f9f73fa52 add args support for add_postconf_script 2016-03-01 14:31:37 +01:00
Nicolas Schneider 92187501ed Can add postconfigure script. 2016-03-01 14:07:38 +01:00
Jussi Pakkanen 52b66edb6c Can specify compile and link args for internal deps. 2016-02-29 21:28:16 +02:00
Jussi Pakkanen d88223bd61 Do delayed argument setting properly this time. 2016-02-22 21:28:34 +02:00
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
2016-02-17 14:45:50 +05:30
Jussi Pakkanen bbe4656c51 Guard against subdir segments in output files. 2016-02-14 18:54:12 +02:00
Jussi Pakkanen fc08f60b9f Do not cache found programs because it is unreliable. Closes #374. 2016-02-12 23:15:44 +02:00
Jussi Pakkanen 8cd3c8124a Can add languages only if they are available. Closes #365. 2016-01-25 22:39:47 +02:00
Jussi Pakkanen 4cd671e69e More comparison operators. Closes #363. 2016-01-25 22:12:40 +02:00
Jussi Pakkanen 0c96dbff3a String to int conversion. Closes #362. 2016-01-25 21:51:41 +02:00
Jussi Pakkanen 23b98cd6e6 Renamed meson package to mesonbuild so that we can have a script named meson in the same toplevel dir. 2016-01-16 17:35:29 +02:00