Commit Graph

4635 Commits

Author SHA1 Message Date
Jussi Pakkanen 655137a74b Add headerpad linker argument on OSX. 2017-11-26 17:34:01 +02:00
Iñigo Martínez 3d0a9b7911 interpreter: Reduce to_sring method to base 10
The int's to_string method implementation has been reduced to base
10.
2017-11-26 17:14:32 +02:00
Iñigo Martínez 30f2c4857c interpreter: Support to_string method for int values
Although some other base types like boolean objects can be expresed
as strings, this is not possible with int objects.

This patch adds support to express int values as strings as hex,
decimal or octal values.
2017-11-26 17:14:32 +02:00
Jussi Pakkanen 2dab7c37df
Merge pull request #2676 from jeandet/add_qt_translations
Add qt translations
2017-11-26 17:12:47 +02:00
Joergen Ibsen 91a0126590 Improve escaping in configuration files
Replace pairs of backslashes before '@' or '\@' with singles (allows
escaping the escape character). Do not consume next '@' after '\@'.
2017-11-26 13:21:21 +02:00
Alexis Jeandet 5462e65c44 [Qt module] Updated Dokerfile, added since 0.44 mention in doc
Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>
2017-11-23 21:20:45 +01:00
William Hubbs 325b2c25b6 Allow prefix to be the root directory 2017-11-23 21:58:08 +02:00
Jussi Pakkanen 247d632f37 Try harder to find meson.py. Closes #2672. 2017-11-23 20:48:44 +02:00
Alexis Jeandet 5c5eac3571 [Qt module] Added translation files compilation method
- Added a new compile_translations method since preprocess was already quite
full and translations compilation is quite different from ui, qrc, cpp files
preprocessing.
- Updated translation.
- Updated test case.

Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>
2017-11-23 07:09:07 +01:00
Alexis Jeandet 1fd743e6ad [Qt module] Added lrelease detection
Just detect lrelease as done with other Qt tools.
Uses -version instead of -v to probe version since lrelease don't
support it.

Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>
2017-11-22 23:28:32 +01:00
Alexis Jeandet 5de5e7673f [Qt module] Few minor fixes
- removed a typo in tools detection loop
- added include dir also when parsing cpp sources with moc, not only headers

Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>
2017-11-22 22:52:38 +01:00
Jussi Pakkanen d882b6fbd4
Merge pull request #2498 from mesonbuild/runpython
Add possibility to run Python scripts with current interpreter
2017-11-22 00:47:20 +02:00
Joergen Ibsen fdb48a3a0f Use re.sub instead of replace loop
This also prohibits recursive substitution.
2017-11-22 00:43:32 +02:00
Jussi Pakkanen f9e88cd37e Added release note mention of embedded Python in MSI packages. 2017-11-21 23:29:06 +02:00
Jussi Pakkanen 22adda1617 Review fixes. 2017-11-21 23:29:06 +02:00
Jussi Pakkanen 105ea1e597 Make the full test suite runnable with an external command. 2017-11-20 23:14:45 +02:00
Jussi Pakkanen 5d51bc79c7 Replaced sys.executable use with the mesonlib equivalent. 2017-11-20 23:08:17 +02:00
Jussi Pakkanen b3dfb80c15 Tests can be run with an external Meson command. 2017-11-20 23:08:17 +02:00
Jussi Pakkanen 9d67e5030b Changed code to use detected executables rather than hardcoding sys.executable. 2017-11-20 23:08:17 +02:00
Jussi Pakkanen a437cd1955 Add command to run Python scripts with the current interpreter. 2017-11-20 23:08:17 +02:00
Joergen Ibsen d5a6ab31bf Fix AppVeyor script 2017-11-20 23:07:07 +02:00
Jussi Pakkanen eba6972306 Renamed test dir to avoid number duplicates. 2017-11-20 20:28:04 +02:00
Christoph Behle 05ee756ba0 Check keyword arguments for dependency
Check if the keyword arguments given to dependency are permitted, as is
done with other functions already.
The list of permitted keyword arguments is taken from the documentation.
2017-11-19 18:27:27 +02:00
Zbigniew Jędrzejewski-Szmek fadce7f9b4 Silence failed restorecon calls when $DESTDIR is set
This avoids hundres of warnings like:
Warning no default label for /var/tmp/instroot.hUbtYJ/path/to/some/binary

$DESTDIR is usually set to a temporary path, in which case the path is
unknown to selinux. For that case we could just skip the restorecon
calls.  But sometimes it is used with a path to container. In that
case, most of the time, selinux has no context for that path. But we
can't rule that out somebody added custom context rules for the
container. So let's still call restorecon, but silence the warning.
2017-11-19 18:26:46 +02:00
Jussi Pakkanen 5cd8a7bbcc More defensive process killing. Closes #2629. 2017-11-19 18:20:41 +02:00
Iñigo Martínez 638077181a pkgconfig: Handle prefix in library path
The install_dir parameter of the libraries can also contain the
prefix path, which creates wrong library paths in the .pc file.

This patch detects if prefix is contained in the library path
and creates a relative path.

Fixes #2469
2017-11-19 18:20:21 +02:00
Jon Turney 34d1d45094 docs: Add 'cygwin' to reference table for .system()
This aligns this table with the set of values tested for by test case
common/140
2017-11-19 18:18:29 +02:00
Christoph Behle c653936700 Documentation: Add note about SCAN_BUILD
When running ninja scan-build you can use the environment variable
SCAN_BUILD to choose the right executable.
2017-11-19 18:17:31 +02:00
Jussi Pakkanen 708cdea861 Appveyor example now validates. Closes #2641. 2017-11-19 18:17:02 +02:00
Lucas Werkmeister 5d9c72630a Fix literal backslash syntax
In CommonMark, there are no backslash escapes in code spans, so only two backslashes in the source document are necessary to produce two backslashes in the output document.
2017-11-19 18:16:35 +02:00
Jussi Pakkanen e51da1a34d
Merge pull request #2611 from mesonbuild/nirbheek/pkgconfig-msvc-static
Several fixes to pkg-config dependencies and the pkg-config module (try 3)
2017-11-15 22:51:34 +02:00
Joergen Ibsen b9ef15a719 Allow cmd script extension on Windows 2017-11-15 21:03:30 +02:00
Nirbheek Chauhan da654dd2b9 appveyor.yml: Only download pkg-config for MSVC 2017-11-15 18:23:48 +05:30
rkfg 87bf152e6e Fix #2620 2017-11-14 22:35:06 +02:00
Jussi Pakkanen c63b3d253d
Merge pull request #2509 from madebr/boost_dependency_pkg_config
Enable get_pkgconfig_variable for python3 dependencies (if pkg-config is used)
2017-11-14 22:33:00 +02:00
Anonymous Maarten 5cfb378442 Enable get_pkgconfig_variable for python3 dependencies
fixes mesonbuild/meson#2508
2017-11-13 23:08:01 +01:00
Anonymous Maarten b715276cc7 tests: test getting python module using pkg-config 2017-11-13 23:07:48 +01:00
Jon Turney c4069a95c2 unit tests: Teach detect_prebuild_env about Cygwin
This is enough to fix things.

Note that build_shared_lib doesn't use the implib name for mingw or cygwin
gcc, only msvc, so I'm not quite sure how this is working, I guess we are
using the gcc facility to link directly with a dll...
2017-11-14 02:56:59 +05:30
Joergen Ibsen 6d85e10df9 docs: fix description of default_options
For dependency() and subproject(), the default_options argument can
override the defaults in the subproject's meson_options.txt, not in
its project() invocation.

Resolves #2612
2017-11-13 22:55:45 +02:00
Jussi Pakkanen 49eb33ff55
Merge pull request #2000 from t-chaik/tchaik/wip/get-unquoted
config data: add .get_unquoted() convenience method to get quoted string unquoted
2017-11-13 22:54:39 +02:00
Jussi Pakkanen 897fd0bd16
Merge pull request #2579 from thillux/master
Qt5-Module: add `name` option to rcc
2017-11-13 21:17:41 +02:00
Jussi Pakkanen 69bd87a716
Merge pull request #2511 from jon-turney/prefix-dependent-defaults
Make sysconfdir, localstatedir and sharedstatedir defaults depend on prefix
2017-11-13 21:14:59 +02:00
Jussi Pakkanen c6781744cf
Merge pull request #2604 from QuLogic/coalesce-restorecon
Coalesce restorecon calls into one.
2017-11-13 21:09:30 +02:00
Jan Niklas Hasse 46736fc16c Use mlog.warning for invalid boost module
Instead of mlog.debug. This make the warning visible to the user.
2017-11-13 21:07:00 +02:00
Jan Niklas Hasse c3d143298b Log instead of raise if Boost module invalid
BOOST_LIBS could become outdated in future versions, which would result
in dependency('boost', modules : [ 'foo' ], required : false) to fail,
although required was set to false. Therefore turn the exception into
log_fail(). If required was set to true, this will still be caught since
is_found remains False.

This also improves logging by printing all invalid module names instead
of only the first one.
2017-11-13 21:07:00 +02:00
Nirbheek Chauhan 18b42c5370 llvm: Output stderr when generating libs/flags/etc fails
f.ex when you don't have the llvm-static package installed, the error
message when generating libs is cryptic and uninformative since we
discard stderr.
2017-11-13 21:02:43 +02:00
TingPing 9b36e2d509
docs: Remove extra whitespace from i18n 2017-11-13 13:00:49 -05:00
Jussi Pakkanen 6e98e0c611
Merge pull request #2071 from porrided/master
Add zsh completion function for Meson
2017-11-11 20:17:03 +02:00
Jussi Pakkanen d2aa2f569b Cleanupping. 2017-11-11 20:12:43 +02:00
Nirbheek Chauhan 9da031c04c dependencies: Force pkg-config to output -L args
Sometimes pkg-config can decide that the libdir is a system library dir
and must not be included in the output because that would mess up the
library search order for pkg-config libraries that must be sourced from
a non-system prefix.

However, when we're doing manual searching, we always want to see the
library directory even if it's the system path, otherwise we can't do
manual searching at all.
2017-11-11 23:06:49 +05:30