Jussi Pakkanen
20083c0694
Factored Clang common stuff in its own class.
8 years ago
Jussi Pakkanen
26f9adf6a6
Moved base options to base class, because they are always the same.
8 years ago
Jussi Pakkanen
5833d23e76
Made objc compilers use Gnu class.
8 years ago
Jussi Pakkanen
85c2f67079
Made C++ compiler use GNU class.
8 years ago
Jussi Pakkanen
2336624f4a
Refactored GNU common functionality into its own class.
8 years ago
Jussi Pakkanen
19ecad5b24
Mark all dependencies for run targets.
8 years ago
Jussi Pakkanen
6f2b29e0f7
Can use files() in run_command.
8 years ago
Thibault Saunier
5d30ea99ea
meson_test: Add env variables to the test logs file ( #767 )
...
So users can more easily reproduce the test without the
launcher
8 years ago
Jussi Pakkanen
d26ab47072
Can use custom targets as executables to run in a run_target.
8 years ago
Jussi Pakkanen
9235fd4ec1
Permit use of file objects in run targets.
8 years ago
Jussi Pakkanen
3f62fb788b
Remove unneeded shebang line that was triggering some linters.
8 years ago
Elliott Sales de Andrade
b6ee5725c2
Fix option initialization for win32 cross-compile. ( #762 )
8 years ago
Jussi Pakkanen
165f8a913d
Better error message when trying to use subprojects as dependencies.
8 years ago
Jussi Pakkanen
69433025ca
Update version for new development.
8 years ago
Jussi Pakkanen
c013298426
Update version number for release.
8 years ago
Jussi Pakkanen
b289547971
Force clang to error out on unknown arguments. Closes #755 .
8 years ago
Jussi Pakkanen
ba0456748e
Prefer pkg-config to sdl2-config.
8 years ago
Elliott Sales de Andrade
a7cf241334
Fix validation of man page extension. ( #749 )
...
If the extension does not exist or is not a number, the error message is
not raised because the assumptions cause a different exception.
8 years ago
TingPing
0e79664155
Minor pkgconfig module cleanups ( #748 )
...
* pkgconfig: Remove unused function
Leftover copy from modtest
* Add self to authors.txt
8 years ago
Emmanuele Bassi
2dd1ec6f8c
Add is_even() and is_odd() integer methods
...
Convenience methods for modulo operations involving even and odd
numbers.
8 years ago
Emmanuele Bassi
00e5962aaa
Add support to integer modulo operator
...
Having support for the '%' operator makes it easier to implement
even/odd version checks, like:
enable_debug = get_option('enable-debug')
if enable_debug == 'auto'
if minor_version % 2 == 0
enable_debug = 'minimum'
else
enable_debug = 'yes'
endif
endif
which would be impossible without resorting to less obvious long-hand
forms like:
a - (b * (a / b))
8 years ago
Jussi Pakkanen
c8213aaf1e
Better file existance checks.
8 years ago
Elliott Sales de Andrade
389259c229
Stop "fixing" command line in CustomTargets. ( #737 )
8 years ago
Jussi Pakkanen
fa59fa55e2
Use absolute paths for dep files in Visual Studio.
8 years ago
Elliott Sales de Andrade
0cf065e12b
Use argparse's builtin version printer.
8 years ago
Saunier Thibault
e411c0b930
Honor dependency `fallback` argument even if the dependency is not required ( #735 )
...
You can potentially have a fallback subproject and if that subproject
fails, you can continue without that dependency
8 years ago
Thibault Saunier
6c6c706bb8
gnome: Handle internal dependencies to generate gir files
8 years ago
Elliott Sales de Andrade
6475bdbe20
Properly handle Files used in CustomTarget commands.
8 years ago
Elliott Sales de Andrade
cd03df4a4c
Fix CustomTargets used as input to CustomTargets. ( #727 )
8 years ago
Elliott Sales de Andrade
38a2a636b5
Refactor DESTDIR determination into a single function.
8 years ago
Elliott Sales de Andrade
3a593d0aca
Always obey DESTDIR even with absolute install_dir.
...
Passing an absolute path to `install_dir` would previously always
attempt to install there, instead of obeying DESTDIR, since os.path.join
will 'reset' on absolute paths.
8 years ago
Elliott Sales de Andrade
181d9a891d
Ensure URLs are closed with a context manager.
8 years ago
Elliott Sales de Andrade
fe0aa7daff
Convert depfixer.Elf class into a context manager.
...
This allows for automatic closing of its internal file handle.
8 years ago
Elliott Sales de Andrade
4c71695e41
Use context manager for file I/O.
...
There are a few cases where a context manager cannot be used, such as
the logger.
8 years ago
Nirbheek Chauhan
7830cb61c3
Add a new compiler object method: has_members ( #723 )
...
* Add a new compiler object method: has_members
Identical to 'cc.has_member', except that this takes multiple members
and all of them must exist else it returns false.
This is useful when you want to verify that a structure has all of
a given set of fields. Individually checking each member is horrifying.
* Fix typo in exceptions for has_member(s)
8 years ago
Elliott Sales de Andrade
a2321b24f6
Flatten isinstance calls. ( #715 )
...
That is, isinstance(x, y) or isinstance(x, z) can be flattened with a
tuple to isinstance(x, (y, z)).
8 years ago
Jussi Pakkanen
7cd6206d9a
Check for embedded @OUTPUT@s in commands.
8 years ago
Elliott Sales de Andrade
ae12656555
Use global id instead of local for hg tag. ( #710 )
8 years ago
Elliott Sales de Andrade
b7757189e4
Echo stderr from captured command.
...
This helps with debugging if the command fails.
8 years ago
Elliott Sales de Andrade
3e09aa9f11
Don't allow @OUTPUT@ when capturing output.
8 years ago
Elliott Sales de Andrade
70d94a5550
Allow capturing command output of a custom target.
...
For commands that always output to stdout and don't have a "-o" or
"--output" or some other similar option, this 'capture' setting allows
the build to capture the result and place it in the output file.
8 years ago
Elliott Sales de Andrade
dcaf2d7b3d
Accept string exe with Backend.serialise_executable.
...
Normally, this accepts a build.Executable, but it accept
build.BuildTarget and build.CustomTarget as well. Now it will also
accept a string path.
8 years ago
Jussi Pakkanen
808451b5c7
Do not error out if git pull fails on subprojects. Closes #720 .
8 years ago
ippytraxx
9aef099bc7
'name' needs to be 'self.name' in DependencyException
8 years ago
Matthias Klumpp
d98959f2cb
Make D compilers return colored output by default
8 years ago
Matthias Klumpp
76fe77f9a8
Don't automatically override the -L flag of D compilers
...
Works around / resolves #702 .
8 years ago
Jussi Pakkanen
a52154eba5
Change default and add explanatory comment for why we do that.
8 years ago
Jussi Pakkanen
c4ade56150
Added sysconfdir option. Closes #694 .
8 years ago
Jussi Pakkanen
fae8ad90a4
Consistent kwarg popping.
8 years ago
Jussi Pakkanen
4b3414cba0
Add extra_args kwarg to glib-compile-resources. Closes #698 .
8 years ago