Vasu Penugonda
7140afc0a8
Added ARMCLANG compiler support for C/C++ ( #3717 )
7 years ago
Nirbheek Chauhan
58ae2c9a8c
Rename clike_langs to clink_langs for clarity
...
D is not a 'c-like' language, but it can link to C libraries. The same
might be true of Rust in the future and Go when we add support for it.
This contains no functionality changes.
7 years ago
Nirbheek Chauhan
d737488150
dependencies: Don't assume self.compiler is a C compiler
...
All dependencies were using find_library, has_header, get_define, etc on
self.compiler assuming that it's a compiler that outputs and consumes
C-like libraries. This is not true for D (and in the future, for Rust)
since although they can consume C libraries, they do not use the
C ecosystem.
For such purposes, we now have self.clib_compiler. Nothing uses
self.compiler anymore as a result, and it has been removed.
7 years ago
Nirbheek Chauhan
96b7fdb723
macos: Rewrite install_name for dependent built libraries on install
...
On macOS, we set the install_name for built libraries to
@rpath/libfoo.dylib, and when linking to the library, we set the RPATH
to its path in the build directory. This allows all built binaries to
be run as-is from the build directory (uninstalled).
However, on install, we have to strip all the RPATHs because they
point to the build directory, and we change the install_name of all
built libraries to the absolute path to the library. This causes the
install name in binaries to be out of date.
We now change that install name to point to the absolute path to each
built library after installation.
Fixes https://github.com/mesonbuild/meson/issues/3038
Fixes https://github.com/mesonbuild/meson/issues/3077
With this, the default workflow on macOS matches what everyone seems
to do, including Autotools and CMake. The next step is providing a way
for build files to override the install_name that is used after
installation for use with, f.ex., private libraries when combined with
the install_rpath: kwarg on targets.
7 years ago
Xavier Claessens
218ed2de89
optinterpreter: Remove duplicated list of languages
...
It is important to keep the list of languages up to date in
optinterpreter, otherwise we could have conflicting options when adding
new languages.
7 years ago
Xavier Claessens
aa879b7f0c
Fix issues found by flake8
7 years ago
Somasekhar Penugonda
e62b8109eb
Updates to CPP support and update review changes
7 years ago
makise-homura
7cc41baa98
Added Elbrus lcc compilers support as inheritance from gcc ones
7 years ago
Bedarkar, Malhar
831d1e4c2e
- Updating cpp_std options similar to other compiler classes
...
- Updating environment.py for selecting '--vsn' option for armcc only.
- Updating build type arguments from GitHub pull request - 3157
Change-Id: Id3151e7715ec1016afdbd65391bb0d414ec7de13
7 years ago
Bedarkar, Malhar
a2ee76228e
First cut of ARMCC support for MESON.
...
Change-Id: I15d8258e84d392baaccb8f670e33eefcfe8cd49a
7 years ago
Thibault Saunier
c48b9594ff
Add support for Visual Studio csc c# compiler
7 years ago
Alistair Thomas
117f4ab8b5
Split out languages from compilers.py
8 years ago
Alistair Thomas
d71da5bdb3
Converted compilers.py to a sub-package
8 years ago
Franz Zapata
4b5a0e5de7
Reintroduce Python Zipapp support
...
* Added `main` function as an entry point.
* Created `__main__.py` to allow the creation of Zipapps without explicitly
calling `meson:main`.
8 years ago
Jussi Pakkanen
455e55f8e5
Back to .py suffix in files. Closes #394 .
9 years ago
Jussi Pakkanen
23b98cd6e6
Renamed meson package to mesonbuild so that we can have a script named meson in the same toplevel dir.
9 years ago
Jussi Pakkanen
2ee27504a8
Moved mesonconf implementation in the module.
9 years ago
Jussi Pakkanen
ec44795f8a
Moved all wrap related things to their own submodule.
9 years ago
Jussi Pakkanen
66c01401de
Moved scripts in the module and started work to run them via the main meson command.
9 years ago
Jussi Pakkanen
8b1039fa30
Organise files into a module structure.
9 years ago
Thibault Saunier
33b2a414e9
Make it working on python 3.3
9 years ago
Yoav Alon
a4809cf632
Added support for extended command line to overcome OS command line length limitation
9 years ago
Jussi Pakkanen
1caf7e6f4a
Yet another step in the neverending saga of -Wpedantic.
9 years ago
Wink Saville
60896c0f04
Add --version to command line arguments.
9 years ago
Jussi Pakkanen
63e803ae0f
Made shared the default libtype as it is faster for daily development.
9 years ago
Jussi Pakkanen
8495075cee
Turned builtin options into proper objects.
9 years ago
Jussi Pakkanen
e2313b85d7
Refactored builtin options to a dictionary and created a new default library target type.
9 years ago
Jussi Pakkanen
c0070aadae
Now that projects can easily override defaults, return warning level to 2.
9 years ago
Jussi Pakkanen
572ce0f451
Added cpu family property to system information.
9 years ago
Thibault Saunier
c24573483d
Do not use intr before it exists
9 years ago
Jussi Pakkanen
067935ce76
Added conf option for build tree layout.
9 years ago
Jussi Pakkanen
384365c843
Added outdir() method to build targets so we can make output dirs togglable.
9 years ago
Jussi Pakkanen
c7e367ac16
Can set default warning with an envvar.
9 years ago
Jussi Pakkanen
6cca79b052
Added multiple selectable warning levels.
9 years ago
Jussi Pakkanen
9d559b2b39
More robust windows detection and more logs.
9 years ago
Jussi Pakkanen
bd5b4deeda
Better sanity testing.
9 years ago
Jussi Pakkanen
30d0c2292f
Support target-only cross compilation properly.
10 years ago
Jussi Pakkanen
37b2a195bd
Get build machine's CPU info too.
10 years ago
Jussi Pakkanen
463d08d545
Now host_machine, build_machine and target_machine are properly separated and return correct values.
10 years ago
Igor Gnatenko
174e72413f
style: fix indenting in meson.py
...
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
10 years ago
Igor Gnatenko
79417eac80
meson: fix undefined-variable in backends chooser
...
E:146,57: Undefined variable 'options' (undefined-variable)
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
10 years ago
Igor Gnatenko
9616bed9fc
introduce check python version in meson.py
...
To ensure that people will not confused that something won't work.
Related: https://github.com/miit-pm/RWD/pull/1#issuecomment-102607931
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
10 years ago
Jussi Pakkanen
b5cec55835
Moved functionality from __main__ to a function to make it callable.
10 years ago
Jussi Pakkanen
ef180676c2
Add command line switch to print version number.
10 years ago
Jussi Pakkanen
3f46cd7fb3
Added gobject-introspection to gnome module.
10 years ago
Jussi Pakkanen
c0f097c0c7
Fix argparse to make rebuild work again.
10 years ago
Jussi Pakkanen
baa0782a22
Use argparse in introspector.
10 years ago
Jussi Pakkanen
b82584641a
Use argparse instead of optparse in meson.py.
10 years ago
Jussi Pakkanen
22c23ee1fb
Added Debian multilib support.
10 years ago
Jussi Pakkanen
08ef881c86
Extracted compiler definitions to their own file.
10 years ago