Dylan Baker
023722b2c6
test cases/common/103 has header symbol: set c++ standard
...
On mac this appears to default to c++98, which in turn falls over with
boost that requires at least c++11
4 years ago
Jussi Pakkanen
99452dde26
Merge pull request #8812 from mensinda/cmakeToolchain
...
CMake toolchain file improvements (fixes #8293 )
4 years ago
Jussi Pakkanen
83581f7fc1
Do not delete workdir in case scan-build fails.
4 years ago
Xavier Claessens
4516b7a8a9
docs: Fix typo in github pages repo URL
4 years ago
Xavier Claessens
4dec7dbb71
ci: Automatically update website when pushing to master
4 years ago
Xavier Claessens
16c3f03394
typed_kwargs: Add since and deprecated annotations
4 years ago
Dylan Baker
6aef800ba8
modules/fs: Use typed_kwargs
4 years ago
Dylan Baker
521b92e499
interpreterbase: Add a function for type checking keyword arguments
4 years ago
Daniel Mensinger
9b5463681e
cmake: select correct generator in toolchain.py
4 years ago
Naveen M K
7a6ad2953a
Don't use `os.path.relpath` in dist command
...
This is problematic when we meson is installed in the different
root(say C:) while building from another root(say D:).
This is how it is done in mesonpep517 and causes problems
because of that.
4 years ago
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