Dylan Baker
c6ec13e6bf
Only try to get RSP syntax if RSP is supported ( #8804 )
4 years ago
Daniel Mensinger
f0812baf8d
cmake: exclude generated files from the buildsystem files list
4 years ago
Daniel Mensinger
06f528a5b7
cmake: Update test case
4 years ago
Daniel Mensinger
49c730ef05
cmake: Fix CMakeToolchain ( fixes #8293 )
...
Instead of guessing the internal compiler
variables, Meson now runns CMake once to
determine what they actually are.
4 years ago
Daniel Mensinger
0e777e7c90
cmake: CMakeTraceParser improvements
...
- handle cached CMake variables differently
- associate variables with source files
- better performance (str to Path and generator expressions)
4 years ago
Xavier Claessens
25fa2d4f7b
vsenv: Recommend using "meson compile" wrapper
...
When meson has setup the VS environment, running ninja to build won't
work, user should use meson wrapper to compile.
4 years ago
Jussi Pakkanen
a9b65b421e
Remove HFS workaround as everyone should use APFS by now.
4 years ago
Xavier Claessens
2fb24b18e1
unstable_external_project: Remove unused imports
4 years ago
Xavier Claessens
8abbc5cc5d
modules: Replace find_program_impl() by state.find_program()
4 years ago
Xavier Claessens
2e02ef6592
modules: Add methods dict everywhere
...
This fix calling random internal methods from meson.build as long as
they were not prefixed by underscore.
4 years ago
Xavier Claessens
a734bcfc83
modules: Stop using ModuleReturnValue where it's not needed
...
It is only needed in functions that need to add targets to the
interpreter.
4 years ago
Xavier Claessens
3340284805
modules: Stop using InterpreterObject
...
Custom objects returned by modules must be subclass of ModuleObject and
have the state argument in its methods.
Add MutableModuleObject base class for objects that needs to be deep
copied on assignation.
4 years ago
Xavier Claessens
723c5227a4
modules: Remove snippet methods
...
The only advantage they have is they have the interpreter in arguments,
but it's already available as self.interpreter. We should discourage
usage of the interpreter API and rely on ModuleState object instead in
the future.
This also lift the restriction that a module method cannot add build
targets, but that was not enforced for snippet methods anyway (and some
modules were doing it) and it's really loose restriction as it should
check for many other things if we wanted to make it consistent.
4 years ago
Naveen M K
495e76d10a
Remove `Microsoft.VisualStudio.Workload.WDExpress`
4 years ago
Naveen M K
7ec5267939
Find Visual Studio Build Tools 2019
...
Got the Idea from setuptools
a5131f0b82/setuptools/msvc.py (L176)
4 years ago
Xavier Claessens
a9959a3859
Vala: Add missing FeatureNew() when C is missing
...
It was previously an hard error, only permitted since 0.59.0.
4 years ago
Dylan Baker
a5b43aa16c
Add a helper to simplify the usage of PerMachineDefaultable
4 years ago
Dylan Baker
336f2f8835
tests: Add a test for dependencies with native set in a host == build configuration
4 years ago
Dylan Baker
d2e7bdccd7
build: Use a PerMachineDefaultable for (project|global)[_link]_args
4 years ago
Dylan Baker
76b98459ac
coredata: Use a PerMachineDefaultable for the deps cache
4 years ago
Dylan Baker
f9a9faba92
build: Use a PerMachineDefaultable for dependency override cache
...
This way if we're doing a host == build configuration then the build and
host dependencies will be stored correctly.
4 years ago
Dylan Baker
012d60b100
mesonlib: Allow PerMachineDefaultable to take arguments at initialization
4 years ago
Dylan Baker
49b5037496
dependencies/zlib: System Dependency needs a clib_compiler on windows
...
Otherwise it'll except when it tries to get an attribute from None that
doesn't exist.
4 years ago
Dylan Baker
7114a9015e
mesonlib: Fix return type of PerMachineDefaultable.default_missing()
4 years ago
Dylan Baker
76768eaf20
build: fix type annotation import
4 years ago
Dylan Baker
f1e053fa44
modules/gnome: Correctly handle generated sources for generate_gir
...
We need to pass any generated sources down the CustomTarget
inititalizers so that they will generate a dependency correctly,
otherwise we get race conditions.
4 years ago
Chun-wei Fan
45af5d9d72
test cases: Disable whole archive test on older VS IDE
...
The pre-2015 Visual Studio IDE do not handle things correctly for this test,
so disable this.
4 years ago
Chun-wei Fan
0a0639ec06
MSVC: Always enable common tests 137 and 170
...
This will test the "whole archive" and "generator link whole" for all
Visual C++ versions.
4 years ago
Chun-wei Fan
bbb6f2c51c
ninjabackend.py: Implement `link_whole:` for pre-VS2015
...
...Update 2, to be exact, since the Visual Studio linker only gained the
`/WHOLEARCHIVE:` feature since Visual Studio 2015 Update 2.
This checks whether we have the corresponding `cl.exe` which is
versioned at or after Visual Studio 2015 Update 2 before we try to apply
the `/WHOLEARCHIVE:xxx` linker flag. If we aren't, use built-in methods
in Meson to grab the object files of the dependent static lib's, along
with the objects that were `link_whole:`'ed into them, and feed this
list into the linker instead.
This would make `link_whole:` work on Visual Studio 2015 Update 1 and
earlier, including previous Visual Studio versions.
4 years ago
Jussi Pakkanen
b9b73b65a7
Update chat info. [skip ci]
4 years ago
Jussi Pakkanen
799b96f753
Also skip VS activation if gcc is found.
4 years ago
Jon Turney
7e7a23293b
Fix double negative in 'No CMake binary not found'
4 years ago
Jussi Pakkanen
43f0aa17b7
Add swift executable support in Xcode.
4 years ago
Jussi Pakkanen
cb085f3eb3
Handle macOS filesystem sometimes setting lower digits to zero.
4 years ago
Jussi Pakkanen
2dc8d1d626
Fix text used to validate test output.
4 years ago
Jussi Pakkanen
3d12f928cf
Rename VERSION because case insensitive file systems are a thing.
4 years ago
Jussi Pakkanen
45acef1241
Merge pull request #8787 from mesonbuild/xcodeprojecttree
...
Rework Xcode project navigation tree
4 years ago
Jussi Pakkanen
df960b0a35
Merge pull request #8786 from jon-turney/cygwin-tests-reenable
...
Re-enable various tests on Cygwin
4 years ago
Jussi Pakkanen
e23fd086bf
Remove unnecessary hierarchical layer.
4 years ago
Jussi Pakkanen
b84265052e
Remove top level sources entry as unnecessary.
4 years ago
Jussi Pakkanen
7ceba6388c
Add meson.build files to pbxgroup.
4 years ago
Jussi Pakkanen
818685ec18
Write project info in a tree structure rather than the current flat one.
4 years ago
Jussi Pakkanen
cdb91f493e
Disable D test on macOS as it fails mysteriously.
4 years ago
Jussi Pakkanen
293da38546
It seems ld64 is the default linker name on macOS now.
4 years ago
Jacob Nielsen
3e5ec00a40
Better detection of Visual Studio compiler
4 years ago
Jon Turney
f76c6b8d0a
Fix LTO test on Cygwin
...
This partially reverts commit add502c648
.
In 'linkshared' test, annotate cppfunc() as imported, so an indirection
through an import stub is generated, avoiding a relocation size error
when building using gcc for Cygwin with LTO on.
Align with the example of how to write this portably in [1].
The 'c' language part of that test already gets this right.
[1] http://gcc.gnu.org/wiki/Visibility
4 years ago
Jon Turney
91aeae558d
Revert "ci: Disable pytest-xdist on cygwin"
...
This reverts commit dce60c8f58
.
4 years ago
Jon Turney
2d215d93b2
Revert "Disable failing Cygwin GIR test."
...
This partially reverts commit add502c648
.
4 years ago
Jon Turney
1694e4ceca
Revert "Disable broken asm test on Cygwin as nobody knows how to fix it."
...
This reverts commit 56a0e74d71
.
4 years ago
Dylan Baker
619e05c8cf
vala: Test that adding C manually isn't requiured
4 years ago