Aleksey Filippov
af0b569ced
Add unittests for b_ndebug=if-release and buildtype interactions
2018-03-21 16:42:35 +00:00
Aleksey Filippov
39a3bdb43f
Add tests for b_ndebug=if-release and buildtype default options
...
Co-authored-by: David Seifert <soap@gentoo.org>
2018-03-21 16:40:49 +00:00
makise-homura
e8dff792d6
Removed some confusing chars from 'spaces and fun'
...
For example, lcc does not understand !, ^, *, and <.
2018-03-21 19:16:02 +03:00
makise-homura
86fa9b133d
test_reconfigure switched to b_coverage from b_lto
...
This is due to some compilers (e.g. lcc) don't support LTO,
and therefore no b_lto meson option is available.
2018-03-21 16:45:22 +03:00
makise-homura
43be74cf81
Skipping PCH unit test for lcc compiler
2018-03-21 16:43:04 +03:00
makise-homura
546f81e0f9
Fixed lchmod detection for lcc C/C++ compilers
2018-03-21 16:42:15 +03:00
nyorain
dd614015e0
Open mesontest logfiles in utf-8 mode
...
Otherwise unit tests fail on windows when they output some
non-utf8 data.
2018-03-20 22:28:59 +02:00
Jussi Pakkanen
58156ef7cf
Grab a file lock on the build dir during modifications.
2018-03-20 22:28:37 +02:00
Marvin Scholz
1c8d4bf05b
Docs: Correct env variable SCAN_BUILD to SCANBUILD
2018-03-20 22:28:07 +02:00
makise-homura
942e34241f
Fixed compatibility issue regarding Python 3.5
...
In Python 3.5 os.path.join accepts str or bytes, not path-like
objects as in Python 3.6.
2018-03-20 17:26:04 +03:00
makise-homura
3b254c6e49
Fixed failure if compiler messages is not in UTF-8
...
For example, Elbrus lcc does output in KOI8-R, if LC_ALL=C, and
there is no English counterpart for original Russian message.
2018-03-20 17:03:32 +03:00
makise-homura
08bd07f860
Added specific get_library_dirs function for lcc
2018-03-20 16:25:08 +03:00
Thibault Saunier
62165aef43
options: s/yiel/yield/ typo
...
Making the option unusable with Invalid kwargs for option use_orc: "yield"
2018-03-20 07:05:24 +00:00
Jussi Pakkanen
657836b555
Merge pull request #3223 from sarum9in/rename
...
Add install_data() rename parameter
2018-03-20 00:15:01 +02:00
Aleksey Filippov
5f81d36207
Add install_data() rename snippet
2018-03-19 22:13:41 +00:00
Aleksey Filippov
d63fff06d9
Add install_data() rename documentation
2018-03-19 22:13:34 +00:00
Nirbheek Chauhan
d012b5b997
Create a helper for checking if a string has a path component
...
This is used in a number of places, and in some places it is incomplete.
Use a helper to ensure it's used properly.
2018-03-19 23:45:43 +02:00
Jussi Pakkanen
e984e1072b
Merge pull request #3251 from mesonbuild/fixpkgconfigdeps
...
Fix pkg-config dependencies leaking out (debbug 892956)
2018-03-19 23:43:35 +02:00
David Seifert
7eb187c5f2
Add -Wl,-dead_strip_dylibs support
...
* `-Wl,-dead_strip_dylibs` is the analogue
of `-Wl,--as-needed` on macOS.
2018-03-19 23:37:14 +02:00
Jussi Pakkanen
cf5f1a83d5
Fix existing tests.
2018-03-19 23:21:56 +02:00
Joel Klinghed
b2ffb6b565
Generate coveragereport directory for gcovr html target
2018-03-19 21:52:34 +01:00
Joel Klinghed
8bad2d9827
Exclude subprojects when doing coverage
...
Restore subproject exclusion for the html coverage report that existed
in the ninja backend legacy target.
Also exclude subprojects for the gcovr generated reports.
2018-03-19 21:52:34 +01:00
Joel Klinghed
79bb1df04f
Use standalone coverage script for legacy targets
...
ninja coverage -> generate all possible reports (text, xml, html)
depending on gcovr and/or lcov/genhtml availability.
ninja coverage-html -> generate only html report
ninja coverage-xml -> generate only xml report
ninja coverage-text -> generate only text report
Make all targets phony, the old legacy rules where just annoying as
you would have to remove the old report before being able to generate
a new one.
ninja coverage succeeds if it can generate at least one report.
ninja coverage-* only succeeds if it can generate the requested report
2018-03-19 21:52:34 +01:00
makise-homura
6230c2a2f6
Fixed indentation and space issues found by SideCI
2018-03-19 23:39:06 +03:00
makise-homura
7cc41baa98
Added Elbrus lcc compilers support as inheritance from gcc ones
2018-03-19 23:30:00 +03:00
Felipe Corrêa da Silva Sanches
50c66f1f5c
fixing some typos on the icestorm page
2018-03-19 10:49:02 +00:00
Thibault Saunier
f48da481ab
introspect: tests: Inform about tests run parallelization
2018-03-18 20:29:35 +02:00
Martin Hostettler
b89309df64
Project-templates.md: Fix help command name [skip ci]
2018-03-18 20:29:00 +02:00
Aleksey Filippov
158dc249ca
Replaced appveyor account by mesonbuild
2018-03-18 13:20:30 +02:00
Aleksey Filippov
6994ec56e6
Add install_data() failing rename test
2018-03-17 20:40:50 +00:00
Aleksey Filippov
143dc3ca44
Add install_data() succeeding rename tests
2018-03-17 20:40:50 +00:00
Aleksey Filippov
f720efa2f4
Add rename parameter to install_data()
2018-03-17 20:40:50 +00:00
Aleksey Filippov
22b19995b1
Fix appveyor failures: do not use PowerShell since it triggers NativeCommandError if pacman prints to stderr
...
Split command to avoid "The input line is too long." error.
Also use --needed for pacman to not reinstall already installed packages.
2018-03-17 21:40:00 +02:00
Jussi Pakkanen
c385f79737
Do not leak out private dependencies for shared libraries.
2018-03-17 00:44:56 +02:00
Jussi Pakkanen
d532650b0d
Add test for pkgconfig generation and usage.
...
This builds a project with pkg-config file, installs it and then
builds a second project that uses that dependency and runs the result.
2018-03-16 23:52:45 +02:00
Aleksey Filippov
7f042b5fe2
Use target.get_id() instead of basename and type_suffix concatenation at call site
...
Fixes the bug with flat layout and identical target names in subprojects.
Without this change directories are not created with subproject prefix
and they can collide.
Remove dead makedirs code in Backend.__init__(), during initialization
of backend build.targets is empty. Create output directories in
Vs2010Backend.generate_projects() instead.
Also use double blank line in run_unittests.py according to
https://www.python.org/dev/peps/pep-0008/#blank-lines .
2018-03-15 21:14:58 +02:00
Fabrice Fontaine
2e128f71bb
Fix FileNotFoundError when restorecon unavailable
...
Fixes:
- http://autobuild.buildroot.net/results/d5dcdfdfab3503fdc387f99e68267972a38c417d
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
2018-03-15 21:12:23 +02:00
Bedarkar, Malhar
831d1e4c2e
- Updating cpp_std options similar to other compiler classes
...
- Updating environment.py for selecting '--vsn' option for armcc only.
- Updating build type arguments from GitHub pull request - 3157
Change-Id: Id3151e7715ec1016afdbd65391bb0d414ec7de13
2018-03-14 22:42:06 -05:00
Jussi Pakkanen
24ae120868
Turn deprecated commands into errors.
2018-03-14 00:20:00 +02:00
Jussi Pakkanen
9ecb75670f
Merge pull request #3127 from bluetech/method-permitted-kwargs
2018-03-13 21:16:30 +02:00
Jussi Pakkanen
ae0e469b06
Merge pull request #3145 from thejk/gcovr
...
Support gcovr >= 3.1 and add gcovr html report as fallback
2018-03-13 21:12:16 +02:00
Aleksey Filippov
552916d2d2
pkgconfig: allow any non-found dependency requires arguments
...
On some platforms such as OSX external dependency falls back
to different dependency types if it is not found.
2018-03-13 19:20:40 +02:00
Aleksey Filippov
6e83e41af7
pkgconfig: print requires argument type on error
2018-03-13 19:20:40 +02:00
Joel Klinghed
dfc0655bcd
fixup! Fix coverage-xml and coverage-text targets for gcovr >= 3.1
...
Fix fail cases of detect_gcovr
2018-03-13 08:31:50 +01:00
Jussi Pakkanen
a20c5ccd13
Fix snippet heading to conform to new formatting rules.
2018-03-13 00:06:12 +02:00
Joel Klinghed
4e1b229b37
fixup! Allow gcovr >= 3.1 to be used to generate html coverage report
...
Rename gcovr_3_1 to gcovr_new_rootdir
2018-03-12 22:19:53 +01:00
Joel Klinghed
ed8197207e
fixup! Fix coverage-xml and coverage-text targets for gcovr >= 3.1
...
Rename gcovr_3_1 to gcovr_new_rootdir
2018-03-12 22:18:26 +01:00
Jussi Pakkanen
8d8caef636
Merge pull request #3205 from sarum9in/use-itertools
2018-03-12 23:09:46 +02:00
Jukka Laurila
1d0169f4e7
Fix shared library building on xcode.
2018-03-12 23:05:07 +02:00
Aleksey Filippov
fe215bb826
Use os.path.dirname() instead of os.path.split(...)[0]
2018-03-12 23:03:10 +02:00