Adam Jackson
f67b8cb8f2
docs: Fix the description of static_library's additional arguments [skip ci]
4 years ago
Jussi Pakkanen
c9d98e9a98
Xcode: Fix target prefixes and suffixes and conf-time generated sources.
4 years ago
Jussi Pakkanen
82f5d12a56
Xcode: Fix object extraction.
4 years ago
Xavier Claessens
5440ce003b
Add global_source/build_root()
4 years ago
Jussi Pakkanen
f328632fa5
Write include directory names with the correct amount of quoting.
4 years ago
Jussi Pakkanen
9fb0abb754
Write include dirs with absolute paths in the Xcode backend, relative ones do not seem to work.
4 years ago
Jussi Pakkanen
59306c45c5
Fix Xcode targets in subdirs.
4 years ago
Jussi Pakkanen
e759c8b2e9
Remove unneeded variable.
4 years ago
Jussi Pakkanen
fb222f4702
Avoid rebuilding the target list all the time.
4 years ago
Jussi Pakkanen
5614ce4a54
Skip compilers that are not used for a given target.
4 years ago
Jussi Pakkanen
0b50c5705f
Fix shared libs and using one source in multiple targets.
4 years ago
Jussi Pakkanen
3b16e39009
Fix building static libs with the Xcode backend.
4 years ago
Dylan Baker
aac67b502b
coredata: Check for built-in options as host options
...
These options often don't exist for the build machine, as they're
generally invalid (ie, prefix, libdir, etc). So we should always check
for their existance as host optiuons, since all we want to know in this
case is if the option is yeilding (valid per-subproject), and build/vs
host doesn't matter in that cases:
Fixes #8613
4 years ago
Dylan Baker
2cfa656935
environment: simplify handling of native files with no cross files
...
Instead of treating native files as always being for the build machine,
and then copying them to the host machine, treat them as for the build
machine only when a cross file is also present
4 years ago
Dylan Baker
223858fd7d
environment: fix typos in comment
4 years ago
Dylan Baker
fdde948ca1
environment: don't load project options from a native file in a cross build
4 years ago
Dylan Baker
111070bf49
environment: Add some comments to the _load_machine_file_options method
4 years ago
Jussi Pakkanen
b58e7d8478
Merge pull request #8616 from mesonbuild/xcodewarnopt
...
Set debug, optimization and warning flags in Xcode
4 years ago
Simon Ser
974e49fe0e
docs: document bool to_int and to_string methods
...
This documents the bool methods to_int and to_string implemented in
[1].
[1]: a9e9b7c750/mesonbuild/interpreterbase.py (L1109)
4 years ago
Jussi Pakkanen
016feca6dd
Typo fix. [skip ci]
4 years ago
Jussi Pakkanen
247d425a40
Add Chinese page to sitemap. [skip ci]
4 years ago
Chippy
e67268d520
Add Chinese translation of the getting Meson page [skip ci]
...
* add zh
* I am learning Meson and there is not Meson Chinese manual.so I want to write a Chinese manual.
This is Getting-meson_zh.
4 years ago
Jussi Pakkanen
1dd2bbaa01
LGTM fix.
4 years ago
Jussi Pakkanen
3c3146195b
Use warning args in the Xcode backend.
4 years ago
Jussi Pakkanen
82f7f63932
Use actual build type rather than hardcoding "debug".
4 years ago
Jussi Pakkanen
99a8076b78
Set debug info in the Xcode native way.
4 years ago
Jussi Pakkanen
e5766454d6
Set optimization level in the Xcode native way.
4 years ago
Jussi Pakkanen
6043016a38
Refactor Xcode target generation to its own method.
4 years ago
Jussi Pakkanen
2d8332e7f1
Merge pull request #8614 from mesonbuild/xcoderefactor
...
Refactor the Xcode backend
4 years ago
Jussi Pakkanen
2d30f8d124
Fix LGTM issues.
4 years ago
Jussi Pakkanen
3420957c73
Move constant to module level.
4 years ago
Jussi Pakkanen
bf08bba371
Delete old implementation.
4 years ago
Jussi Pakkanen
c43007408c
Add last few things we skipped.
4 years ago
Jussi Pakkanen
fb70490bd3
Fix all the minor things that got broken.
4 years ago
Jussi Pakkanen
dc9e2d6269
Converted the last bit.
4 years ago
Jussi Pakkanen
3ce0ce86c9
Convert build configuration.
4 years ago
Jussi Pakkanen
a026213145
Convert a few more.
4 years ago
Jussi Pakkanen
7a3fdf70cc
Convert PBXGroup.
4 years ago
Jussi Pakkanen
d78dba08a7
Convert a few more.
4 years ago
Jussi Pakkanen
87f1007ba7
Reduce verbosity.
4 years ago
Jussi Pakkanen
18f718299c
Convert one more object type and some scaffolding.
4 years ago
Jussi Pakkanen
0967800705
Start refactoring the xcode backend by creating proper classes for pbx primitives.
4 years ago
Jussi Pakkanen
7ec9e81e6f
Merge pull request #8606 from dcbaker/submit/fix-for-build-env-variables
...
Fix _FOR_BUILD env variables
4 years ago
Xavier Claessens
558a7bc6ff
interpreter: Move to its own folder and split it
4 years ago
Dylan Baker
d569d0bb3c
tests: Add a test for the _FOR_BUILD env vars
4 years ago
Dylan Baker
f99ed692c4
environment: get environment variables for both host and build machines
...
Fixes #8605
4 years ago
Dylan Baker
848cacc38c
unittests: extend machine file override tests for CFLAGS (and friends)
...
They behave slightly differently than other env vars, so have a test for
them as well.
4 years ago
Dylan Baker
2cd0723c42
Split environment variable and command line cflags
...
They are supposed to have different behavior. The environment variables
apply to both the compiler and linker when the compiler acts as a
linker, but the command line ones do not.
Fixes #8345
4 years ago
Aleksandr Mezin
692f673312
scripts/meson_exe: fix stdout and stderr decoding
...
1. use `locale.getpreferredencoding()` to get encoding name.
`bytes.decode()` assumes `encoding='utf-8'` by default. It is incorrect on my
Windows setup, and causes `UnicodeDecodeError`.
2. use `errors='replace'`.
`bytes.decode()` assumes `errors='strict'` by default. Meson shouldn't crash
if subprocess outputs some garbage that can't be decoded.
`surrogateescape` doesn't work as expected on Windows. On Linux, default
`errors` for `sys.stdout` is `strict`, so `surrogateescape` can't be used there
too (at least until `sys.stdout` is reconfigured).
Fixes https://github.com/mesonbuild/meson/issues/8480
4 years ago
Guilherme Janczak
d1628b8bed
docs: change duplicate "**.h" path to "**.c" [skip ci]
4 years ago