summaryrefslogtreecommitdiff
path: root/docs/markdown/snippets
Commit message (Collapse)AuthorAgeFilesLines
* Add install_data() rename snippetAleksey Filippov2018-03-191-0/+11
|
* Turn deprecated commands into errors.Jussi Pakkanen2018-03-141-0/+7
|
* Fix snippet heading to conform to new formatting rules.Jussi Pakkanen2018-03-131-1/+1
|
* Merge pull request #3131 from sarum9in/pkgconfigJussi Pakkanen2018-03-121-0/+5
|\ | | | | Pkgconfig accepts libraries and pkgconfig-dependencies in requires/requires_private parameters
| * Document pkgconfig.generate() requires parametersAleksey Filippov2018-02-241-0/+5
| |
* | Refactor: Add log.error and log.exception to reduce code duplication.Jukka Laurila2018-03-101-0/+5
| |
* | Merge pull request #3086 from sarum9in/declare-link-wholeJussi Pakkanen2018-03-061-0/+4
|\ \ | | | | | | Add declare_dependency() link_whole parameter
| * | Document declare_dependency() link_whole parameterAleksey Filippov2018-03-061-0/+4
| | |
* | | Allow passing a compiler object to run_command()Evgenii Shatokhin2018-03-061-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | | Make "meson help" and "meson help <subcommand>" do the expected thing.Jukka Laurila2018-03-061-0/+6
|/ /
* | Generate meson.build based on existing source files when meson init is run ↵Jukka Laurila2018-03-061-0/+19
| | | | | | | | in a non-empty directory.
* | Updated information for new release.0.45.0Jussi Pakkanen2018-03-0418-163/+0
| |
* | Add a release note snippet for the improved test setup selection.Hemmo Nieminen2018-02-251-0/+16
| |
* | Added release note snippet for csc support.Jussi Pakkanen2018-02-251-0/+4
|/
* Fix Rust compiler-private library ambiguityAdam C. Foltzer2018-02-221-0/+6
| | | | | | | | | 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.
* Allow for missing install_dir in install_data()Peter Hutterer2018-02-221-0/+5
| | | | | | | | | | | | | 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
* User options can "yield to" a user option of the same name in superproject. ↵Jussi Pakkanen2018-02-081-0/+8
| | | | Closes ##2853.
* Expose integer options to build option files.Jussi Pakkanen2018-02-071-0/+6
|
* Merge pull request #3010 from sarum9in/elide_directoryJussi Pakkanen2018-02-051-0/+4
|\ | | | | Add strip_directory keyword for install_subdir() function
| * Rename install_subdir() option elide_directory to strip_directoryAleksey Filippov2018-02-052-4/+4
| |
| * Add elide_directory keyword for install_subdir() functionAleksey Filippov2018-02-051-0/+4
| | | | | | | | | | | | | | If elide_directory=true install_subdir() installs directory contents instead of directory itself, eliding name of the source directory. Closes #2869.
* | Add support for hex int literals.Jussi Pakkanen2018-02-051-0/+5
|/
* Merge pull request #2938 from acfoltzer/rust-cross-mergeJussi Pakkanen2018-02-041-0/+16
|\ | | | | Add cross-compilation support for `rustc`
| * Add cross-compilation support for `rustc`Adam C. Foltzer2018-01-291-0/+16
| | | | | | | | | | | | This patch is largely modeled on the relatively-straightforward code for Fortran cross-compilation, so there might be some intricacies missing.
* | Added documentation to IceStorm module.icestormJussi Pakkanen2018-02-021-0/+12
| |
* | add meson.project_license() builtinMartin Kelly2018-01-311-0/+4
| | | | | | | | This Fixes #2941.
* | dependencies: Allow setting config-tool binaries in cross fileDylan Baker2018-01-301-0/+13
| | | | | | | | | | | | | | | | | | | | | | 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
* | Removed two deprecations from 2016.Jussi Pakkanen2018-01-171-0/+14
|/
* Merge pull request #2815 from taisei-project/fix_windows_compile_resourcesJussi Pakkanen2018-01-131-0/+3
|\ | | | | [windows] make compile_resources use custom targets instead of generators
| * Add a release note snippet for the windows.compile_resources() changeAndrei Alexeyev2018-01-121-0/+3
| |
* | Merge pull request #2764 from mesonbuild/generatorpathJussi Pakkanen2018-01-131-0/+21
|\ \ | |/ |/| Generator outputs can have path segments
| * Added documentation.Jussi Pakkanen2017-12-181-0/+21
| |
* | Add unit test that checks that the sample projects compile.initJussi Pakkanen2017-12-311-0/+8
| |
* | Merge pull request #2334 from mesonbuild/promotedepJussi Pakkanen2017-12-261-0/+11
|\ \ | | | | | | Add functionality to promote nested dependencies to top level.
| * | Add functionality to promote nested dependencies to top level.Jussi Pakkanen2017-12-171-0/+11
| |/
* | Allow value 'if-release' for b_ndebug project option. (#1896)Hemmo Nieminen2017-12-171-0/+7
|/ | | | | When set, NDEBUG will be automatically defined for for release builds but not for other build types.
* Updated version number for new release.0.44.0Jussi Pakkanen2017-12-1011-140/+0
|
* Fix typo in release note snippet for get_unquotedJon Turney2017-12-091-2/+2
| | | Grammar is still a bit fractured, but I'm not entirely sure what it's trying to say.
* Merge pull request #2731 from mesonbuild/disablerJussi Pakkanen2017-12-051-0/+33
|\ | | | | Created disabler object type
| * Added documentation for disabler objects.Jussi Pakkanen2017-12-051-0/+33
| |
* | String arguments can permit arbitrary string valuesJussi Pakkanen2017-12-031-2/+3
|/ | | | by leaving out the choices keyword.
* Merge pull request #2390 from dcbaker/submit/options-listJussi Pakkanen2017-12-021-0/+17
|\ | | | | Add an array type to user options
| * Add new array type optionDylan Baker2017-11-291-0/+17
| | | | | | | | | | | | | | 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.
* | cross: Implement support for loading cross files from system pathsDylan Baker2017-11-301-0/+20
|/ | | | | | | | | | | | | | | | | | | | | | | | | 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
* Merge pull request #2512 from dcbaker/wip/config-tool-variablesJussi Pakkanen2017-11-281-0/+11
|\ | | | | Add method to get values from config tool based dependency
| * docs: add documentation for config_tool variable methodDylan Baker2017-11-231-0/+11
| |
* | Add if_found kwarg to subdir().Jussi Pakkanen2017-11-271-0/+13
|/
* Added release note mention of embedded Python in MSI packages.runpythonJussi Pakkanen2017-11-211-0/+9
|
* Merge pull request #2000 from t-chaik/tchaik/wip/get-unquotedJussi Pakkanen2017-11-131-0/+4
|\ | | | | config data: add .get_unquoted() convenience method to get quoted string unquoted
| * get-unquoted: Queue a release note entry mentioning the new methodMartin Blanchard2017-09-151-0/+4
| |