John Ericson
2ddb1af294
Simplify and dedup machine kwarg -> MachineChoice logic in the interpreter
6 years ago
John Ericson
3b54f38c84
Add some type annotations
...
Some things, like `method[...](...)` or `x: ... = ...` python 3.5
doesn't support, so I made a comment instead with the intention that it
can someday be made into a real annotation.
6 years ago
John Ericson
07777e15d4
Purge `is_cross` and friends without changing user interfaces
...
In most cases instead pass `for_machine`, the name of the relevant
machines (what compilers target, what targets run on, etc). This allows
us to use the cross code path in the native case, deduplicating the
code.
As one can see, environment got bigger as more information is kept
structured there, while ninjabackend got a smaller. Overall a few amount
of lines were added, but the hope is what's added is a lot simpler than
what's removed.
6 years ago
John Ericson
32e827dcdc
Use `env.machines.*` to avoid some `is_cross`
...
This is a small example of the `is_cross` removal the that abstraction
enables.
6 years ago
Daniel Mensinger
69005d6b1d
cmake: Minor fixes to handle some CMake specific behavior
...
Now, all source files are ignored that are not part of the
language of the target. This is also what CMake does.
Additionally it is now supported to build source files that
are generated inside the build directory.
6 years ago
filippocrocchini
431a9ea664
Moved RuntimeLibrary property to ItemDefinitionGroup/ClCompile
6 years ago
Dylan Baker
342767d6c7
docs: Add bzip2 to the Users page
6 years ago
Jussi Pakkanen
266b297515
Merge pull request #4969 from mensinda/cmakeSubProject
...
CMake subprojects
6 years ago
Jussi Pakkanen
7561926a70
Readme fixes. [skip ci]
6 years ago
Daniel Mensinger
9a9ea1434a
cmake: Fix cygwin failures
6 years ago
Daniel Mensinger
b1bef5ae0d
cmake: removed legacy kwargs from interpreter dict
6 years ago
Daniel Mensinger
4abd2e7103
cmake: doc: fixed typos
6 years ago
Daniel Mensinger
438ee6b01d
cmake: updated docs
6 years ago
Daniel Mensinger
2f998cd8d5
cmake: Updated test cases
6 years ago
Daniel Mensinger
e02c101575
cmake: moved subprojects into the CMake module
6 years ago
Daniel Mensinger
af6448ced5
cmake: Make flake8 happy
6 years ago
Daniel Mensinger
703054903b
cmake: disable the CMake tests for msvc2015
6 years ago
Daniel Mensinger
35936316eb
cmake: rebase fixes
6 years ago
Daniel Mensinger
9b22147dcb
cmake: set the linker for clang-cl for CMake
6 years ago
Daniel Mensinger
29a26c9dbd
cmake: blacklist some `cl` compiler and linker flags
6 years ago
Daniel Mensinger
1f3a57598e
cmake: general windows and old CMake fixes
6 years ago
Daniel Mensinger
5c603a900b
cmake: Some minor style changes
6 years ago
Daniel Mensinger
493e505d58
cmake: better logging
6 years ago
Daniel Mensinger
cb57847c30
cmake: fixed installed_files.txt
6 years ago
Daniel Mensinger
7c4f46b65c
cmake: Fixed test cases for windows
6 years ago
Daniel Mensinger
4279255401
cmake: use newer CMake version for cygwin
6 years ago
Daniel Mensinger
6cb904de7b
cmake: Added docs
6 years ago
Daniel Mensinger
3d7c50d109
cmake: Added option for additional CMake args
6 years ago
Daniel Mensinger
d114d8446e
cmake: Minor fixes
6 years ago
Daniel Mensinger
1041c71eb0
cmake: support object libraries
6 years ago
Daniel Mensinger
f73b36c2f3
cmake: Added test for configure_file
6 years ago
Daniel Mensinger
d9481f2359
cmake: Added Code generation test
6 years ago
Daniel Mensinger
316f4f4948
cmake: Always add the CMake build dir to the include dirs
6 years ago
Daniel Mensinger
bf81aac465
cmake: Added project tests
6 years ago
Daniel Mensinger
2b44b4be9f
cmake: Fixed install prefix
6 years ago
Daniel Mensinger
be6a9191e1
cmake: First working version
6 years ago
Daniel Mensinger
e55236bde4
cmake: basic AST generation
6 years ago
Daniel Mensinger
5089eb356b
cmake: extract the codemodel
6 years ago
Daniel Mensinger
2039cb708b
cmake: get CMake inputs
6 years ago
Daniel Mensinger
9aae603d1b
cmake: Handle a few more stub messages
6 years ago
Daniel Mensinger
ef18afc48b
cmake: configure works
6 years ago
Daniel Mensinger
8d3bd6eea8
cmake: Server handshake
6 years ago
Daniel Mensinger
e1863719cb
cmake: Made CMake executable finding availiable for other functions
6 years ago
Daniel Mensinger
a9a3b3ffe6
Added method kwarg to subproject
6 years ago
Jussi Pakkanen
09a722c4bd
Merge pull request #5263 from Ericson2314/per-machine-cli-args
...
Per machine 'build_' and '' options
6 years ago
Christoph Reiter
27c5d9f16f
gnome.yelp(): Fix media symlink fallback path
...
When the media file for a specific language doesn't exist we try to symlink
it to the C one. If symlinking fails we need to fall back to copying the C
one like in the non-symlink case.
The fallback code path didn't set the source so this always failed.
Also check if the C fallback exists before trying to symlink/copy, otherwise
we crash if C isn't the first lang we try.
6 years ago
Jussi Pakkanen
82e36a6bfe
Add tests for std usage. Closes #5097 .
...
(cherry picked from commit 27ae70dfaa
)
6 years ago
John Ericson
af2d7af998
Per machine do 'build.' and '' option prefixes
...
See the docs/ changes for details.
6 years ago
John Ericson
126100b166
mlog.debug the meson-set PKG_CONFIG_PATH
...
This is very useful for debugging!
6 years ago
Dylan Baker
5065db86f2
compilers/c: Fix removal of name from Combo options for ICL
6 years ago