Commit Graph

458 Commits

Author SHA1 Message Date
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
Jussi Pakkanen c267564a15 Fix filename. 2018-02-08 23:58:03 +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