Jon Turney
d769de316d
Factor out windows resource compiler determination
...
Factor out determination of the windows resource compiler as
_find_resource_compiler(). Cache the result, so the work is only done once.
6 years ago
Martin Storsjö
07800e29c9
msvc: Don't use /O3 with MSVC
...
MSVC doesn't support that option, and warns about ignoring an unknown
option.
6 years ago
Dylan Baker
6cf7d2492b
compilers/c: don't return -pthread for MacOS with any compiler
...
With GCC, Clang, or ICC, and for C++
Fixes #2628
6 years ago
Guillermo Ignacio Enriquez Gutierrez
aff3930464
Fix Xcode backend: Add build dir to SYSTEM_HEADER_SEARCH_PATHS so generated headers can be included/imported in sources
6 years ago
Kostiantyn Ponomarenko
ddc15e1bba
Docs: fix 'Wrap-dependency-system-manual' to be more consistent [skip ci]
6 years ago
Guillermo Ignacio Enriquez Gutierrez
f39d5ef6de
Fix indentation (make it uniform) in test file "14 configure file/meson.build"
6 years ago
Dylan Baker
c354a2b1cf
docs/Builtin-options: Clarify -Dc_args for cross compilation ( #4289 ) [skip ci]
6 years ago
Iñigo Martínez
ee80620f65
gnome.gtkdoc: Fix static library ldflags
...
When passing static libraries to gtkdoc, they are also appended as
shared libraries to ldflags, which makes the process to fail.
This has been changed to only append shared libraries to ldflags.
Fixes #3935
6 years ago
Salamandar
26a5e9a95f
Add support for uic_extra_arguments to qt5 ( #4178 )
6 years ago
Xavier RENE-CORAIL
ba7b7d0991
Add LGTM.com code quality badges
6 years ago
Thibault Saunier
533997891e
backend: Make sure to normalize paths before checking if it is a system dir
...
Otherwise if we for some reason get '/usr/lib/../lib' in there
we end up saying it is not a system path.
And for some reason here I got:
```
$ pkg-config --libs libffi 148 ST 117 hotdoc
-L/usr/lib/../lib -lffi
```
6 years ago
Jussi Pakkanen
ca4c8de09f
Merge pull request #4261 from rossburton/cross
...
WIP RFC gnome.py cross improvements
6 years ago
Nirbheek Chauhan
4a8210e81c
dist: Warn if there are uncommitted changes in the repository
...
Closes https://github.com/mesonbuild/meson/issues/1977
6 years ago
Nirbheek Chauhan
cbbab82b70
dist: Make usage of period in messages consistent
...
Having a period at the end of sentences in messages is confusing when
a file or path is being outputted, and is inconsistent when not.
This is part of an ongoing effort to fix this inconsistency across the
message outputs everywhere in Meson.
6 years ago
Marvin Scholz
843b0b1d50
compilers: Do not use -pthread with clang for darwin
...
Using the -pthread argument is not needed with clang when compiling for
darwin, and it results in the warning:
warning: argument unused during compilation: '-pthread'
6 years ago
Ross Burton
fe981b0231
gnome: use target c_args/c_link_args for g-ir-scanner when cross-compiling
...
When cross-compiling we shouldn't be passing the native c_args/c_link_args to
g-ir-scanner.
6 years ago
Ross Burton
47d115f6a8
gnome: add missing cflags/ldflags to gtk-doc when cross-compiling
...
When cross-compiling the gtk-doc calls were missing the configured c_args and
c_link_args.
6 years ago
Ross Burton
1efcca637b
gtkdochelper: show full command if it fails
...
Instead of showing just the command invoked, it's useful when debugging to also
show all of the arguments.
6 years ago
Ari Vuollet
c4b885bfd1
docs: Document conditional debug compilation flags [skip ci]
6 years ago
GoaLitiuM
389f012ed2
Additional tests for D version and debug features
6 years ago
GoaLitiuM
8776dac773
Add conditional debug identifiers for D compilers, and enable for debug builds
...
Also includes parsing the highest integer level for debug and version.
6 years ago
lzutao
dc7bb37c46
README: Update IRC and contributing link ( #4269 ) [skip ci]
6 years ago
Kostiantyn Ponomarenko
e53be9c925
Update Meson docs README [skip ci]
...
Signed-off-by: Kostiantyn Ponomarenko <konstantin.ponomarenko@gmail.com>
6 years ago
Jussi Pakkanen
f0c4d1cd00
Merge pull request #4214 from 3v1n0/gtk-docs-improvements
...
Gtk docs improvements
6 years ago
Masanori Kakura
99ecedc093
environment: Use os.path.basename() when checking mesonlib.meson_command
...
Without this, when one of Meson's parent directories contains
"python", unexpected option "-u" will be passed to Meson.
6 years ago
ePirat
80721b7605
Docs: Add DEPFILE to substitutions list [ci skip]
6 years ago
Marco Trevisan (Treviño)
8a5671c017
gnome: use project compiler flags in gtkdoc
...
If add_project_arguments is used, gtkdoc will ignore it, so make sure we
pick these flags for the compiler too.
Fixes #2901
6 years ago
Jussi Pakkanen
9ceb21997b
Merge pull request #4243 from nacho4d/feature/xcode-fix2
...
fixings for xcode backend
6 years ago
Martin Storsjö
48b6520764
Don't add rpath linker flags when building for MinGW
...
GNU binutils ld silently ignores -rpath flags when targeting windows
(and it is already commented within ninjabackend.py that rpath as
concept doesn't exist on windows), and build_rpath_args in
VisualStudioCCompiler also returns an empty array. Therefore skip
this flag altogether.
This fixes linking with lld in MinGW mode, which doesn't support the
rpath flag.
6 years ago
Ross Burton
89e0414efd
environment: validate endian value from cross file
...
When reading the endian from a cross file, validate that the value is either
'big' or 'little'.
6 years ago
Guillermo Ignacio Enriquez Gutierrez
5262aac977
Skip all dot files/directories when running tests
6 years ago
Guillermo Ignacio Enriquez Gutierrez
6f4ba8b2f4
Fix Xcode backend: support for precompiled headers. Only one header per target is supported
6 years ago
Xavier Claessens
2f0285c7ef
Return code 0 when builddir is already configured
...
This is a regression in Meson 0.48.0, commit 674ae46
, Meson used to
exit(0) when running setup command in a builddir already configured.
Changing to exit(1) breaks some build tools that does "meson builddir
&& ninja -C builddir".
Closes #4247 .
6 years ago
Nirbheek Chauhan
1190ec096e
Update Release-notes-for-0.48.0.md
...
Add some missing `` to titles. In one case it was causing `__` to
be interpreted as 'make this text bold'
6 years ago
Guillermo Ignacio Enriquez Gutierrez
9b7bb4aa92
Partially fix targets that use precompiled header with --backend=xcode. Various compiled headers are not working yet [skip ci]
6 years ago
Guillermo Ignacio Enriquez Gutierrez
f482b82a43
Sort some objects before writing as Xcode expects [skip ci]
6 years ago
Kostiantyn Ponomarenko
384c68e712
Fix a typo in example commit message [skip ci]
6 years ago
Jussi Pakkanen
0543322fb4
Merge pull request #4158 from GoaLitiuM/d-windows-ci
...
Appveyor: Install DMD compiler
6 years ago
Thibault Saunier
87370e1c93
hotdoc: Add support for {Build,Custom}Target as sources
6 years ago
Jon Turney
cf58f56e16
linker flags --as-needed and --no-undefined aren't meaningful for PE
...
--as-needed controls ELF-specific functionality (the emission of DT_NEEDED
tags)
--no-undefined is effectively always on for PE/COFF, as the linkage model
always requires symbols to be defined
binutils ld silently ignores these flags for PE targets, but lld warns that
it's ignoring them, so just don't bother emitting them for PE targets.
6 years ago
Alexey Brodkin
9453ac6182
mesonbuild: Recognise ARC architecture
...
-------------------------->8-----------------------
root@nsimhs:~# python
Python 2.7.15 (default, Sep 20 2018, 21:44:15)
[GCC 8.2.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
>>> import platform
>>> print platform.machine()
arc
-------------------------->8-----------------------
Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
6 years ago
Jussi Pakkanen
3c4822e183
Updated version number for new development.
6 years ago
Jussi Pakkanen
0cf4a6ab3a
Updated release note page.
6 years ago
Jussi Pakkanen
d1f3f1d023
Bump version number for release.
6 years ago
Jussi Pakkanen
8d77da839e
Use only basename part in test. Closes #4237 .
6 years ago
Guillermo Ignacio Enriquez Gutierrez
13c0705263
Add flag to NOT use new build system in xcode because it fails in Xcode9 when using custom build directories
6 years ago
Guillermo Ignacio Enriquez Gutierrez
b8581b7b67
Fix test script to be able to run in local macos
6 years ago
Dylan Baker
2b26ddbf3e
dependencies/llvm: Add LLVM 7
...
It appears that debian has changed their naming scheme. This might
require revisiting in the future to add llvm-config-7.0 if debian
decides to do that.
6 years ago
Mohammed Amer Khalidi
25d51f583c
Updating compilers.py to add functions - get_optimization_args, get_debug_args in ARMCC and ARMCLANG classes.
6 years ago
GoaLitiuM
3563df0425
Skip dub dependency test with wrong compiler on Windows
...
Appveyor currently only has one available D compiler so this test should be skipped for the time being. [skip ci]
6 years ago