Commit Graph

741 Commits

Author SHA1 Message Date
Nirbheek Chauhan fbc7160214 docs: Expand section on how to install Python3 and Meson
With screenshots!
2018-06-03 18:59:24 +00:00
Filipe Brandenburger 968f2c63af Add release-notes snippet for the extended install_mode 2018-06-02 04:50:32 +00:00
Filipe Brandenburger 73decf31f1 Update reference manual to include 'install_mode' where supported 2018-06-02 04:50:32 +00:00
Jon Turney 7a48f6dfcd Clarify how Windows resource compiler uses the include path 2018-06-01 20:21:09 +00:00
Jon Turney aa27f7cec9 Add a depend_files: keyword to windows.compile_resources()
Expose depend_files: from the custom_target this creates.

This is the change suggested in #2815, with tests and documentation added.

Fixes #2789 (duplicate #2830)
2018-06-01 20:21:09 +00:00
Mathieu Duponchelle 14750b50ea configure_file: Add output_format kwarg (#3636)
* configure_file: Add output_format kwarg

* docs: Reference-manual.md output_format was added in 0.47 [skip ci]
2018-06-01 17:53:07 +00:00
Dylan Baker 17cb364046 [skip ci] docs: cross reference tables from manual (#3656)
* docs/reference-manual: link to references tables

Currently the reference manual entries for *machine.cpu_family() and
*machine.system() have incomplete (and wrong) information. Rather than
continue to duplicate this information just link to the reference
tables.

* docs/Reference-manual: fix link target

The IDs in hotdoc are always lowered, so this pointed to the right page,
but didn't go to the heading.

* docs/Reference-manual: link compiler.get_id directly to tables

Currently it goes round about to an entry that doesn't add much
information and points to the reference table. Instead just point to the
reference table.
2018-06-01 15:19:36 +00:00
Dylan Baker 583e9c4af6 docs: Update cpu families (#3651) [skip ci]
Add several archs to the CPU family table

ppc64, ppc64le, Itanium,HP PA-RISC, sparc v9 (64 bit)

This covers most of the sparc systems in use today.
2018-06-01 11:31:38 +00:00
Jon Turney 0092e6d908 Mention private_headers keyword in Qt dependency documentation [skip ci]
Also, put discussion of Qt dependencies *before* the example in the Qt5
module documentation.
2018-05-31 13:15:47 +00:00
Jon Turney 809336833c Improve dependency() documentation [skip ci]
Mention that the dependency name will also be searched for as a framework on
OSX.

Note that additional dependency-specific keywords may be used by custom
dependency lookup.
2018-05-31 13:15:47 +00:00
Jon Turney 82c81a5d82 Document OpenMP dependency [skip ci]
PR #1852 only adds mention of this to the release note.

I think it's useful to have a list of all dependency names which are treated
specifically in Dependency.md, so add 'thread' and 'openmp'.
2018-05-31 13:15:47 +00:00
Nirbheek Chauhan 27b290d6df Add check_header to Reference manual and release notes [skip ci] 2018-05-30 15:25:39 +05:30
Nirbheek Chauhan c87c42b736
Document how to set the default name_prefix and name_suffix [skip ci]
Else people (like me) try to use the old behaviour where
setting it to `''` would use the default.

https://gitlab.gnome.org/GNOME/glib-networking/issues/33
2018-05-30 13:27:24 +05:30
Jussi Pakkanen cc3e0bc469
Merge pull request #3491 from jeandet/qt_private_headers
Qt private headers
2018-05-27 23:50:30 +03:00
Michael Mera 1ff15f527b Make install doc less surprising for new users [skip ci] 2018-05-27 23:49:16 +03:00
Alexis Jeandet 7cfe970cef [Qt module] private_headers kwarg documentation reformulation
Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>
2018-05-27 21:20:42 +02:00
Jussi Pakkanen 41ab5166e4
Merge pull request #3476 from filbranden/intbase1
Add support for octal and binary int literals
2018-05-24 22:21:40 +03:00
Aleksey Filippov 5f5360470f Clarify that configuration_data()'s copy is immutable 2018-05-24 22:19:22 +03:00
Filipe Brandenburger 5572bbc6cc Document octal and binary integer literals in syntax.
Also add a release notes snippet for it.
2018-05-23 14:07:56 -07:00
Jussi Pakkanen 55a0831bc3
Merge pull request #3383 from mesonbuild/nirbheek/configure-file-nodata
configure_file: Add a new action 'copy'
2018-05-22 21:09:19 +03:00
Jussi Pakkanen 9ecd92c6fe
Merge pull request #3490 from MathieuDuponchelle/dict_builtin
Add new built-in type, dict
2018-05-22 20:46:26 +03:00
Jussi Pakkanen f4194d4dbc
Merge pull request #3523 from taisei-project/run_command_check
Add 'check' kwarg for run_command
2018-05-22 20:34:45 +03:00
randy408 710a3f7f20 Update Users.md 2018-05-22 20:29:56 +03:00
Andrei Alexeyev 2e2d14c9d7
Update documentation for run_command [skip ci] 2018-05-22 04:45:40 +03:00
Andrei Alexeyev d72f9a3e0f
Add 'check' kwarg for run_command
Closes #3516
2018-05-22 04:45:31 +03:00
Mathieu Duponchelle fe6fc59ee7 dict: add since annotations 2018-05-22 00:17:42 +02:00
Nirbheek Chauhan 4b9393e165 docs: Add manual entry for configure_file copy kwarg 2018-05-22 02:37:07 +05:30
Mathieu Duponchelle 10e7566ed8 dict: fix CI issues 2018-05-21 00:19:31 +02:00
Mathieu Duponchelle 1de7dce414 dict: Document, add release snippet 2018-05-20 22:39:33 +02:00
Nirbheek Chauhan e9a181a545
docs: Add a warning about find_program().path()
See: https://github.com/mesonbuild/meson/issues/3552
2018-05-09 18:30:00 +05:30
Nirbheek Chauhan 0eb4423b85
subprojects.md: document --wrap-mode
Closes https://github.com/mesonbuild/meson/issues/3534
2018-05-09 14:54:26 +05:30
Nirbheek Chauhan 43f9318afa
Reference-manual: compiler checks
Document that compiler checks are self-contained and
do not add arguments from anywhere else.
2018-05-09 14:43:08 +05:30
Roy Buitenhuis 554266d6f2 docs: Added reference to pkg-config module page [skip ci] 2018-05-02 11:46:13 +00:00
Alexis Jeandet bfcd71cecb [skip ci] fixed broken link to repoinit.py script in wrap documentation
Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>
2018-05-01 20:18:15 +03:00
Alexis Jeandet f3a8efc11b Added Added Qt's private header support with pkg-config
Just use the same approach than qmake to generate private headers path

Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>
2018-04-30 11:43:54 +02:00
Alexis Jeandet 51868d00e7 [Qt module] Privates headers: added documentation
Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>
2018-04-28 17:45:23 +02:00
Jussi Pakkanen 9b0453d3e9
Merge pull request #3225 from filbranden/fixperms3
Introduce install_umask to determine permissions of files in install tree. Default it to 022
2018-04-26 23:14:00 +03:00
Jussi Pakkanen 0af029e08c Wrap-git files can have tags as well as commit ids. [skip ci] 2018-04-25 21:01:59 +03:00
Nirbheek Chauhan eb6b56216c
Tweak some 0.46 release note language [skip ci] 2018-04-24 08:21:37 +05:30
Nirbheek Chauhan 63b4cd5f6d
Users.md: Add bolt [skip ci] 2018-04-24 08:07:20 +05:30
TingPing c57b159495
docs: Fix syntax highlighting in 0.46.0 notes 2018-04-23 16:00:45 -04:00
Jon Turney 20088c22e9 Fix section headers in 0.46 release note [skip ci] 2018-04-23 22:42:39 +03:00
Jussi Pakkanen ade59f987f Updated version number for new release. 2018-04-23 03:24:26 +03:00
Jussi Pakkanen 04952fe220
Merge pull request #3446 from MathieuDuponchelle/python_module_with_doc
modules/python: add some more options around path and config_vars
2018-04-22 18:55:30 +03:00
Mathieu Duponchelle 709e2bd70d Python module: update documentation for new API 2018-04-22 01:06:36 +02:00
Nirbheek Chauhan a5b99dce5d Add more tests for multi-line strings and update docs 2018-04-21 22:57:19 +03:00
Nirbheek Chauhan 2993eaf884 docs: Update gnome.gdbus-codegen docs 2018-04-20 18:24:18 +00:00
Xavier Claessens 9a82b0136a extract_all_objects: Add 'recursive' keyword argument
To maintain backward compatibility we cannot add recursive objects by
default. Print a warning when there are recursive objects to be pulled
and the argument is not set. After a while we'll do pull recursive
objects by default.
2018-04-18 14:54:52 -04:00
Filipe Brandenburger a98e9a1b70 Add release-notes snippet for install_umask 2018-04-18 11:44:54 -07:00
Jussi Pakkanen 628f910760
Merge pull request #3314 from sarum9in/test_depends
Add test(depends) keyword parameter
2018-04-18 00:40:52 +03:00
Dylan Baker 92487ea33d Add partial_dependency method to dependencies
This adds a new method, partial_dependency to all dependencies. These
sub dependencies are copies of the original dependency, but with one or
more of the attributes replaced with an empty list. This allows creating
a sub dependency that has only cflags or drops link_arguments, for
example.
2018-04-17 23:33:31 +03:00
Jussi Pakkanen 1952ef5ae1
Merge pull request #3243 from dcbaker/accept-d-setup
Accept -D for meson level options durring initial configuration
2018-04-17 23:29:15 +03:00
Jussi Pakkanen 8ee1e49ae6
Merge pull request #3353 from xclaesse/has-link-argument
Add has_link_argument() and friends
2018-04-17 23:26:53 +03:00
Jussi Pakkanen 3fc1ca8687
Merge pull request #3240 from MathieuDuponchelle/python_module
Implement a generic python module
2018-04-17 23:17:43 +03:00
Jussi Pakkanen 88ca3805e7
Merge pull request #1852 from QuLogic/openmp
Add an OpenMP dependency.
2018-04-17 21:39:13 +03:00
Dylan Baker 1c48cc08e0 mconf: accept -- options like `meson` does
I'm not really happy about this to be honest, I don't like having both
-- and -D options, I think it's stupid to have two ways to do exactly
the same thing, especially since we then have to validate that someone
hasn't passed the argument both ways.

However, other people want this, so here it is.

Fixes #969
2018-04-17 11:32:26 -07:00
Dylan Baker 78e37c4953 Accept builtin options with -D when making initial meson call
Currently meson only accepts `-Dopt=value` for builtin options when
calling `meson configure` and `--opt=value` for builtin options when
calling `meson` initially. This is a confusing behavior, and users only
get a small warning at the top of a potentially long configuration
summary to catch this.

This has confused end users and developers alike, there are at least 5
duplicates of the bug this fixes, and I have personally been asked about
this more times than I can count. The help documentation doesn't make
it clear that -D cannot be used to set options like prefix and bindir.

This adds support for -D options to the initial meson call, but not --
options to the meson configure call. I think it's better to have one way
to do things, and -- options are kinda one off while -D is used
everywhere else, so lets stick with that.

Related #969
2018-04-17 11:32:26 -07:00
Niklas Claesson b42dd7df0a Add release snippet 2018-04-17 09:55:34 +00:00
Tim 'mithro' Ansell 36aab0f4b2 Complete python escape sequences aware strings
Fixes #3169
2018-04-17 09:55:34 +00:00
Elliott Sales de Andrade 46ccbe48e7 Add release note for OpenMP dependency. 2018-04-17 02:04:39 -04:00
Xavier Claessens bd37afeeea Add has_link_argument() and friends
Closes: #3335.
2018-04-16 19:14:02 -04:00
Aleksey Filippov a64d16c6bb Add build snippet for non-unique-target-names feature 2018-04-16 23:18:26 +01:00
Jussi Pakkanen c58dd64f8e Merged Arm CC support. 2018-04-16 23:02:09 +03:00
Jussi Pakkanen 0e00470d8c
Merge pull request #3218 from mesonbuild/findoverrider
Make it possible to override find_program [skip ci]
2018-04-16 22:22:02 +03:00
Marvin Scholz eadaf92794 Docs: Mention important macOS caveat about function detection [ci skip] 2018-04-16 02:36:53 +00:00
Jussi Pakkanen 86f725c1e5
Merge pull request #3115 from makise-homura/e2k-lcc-support
Support lcc compiler for e2k (Elbrus) architecture
2018-04-15 17:18:44 +03:00
Nirbheek Chauhan 0e6a332d0c Document that override_find_program works on configure_file [skip ci]
Also link to the release notes snippet from the Reference manual
2018-04-15 13:32:38 +05:30
Jussi Pakkanen f489aa77e5 Added documentation [skip ci] 2018-04-15 13:32:38 +05:30
Martin Hostettler 3f7c6cf3d6 Improve generation of pkg-config files for static only libraries.
Previously pkg-config files generated by the pkgconfig modules for static libraries
with dependencies could only be used in a dependencies with `static: true`.

This was caused by the dependencies only appearing in Libs.private even
if they are needed in the default linking mode. But a user of a
dependency should not have to know if the default linking mode is static
or dynamic; A dependency('somelib') call should always pull in all
needed pieces into the build.

Now for meson build static libraries passed via `libraries` to the generate
method automatically promote dependencies to public.
2018-04-14 23:43:29 +03:00
Jussi Pakkanen 2a70327f1d
Merge pull request #2930 from inigomartinez/gdbus-targets
gnome: Split header and code targets in gdbus_codegen()
2018-04-14 22:35:01 +03:00
Alberto Sartori 717f7db67e improve suite of meson test (#3369) 2018-04-14 22:17:02 +03:00
TingPing c04862e24c
docs: Fix syntax highlighting in release notes 2018-04-12 09:10:10 -04:00
Jussi Pakkanen b1c086b24d Explain the choice of implementation language. [skip ci] 2018-04-12 00:09:40 +03:00
Nirbheek Chauhan 487526bfff Trivial update to meson vim syntax + typo in snippet [skip ci] 2018-04-11 22:07:11 +05:30
Nirbheek Chauhan d7b401f7d7 gdbus_codegen: Return 2 targets when docbook is disabled
Also document this behaviour, test it, and fix the return value from
the module -- we create one target and return it thrice to the build
file
2018-04-11 21:30:47 +05:30
Iñigo Martínez 351b59f03a gnome: Split header and code targets in gdbus_codegen()
The development version of `glib` (2.55.2) has acquired support for
generating gdbus header and source code files separately. This
allows dependencies to be more fine grained on those targets
depending only on the header.
2018-04-11 17:22:12 +02:00
Mathieu Duponchelle 99f324eda1 [fixup]: Fix snippets heading 2018-04-10 00:39:25 +02:00
Mathieu Duponchelle 56fc22075c [fixup]: write documentation 2018-04-09 15:46:06 +02: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 d6e71d0c56
Merge pull request #3312 from MathieuDuponchelle/alwaysfallback
new wrap-mode: forcefallback
2018-04-08 01:08:51 +03:00
Aleksey Filippov 52eb5b195e Remove commit_zero recommendation from wrap documentation, use action commit [skip ci] 2018-04-07 12:51:36 +03: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
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
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
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
John Ericson 0325d58863 docs: Expand on compiler vs compilee build host and target (#3308) [skip ci] 2018-03-29 22:31:41 +03:00
makise-homura 0bea50816b Removed non-latin characters from lcc snippet
It is supposed that it may become source of failures
while passing AppVeyor tests.
2018-03-29 21:55:48 +03:00
behlec 37d379ebe5 Allow meson build file to exit early. (#2808) 2018-03-29 21:29:45 +03:00
Xavier Claessens b4aee4675a pkgconfig: Add a simple version of the generator (#3284) 2018-03-29 01:19:42 +03:00
makise-homura 7c1132b681 Added lcc support release snippet 2018-03-28 21:58:06 +03:00
makise-homura 72f477748f [skip ci] Added lcc and e2k CPU to reference tables 2018-03-28 20:55:11 +03:00
Somasekhar Penugonda e62b8109eb Updates to CPP support and update review changes 2018-03-27 17:04:26 -05:00
Aleksey Filippov 780d301c1c Add test(depends) documentation 2018-03-25 01:33:33 +00:00
Alistair Thomas 3b9f4098ef docs: In executable() remove statement that all other files are ignored [skip ci]
Currently Meson returns an error that no compiler can be found
for an unknown file extension
2018-03-23 21:09:32 +02:00
Alistair Thomas 47f71d1a41 docs: Update test() to include that a program found with find_program() can be used [skip ci] 2018-03-23 21:09:32 +02:00
John Ericson 1a8bc77f53 docs: fix one 'target' that should be 'host' [skip ci]
The target platform of cross compiler is the host platform of the project being built.
2018-03-23 21:08:11 +02:00
Eric Engestrom 13fa1fb74f docs/FAQ: fix typo [skip ci] 2018-03-23 06:41:17 -07:00
Jussi Pakkanen 150351cfdd Document the new and improved review guidelines. [skip ci] 2018-03-22 01:05:25 +02:00
Jussi Pakkanen 30827b5644 Do not install configure_file output if install_dir is empty. Closes #3270. 2018-03-21 21:25:47 +02:00
Marvin Scholz 1c8d4bf05b Docs: Correct env variable SCAN_BUILD to SCANBUILD 2018-03-20 22:28:07 +02:00
Jussi Pakkanen 657836b555
Merge pull request #3223 from sarum9in/rename
Add install_data() rename parameter
2018-03-20 00:15:01 +02:00
Aleksey Filippov 5f81d36207 Add install_data() rename snippet 2018-03-19 22:13:41 +00:00
Aleksey Filippov d63fff06d9 Add install_data() rename documentation 2018-03-19 22:13:34 +00:00
Felipe Corrêa da Silva Sanches 50c66f1f5c fixing some typos on the icestorm page 2018-03-19 10:49:02 +00:00
Martin Hostettler b89309df64 Project-templates.md: Fix help command name [skip ci] 2018-03-18 20:29:00 +02:00
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
Aleksey Filippov 8baaa7b866 Add python3 dependency documentation and link it from python3 module
Closes #3009
2018-02-18 13:50:33 +02:00
David Fort 8c12c2acc3 doc: fix typo in icestorm documentation 2018-02-17 13:32:46 +02:00
Jussi Pakkanen 6d7a8a0ea4
Merge pull request #2999 from peteruithoven/patch-1
Localisation documentation alternative
2018-02-16 00:11:39 +02:00
Martin Ejdestig b06a4901cb Document how to set options in subprojects 2018-02-16 00:08:28 +02:00
Jussi Pakkanen 2c18e4eb25 Updated docs to do "meson wrap" instead of "wraptool". 2018-02-15 23:41:57 +02:00
Jon Turney 2a64ed855e Verify that failing tests are failing with an error, not a python exception
PR #2527 suggests "making failing tests more strict about failing
gracefully".

To achive this, make meson exit with distinct exit statuses for meson errors
and python exceptions, and check the exit status is as expected for failing
tests.

I can't see how to write a test for this, within the current framework.

You can test this change by reverting the fix (but not the test) from commit
1a159db8 and verifying that 'test cases/failing/66 string as link target'
fails.
2018-02-15 12:51:24 +00:00
Amit D abd6db24f9 Update Users.md (#3063) 2018-02-14 20:14:15 +02:00
Daniel Foré a99ae81043 Add an example for gresource 2018-02-13 21:26:43 +02:00
Amit D 74306a9301 Update Users.md 2018-02-13 21:18:59 +02:00
Jussi Pakkanen c4892fb386 Space fix. 2018-02-12 22:32:39 +02:00
Jussi Pakkanen 262eeb7e9e Clarify that int options are available since 0.45.0. 2018-02-12 21:36:03 +02:00
Amit D e0ec5491a0 Update Users.md (#3050) 2018-02-12 21:42:43 +05:30
Andrea G 030c39f33e Use the same name for the conf_data variable
Before, each example used a different variable name making them more difficult to understand for a novice.
2018-02-12 19:48:57 +05:30
Andrea G d589cc26c7 Add missing closed parenthesis 2018-02-12 19:48:30 +05:30
Andrea G bfc18017f1 Add missing code block 2018-02-12 19:48:09 +05:30
Amit D 32ff169880 Update Users.md 2018-02-11 22:09:32 +05:30
Sami Kerola 70a7cf30a1 Re-link remaining github wiki urls to mesonbuild.com site 2018-02-11 13:39:46 +02:00
Jon Turney 0774f319e8 Don't use --export-dynamic on Cygwin
After PR #2662, running test case common/125 shared module/ on Cygwin gets
me:

$ ninja -C _build
ninja: Entering directory `_build'
[7/7] Linking target prog.exe.
/usr/lib/gcc/x86_64-pc-cygwin/6.4.0/../../../../x86_64-pc-cygwin/bin/ld: warning: --export-dynamic is not supported for PE+ targets, did you mean --export-all-symbols?

Also, fix doc for correct version of first apperance.

Future work: Notwithstanding the hint that ld gives, these options are not
equivalent, and it's not clear we should be using it here:
--export-all-symbols is the default behaviour, and if the exports are
restricted by explicit annotations or a .def file, this option might be
overriding that...
2018-02-08 23:51:06 +02:00
Martin Dagarin a9654c8533 Fixed typo
Fixed typo in section Other install commands, typo was in extension of data file
2018-02-08 23:50:19 +02:00
Amit D aaee113ee2 Update Users.md 2018-02-08 23:49:51 +02:00
Jon Turney 7bfcf68777 Add get_pkgconfig_variable(default:)
Also use that to squelch the warning for internal uses which handle the
variable missing case (just gnome at the moment)

A follow up to PR #2914
2018-02-08 00:35:38 +02:00
Amit D 2b0973acd9 Add wlroots to Users.md 2018-02-08 00:34:28 +02:00
Jussi Pakkanen 0cc90ae234 Add style guide documentation. 2018-02-08 00:33:44 +02:00
Jussi Pakkanen 54d7817087 User options can "yield to" a user option of the same name in superproject. Closes ##2853. 2018-02-08 00:33:44 +02:00
Peter Uithoven 587aa3a8cd
Add GETTEXT_PACKAGE as project argument 2018-02-07 21:39:24 +01:00
Jussi Pakkanen 0204895143 Expose integer options to build option files. 2018-02-07 22:10:04 +02:00
Jussi Pakkanen 66b14e20cc
Merge pull request #3010 from sarum9in/elide_directory
Add strip_directory keyword for install_subdir() function
2018-02-05 22:34:09 +02:00
Jussi Pakkanen a288b524bc Add support for hex int literals. 2018-02-05 22:33:48 +02:00
Aleksey Filippov f5917d261c Use text keyword for directory example code blocks 2018-02-05 01:28:07 +00:00
Aleksey Filippov 65afa967d0 Add strip_directory=true example for multi-component path 2018-02-05 01:28:07 +00:00
Aleksey Filippov 79d8f2adbf Fix misprint in strip_directory example 2018-02-05 01:28:07 +00:00
Aleksey Filippov 13f91840e3 Clarify multi-component source directory behavior of install_subdir() 2018-02-05 01:28:07 +00:00
Aleksey Filippov 549f9a41e5 Rename install_subdir() option elide_directory to strip_directory 2018-02-05 01:28:07 +00:00
Aleksey Filippov 8ca3cc0c3d Add elide_directory keyword for install_subdir() function
If elide_directory=true install_subdir() installs directory contents
instead of directory itself, eliding name of the source directory.

Closes #2869.
2018-02-05 01:28:07 +00:00
Jussi Pakkanen 4637cf4e95 Fix run target documentation. Closes #1793. 2018-02-04 19:06:02 +02:00
Jussi Pakkanen bfa6c8d074
Merge pull request #2938 from acfoltzer/rust-cross-merge
Add cross-compilation support for `rustc`
2018-02-04 00:44:09 +02:00
Jussi Pakkanen f25070ec08
Merge pull request #2228 from mesonbuild/icestorm
IceStorm FPGA experiment
2018-02-02 23:54:12 +02:00
Jussi Pakkanen d59d371d77 Added dpdk to the list of users. 2018-02-02 20:56:09 +02:00
Jussi Pakkanen 80ac62c1a5 Added documentation to IceStorm module. 2018-02-02 20:30:14 +02:00
Jussi Pakkanen 0025cb03d2 Updated the video page. 2018-02-02 17:05:12 +02:00
Martin Kelly 36aca4cd3c add meson.project_license() builtin
This Fixes #2941.
2018-01-31 23:54:28 +02:00
Jussi Pakkanen b62d670fb2 Add PipeWire to the list of users. Closes #2986. 2018-01-31 23:50:22 +02:00
Adam Jackson 64ed9656f0 docs: Fix some HTML that leaked into the markdown
Signed-off-by: Adam Jackson <ajax@redhat.com>
2018-01-31 20:59:00 +02:00
Peter Uithoven 517e4369bb
Localisation documentation alternative
I had trouble figuring this out in a new project without the pot and po files. Seemed like there was a build in method to generate those. I understand that I might have made a few controversial choices like using a `LINGUAS` file and creating a sub `meson.build` file. I also don't fully understand why the `GETTEXT_PACKAGE` global wasn't mentioned.
2018-01-31 11:28:42 +01:00
Adam C. Foltzer 1d81efb03d Add cross-compilation support for `rustc`
This patch is largely modeled on the relatively-straightforward code
for Fortran cross-compilation, so there might be some intricacies
missing.
2018-01-29 15:47:05 -08:00
Sami Kerola 26b16e74a9 docs: Add 'outlier' to users
This is a very small hello world style project, that I hope is useful
example for people who are getting started with meson.
2018-01-30 06:47:50 +11:00
Dylan Baker bcc3cbb93e dependencies: Allow setting config-tool binaries in cross file
This allows for much easier cross compiler configuration for tools like
LLVM. This patch does honor the 'native' keyword, and falls back to
searching PATH if the binary name is not specified.

I'd be fine with either removing the fallback behavior, or marking it as
deprecated and removing it later.

Fixes #2921
2018-01-30 06:45:58 +11:00
Andrei Alexeyev 5d68681c62 Taisei Project uses Meson 2018-01-30 06:27:05 +11:00
xknight 7049958de9 Fix typo in reference tables
The possessive form of "its" does not contain an apostrophe.
2018-01-27 19:52:34 +00:00
Stefan Seering 42554d5666 Typo. 2018-01-22 00:02:24 +02:00
Edward Betts bdfcecd2c6 Correct spelling mistakes. 2018-01-19 15:53:00 +02:00
Dylan Baker eec8721227 docs: Add Mesa, Libdrm, and IGT as meson users 2018-01-18 20:33:32 +02:00
Jussi Pakkanen 59d0434039 Removed two deprecations from 2016. 2018-01-17 22:12:43 +02:00
Raphael Salamon b06b8c6452 docs: Document the `main` keyword of the `gtest` framework dependency 2018-01-17 21:00:45 +02:00
Jussi Pakkanen 6c2d40ac28 Move version info away from header. 2018-01-14 20:45:37 +02:00
Jussi Pakkanen a5b2b90309
Merge pull request #2815 from taisei-project/fix_windows_compile_resources
[windows] make compile_resources use custom targets instead of generators
2018-01-13 19:38:48 +02:00
Jussi Pakkanen d6bed2a77d
Merge pull request #2764 from mesonbuild/generatorpath
Generator outputs can have path segments
2018-01-13 19:00:38 +02:00
Andrei Alexeyev fd4236085b
Add a release note snippet for the windows.compile_resources() change 2018-01-12 23:52:25 +02:00
Jussi Pakkanen dfd368d405
Merge pull request #2803 from dcbaker/wip/freebsd-fixes
various BSD fixes
2018-01-09 22:08:00 +02:00
Nikita Churaev de8018a17d Add `export_dynamic` argument to `executable`. (#2662) 2018-01-09 21:36:13 +02:00
Dylan Baker 3b8e65911c docs: Add netbsd to the reference table 2018-01-06 13:49:34 -08:00
Dylan Baker 1723a91af3 docs: Add dragonfly BSD to OS reference table 2018-01-06 13:49:34 -08:00
Dylan Baker 4d8552ef55 docs: Add freebsd to the reference table 2018-01-06 13:49:34 -08:00
Igor Gnatenko 711c3a28ba doc/users: add ksh 2018-01-06 14:40:01 +02:00
Shlomi Fish 2ffdf48356 Add a missing space. 2018-01-02 20:29:32 +02:00
Shlomi Fish 468260504e Correct some grammar. 2018-01-02 20:29:32 +02:00
Nirbheek Chauhan 2d08c190d0 docs: get_option returns relative paths for xxxdir options
[skip ci]
2018-01-02 19:01:34 +05:30
Jussi Pakkanen 4a189cf8c5 Add unit test that checks that the sample projects compile. 2017-12-31 23:24:29 +02:00
Jussi Pakkanen 82c8550fb6 Added documentation for project templates. 2017-12-31 23:18:08 +02:00
Jussi Pakkanen dd3f49af0d
Merge pull request #2757 from xclaesse/pkgconfig
pkgconfig: Allow passing Dependency objects to library(_private)
2017-12-31 19:11:57 +02:00
Gabríel Arthúr Pétursson 2c1b45b2b2 Release notes for 0.43 are no longer preliminary 2017-12-29 23:53:47 +00:00
TingPing ff81db83af
docs: Fix missing syntax highlighting 2017-12-28 07:08:24 -05:00
Nirbheek Chauhan de3feb9625
docs: find_program native: is available since 0.43 2017-12-28 04:27:38 +05:30
Jussi Pakkanen 7fc46a3d06 Explain test setup a bit more. 2017-12-26 13:35:20 +02:00
Jussi Pakkanen ac8d6087bf
Merge pull request #2334 from mesonbuild/promotedep
Add functionality to promote nested dependencies to top level.
2017-12-26 13:24:30 +02:00
Jussi Pakkanen a5507404ab Reformat and update doc page. 2017-12-26 13:11:57 +02:00
Passw caf151afb9 add one more blank line at the tail of Disabler.md
From http://mesonbuild.com/Manual.html , it seems that `Disabler.md` messes up `Modules.md`
2017-12-26 13:09:40 +02:00
Xavier Claessens f9c9e80d4a pkgconfig: Update documentation 2017-12-20 19:09:08 -05:00
Jussi Pakkanen b437977a60 Created documentation page for code contributions. 2017-12-20 21:05:42 +02:00
Jussi Pakkanen 34c03719a3 Added documentation. 2017-12-18 21:10:14 +02:00
Jussi Pakkanen 46c071ea5c Add functionality to promote nested dependencies to top level. 2017-12-17 21:17:13 +02:00
Hemmo Nieminen d232a80e90 Allow value 'if-release' for b_ndebug project option. (#1896)
When set, NDEBUG will be automatically defined for for release builds but
not for other build types.
2017-12-17 21:06:06 +02:00
Shawn Landden 202b2fedf3 make clickable 2017-12-17 13:27:21 +02:00
Shawn Landden 44415ab61e Update Users.md
now only build system of systemd
2017-12-16 12:51:27 +02:00
Michael James Gratton 93c988b453 Enable re-compilation of GNOME gschema files if they have changed.
* mesonbuild/modules/gnome.py (GnomeModule.compile_schemas): Allow the
  depend_files kwarg.

* docs/markdown/Gnome-module.md: Add docs for new kwarg (and the only
  other one that is permitted).
2017-12-13 21:31:32 +02:00
Michael James Gratton 1a50fe45e8 Add Geary to the list of users - will use meson for the next release. 2017-12-13 21:29:39 +02:00
Iñigo Martínez cc952b055a docs: Change variable in pkg-config example
The example provided for the `get_pkgconfig_variable` when using using the `define_variable` parameter is not the best example, because it is using `prefix` for both. This changes the retrieved variable for `libdir` so the efect of the variable redefinition is more noticeable.
2017-12-12 18:33:04 +00:00
Iñigo Martínez 514d21e6a4 docs: Add documentation to dependency variables
Meson is able to redefine variables when retrieving them from
 `pkg-config` dependencies. However, the documentation is missing.

This patch adds documentation for this feature.
2017-12-12 18:33:04 +00:00
Jussi Pakkanen 04d5d017c5 Fix documentation on disabler behaviour with short circuiting. 2017-12-11 22:21:39 +02:00
Jussi Pakkanen e674434389 Updated version number for new release. 2017-12-10 17:56:27 +02:00
Jussi Pakkanen cbefb57ffe
Merge pull request #2745 from dcbaker/submit/haiku
small fixes for haiku
2017-12-10 14:42:53 +02:00
Ernestas Kulik 7ae5716f67 Touch up install_dir() documentation
It no longer removes the target tree before copying files.
2017-12-09 01:52:33 +02:00
Jon Turney 8d795a8403 Fix typo in release note snippet for get_unquoted
Grammar is still a bit fractured, but I'm not entirely sure what it's trying to say.
2017-12-09 01:51:29 +02:00
Dylan Baker 75bc95bd66 docs: Add haiku to reference table 2017-12-07 09:35:12 -08:00