Daniel Mensinger
71d174bcbe
Fixed some code issues
6 years ago
Dylan Baker
097faee83b
run_project_tests: add support for loading cross files
6 years ago
Dylan Baker
30cf4f9c3a
run_project_tests: Add support for loading a native file in tests
...
The file must be called nativefile.txt
6 years ago
Jussi Pakkanen
902aaf2ce6
Merge pull request #4626 from Ericson2314/consolidate-properties
...
Go through coreutils.compiler_options.{build.host.target}
6 years ago
Jussi Pakkanen
59791fc569
gnome.compile_resources: Add ld binary method
6 years ago
Jussi Pakkanen
e26b5a119e
Merge pull request #4835 from obilaniu/cudaimprovements
...
CUDA support improvements
6 years ago
Nicolas Schneider
c1fa61b7d9
vs: add PCH headers to project
...
Otherwise, they will not be visible in the IDE.
6 years ago
Christoph Reiter
1bd14b52b2
python: don't require a Python lib in case we don't link against it. Fixes #4841
...
In case extensions aren't linked against libpython we can't assume one exists at
all or is available in a known directory.
6 years ago
Daniel Mensinger
69cb314718
Fix introspection test case for solaris ( fixes #4866 )
6 years ago
Corentin Noël
08757dcdfd
vala: Support position-independent executables
6 years ago
Ninja-Koala
4775dd48a6
Fix required version
6 years ago
Ninja-Koala
0601895032
More robust name generation
6 years ago
Olexa Bilaniuk
592af0b1af
Add unstable CUDA module.
...
Includes three general utility functions connected to CUDA, in
particular the crafting of -gencode flags as done in CMake:
https://github.com/Kitware/CMake/blob/master/Modules/FindCUDA/
select_compute_arch.cmake
6 years ago
Ninja-Koala
b0832c8747
Move some additional functionality into the new function
6 years ago
John Ericson
19f81d3e33
Never access environment.properties downstream
...
Instead use coredata.compiler_options.<machine>. This brings the cross
and native code paths closer together, since both now use that.
Command line options are interpreted just as before, for backwards
compatibility. This does introduce some funny conditionals. In the
future, I'd like to change the interpretation of command line options so
- The logic is cross-agnostic, i.e. there are no conditions affected by
`is_cross_build()`.
- Compiler args for both the build and host machines can always be
controlled by the command line.
- Compiler args for both machines can always be controlled separately.
6 years ago
Ninja-Koala
34191ec018
Use triple quote string for linkerscript
6 years ago
Ninja-Koala
83d78d7b6e
Move target generation in new function
6 years ago
Ninja-Koala
b6a6076596
Disable for cross builds
6 years ago
Nicolas Schneider
3cbc7c7bd9
msvc: fix PCH staleness
6 years ago
Nicolas Schneider
2044bc53b3
use same compiler args for pch as for regular target
...
Fixes #999 , #1415 , #2361 .
6 years ago
Ninja-Koala
6026a35446
Handle minus sign correctly
6 years ago
Ninja-Koala
1f14a58d3b
Add second dependency file for c target
6 years ago
Ninja-Koala
a6f09b9754
Remove dependency file from c target
6 years ago
Ninja-Koala
27edd112e2
Fix code formatting
6 years ago
Ninja-Koala
b4f04a67de
gnome.compile_resources: Add ld binary method
...
Instead of generating a c file that gets compiled,
directly create object file with ld.
See https://gitlab.gnome.org/GNOME/glib/issues/1489
6 years ago
John Ericson
6dbe33d949
C# and Java compilers should have `is_cross = False`
...
All compilers should define this attribute. Probably should change base
class to require this.
6 years ago
Daniel Mensinger
da7b9df16c
Ensure that func dicts provide the same set of functions
6 years ago
Nirbheek Chauhan
79c087bad2
macos: lipo outputs aarch64 as arm64, fix it
...
Or we'll reject arm64 objects as invalid when building for aarch64
6 years ago
Nirbheek Chauhan
8a7537ce24
qt: Only look for a framework on macOS if building for macOS
...
When building for iOS, the Qt binaries only contain static libraries
and headers. No framework.
With this, Meson can successfully compile and link to Qt on iOS
6 years ago
Michael Hirsch, Ph.D
8821c0aadc
better handle variable HDF5 setups, update Fortran compiler def
6 years ago
Daniel Mensinger
e1a83793ae
CMake: Added support for CMAKE_MODULE_PATH and extra CMake args ( closes #4779 )
6 years ago
Jussi Pakkanen
abad2ff005
Merge pull request #4831 from scivision/hdf5
6 years ago
Nirbheek Chauhan
310b518921
env: Add a repr() for MachineInfo
...
Makes it easier to debug with print()
6 years ago
Nirbheek Chauhan
b5f6be6733
macos: lipo from older xcode does not support -archs
6 years ago
Nirbheek Chauhan
50b863032e
find_library: Check arch of libraries on Darwin
...
macOS provides the tool `lipo` to check the archs supported by an
object (executable, static library, dylib, etc). This is especially
useful for fat archives, but it also helps with thin archives.
Without this, the linker will fail to link to the library we mistakenly
'found' like so:
ld: warning: ignoring file /path/to/libfoo.a, missing required architecture armv7 in file /path/to/libfoo.a
6 years ago
Elliott Sales de Andrade
52936e4a46
Add tsan and ubsan to g-ir-scanner workaround.
...
Both of these need to link to their respective libraries to build.
6 years ago
Nirbheek Chauhan
1575bd988a
configure_file: Allow setting install_dir: false with deprecation
...
Also add location node for two more deprecations
See: https://github.com/mesonbuild/meson/pull/4489#issuecomment-459246879
6 years ago
Nirbheek Chauhan
042f5638bf
project tests: qt is available on the macOS CI
6 years ago
Nirbheek Chauhan
bd8eff7438
qtdep: Look for QMAKE env var again + sprinkle debug
...
We used to look for the QMAKE env var in earlier versions of Meson,
start looking for it again.
6 years ago
Nirbheek Chauhan
c0166355ce
Rewrite appleframework and extraframework dependency classes
...
Instead of only doing a naive filesystem search, also run the linker
so that it can tell us whether the -F path specified actually contains
the framework we're looking for.
Unfortunately, `extraframework` searching is still not 100% correct in
the case when since we want to search in either /Library/Frameworks or
in /System/Library/Frameworks but not in both. The -Z flag disables
searching in those prefixes and would in theory allow this, but then
you cannot force the linker to look in those by manually adding -F
args, so that doesn't work.
6 years ago
Nirbheek Chauhan
8481971ff2
pkgconfig: Only warn about deprecation at a location once
...
See: https://github.com/mesonbuild/meson/pull/4630#issuecomment-459235498
6 years ago
Michael Hirsch, Ph.D
bd82d3702a
skip CI for HDF5 where HDF5 is not available"
6 years ago
Daniel Mensinger
8c364952af
Added dependecy kwargs support
6 years ago
Daniel Mensinger
5655865246
Added test case
6 years ago
Daniel Mensinger
c64d80cf2f
Renamed operation test -> info
6 years ago
Daniel Mensinger
8bb942ef25
Rewriter infodump modifications
6 years ago
Daniel Mensinger
be3c58d638
Modify kwargs in rewriter
6 years ago
Daniel Mensinger
8224ecfbe6
Some fixes and assignment based target find
6 years ago
Nirbheek Chauhan
4bfe0a2568
gnustep-config: config tools are lists, not strings
...
More programming errors exposed by not ignoring all exceptions.
6 years ago
Nirbheek Chauhan
42b48cda98
tests: Don't require pkg-config for macOS tests
...
Only require it on the CI or if pkg-config is found.
6 years ago