Nirbheek Chauhan
fdc95c2ea4
Add various tests for versioned dependency checking
...
Both pkg-config and subproject-based dependencies
Linux-like because we need zlib for the tests to work
9 years ago
Jussi Pakkanen
0482635c12
Handle case of install_subdirring a subdir.
9 years ago
Jussi Pakkanen
beb6827413
Installing subdirs now merges with existing files in the target dir.
9 years ago
Jussi Pakkanen
144565fabf
Added method to get current project name.
9 years ago
Jussi Pakkanen
16e032c289
Fix installing manpages from subdirs.
9 years ago
Jussi Pakkanen
cc055387cd
Can have multiple Qt resource files in a single target. Closes #572 .
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
Nicolas Schneider
a29d9c2c33
vs: fix generators that use indexed output replacements (like @OUTPUT0@)
9 years ago
Nirbheek Chauhan
7aa24c7d0a
compilers: Fix header stub change that broke has_function checks on Windows ( #559 )
...
Fixes https://github.com/mesonbuild/meson/issues/558
9 years ago
Jussi Pakkanen
d8e08224da
Helper function to get the install dir of a gtkdoc module. Closes #551 .
9 years ago
Jussi Pakkanen
2a3a1ce8e0
Join() convenience method for strings. Closes #552 .
9 years ago
Jussi Pakkanen
695aa0b8c2
Made cstdlib a subproject.
9 years ago
Nirbheek Chauhan
0ac33b8857
tests/common/43: Better, more descriptive error messages
9 years ago
Jussi Pakkanen
0e469426dd
Created simple C project with own libc.
9 years ago
Jussi Pakkanen
48e678db76
Strip leading source tree dir name from install files if it exists.
9 years ago
Tim-Philipp Müller
1934ddfc5b
Improve cc.has_function() check to not require any includes and detect stubs
...
We now use .links() to detect if a C compiler function is available
or not, that way the user doesn't need to specify all the possible
includes for the check, which simplifies things considerably.
Also detect glibc stub functions that will never work and return
false for them.
Closes #437
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
26f647d728
And private libraries.
9 years ago
Jussi Pakkanen
c0c9a96c36
Can set requires manually into generated pc files.
9 years ago
Nirbheek Chauhan
1713fa0297
Add shared_library argument for a Visual Studio module definitions file
...
On MSVC, shared libraries only export symbols that have been explicitly exported
either as part of the symbol prototype or via a module definitions file.
On compilers other than MSVC, all symbols are exported in the shared library by
default and the format for the list of symbols to export is different, so this
is only used with the VisualStudio compiler.
The module defs file path can either be relative to the current source directory
or an absolute path using meson.source_root() + '/some/path'
9 years ago
Jussi Pakkanen
12a4e7d7e7
Moved gettext into i18n module.
9 years ago
Nicolas Schneider
3de7c34714
add test for extracting two objects with the same source file name
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