Jussi Pakkanen
12a4e7d7e7
Moved gettext into i18n module.
9 years ago
Jussi Pakkanen
317a735b07
Error out if using a not found binary in the build. Closes #469 .
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
Nicolas Schneider
246d9f4564
test24: check that a target extra_arg is not applied to other targets
9 years ago
Jussi Pakkanen
f3e20b2570
Use assert instead of if/error.
9 years ago
Nicolas Schneider
5482a23936
enhance test framework to read meson arguments from a file per test
...
A 'test_args.txt' file in the same directory as the test case will be
parsed by the test framework and the content will be passed as arguments
to meson during configuration. The arguments are put before any
'extra_args' to make them overwritable from the command line.
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
ed1732d9c4
fix test error message
9 years ago
Nicolas Schneider
749aeefe0c
pass meson source and build dirs as env variables for postconf scripts
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
2d32c39471
Handle built targets in custom rules. Closes #411 .
9 years ago
Jussi Pakkanen
efceac497f
Python extension module finally works on Windows.
9 years ago
Nicolas Schneider
6de2fd6ab5
vs2010: fix target_to_build_root method
...
Python's os.path.split() does not split the path into its components.
Instead, split the path with str.split() using the OS's file system
separator.
9 years ago
Nicolas Schneider
1196532c0b
fix 'object generator' test case for ninja
...
The ninja backend uses the '/MDd' switch when the tests are run, which
results in LNK4098 error, because the generator does not use the same
version of the Windows runtime library.
9 years ago
Jussi Pakkanen
40d70e1b15
Skip cython test if it does not exist.
9 years ago
Jussi Pakkanen
a04c33e125
Can build Python extension on OSX.
9 years ago
Jussi Pakkanen
16b9a52235
Fix cython to work on platforms other than latest Ubuntu.
9 years ago
Jussi Pakkanen
738f7f860c
Added Cython sample project.
9 years ago
Jussi Pakkanen
98d00386b1
Can build a Python extension module.
9 years ago
Jussi Pakkanen
a8120eb519
Added plain Python sample project.
9 years ago
Jussi Pakkanen
e96359df70
Only support Python 3.
9 years ago
Nirbheek Chauhan
fabb49773e
Add a test for getting the path of a found program
9 years ago
Jussi Pakkanen
bbe4656c51
Guard against subdir segments in output files.
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
d6b2053146
Can build Vala shared libraries.
9 years ago
Jussi Pakkanen
b91134b806
Better error message when failing to run install script. Closes #361 .
9 years ago
Jussi Pakkanen
2d1aa395e8
Dumped fastvapi and made library linking with Vala work.
9 years ago
Jussi Pakkanen
670d0ed929
Print output of failed tests. Closes ##347.
9 years ago
Jussi Pakkanen
65bd9a2f69
Can use external libs as dependencies of dependencies. Closes #321 .
9 years ago
Jussi Pakkanen
e374b53788
Build Java projects with multiple files and other cleanups.
9 years ago
Jussi Pakkanen
edaf663ee2
By default do not specify language version but instead use the compiler's default.
9 years ago
Jussi Pakkanen
6830f3e147
Forbid backslashes on compiler command lines. It is unfortunately the only reliable way.
9 years ago
Jussi Pakkanen
f1bf87ec8a
Added test to check that backslashes are passed properly through the pipeline.
9 years ago
Jussi Pakkanen
ec0a73b1e2
Fix manygen to work with msvc.
9 years ago
Jussi Pakkanen
9bf641e545
Fix path generation so generations in subdirs work.
9 years ago
Jussi Pakkanen
7e1df7540d
Handle custom targets that produce static libraries that are then linked to other targets.
9 years ago
Jussi Pakkanen
7cad8a1bfb
Fixed some tests for new stricter options and OSX.
9 years ago
Jussi Pakkanen
aa1fc44aca
Fixing threading problems by reordering lines at random. It is the only true way.
9 years ago
Jussi Pakkanen
489ca238c5
Test threads with both C and C++.
9 years ago
Jussi Pakkanen
6a5ec36aeb
Made thread test work on Windows.
9 years ago
Jussi Pakkanen
10acaffde7
Added explicit thread dependency.
9 years ago