Commit Graph

738 Commits

Author SHA1 Message Date
Jussi Pakkanen 6d03111638 Minor fixes. 2017-12-03 23:32:48 +02:00
Jussi Pakkanen f8a419b27d String arguments can permit arbitrary string values
by leaving out the choices keyword.
2017-12-03 22:27:55 +02:00
Jussi Pakkanen aa6b576256 Reformatted and fixed running doc. 2017-12-02 19:55:44 +02:00
Jussi Pakkanen 793fc002fa
Merge pull request #2390 from dcbaker/submit/options-list
Add an array type to user options
2017-12-02 19:54:27 +02:00
Dylan Baker 6f25e93b52 cross: Implement support for loading cross files from system paths
One thing that makes cross compiling with meson a pain is the need for
cross files. The problem is not with cross files themselves (they're
actually rather brilliant in that they allow for a much greater deal of
flexibility than autotools hardcoded paths approach) but that each user
needs to reimplement them themselves, when for most people what they
really want is a cross file that could be provided by their distro, all
they really want is the correct toolchain.

This patch is the first stop to making it easier for distros to ship
their own cross files (and for users to put their's somewhere safe so
they don't get `git clean`ed. It allows the cross files (on Linux and
*BSD) to be stored in home and system paths (~/.config/meson/cross,
/usr/share/meson/cross, and /usr/local/share/meson/cross), and to be
loaded by simply by specificying --cross-file.

With this patch meson will check the locations its always checked first,
(is cross file absolute, or is it relative to $PWD), then will check
~/.config/meson/cross, /usr/local/share/meson/cross,
/usr/share/meson/cross, (or $XDG_CONFIG_PATH and $XDG_DATA_DIRS) for the
files, raising an exception if it cannot find the specified cross file.

Fixes #2283
2017-11-30 22:34:27 +02:00
Dylan Baker c9351ce30c Add new array type option
This exposes the already existing UserStringArrayOption class through
the meson_options.txt. The intention is to provide a way for projects to
take list/array type arguments and validate that all of the elements in
that array are valid without using complex looping constructrs.
2017-11-29 14:14:41 -08:00
Jussi Pakkanen 5208e6524c
Merge pull request #2701 from dcbaker/submit/better-llvm-docs
Minor LLVM dependency cleanups for the next release
2017-11-29 22:00:49 +02:00
Zbigniew Jędrzejewski-Szmek 01ab4acf7f docs: note when warning() was added
Followup for 1540e615f1.
2017-11-29 21:13:49 +02:00
Dylan Baker 549e5928fb docs: Add better documentation of the LLVM dependency 2017-11-28 17:34:48 -08:00
Jussi Pakkanen 746e70c0da
Merge pull request #2512 from dcbaker/wip/config-tool-variables
Add method to get values from config tool based dependency
2017-11-28 22:01:00 +02:00
Jussi Pakkanen 5bc1009109 Add if_found kwarg to subdir(). 2017-11-27 23:22:47 +02:00
Jussi Pakkanen 11f1fc913d
Merge pull request #2690 from jsoref/spelling
Spelling
2017-11-27 01:36:43 +02:00
Josh Soref 9775e2b40d useless: youtu.be reference 2017-11-26 17:30:17 +00:00
Jussi Pakkanen f70760a510 Use new style dependencies in subproject documentation. 2017-11-26 17:58:21 +02:00
Jussi Pakkanen 2dab7c37df
Merge pull request #2676 from jeandet/add_qt_translations
Add qt translations
2017-11-26 17:12:47 +02:00
Josh Soref 7d1a1fd5b0 spelling: programming 2017-11-26 05:57:58 +00:00
Dylan Baker a52c22dc06 docs: add documentation for config_tool variable method 2017-11-23 20:06:23 -08:00
Dylan Baker e95628306d docs: consolidate config-tool based dependencies
There are currently entries for cups and pcap; but not LLVM, GnuStep, or
WxWidgets. Instead of having an entry for each of these just have a
single entry for all of them, since the majority of the information is
duplicated between them anyway.
2017-11-23 20:06:23 -08:00
Alexis Jeandet 5462e65c44 [Qt module] Updated Dokerfile, added since 0.44 mention in doc
Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>
2017-11-23 21:20:45 +01:00
Alexis Jeandet 5c5eac3571 [Qt module] Added translation files compilation method
- Added a new compile_translations method since preprocess was already quite
full and translations compilation is quite different from ui, qrc, cpp files
preprocessing.
- Updated translation.
- Updated test case.

Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>
2017-11-23 07:09:07 +01:00
Jussi Pakkanen f9e88cd37e Added release note mention of embedded Python in MSI packages. 2017-11-21 23:29:06 +02:00
Jon Turney 34d1d45094 docs: Add 'cygwin' to reference table for .system()
This aligns this table with the set of values tested for by test case
common/140
2017-11-19 18:18:29 +02:00
Christoph Behle c653936700 Documentation: Add note about SCAN_BUILD
When running ninja scan-build you can use the environment variable
SCAN_BUILD to choose the right executable.
2017-11-19 18:17:31 +02:00
Jussi Pakkanen 708cdea861 Appveyor example now validates. Closes #2641. 2017-11-19 18:17:02 +02:00
Lucas Werkmeister 5d9c72630a Fix literal backslash syntax
In CommonMark, there are no backslash escapes in code spans, so only two backslashes in the source document are necessary to produce two backslashes in the output document.
2017-11-19 18:16:35 +02:00
Joergen Ibsen 6d85e10df9 docs: fix description of default_options
For dependency() and subproject(), the default_options argument can
override the defaults in the subproject's meson_options.txt, not in
its project() invocation.

Resolves #2612
2017-11-13 22:55:45 +02:00
Jussi Pakkanen 49eb33ff55
Merge pull request #2000 from t-chaik/tchaik/wip/get-unquoted
config data: add .get_unquoted() convenience method to get quoted string unquoted
2017-11-13 22:54:39 +02:00
Jussi Pakkanen 69bd87a716
Merge pull request #2511 from jon-turney/prefix-dependent-defaults
Make sysconfdir, localstatedir and sharedstatedir defaults depend on prefix
2017-11-13 21:14:59 +02:00
TingPing 9b36e2d509
docs: Remove extra whitespace from i18n 2017-11-13 13:00:49 -05:00
Jussi Pakkanen d2aa2f569b Cleanupping. 2017-11-11 20:12:43 +02:00
Jussi Pakkanen 416a6fc235
Merge pull request #2444 from dcbaker/llvm
LLVM: Fix dynamic vs statically linking.
2017-11-08 21:16:50 +02:00
Jussi Pakkanen 8d6e3cad1b Add description on how to use external and internal dependencies interchangeably. 2017-11-08 21:10:17 +02:00
Joergen Ibsen 68604a4855 docs: fix use of deps 2017-11-07 23:55:15 +02:00
David Pérez-Suárez c647db96d5 Small changes for syntax hightlight 2017-11-06 20:55:46 +02:00
Jussi Pakkanen cde0f4fca1
Merge pull request #2562 from 1ace/fix/mesontest
Remove references to `mesontest`
2017-10-31 22:17:47 +02:00
Paulo Antonio Alvarez 1540e615f1 interpreter: Add warning function 2017-10-31 22:17:01 +02:00
Eric Engestrom b690c26aa2 docs: remove references to `mesontest`
`mesontest` is deprecated, and shouldn't be suggested to users anymore.
2017-10-31 10:10:57 +00:00
Félix Piédallu bb84c1d109 Add LibWmf as a specified dependency, and associated tests. 2017-10-31 01:05:46 +02:00
Jussi Pakkanen 68af8449d8
Merge pull request #2529 from leiflm/qt5-add-moc-extra-arguments-keyword
Qt5-Module: Add `moc_extra_arguments` keyword support.
2017-10-29 22:40:28 +02:00
Jon Turney 24549dbed5 Make sysconfdir, localstatedir and sharedstatedir defaults depend on prefix
Rather than requiring a bit of boilerplate in every meson.build, which is
only documented in a comment in mesoncore.py, use sensible defaults for
sysconfdir, localstatedir and sharedstatedir depending on the prefix.

Fixes #1637

v2:
For clarity, give get_builtin_option_default() a noneIfSuppress argument,
rather than overloading prefix '' and None with special meanings.
2017-10-28 23:27:36 +01:00
Leif Middelschulte a2478d4dab documentation: adds new keyword usage to the given example. 2017-10-27 08:46:25 +02:00
Leif Middelschulte f720e590b1 adds "since"-note for the new keyword to the documentation 2017-10-27 08:43:26 +02:00
Leif Middelschulte a46d05acf9 updates the documentation to follow the list-style to explain arguments.
As per to @jon-turney's and @jpakanne's suggestion [0], this commit
changes the "prosa" documentation to a list-style one.

[0] https://github.com/mesonbuild/meson/pull/2529#pullrequestreview-72265697
2017-10-27 08:38:15 +02:00
Mike Gilbert 426b258d91 docs: add pkgconfig to cross file example 2017-10-26 22:26:57 +03:00
Leif Middelschulte 050a56ad47 Qt5-Module: Add `moc_extra_arguments` keyword support.
This commit adds support for an additional `moc_extra_arguments` keyword.
It becomes especially handy, when `moc`-ed sources conditionally provide
`slots`, depending on compile time macros (i.e. defines).
2017-10-25 21:09:16 +02:00
Dylan Baker 9a43cb367a docs: Add a snippet for LLVM static linking support 2017-10-25 10:14:46 -07:00
Jay Sherby a3da9f77c4 Fix inconsistent header levels 2017-10-24 23:01:11 +03:00
Luis Menina 3dcc562e6d docs: Fix date being interpreted as an ordered list item 2017-10-24 22:59:56 +03:00
Kevin Anderson 562c50f229 Update references from mesonconf to meson configure
Fixes #2372
2017-10-23 18:43:39 +02:00
Luis Menina 92866d8d5f docs: Remove unnecessary trailing whitespaces 2017-10-23 18:43:04 +02:00
Luis Menina 36eb7bf0aa docs: Markdown headers don't need trailing hash signs
This is a cosmetic change because github seems to interpret those
correctly. Nonetheless, it adds unnecessary noise and makes people
modifying the pages think it might be needed.

See syntax guide at https://guides.github.com/features/mastering-markdown/
2017-10-23 18:43:04 +02:00
Luis Menina be36b05544 docs: Fix markdown in 'design rationale' page 2017-10-23 18:43:04 +02:00
Jonas Platte e43332318b Fix invalid example in Syntax.md 2017-10-23 18:42:16 +02:00
Jussi Pakkanen 3f18e3b89f Arguments, not flags. 2017-10-13 19:03:04 +03:00
Carlos Garcés f1c410fc98 Link to MesonPorting is not rendered as URL 2017-10-12 20:54:05 +03:00
Jon Turney 79b850dfcb Typo and grammar fixes for 0.43.0 release note 2017-10-11 00:09:46 +03:00
TingPing b5eb77ddff docs: Improve code snippets in release notes 2017-10-08 17:58:23 -04:00
Jussi Pakkanen b4fa4e37b9 Added release note page for 0.44. 2017-10-08 23:50:21 +03:00
Jussi Pakkanen 683947d943 Collated release note snippets to main file. 2017-10-08 22:36:06 +03:00
Rico Tzschichholz 8b8e1ee620 gnome: g-ir-scanner accepts multiple symbol-prefix arguments 2017-10-08 14:04:34 +03:00
TingPing fd774fcb43 docs: Use consistent whitespace for gnome kwargs 2017-10-05 12:11:03 -04:00
David Strauss 52a4f19832 Update to not use deprecated mesonconf 2017-10-04 21:52:23 +03:00
Nirbheek Chauhan 0c3d58baba Update Reference-manual.md 2017-10-03 06:57:46 +00:00
Nirbheek Chauhan f10b15930b Update Reference-manual.md
Fix documentation breakage from https://github.com/mesonbuild/meson/pull/2415
2017-10-03 05:49:24 +00:00
xarkes a28db4577a Fix typo and clarify library documentation 2017-10-03 01:15:30 +03:00
Jussi Pakkanen 9483875798 Merge pull request #2397 from mesonbuild/prebuilt
Better support for prebuilt shared libs
2017-10-02 19:09:08 +03:00
Mohammed Sadiq 35313c2a85 docs: Fix typo
Remove the quote before parens
2017-10-02 12:26:20 +01:00
Jussi Pakkanen ec45c29c9d Add rpath entries for all found libraries outside of system libraries. 2017-10-02 01:30:30 +03:00
Jussi Pakkanen cb3d980a1f Merge pull request #2282 from NickeZ/improve-boost
Improve boost
2017-10-02 00:09:04 +03:00
Patrick Griffis 893d101fff gnome: Add header kwarg to generate_gir()
This is a commonly used flag so lets make it more obvious.
2017-10-01 20:15:21 +03:00
Alexis Jeandet a9258923fa Added include directory argument for Qt's Moc which is needed to build plugins.
Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>
2017-10-01 20:12:25 +03:00
Niklas Claesson bbdba876af Boost: Improve search algorithm
The new implementation will correctly pick boost from 3 possible
locations on windows and two locations on posix compatible OSs.

The new search algorithm also differentiates between debug and
release builds of Boost and multi or single threading builds.

It was also decided to map "Meson modules" to Boost software libraries
and not Boost modules since it there are a lot of options regarding
linking. Some modules can even be used either as headers-only or with
dynamic linking.

This commit also fixes a bug that prevented header-only use on Windows.

Fixes: #2274 #2239 #1803 #669
2017-10-01 18:49:27 +02:00
Jussi Pakkanen 7d49d1d2d7 Merge pull request #2373 from leiflm/svn-wraps
introduce svn wrap support
2017-10-01 01:21:12 +03:00
Jussi Pakkanen b3362e350a Added release note snippet for prebuilt shared libs. 2017-09-30 18:25:33 +03:00
Niklas Claesson 68275b32e8 Implement capture for generators 2017-09-29 23:29:44 +03:00
Reverend Homer fd339759f2 fix typo? 2017-09-29 20:18:32 +03:00
Dylan Baker dda5e8cadb Allow CustomTarget's to be indexed
This allows a CustomTarget to be indexed, and the resulting indexed
value (a CustomTargetIndex type), to be used as a source in other
targets. This will confer a dependency on the original target, but only
inserts the source file returning by index the original target's
outputs. This can allow a CustomTarget that creates both a header and a
code file to have it's outputs split, for example.

Fixes #1470
2017-09-27 22:01:24 +03:00
Nirbheek Chauhan 92318c7660 docs: get_supported_arguments was added in 0.43.0
Closes https://github.com/mesonbuild/meson/issues/2371

[noci]
2017-09-26 10:00:28 +00:00
Leif Middelschulte 667d5d2d9f introduce svn wrap support 2017-09-25 22:26:42 +02:00
Jussi Pakkanen bea6b1a6f6 Merge pull request #2187 from centricular/fix-pcap-dependency
Fix pcap dependency, str.strip() now takes an argument, add cc.get_return_value()
2017-09-22 22:04:18 +03:00
Jussi Pakkanen 2ab4b397a8 Merge pull request #2350 from tintou/master
Add 'install' keyword to the gettext macro
2017-09-22 21:30:08 +03:00
Johan Bjäreholt 102c1d09fe Replaced references to 'mesontest'
'mesontest' is deprecated and is now 'meson test'

Replaced all references to 'mesontest' with 'meson test' and added a note of the change in the bottom of the page
2017-09-22 21:29:20 +03:00
Johan Bjäreholt e129cf7278 Replaced references to 'mesonconf'
mesonconf is deprecated and all references of it has been replaced with 'meson configure'
2017-09-22 21:29:20 +03:00
Corentin Noël 34c6cccde2 Update i18n markdown page to add the new install parameter 2017-09-22 01:08:10 +02:00
Nirbheek Chauhan 751d59d952 Update Reference-manual.md
Add notes about not using full_path() unless absolutely necessary.
2017-09-20 21:05:50 +00:00
Nirbheek Chauhan 6c38b1f281 docs: Document the new str.strip() feature 2017-09-20 13:39:24 +05:30
Nirbheek Chauhan 140c463b01 Add detail to the command: kwarg of custom targets 2017-09-20 06:55:54 +00:00
Ola x Nilsson 307b69b69a Fix table in Compiler-properties
hotdoc requires a pipe character for the right edge
2017-09-19 21:45:40 +03:00
Jussi Pakkanen 076f3c53bd Merge pull request #2263 from ximion/dlang
d: Add an easy way to use D-specific features
2017-09-18 20:23:56 +03:00
tense-du 0b0448f8f2 Fix getting meson page (#2341)
* Replaced obsolete tt tag
2017-09-18 20:13:46 +03:00
tense-du bbda3c7adb Replaced obsolete tt tag 2017-09-18 18:41:16 +03:00
Jussi Pakkanen b9154dd07c Added a page for reference tables. 2017-09-18 18:28:10 +03:00
Matthias Klumpp c3c37fac38 docs: Document the D support 2017-09-17 21:36:23 +02:00
Martin Blanchard 26e731c7ca get-unquoted: Queue a release note entry mentioning the new method 2017-09-15 23:24:15 +02:00
Martin Blanchard 777cd24063 get-unquoted: Mention get_unquoted() in reference manual 2017-09-15 22:43:01 +02:00
tense-du a59175d1f3 Fix videos page (#2321)
* Removed duplicate title in doc theme.

* Removed stray lower than tag.

* Replaced obsolete frameborder attribute.
2017-09-15 11:34:47 +05:30
Jussi Pakkanen 7de61aac12 Clarify that MESONINTROSPECT may have multiple parts. 2017-09-12 21:20:29 +03:00
Iñigo Martínez 540c928e30 gnome: Docbook generation for gdbus_codegen()
Add new 'docbook' argument which generates Docbook documentation for
each D-Bus interface. The docbook argument will be used as prefix
in `PREFIX`-NAME.xml pattern, and NAME will be replaced by the D-Bus
interfaces.
2017-09-12 20:29:24 +03:00
Jussi Pakkanen 72a6683c6f Permit overriding find_program from the cross file. 2017-09-04 22:47:12 +03:00
Patrick Griffis 04b2c67b7d gnome.gdbus_codegen(): Add annotations keyword
Fixes #2123
2017-09-04 19:26:04 +03:00
Jan Niklas Hasse c9d97a58c5 --unity flag needs {on,off,subprojects} parameter 2017-09-04 18:49:56 +05:30
Patrick Griffis 2acf737b4b pkgconfig: Document url keyword
Closes #2272
2017-09-03 13:23:37 +03:00
Daniel Stone 552c15b978 Alphabetize compiler.compiles() 2017-08-31 20:24:21 +01:00
Daniel Stone e1ffae0580 Add Compiler.get_supported_arguments()
Add a helper for the common pattern of:
  args_to_use = []
  foreach arg : candidate_args
    if cc.has_argument(arg)
      args_to_use += arg
    endif
  endforeach

Replaced with:
  args_to_use = cc.get_supported_arguments(candidate_args)
2017-08-31 20:24:20 +01:00
Iñigo Martínez 35ef236c43 add support for cups dependencies (#2255)
* add support for cups dependencies

libcups has its own cups-config tool rather than using pkg-config.
This adds support for cups-config, based on pcap-config and
sdl2-config implementations.

This change also includes the unit test case and documentation for
cups dependency object implementation, and libcups2 dep to CI image.
2017-08-31 21:38:15 +03:00
Jussi Pakkanen a415fafe56 Rewrapped more files. 2017-08-26 23:41:53 +03:00
Jussi Pakkanen 90c7b5ea58 Rewrapped some markdown files. 2017-08-24 17:51:44 +03:00
Jussi Pakkanen f381284969 A full example for using the conf object. Closes #2235. 2017-08-22 23:08:44 +03:00
Jussi Pakkanen 3ff76f62a2 Clarify immutability description. Closes #2234. 2017-08-22 23:00:26 +03:00
Jussi Pakkanen 9b5a5c2e61 Wrapped and alphabetized the remaining modules. 2017-08-21 00:22:33 +03:00
Jussi Pakkanen 55dfe75fd7 Rewrapped and alphabetized the Gnome module. 2017-08-21 00:18:33 +03:00
Jussi Pakkanen f19ae54974 Rewrapped lines of a few more files. 2017-08-21 00:08:28 +03:00
Jussi Pakkanen 01effa7178 Rewrap the rest of reference manual. 2017-08-21 00:02:47 +03:00
Jussi Pakkanen bb67d64c8d The last of the alphabetization. 2017-08-20 23:58:54 +03:00
Jussi Pakkanen 04d87c7b5d And a few more alphas. 2017-08-20 23:39:40 +03:00
Jussi Pakkanen b7b66fe516 More alphabetization. 2017-08-20 23:32:06 +03:00
Jussi Pakkanen 2d575757d6 Put some keyword arguments into alphabetical order to improve readability. 2017-08-20 23:16:27 +03:00
David Seifert ece243d9ab Add warning about `sources` in declare_dependency 2017-08-19 21:32:20 +03:00
TingPing 8a636052bd docs: Clarify project() no longer requires a language 2017-08-19 14:31:47 -04:00
Mohammed Sadiq 747c3af52c docs: fix typo 2017-08-18 10:29:05 -04:00
Jussi Pakkanen 62aabb5a8b Missing version info added. 2017-08-17 15:28:59 +03:00
Jussi Pakkanen e76ed84677 Documented the merge_from method. 2017-08-17 15:25:05 +03:00
Nirbheek Chauhan e2cf999ad4 Users.md: link to the Meson Porting GNOME goal 2017-08-17 10:57:13 +00:00
Florian Zwoch 3fda1ba3ed docs: fix generator code sample 2017-08-17 00:21:42 +03:00
Konstantin Mochalov 6bf65d8763 Documentation: fix broken link (now in docs)
Was [external link on github wiki](https://github.com/mesonbuild/wrapweb/wiki), now markdown file in docs
2017-08-15 22:10:36 +05:30
Jussi Pakkanen 30bb55df3d Missing dots are fun. 2017-08-15 02:06:53 +03:00
Jussi Pakkanen 244ef43651 Bumped version number for new development. 2017-08-15 01:54:07 +03:00
Jussi Pakkanen a629642f1e Bump numbers for new release. 2017-08-15 00:43:54 +03:00
Tim-Philipp Müller 4e476c82f3 gnome: add mkenums_simple()
99% of all mkenums uses in C libraries use the same basic template,
so add a mkenums_simple() function that takes care of everything for
us based on that template.

Features:
 - optional function declaration decorator such as GLIB_AVAILABLE
 - optional extra header prefix (e.g. for include needed for decorator)
 - optional extra body prefix (e.g. for additional includes)
 - optional function name prefix (e.g. to add leading underscores)

Fixes issue #1384
2017-08-14 19:40:36 +03:00
Jussi Pakkanen 55165ba504 Added documentation for pcap dependency. 2017-08-13 23:42:38 +03:00
Tim-Philipp Müller 60b83a5f0a gnome: add 'ignore_headers' to permitted kwarg list for gnome.gtkdoc() 2017-08-13 21:17:04 +03:00
Nirbheek Chauhan ca4778a500 Update wrap-mode FAQ 2017-08-10 10:40:02 +00:00
Nirbheek Chauhan b663937f8c Clarify what an "external dependency" is
And add a link to the Dependencies.md page.
2017-08-09 10:32:25 +00:00
Jussi Pakkanen d94e06db21 Merged singleexe branch. 2017-08-06 17:00:51 +03:00
Jussi Pakkanen 06f195e9ec Merged exclude_dir branch. 2017-08-06 13:09:46 +03:00
Elliott Sales de Andrade 5cb1d00537 Allow excluding files from `install_subdir`
The install_subdir command now accepts a new `exclude` keyword argument
that allows specified files to be excluded from the installed
subdirectory.
2017-08-06 03:58:35 -04:00
Elliott Sales de Andrade d9f01ffcea Disallow language keyword for unsupported deps.
Also, document it in the manual.
2017-08-05 16:44:39 -04:00
Jussi Pakkanen e765091c2e Updated release notes. 2017-08-05 17:00:22 +03:00
Elliott Sales de Andrade 4c9611c2d6 Add documentation for new MPI dependency. 2017-08-04 20:07:07 -04:00
Jussi Pakkanen 61a05f26e3 Add option to disable implicit include directories. Closes #2139. 2017-08-05 00:26:13 +03:00
Jussi Pakkanen a800c96f99 Add option to limit maximum number of concurrent link processes. 2017-08-05 00:24:59 +03:00
Jussi Pakkanen e95ba1ada5 Merge pull request #2113 from nyorain/vulkan
Vulkan dependency module
2017-08-04 22:38:04 +03:00
nyorain 12a5a50058 Add vulkan dependency to release notes 2017-08-04 19:50:36 +02:00
Bruce Richardson bc3327ae6e doc: describe joining strings using the + symbol 2017-07-31 12:00:16 -04:00
Patrick Griffis 43a03aa950 docs: Add gettext example to porting autotools guide 2017-07-31 10:30:41 +01:00
Nirbheek Chauhan d5fc10fbd8 Fix wording about array immutability 2017-07-24 21:52:16 +00:00
Nirbheek Chauhan 8dd1d6d646 Clarify array immutability and document indexing 2017-07-24 21:50:09 +00:00
Luca Mattiello f169f5f55b docs: fix typos in Localization.md 2017-07-24 20:53:55 +02:00
Emmanuele Bassi 6ba6c174ba Document the newly added gnome.genmarshal() argument 2017-07-23 16:30:34 +01:00
Luca Mattiello 5f6add79e0 Fix typo in Unit-tests.md 2017-07-22 19:03:39 +03:00
Igor Gnatenko 8232259450 docs: add missing parentheses
[skip ci]
2017-07-22 16:42:18 +02:00
Jussi Pakkanen bff37a90fc Merged buildrpath branch. 2017-07-21 22:19:07 +03:00
Jussi Pakkanen 979efce04a Merge pull request #1955 from jon-turney/exe-implib
Support implibs for executables on Windows
2017-07-21 20:06:46 +03:00
Jussi Pakkanen e82edc179f Check for manual attempts to set rpath and update docs. 2017-07-21 19:40:54 +03:00
Nirbheek Chauhan 26834a6198 Link to compiler properties for compiler ids list
[skip ci]
2017-07-21 11:29:30 +00:00
Nirbheek Chauhan 675a755e5c Update compiler ids in Compiler-properties.md 2017-07-21 11:26:31 +00:00
Nirbheek Chauhan 93d1b2989e Updates to the reference manual
Typos, add details about how subprojects work, document compiler ids.
2017-07-21 10:33:58 +00:00
Jon Turney 887e4d1318 Add to release note 2017-07-20 21:13:42 +01:00
Jon Turney 8f859a5105 Make the name of the executable implib configurable 2017-07-20 21:11:56 +01:00
Jon Turney 3fa3922cea Support implibs for executables on Windows
Add a boolean 'implib' kwarg to executable().  If true, it is permitted to
use the returned build target object in link_with:

On platforms where this makes sense (e.g. Windows), an implib is generated
for the executable and used when linking.  Otherwise, it has no effect.

(Rather than checking if it is a StaticLibrary or SharedLibary, BuildTarget
subclasses gain the is_linkable_target method to test if they can appear in
link_with:)

Also install any executable implib in a similar way to a shared library
implib, i.e. placing the implib in the appropriate place

Add tests of:
- a shared_module containing a reference to a symbol which is known (at link
time) to be provided by the executable
- trying to link with non-implib executables (should fail)
- installing the implib

(This last one needs a little enhancement of the installed file checking as
this is the first install test we have which needs to work with either
MSVC-style or GCC-style implib filenames)
2017-07-20 21:11:56 +01:00
Jussi Pakkanen e89b6cdd10 Merge pull request #1374 from mesonbuild/simd
Add support for SIMD detection
2017-07-19 15:50:04 +03:00
Jussi Pakkanen c8981ff111 Added documentation for SIMD module. 2017-07-19 13:36:54 +03:00
TingPing acb7e3aaa0 docs: Add HexChat to users... again 2017-07-18 19:03:38 -04:00
Tim-Philipp Müller e1000f1454 Update Users.md: point to upstream GLib repo
And link to Gtk+ master branch instead of wip/meson.
2017-07-19 00:00:27 +01:00
TingPing 4d898e494e docs: Add HexChat to list of users 2017-07-18 18:58:39 -04:00
Nirbheek Chauhan c9059c7e70 Add more projects to Users.md 2017-07-18 22:55:33 +00:00
Jussi Pakkanen 2009fdbd43 Merge pull request #2072 from centricular/fix-gtkdoc-rpath
Various gtkdoc fixes
2017-07-17 16:50:53 +02:00
Alexis Jeandet e1b24765af Removed minor typos in documentation.
Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>
2017-07-17 16:44:51 +02:00
Alexis Jeandet 361b09c491 Added a missing closing parenthesis in the last example
There was a missing parenthesis at the end of the last example.
2017-07-17 13:07:48 +02:00
Nirbheek Chauhan 04ac7a4844 gnome.gtkdoc: Handle absolute install_dirs correctly
Must prepend DESTDIR in case it's absolute. Also document that by
default it is relative to the gtk-doc html directory.
2017-07-17 12:40:41 +05:30
Gabríel Arthúr Pétursson fd653d070d Make base options accessible via get_option() 2017-07-15 10:21:41 +02:00
Gabríel Arthúr Pétursson 39c7b0492c Allow both address- and undefined behavior sanitizers at the same time 2017-07-15 09:59:09 +02:00
Marty Plummer cb05b2aab0 docs: fixed meson syntax for Generating-sources.md
Signed-off-by: Marty Plummer <ntzrmtthihu777@gmail.com>
2017-07-13 16:31:24 +02:00
Amit D 166728067d Fix typo in release notes for 0.41
'is is' -> 'is'

Fixes #2027
2017-07-04 16:55:23 -04:00
Gabríel Arthúr Pétursson d5e47ade80 doc: Mention that C/C++ language versions can be set per-target 2017-07-04 16:54:59 -04:00
Jussi Pakkanen 304841d1c7 Update instructions to disable pch. 2017-07-02 19:22:50 +03:00
Adam C. Foltzer af7c8ab449 add changelog for Rust crate-type support 2017-07-02 10:06:58 -04:00
Bruce Richardson f12ece4547 pkgconfig: add support for extra_cflags
Allow the user to pass in arbitrary cflags for putting into the generated
pkgconfig file.
2017-06-29 11:03:20 -04:00
Jussi Pakkanen dfb0414d9c Merged Genie support. 2017-06-27 19:01:00 +03:00
Jussi Pakkanen 3262be23dc Fixed issues raised in review. 2017-06-26 23:29:42 +03:00
Jussi Pakkanen 3dca1c99a6 Updated release notes. 2017-06-26 21:10:27 +03:00
Alistair Thomas efef8f4f38 Add Genie to release notes 2017-06-26 13:58:15 +01:00
Alistair Thomas cca0fa8154 Recognise .gs extension as a Vala source 2017-06-26 13:57:52 +01:00
philtherobot 1821598fbb Improve the example by explaining modules (#1981)
* Improve the example by explaining modules

* Refer to Qt documentation for its list of modules

* Add a sweet link to Qt's doc.
2017-06-22 17:17:21 -04:00
Jussi Pakkanen 65d5ec5f18 Merge pull request #1922 from acfoltzer/rust-improvements
Enhance Rust support
2017-06-22 06:12:27 -04:00
Patrick Griffis 39c75d39fb docs: Fix version reference 2017-06-22 06:02:50 -04:00
Jussi Pakkanen 624709bfc1 Merge pull request #1920 from QuLogic/hg-dist
Add Mercurial dist support
2017-06-21 04:48:29 -04:00
Jussi Pakkanen 2d659b649b Merge pull request #1924 from mesonbuild/tingping/yelp-fixes
Various yelp fixes
2017-06-21 04:36:30 -04:00
Igor Gnatenko f171faee32 docs: be more consistent 2017-06-21 04:35:43 -04:00
Adam C. Foltzer 69b18cf7e9 rename `crate_type` to `rust_crate_type` per @TingPing 2017-06-14 08:39:41 -07:00
Elliott Sales de Andrade 79d005364f Add Mercurial dist support. 2017-06-13 00:32:43 -04:00
Jussi Pakkanen f75d394683 Update versions for new development. 2017-06-12 23:22:48 +03:00
Patrick Griffis a88ad9173a gnome.yelp(): Default symlink_media to true 2017-06-10 12:42:28 -04:00
Adam C. Foltzer bdd4c45b17 Enhance Rust support
- Adds a `crate_type` kwarg to library targets, allowing the different
  types of Rust [linkage][1].
- Shared libraries use the `dylib` crate type by default, but can also
  be `cdylib`
- Static libraries use the `rlib` crate type by default, but can also
  be `staticlib`
- If any Rust target has shared library dependencies, add the
  appropriate linker arguments, including rpath for the sysroot of the
  Rust compiler

[1]: https://doc.rust-lang.org/reference/linkage.html
2017-06-09 15:14:02 -07:00
Sam Thursfield 22cfd44221 Document that the gnome.generate_vapi() function can install the .vapi 2017-06-08 23:35:14 +03:00
Jan Chren (rindeal) bafc607ab1 Update reference manual and release notes 2017-06-07 23:51:20 +02:00
Jussi Pakkanen 4ed68e7934 Merge pull request #1866 from ebassi/mkdb-args
Add mkdb_args support to gnome.gtkdoc()
2017-06-07 21:01:49 +03:00
Emmanuele Bassi f0a32ced54 Document the mkdb_args argument for gnome.gtkdoc()
Include the newly added argument.
2017-06-07 18:17:20 +01:00
Jussi Pakkanen 7c03bfb463 Merged needs_exe_wrapper branch. 2017-06-07 20:09:43 +03:00
Tim Hutt b6dbb4ecc6 Improve user-defined function wording & link to FAQ 2017-06-07 20:03:14 +03:00
Tim 0e027c9616 Document that user-defined functions and methods are unsupported
Fixes #1870
2017-06-07 20:03:14 +03:00
Tim b54e1d29fe Add a note about multi-line statements by ending the line with \ 2017-06-03 21:30:30 +03:00
Bálint Aradi 706b3cafab Add version for configure_file extension in reference manual 2017-06-03 16:51:58 +02:00
Bálint Aradi 28dededf08 Update reference manual and release notes 2017-06-03 16:51:58 +02:00
Jussi Pakkanen 4828b46b73 Use relative rpath so builds are reproducible. 2017-06-03 16:03:53 +03:00
Chris Mayo 0e9852a457 docs: Fix broken page links 2017-06-03 16:03:04 +03:00
TingPing e34edae240 docs: Complete list of targets from i18n.gettext() 2017-06-03 16:02:08 +03:00
Ole André Vadla Ravnås b32c757073
environment: Add needs_exe_wrapper for overriding auto-detection.
This is useful when build_machine appears to be compatible with
host_machine, but actually isn't. For example when:
- build_machine is macOS and host_machine is the iOS Simulator
- the build_machine's libc is glibc but the host_machine libc is uClibc
- code relies on kernel features not available on the build_machine
2017-05-29 21:05:57 +02:00
TingPing e351b39430 docs: Add mention of target made by gnome.gtkdoc()
Mentioned in #1844
2017-05-24 19:52:46 +03:00
Jussi Pakkanen 07f117e385 Merge pull request #1664 from QuLogic/codecov
Enable code coverage
2017-05-22 20:22:12 +03:00
Ole André Vadla Ravnås ef736bb084 Update the Frida URL and description. 2017-05-22 20:02:19 +03:00
Elliott Sales de Andrade 17328e7019 Add coverage export for tests. 2017-05-21 16:11:31 -04:00
Jussi Pakkanen 189784b474 Merge pull request #1792 from jon-turney/custom_target_vs_module_defs
Allow vs_module_defs to use a custom_target
2017-05-21 21:31:14 +03:00
cagatay-y 79b0111018 Update link
Gcovr homepage is moved. Updated the link to the new URL.
2017-05-21 21:20:24 +03:00
Jussi Pakkanen 3bd6130df2 Merge pull request #1823 from jon-turney/master
Improve documentation of build target and custom target objects
2017-05-21 16:20:35 +03:00
cagatay-y a24a91b29e Fix typo 2017-05-21 16:19:08 +03:00
cagatay-y 55a9b6c240 Change repeated word 2017-05-21 16:18:55 +03:00
Elliott Sales de Andrade a2a28c72ea Remove extra temporary file from docs. 2017-05-21 16:18:33 +03:00
Jussi Pakkanen e985d930af Updated list of users and minor sitemap cleanup. 2017-05-20 11:59:42 +03:00
Jon Turney 75099510f1 docs: The return value of executable() is a builttarget object.
Make executable() consistent with all other functions returning a
buildtarget, it's return type is a buildtarget object.
2017-05-19 18:00:42 +01:00
Jon Turney cad8386733 docs: Document the object returned by custom_target 2017-05-19 18:00:29 +01:00
Jon Turney f12a7f2ad0 docs: Correct list of things that are a build target to include shared_module 2017-05-19 17:01:46 +01:00
Jon Turney 5c7f9797c3 docs: Move "build target object" from "build-in objects" to "returned objects"
Also move "run result" object so objects are sorted alphabetically
2017-05-19 17:01:43 +01:00
Jon Turney 66a6ea984b Allow vs_module_defs to use a custom_target
Allow vs_module_defs to use a custom_target
Add a test and update documentation
2017-05-16 19:56:32 +01:00
Guillaume Poirier-Morency 05c431c013 vala: Fix typos and cover dependencies without pkg-config file in docs 2017-05-13 23:45:13 +03:00
Guillaume Poirier-Morency a7fee9bd48 vala: Cover 'find_library' usage and be more explicit for default install directories in docs 2017-05-13 23:45:13 +03:00
Jussi Pakkanen c2282f9382 Merged rust_args branch. 2017-05-13 22:51:43 +03:00
Jussi Pakkanen 84012a5099 Merge pull request #1669 from mesonbuild/dist
Create a dist target
2017-05-12 19:37:31 +03:00
Jon Turney e99cfdfbc7 Make vs_module_defs: do something for gcc on Windows as well
Module definition files may be useful when building with gcc on Windows also
(e.g. if the existing build uses them, if exports are aliased, if we were
retro enough to export by ordinal, etc.)

Add the .def file to the link command line when using gcc on Windows

Run the appropriate windows tests irrespective of compiler.
2017-05-12 18:56:43 +03:00
Jussi Pakkanen 1e14438a38 Merge pull request #1735 from dcbaker/list-of-files
Allow passing a list of Files to CustomTarget. Closes #1720
2017-05-12 18:54:46 +03:00
Jussi Pakkanen 8068fc0d1d Add test and release notes. 2017-05-12 14:25:27 +03:00
Peter Hutterer 73494c9927 docs: make the required argument for find_program stick out more 2017-05-11 22:39:47 +03:00
liberforce b15f0a0fc1 Update Compiler-properties.md
Fix table formatting
2017-05-11 22:39:03 +03:00
Dylan Baker c03744cccb Allow passing a list of Files to CustomTarget. Closes #1720 2017-05-11 09:57:38 -07:00
Dylan Baker e2567386f1 Use flatten for link targets. Fixes #1764 2017-05-11 09:57:38 -07:00
Jussi Pakkanen 6e59d84534 Initialise submodules. 2017-05-11 19:34:16 +03:00
Jussi Pakkanen 1a87c967f1 Merge pull request #1761 from keszybz/docs
Some simple doc fixes
2017-05-11 00:15:58 +03:00
Jussi Pakkanen 9141cd78aa Now cracks a noble heart. Good night sweet prince:
And flights of angels sing thee to thy rest!
2017-05-11 00:14:40 +03:00
liberforce ad6c61dcf5 Update Running-Meson.md
Fix parameter escapement
2017-05-11 00:14:17 +03:00
liberforce 6dc54b86b6 Update Syntax.md
Fix variable name
2017-05-11 00:13:51 +03:00
Peter Hutterer 7ed19902be pkgconfig: add suppport for custom variables during generation
Usage:
    pkgconfig.generate(
      ...
      description : 'A library with custom variables.',
      variables : ['foo=bar', 'datadir=${prefix}/data']
      )

The variables 'prefix', 'libdir' and 'includedir' are reserved, meson will
fail with an error message.

Variables can reference each other with the pkgconfig notation, e.g.

   variables : ['datadir=${prefix}/data',
                'otherdatadir=${datadir}/other']

meson does not check this for correctness or that the referenced variable
exists, we merely keep the same order as specified.
2017-05-11 00:13:30 +03:00
Zbigniew Jędrzejewski-Szmek 65450459de docs: add puncuation to description of compiler object functions 2017-05-09 14:51:01 -04:00
Zbigniew Jędrzejewski-Szmek ed9f79b8a4 docs: mention $DESTDIR in add_install_script description, add punctuation
Although not stricly necessary, it is good to mention $DESTDIR in the
explanation for add_install_script, since it might not be obvious for the
user that it is available.

Also add punctuation to be consistent.

v2:
- fix "witht" typo
- reword $DESTDIR description to say that it is inherited from the environment
- also describe $MESONINTROSPECT
2017-05-09 12:10:35 -04:00
Tim-Philipp Müller df48be051c docs: how to make find_program() search additional directories
Fixes #1702
2017-05-09 09:20:21 +01:00
Zbigniew Jędrzejewski-Szmek 0a8621a9bd docs: add hyperlinks and a short description of unity builds
At first I thought this is something about Ubuntu ;)
2017-05-08 20:12:29 -04:00
Patrick Griffis 4ad9f26608 docs: Add rust_args entry to release notes 2017-05-08 15:28:25 -04:00
Dylan Baker 7053d9abfd Allow link_depends to take strings, Files or generated objects. Closes #1172
Currently only strings can be passed to the link_depends argument of
executable and *library, which solves many cases, but not every one.
This patch allows generated sources and Files to be passed as well.

On the implementation side, it uses a helper method to keep the more
complex logic separated from the __init__ method. This also requires
that Targets set their link_depends paths as Files, and the backend is
responsible for converting to strings when it wants them.

This adds tests for the following cases:
- Using a file in a subdir
- Using a configure_file as an input
- Using a custom_target as an input

It does not support using a generator as an input, since currently that
would require calling the generator twice, once for the -Wl argument,
and once for the link_depends.

Also updates the docs.
2017-05-08 20:59:46 +02:00
Alberto Aguirre ccab7d64f4 Add support for @CURRENT_SOURCE_DIR@ in generator arguments
Allow users to specify @CURRENT_SOURCE_DIR@ in generator arguments
to specify the current target source directory.
This is useful when creating protobuf generator objects in sub-directories
because protoc will then generate files in the expected location.

Fixes #1622.

Remove stray semicolon

Update documentation
2017-05-08 20:53:57 +02:00
Jon Turney 855715b29e docs: make project(license:) a separate bullet point 2017-05-08 20:08:56 +02:00
Günther Wutz 63c4c54a64 Updated gnome module command 2017-05-07 12:10:22 +02:00
Jussi Pakkanen 69c5931a8d Merge pull request #1657 from QuLogic/ninja-escape
ninja: Fix quoting newlines and $
2017-05-06 12:06:35 +02:00
Elliott Sales de Andrade f9708cf1ba Add release note about ninja character escaping. 2017-05-05 18:41:05 -04:00
Mathieu Duponchelle ae04624730 Compiler-properties.md: fix typo 2017-05-05 23:16:23 +02:00
Sven Steinbauer 130d75bee5 Fix missing backticks 2017-05-05 23:16:05 +02:00
Peter Hutterer 7a3be163cb Default to project_version() in vcs_tag fallback 2017-05-05 08:11:28 +10:00
Peter Hutterer 4378655a39 docs: document additional args for vcs_tag
Supported as of 223596d7bf
2017-05-05 08:11:04 +10:00
Peter Hutterer e982d5118e docs: clarify that vcs_tag output can be used as source
"you should put in your main program" is confusing, "that can be used as
source" is slightly better.
2017-05-05 08:11:04 +10:00
Jussi Pakkanen 11968382a3 Merge pull request #1621 from dcbaker/llvm-dep
RFC: Add dependency for LLVM. Fixes #1611
2017-05-04 23:21:40 +02:00
Peter Hutterer a576791064 Use American English - 'ise' -> 'ize' where applicable 2017-05-04 22:09:27 +03:00
Peter Hutterer ca924451ac Use American English: behaviour -> behavior 2017-05-04 22:09:27 +03:00
Chiu Yue Chun fe85721e7e Update FAQ.md: meson is not elementary particle
meson is a hadron, more specifically, hadrons that consists of a quark and a anti-quark.  So, it is a composite particle rather than elementary one.
2017-05-04 22:08:15 +03:00
Dylan Baker 4bee51655b Add dependency for LLVM. Fixes #1611
This adds a depdendncy wrapper for llvm-config based on the wxwidgets
dependency. IT handles libs, version, include dir, and the llvm unique
concept of components. These components are individual pieces of the
LLVM library that may or may not be available depending on the platform.
2017-05-03 14:35:38 -07:00
Dylan Baker 5f1b96a076 docs: Update SharedLibrary vs_module_defs accepts a File object 2017-05-04 00:18:22 +03:00
Elliott Sales de Andrade f9de195d7c doc: Replace kwarg with keyword argument.
This abbreviation is a Python-ism that is not really clear to those out
of the loop.
2017-05-03 16:20:53 -04:00
Elliott Sales de Andrade 40d7704cd5 doc: Use https links wherever possible. 2017-05-03 16:20:53 -04:00
Elliott Sales de Andrade ac74b76c33 doc: Fix broken Linux binary page.
All the dashes were replaced by spaces.
2017-05-03 16:20:53 -04:00
Elliott Sales de Andrade 4ba298613d doc: Don't use root-prompt in wraptool examples.
A `#` is the root-prompt, whereas `$` is the user-prompt.
2017-05-03 16:20:53 -04:00
Elliott Sales de Andrade f3ad633f55 doc: Fix several minor typos. 2017-05-03 16:20:53 -04:00
Elliott Sales de Andrade b80d40c287 doc: Capitalize things more consistently.
Upper or lower case depending on the official spelling, or the more
consistent usage.
2017-05-03 16:20:51 -04:00
Elliott Sales de Andrade 492e281c0e doc: Remove duplicate design rationale page. 2017-05-03 16:20:24 -04:00
Jussi Pakkanen 0e3aa5a348 Merge pull request #1587 from mesonbuild/tingping/msgfmt-datadir
i18n: Improve data_dirs support
2017-05-03 18:51:55 +03:00
Peter Hutterer 276d342eba docs: replace 'meson build' with 'meson builddir'
Clarifies that this is really just a directory, not a command.

https://github.com/mesonbuild/meson/issues/1560
2017-05-03 21:00:36 +10:00
Peter Hutterer 7ec6e6df20 docs: add a short description for all top pages in the Manual 2017-05-03 21:00:36 +10:00
Peter Hutterer 71f0a63fb2 docs: fix link to file a new issue 2017-05-03 21:00:36 +10:00
Peter Hutterer ea127d5594 docs: fix missing build directory 2017-05-03 20:12:29 +10:00
Peter Hutterer aed341f7e5 docs: fix links to the meson repos 2017-05-03 13:32:03 +10:00
Patrick Griffis a6775233c7 docs: Document missing gnome.compile_resources() kwargs 2017-05-02 22:14:39 +03:00
Gabríel Arthúr Pétursson ae924b01a0 docs: s/no tbe/not be/ 2017-05-02 00:52:29 +03:00
John Gallagher de762feb87 Fix typo in Generating-sources.md
First `custom_target` example was missing a closing `'`.
2017-05-01 23:06:54 +03:00
Corey Ashford d6dfc94188 Update Overview.md
fix typo
2017-05-01 23:06:27 +03:00
Ernestas Kulik 1c8ac8fd6d docs: replace occurences of set_install_script()
The method has been replaced with add_install_script().

Signed-off-by: Ernestas Kulik <ernestas.kulik@gmail.com>
2017-05-01 19:15:35 +03:00
Wade Berrier d542b2c0cc deps: boost: add some documentation about environment variables 2017-04-29 12:34:07 +03:00
Patrick Griffis 78edc58153 docs: Add data_dirs to i18n.merge_file() 2017-04-29 04:08:08 -04:00
Mathieu Duponchelle b983d091e6 howtox.md: fix header hierarchy
.. and remove an obsolete wiki home link at the bottom of the page
2017-04-28 23:01:38 +03:00
Guillaume Poirier-Morency 4c35b4b791 Update Vala documentation with most recent changes
Cover installation using the `install_dir` array and the additional arguments for specifying the C header, VAPI and GIR names.
2017-04-28 23:01:06 +03:00
Jussi Pakkanen 13df62deec Added release notes page for 0.41.0. 2017-04-26 23:45:02 +03:00
Thibault Saunier ef45352f80 docs: website license is CC-BY and code samples are CC0 2017-04-26 17:56:33 +03:00
Thibault Saunier b371875e02 docs: Import the website and wiki and build with hotdoc
This allows us to more easily have the documentation in sync with
the source code as people will have to document new features etc
right at the time where they implement it.
2017-04-26 17:56:33 +03:00