Commit Graph

435 Commits

Author SHA1 Message Date
Jussi Pakkanen 24ae120868 Turn deprecated commands into errors. 2018-03-14 00:20:00 +02:00
Jussi Pakkanen ae0e469b06
Merge pull request #3145 from thejk/gcovr
Support gcovr >= 3.1 and add gcovr html report as fallback
2018-03-13 21:12:16 +02:00
Jussi Pakkanen a20c5ccd13 Fix snippet heading to conform to new formatting rules. 2018-03-13 00:06:12 +02:00
Jussi Pakkanen 6585427a7d
Merge pull request #3131 from sarum9in/pkgconfig
Pkgconfig accepts libraries and pkgconfig-dependencies in requires/requires_private parameters
2018-03-12 23:02:36 +02:00
Aleksey Filippov 98fc7a82dc Link "External commands" page from run_command() reference [skip ci] 2018-03-12 13:44:31 +00:00
Jon Turney 6f8e541f55 docs: update for mesonintrospect.py -> meson introspect
mesonintrospect is deprecated since 59a35c4c (PR #2067)
2018-03-11 00:51:18 +02:00
Jon Turney e79454c2a4 docs: Add custom dependencies missing documentation
Add some brief documnentation about custom dependency lookups which are
implemented but not documented.
2018-03-11 00:51:18 +02:00
Jon Turney e6d6b609cc docs: polish documentation for custom dependency detectors
Various grammar fixes
Fix syntax of MPI examples
Add Qt4
2018-03-11 00:51:18 +02:00
Jon Turney 64bc2b84f8 docs: update system cross file documentation
Works on all non-Windows since cf98f5e3 (PR #3119)
2018-03-11 00:51:18 +02:00
Jon Turney fa0386d98a docs: remove reference to mesongui
mesongui was removed in 71f18226 (PR #574)
2018-03-11 00:51:18 +02:00
Jukka Laurila 52c50da6c7 Refactor: Add log.error and log.exception to reduce code duplication. 2018-03-10 18:04:52 +02:00
Eduardo Lima (Etrunko) ccd198a849 Gnome-module.md: Add information about output files to mkenums()
[skip ci]
2018-03-07 19:57:47 +02:00
Jon Turney ffe6ed2a47 doc: Tweak text about get_option('foodir') in reference manual [skip ci]
* The example for executable()'s install_dir: should use join_paths()

* Clarify how to use directory options which are potentially not prefix
relative

This is mentioned in https://github.com/mesonbuild/meson/issues/1637 and see
also https://patchwork.freedesktop.org/patch/200373/ for an example of this
usage, and the possible confusion that can arise.
2018-03-07 19:57:20 +02:00
Jussi Pakkanen e98ae58d0e
Merge pull request #3086 from sarum9in/declare-link-whole
Add declare_dependency() link_whole parameter
2018-03-06 21:08:54 +02:00
Evgenii Shatokhin 19718a8d9c Allow passing a compiler object to run_command()
Sometimes it is needed to run the current compiler with specific options
not to compile a file but rather to obtain additional info. For example,
GCC has several -print-* options to query it about the paths to
different libraries and development files. One use case is to get the
location of development files for GCC plugins, which is not easily
obtainable by other means:

  gcc -print-file-name=plugin

For this purpose, it would be convenient if the compiler object returned
by meson.get_compiler(lang) could be used in run_command() directly.
This commit implements it.

Signed-off-by: Evgenii Shatokhin <eshatokhin@virtuozzo.com>
2018-03-06 21:07:16 +02:00
Jukka Laurila 048508c989 Make "meson help" and "meson help <subcommand>" do the expected thing. 2018-03-06 14:02:55 +02:00
Nirbheek Chauhan 9e18e4c703
Improve vcs_tag documentation [skip ci]
Document that dependencies must be explicitly signalled, just like with a custom target.
2018-03-06 15:33:00 +05:30
Aleksey Filippov 4de02cb5b0 Document declare_dependency() link_whole parameter 2018-03-06 01:44:26 +00:00
Jukka Laurila 8f340ffb8d Generate meson.build based on existing source files when meson init is run in a non-empty directory. 2018-03-06 00:05:17 +02:00
Jussi Pakkanen 9819bc9c56 Add Python minimum version requirement in release notes. [skip ci] 2018-03-05 20:34:07 +02:00
TÖRÖK Attila 3e92a86db4 doc: Fix a syntax error in an example in 'Generating sources'. [skip ci] 2018-03-05 05:51:41 -08:00
Jussi Pakkanen 2521e43baf Add missing code block end marker. 2018-03-04 21:11:53 +02:00
Jussi Pakkanen daaae647d7 Updated information for new release. 2018-03-04 20:27:34 +02:00
Jussi Pakkanen f53e8b8812 Explain change of default better. [skip ci] 2018-03-04 18:25:36 +02:00
Tim Ansell 69ff980fbc Fixing broken language arguments [skip ci]
Missing ending pipe was causing it to fail to render.
2018-03-04 14:45:44 +02:00
Aleksey Filippov e41f00f834 Document wxwidgets dependency, closes #3159 [skip ci] 2018-03-04 00:11:19 +00:00
Jussi Pakkanen 38145e0251 The "outputs" kwarg should be "output" and rewrapping. Closes #3166. [skip ci] 2018-03-04 00:57:42 +02:00
Aleksey Filippov 5f0aeafa38 Add jpakkane's answer to "Why must all subprojects be inside a single directory?" [skip ci] 2018-03-01 21:52:08 +02:00
Aleksey Filippov 15537f5e8e Add links to Subprojects.md page from subproject() and subproject object documentation [skip ci] 2018-03-01 21:52:08 +02:00
Aleksey Filippov 5e6c47a4b2 Add reference to implicit_include_directories from include_directories() [skip ci]
Closes #3153
2018-03-01 15:30:15 +00:00
Joel Klinghed 6266089866 Allow gcovr >= 3.1 to be used to generate html coverage report
Modern gcovr includes html generation support so if lcov and
genhtml are not available fallback to gcovr.

Kept lcov and genhtml as default so to not surprise existing
users of coverage-html with the different output of gcovr.

gcovr added html support in 3.0 but as there already is a test
for 3.1 because of the changes to -r/--rootdir I opted to only
allow html generation for >= 3.1 to keep things simple.
2018-02-27 21:58:05 +01:00
Hemmo Nieminen 4f8db1fe47 Add a release note snippet for the improved test setup selection. 2018-02-25 21:46:28 +02:00
Tim Ansell 36fc655272 Adding a "Projects using Meson" to Community section (#3138) 2018-02-25 20:22:42 +02:00
Jussi Pakkanen 8a68dc0179
Merge pull request #3132 from mesonbuild/csc
Visual Studio C# compiler support and some fixes
2018-02-25 14:03:02 +02:00
Hylke Bons f1ce7af2d5 [skip ci] docs: Add reference table for language args parameter names (#3126) 2018-02-25 14:02:34 +02:00
Aleksey Filippov 2377f22ea5 Document pkgconfig.generate() requires parameters 2018-02-24 23:41:12 +00:00
Jussi Pakkanen 0b6f90caf7 Added release note snippet for csc support. 2018-02-25 01:16:06 +02:00
Adam C. Foltzer 3332f33649 Fix Rust compiler-private library ambiguity
When building a Rust target with Rust library dependencies, an
`--extern` argument is now specified to avoid ambiguity between the
dependency library, and any crates of the same name in `rustc`'s
private sysroot.

Includes an illustrative test case.
2018-02-22 22:16:58 +02:00
Peter Hutterer 6b550ae91f Allow for missing install_dir in install_data()
The documentation doesn't require it and the interpreter code works around the
possibility of it being None. The ninja backend code however fails with

File "/home/whot/code/meson/mesonbuild/backend/ninjabackend.py", line 796, in generate_data_install
    dstabs = os.path.join(subdir or None, plain_f)
File "/usr/lib64/python3.6/posixpath.py", line 78, in join
    a = os.fspath(a)
TypeError: expected str, bytes or os.PathLike object, not NoneType

If install_dir is missing, default to datadir/projectname
2018-02-22 20:26:16 +02:00
TÖRÖK Attila 8c376a7fe4 docs: Add a paragraph to the Manual about @EXTRA_ARGS@. [skip ci] 2018-02-22 04:40:06 +05:30
Iñigo Martínez 5dc32b4af1 Users.md: Add GVfs
Add GVfs to the meson users list
2018-02-21 19:06:55 +02:00
Felipe Borges 926d6ca7e8 Users.md: Add GNOME Boxes and GNOME Usage
[skip ci]
2018-02-21 19:06:21 +02:00
Aleksey Filippov 79865474c7 Add references to CI and recommendation to disable them for doc only changes [skip ci] 2018-02-20 21:21:18 +05:30
Nirbheek Chauhan a374eb08e9
Users.md: lightdm-webkit2-greeter no longer uses meson [skip ci] 2018-02-20 21:07:38 +05:30
Nirbheek Chauhan 86e8d587cb docs: Add subproject warning for source_root and build_root [skip ci] 2018-02-20 16:45:27 +05:30
Nirbheek Chauhan bc3a26d759
Users.md: Add libzim, which only uses meson
[skip ci]
2018-02-20 14:21:01 +05:30
Nirbheek Chauhan 93e983a49a
Users.md: Update some old/broken URLs
[skip ci]
2018-02-20 00:22:53 +05:30
Eric Engestrom 8a2d9e0ad4 docs: fix missing backtick 2018-02-19 23:46:34 +05:30
Nirbheek Chauhan e6c9923b47
Users.md: link to github page for easy editing
Also mention that software on the list will be tested for regressions.
2018-02-19 23:15:39 +05:30
Jussi Pakkanen 55a7c265c1
Merge pull request #2863 from jon-turney/exit-status-on-exception
Verify that failing tests are failing with an error, not a python exception
2018-02-18 13:54:50 +02:00