Commit Graph

5407 Commits

Author SHA1 Message Date
Jussi Pakkanen b1c086b24d Explain the choice of implementation language. [skip ci] 2018-04-12 00:09:40 +03:00
Xavier Claessens b216f03a01 Fix unit test for Disabler() 2018-04-11 21:44:59 +03:00
Andrei Alexeyev e9860cff41 introspect: default builddir to . to prevent a crash
Fixes #3250
2018-04-11 21:43:59 +03:00
Rico Tzschichholz 5a0884dab3 vala: Don't pass -o and -C at the same time
Fixes "warning: --output and -o have no effect when -C or --ccode is set"

get_always_args() adds -C which is already disabling the direct compilation
ability of valac for which -o is used.
2018-04-11 21:42:42 +03:00
Nirbheek Chauhan 487526bfff Trivial update to meson vim syntax + typo in snippet [skip ci] 2018-04-11 22:07:11 +05:30
Emmanuele Bassi e103675a39 Never install the glib-mkenums generated C source (#3374)
* Never install the glib-mkenums generated C source

When using gnome.mkenums_simple() we end up installing the generated
C source file alongside the C header file, if `install_header` is set
to True. This is caused by mkenums_simple() acting as a wrapper for
mkenums() without template files; mkenums() won't be able to know if
we're generating the header or the source, and will use the presence
of `install_header` as the deciding factor as to whether the generated
file should be installed.

When generating the C source file, we should always unset the
`install_header` option to False, just like mkenums() expects.

Closes #3373

* Verify that mkenums_simple() does not install C sources

When asked to installed the generated C header file.
2018-04-09 23:35:57 +03:00
David Fort 6dea177774 add support for cmakedefine in configure_file()
The added format argument for configure_file allows to specify the kind of
file that is treated. It defaults to 'meson', but can also have the 'cmake'
or 'cmake@' value to treat config.h.in files in the cmake format with #cmakedefine
statements.
2018-04-08 22:00:45 +03:00
Jussi Pakkanen aed11affd3 Update depfixer to fix rpaths also on OSX. 2018-04-08 19:48:31 +03:00
Jussi Pakkanen 269db40445
Merge pull request #3326 from jeandet/generated_qrc
[Qt module] Add File object support for generated or not qrc files
2018-04-08 18:42:24 +03:00
Xavier Claessens 8a70e7cff5 Remove arbitrary [-1024,1024] limit in cross_compute_int()
Copy the algorithm used by autoconf.

It computes the upper and lower limits by starting at [-1,1] and
multiply by 2 at each iteration. This is even faster for small numbers
(the common case), for example it finds value 0 in just 2 compilations
where old algorithm would check for 1024, 512, ..., 0.
2018-04-08 16:56:33 +03:00
Jussi Pakkanen 23a7fe06e9
Merge pull request #3366 from xclaesse/pkgconfig-dup-version
Remove duplicates in generated pkgconfig required versions
2018-04-08 16:32:50 +03:00
Xavier Claessens da0f0f02e5 pkgconfig generator: Remove duplicates in required versions 2018-04-07 21:35:47 -04:00
Jussi Pakkanen d6e71d0c56
Merge pull request #3312 from MathieuDuponchelle/alwaysfallback
new wrap-mode: forcefallback
2018-04-08 01:08:51 +03:00
Paul I 09dd9e20df VS backend: dedup AdditionalDependencies 2018-04-08 01:05:19 +03:00
Christoph Behle 40715dec21 Move entry in build_funct_dict to correct position.
The entry 'subdir_done' is now at its right place.
2018-04-08 01:04:44 +03:00
Mathieu Duponchelle 1105ba3afd [fixup]: rename test after rebase 2018-04-07 16:13:59 +02:00
Mathieu Duponchelle 1ad04bed96 [fixup]: export symbols explicitly 2018-04-07 16:12:28 +02:00
Aleksey Filippov 52eb5b195e Remove commit_zero recommendation from wrap documentation, use action commit [skip ci] 2018-04-07 12:51:36 +03:00
Xavier Claessens 142f51a7b5 pkgconfig generator: Fix crash when passing a SharedModule 2018-04-06 21:05:53 -04:00
Mathieu Duponchelle ae460f94ce [fixup]: Add test 2018-04-06 23:48:48 +02:00
Mathieu Duponchelle a4341b3004 [fixup]: add since to FAQ 2018-04-06 23:48:48 +02:00
Mathieu Duponchelle 31f0242a6f new wrap-mode: forcefallback
This can be useful to make sure that a project builds when
its fallbacks are used on systems where external dependencies
satisfy the version requirements, or to easily hack on the sources
of a dependency for which a fallback exists.
2018-04-06 23:48:48 +02:00
Jussi Pakkanen aef1a81b35
Merge pull request #2711 from xclaesse/both-library
Add both_library() to build both shared and static library
2018-04-04 22:47:59 +03:00
Iñigo Martínez c1fcc8ab3e gnome.gtkdoc: Fix generated files used as content files
The `gtkdoc` function in the `gnome` module is able to use generated
files as content files, but the path to these is wrong in the used
command line.
2018-04-04 22:47:10 +03:00
Alexis Jeandet 4b98898c7c [Qt module] refactor b4cd949c48
Since relative path in qrc files are always relative to qrc file
itself then we just need to check that normpath(qrc file + resource)
doesn't start with build dir path, this would mean that the resource is
generated.

Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>
2018-04-04 09:36:45 +02:00
Alexis Jeandet b4cd949c48 [Qt module] More qrc fixes
When several qrc files are given all qrc files dependencies were mixed.
Fixed non working use case:
	When user try to guess build dir layout and add use a relative
	path between a generated qrc file and a generated resource.

Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>
2018-04-04 01:06:43 +02:00
Xavier Claessens 68f9846b7c Add both_libraries() to build both shared and static libraries
Also support default_library='both' to make library() build both shared
and static libraries.

Closes #484
2018-04-03 15:38:01 -04:00
Xavier Claessens 809f018333 extract_all_objects: Also extract generated sources 2018-04-03 15:20:19 -04:00
Xavier Claessens 5eef325ab6 pkgconfig generator: Only skip dependencies when using shared_library()
It is weird and inconsistent to have different pc file depending on
default_library value when using library() or build_target(). We should
skip dependencies only when user explicitly want shared library only.
2018-04-03 15:20:19 -04:00
Xavier Claessens cf0e997167 Remove duplicated list of known kwargs for build targets 2018-04-03 15:20:19 -04:00
Jussi Pakkanen 98267e104e
Merge pull request #3242 from thejk/coverage_targets
Use standalone coverage script for legacy targets
2018-04-02 20:08:30 +03:00
Jussi Pakkanen 519cd40a06
Merge D feature flag fix branch 2018-04-02 19:59:00 +03:00
Sébastien Wilmet 51a1952172 gtkdochelper: print warnings
The GTK-Doc commands output was never printed, except in case of error.
So there was no way to see the warnings.

https://github.com/mesonbuild/meson/issues/2396
2018-04-02 19:49:22 +03:00
Isaiah Norton b515eac75c Add link to `meson` github topic [skip ci]
Lists a number of projects that are not shown here.
2018-04-02 19:48:54 +03:00
Jussi Pakkanen c72b4e1b9c Imported Debian fixes by Matthias Klose. 2018-04-02 14:12:34 +03:00
Jussi Pakkanen 3e23f36a3c Fix detection to work with newer Java compilers. 2018-04-02 12:20:45 +03:00
Matthias Klumpp 2dc1e87cae Ensure D feature flags get applied to all D files
This resolves issue #3337
2018-03-31 20:53:27 +02:00
scontini76 1c1277de7c Update Pkg-config-files.md [skip ci]
typo: seems that configure_files doesn't exists, maybe you mean configure_file here. [skip ci]
2018-03-31 09:50:35 -07:00
Alexis Jeandet 16c4a3b4f8 Added link to documentation and examples for find_library replacement (#3346) 2018-03-31 11:38:09 +03:00
Alexis Jeandet ebeb248c07 [Qt module] Added generated resource test case + some fixes
Subdir is already in generated resource path.
Some PEP8 fixes.

Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>
2018-03-30 01:58:09 +02:00
Alexis Jeandet fd245ce5cf [Qt module] add some logic to detect if resources are in build dir
In order to handle generated resources embedded in qrc file, we
need to be able to detect if files pointed from qrc are in build
directory or not.

Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>
2018-03-30 01:07:43 +02:00
John Ericson 0325d58863 docs: Expand on compiler vs compilee build host and target (#3308) [skip ci] 2018-03-29 22:31:41 +03:00
Jussi Pakkanen 8eadc9d068
Merge pull request #3277 from chitranjali/shared-mod-link 2018-03-29 22:22:51 +03:00
Jussi Pakkanen be3387d937
Merge pull request #3322 from sarum9in/run_timeout 2018-03-29 21:48:09 +03:00
behlec 37d379ebe5 Allow meson build file to exit early. (#2808) 2018-03-29 21:29:45 +03:00
Matthias Klumpp 6146353f45 Don't crash when using d_module_versions for pkg-config 2018-03-29 20:28:33 +03:00
Matthias Klumpp ad2ab56e5f Add test to check that D feature flags get applied to all files
This adds regression tests for issue #3337
2018-03-29 15:16:57 +02:00
chitranjali cc6be2e43d Fixing flake8 2018-03-29 14:43:56 +05:30
chitranjali 34cb503c85 PR review changes closes #2865 2018-03-29 13:32:36 +05:30
chitranjali 83766313a7 fix2865 2018-03-29 13:26:32 +05:30