Jussi Pakkanen
e3783f0f59
Check input file for existance. Closes #697 .
8 years ago
Jussi Pakkanen
399d653803
Merge pull request #685 from ximion/master
...
Implement D support
8 years ago
Matthias Klumpp
309f7a1b4a
interpreter: Rename get_unittest_flag() to unittest_args()
8 years ago
Matthias Klumpp
12a01c26f3
trivial: Use stringlistify
8 years ago
Matthias Klumpp
b80bdf65df
Simplify D compiler argument translation
8 years ago
Matthias Klumpp
d767d8ca39
Split D library test into static/shared tests
...
This allows us to disable the shared library test if the GNU D compiler
is detected.
This is useful, because gdc can not yet build proper shared libraries.
We also add a new test here which tests versioning of D shared
libraries.
8 years ago
Jussi Pakkanen
c02a175d52
Add depfile support to generators.
8 years ago
Jussi Pakkanen
5a926172e6
No fpic on Windows C++. Closes #690 .
8 years ago
Jussi Pakkanen
3ae918a463
Add support for dependency files in custom targets.
8 years ago
Matthias Klumpp
57c54a678c
Allow build definitions to retrieve the unittest flag of a D compiler
...
D allows programmers to define their tests alongside the actual code in
a unittest scope[1].
When compiled with a special flag, the compiler will build a binary
containing the tests instead of the actual application.
This is a strightforward and easy way to run tests and works well with
Mesons test() command.
Since using just one flag name to enable unittest mode would be too
boring, compiler developers invented multiple ones.
Adding this helper method makes it easy for people writing Meson build
descriptions for D projects to enable unittestmode.
[1]: https://dlang.org/spec/unittest.html
8 years ago
Matthias Klumpp
3eb90414f6
Add testcase for mixed C and D compilation
8 years ago
Matthias Klumpp
56823272ab
Implement D support
...
This patch adds support for the D programming language[1] to Meson.
The following compilers are supported:
* LDC
* GDC
* DMD
[1]: http://dlang.org/
8 years ago
Aleksander Piotrowski
d6fd462387
Fix URL to Ninja project
8 years ago
Jussi Pakkanen
36870ace0f
Document pdb insanity a bit.
8 years ago
Jussi Pakkanen
1bed33fba2
Create pdbs that work when using pch or doing extract object (sadly not both).
8 years ago
Nirbheek Chauhan
88037c4385
shared_library: Add vs_module_defs to link_depends
...
With this, if the module definitions file is edited, the shared library
and all reverse-dependencies will be re-linked.
Fixes #643
8 years ago
Jussi Pakkanen
402ef505fe
Fix unixy compilation.
8 years ago
Jussi Pakkanen
ccda29794b
Make pdb work with pch.
8 years ago
Jussi Pakkanen
b08581d394
Generate pdb files during linking.
8 years ago
Jussi Pakkanen
5e047d9c91
Write pdb info to a specific file.
8 years ago
Nirbheek Chauhan
5f3097a492
Don't add the soversion to the dylib filename on OS X
...
Doing so messes up library search with -lfoo.
See: https://github.com/mesonbuild/meson/pull/680
8 years ago
Nirbheek Chauhan
2549ed8290
Add a test to find libfoo.X.dylib via -lfoo
...
Alex Băluț reported that on OS X libfoo.0.dylib cannot be found as -lfoo by the
linker, and you must use -lfoo.0 instead. Add a test for this so the CI can
catch such problems. The next commit will contain the fix.
8 years ago
Igor Gnatenko
58359c8fac
add .mailmap ( #679 )
...
to have better short-overview from git-shortlog(1).
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
8 years ago
Nirbheek Chauhan
e0dcb3160a
BuildTarget: Print a better message when passing GeneratedList to 'objects' ( #681 )
8 years ago
Jussi Pakkanen
5b1559a4e8
Merge pull request #673 from centricular/inherited-env-flags
...
Two changes to how we inherit cflags/linkflags from the environment
8 years ago
Jussi Pakkanen
c6ca8a59be
Add missing name.
8 years ago
Igor Gnatenko
bde123d70c
Merge pull request #629 from wtay/master
...
gnome.py: typelib files should be installed in libdir
8 years ago
Jussi Pakkanen
af0e3e2675
Use our config template rather than Autoconf's.
8 years ago
Jussi Pakkanen
7f4ecfc742
A few more checks for ac converter tool.
8 years ago
Nirbheek Chauhan
a5e01fa155
Only append compile flags to the link flags when appropriate
...
We should only append the compiler flags to the link flags when the
compiler is used as a wrapper around the linker during the link process
8 years ago
Nirbheek Chauhan
5b7e4ac1f6
compilers: Always return a copy of the exelist
...
The consumer might append to it, which will mess up the original object
8 years ago
Nirbheek Chauhan
01b43e5f0a
Print the CFLAGS/LDFLAGS/etc inherited from the environment
...
People can forget it and then wonder what's wrong. Just explicitly print
it.
8 years ago
Jussi Pakkanen
2ea1fb849c
Doc clarification.
8 years ago
Jussi Pakkanen
40aff7caa0
File name update in manifest.
8 years ago
Jussi Pakkanen
3671c40a4b
Handle both DT_RPATH as well as DT_RUNPATH when fixing rpath settings.
8 years ago
Igor Gnatenko
23c3d4eb5d
Merge pull request #664 from mesonbuild/asneeded
...
Add option for as-needed link option.
8 years ago
Jussi Pakkanen
58ca96994f
Add option for as-needed link option.
8 years ago
Nirbheek Chauhan
909a62ca1a
test common/86: Move static library back ( #662 )
...
This reverts 15ab984d8e
Also see #459
8 years ago
Jussi Pakkanen
657f357fc6
Merge pull request #605 from mesonbuild/ternary
...
Added ternary operator support
8 years ago
Jussi Pakkanen
b382abdd2c
Forbid nested ternary operations.
8 years ago
Jussi Pakkanen
d90fcb4048
Created ternary operator. Closes #538 .
8 years ago
Nirbheek Chauhan
58ad092ff3
interpreter: Print what subproject dir could not be found
...
Fixes #655
8 years ago
Jussi Pakkanen
4f6be39d26
Update version for new development.
8 years ago
Jussi Pakkanen
37ddadcd87
Raise version number for release.
8 years ago
Jussi Pakkanen
1d36f68629
Merge pull request #660 from mesonbuild/libdirfix
...
Fix library directory handling
8 years ago
Jussi Pakkanen
10ab88710b
Determine lib paths on demand rather than up front because they might change during build file parsing.
8 years ago
Jussi Pakkanen
fb3f4420b2
Merge pull request #659 from centricular/find-program-scripts-windows
...
find_program: Find scripts without extensions on Windows
8 years ago
Jussi Pakkanen
933c11821e
Merge pull request #641 from centricular/allow-backslash
...
Ninja now supports backslash in command args, so we can too.
8 years ago
Nirbheek Chauhan
9f67c29eb4
Add test for the new find program workaround for Windows
8 years ago
Nirbheek Chauhan
577b6dfdf6
find_program: Find scripts without extensions on Windows
...
Because of how files and executables work on Windows, scripts that use
an interpreter must have an extension, and that extension must be
associated with an interpreter. The full list of executable extensions
is available in the PATHEXT environment variable.
However, UNIX-like OSes use an executable bit and read the shebang to
figure out what interpreter to use, and the scripts don't need to have
extensions. We can now detect these scripts using find_program by
manually searching in PATH and reading the shebang.
8 years ago