aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2018-05-24depfixer: Run install_name_tool only once while deleting rpathsNirbheek Chauhan1-2/+5
2018-05-24depfixer: We no longer run this as a scriptNirbheek Chauhan3-20/+0
2018-05-23gnome.mkenums: test header built from generated templateMathieu Duponchelle1-3/+14
2018-05-23gnome/mkenums: allow passing generated files as templatesMathieu Duponchelle2-2/+22
2018-05-23Add a testing case for a decimal number with a leading zeroFilipe Brandenburger1-0/+6
That syntax is invalid, since decimal numbers should never have a leading zero and octal numbers use the `0o` prefix instead. This matches Python 3 syntax which does not accept it: $ python3 >>> 0123 File "<stdin>", line 1 0123 ^ SyntaxError: invalid token >>> Add a "failing" test case to confirm this property is preserved and no regressions are introduced in this area.
2018-05-23Document octal and binary integer literals in syntax.Filipe Brandenburger2-0/+16
Also add a release notes snippet for it.
2018-05-23Add support for octal and binary int literals.Filipe Brandenburger2-6/+14
Simplify support for alternate bases using int(..., base=0) which auto-detects it using the standard Python syntax for numbers. Octal numbers are useful to specify permission bits and umasks. Binary numbers are not super useful... But considering we get them for free, let's allow them here too. v2: Tweak the regex so it doesn't accept a decimal number with a leading zero, which is invalid for int(..., base=0) and would raise a ValueError if passed around.
2018-05-23Enable running tests that fail at 'meson test'Niklas Claesson3-1/+7
2018-05-23Print project versionTim-Philipp Müller1-0/+1
2018-05-23interpreter: fix configure_file() message on empty configuration_data() ↵Tim-Philipp Müller1-1/+1
[skip ci] The 'copy' kwarg will appear in the upcoming 0.47 release, not 0.46.
2018-05-22Merge pull request #3383 from mesonbuild/nirbheek/configure-file-nodataJussi Pakkanen13-24/+102
configure_file: Add a new action 'copy'
2018-05-22Merge pull request #3490 from MathieuDuponchelle/dict_builtinJussi Pakkanen9-26/+284
Add new built-in type, dict
2018-05-22Merge pull request #3523 from taisei-project/run_command_checkJussi Pakkanen5-6/+35
Add 'check' kwarg for run_command
2018-05-22Update Users.mdrandy4081-0/+2
2018-05-22Update documentation for run_command [skip ci]Andrei Alexeyev1-1/+8
2018-05-22Add 'check' kwarg for run_commandAndrei Alexeyev4-5/+27
Closes #3516
2018-05-22dict: add since annotationsMathieu Duponchelle2-1/+6
2018-05-22docs: Add manual entry for configure_file copy kwargNirbheek Chauhan2-1/+17
2018-05-22configure_file: Don't use reserved keyword 'format'Nirbheek Chauhan1-5/+5
Might lead to weird bugs
2018-05-22configure_file: Add a new action 'copy'Nirbheek Chauhan11-18/+80
This will copy the file to the build directory without trying to read it or substitute values into it. Also do this optimization if the configuration_data() object passed to the `configuration:` kwarg is empty, and print a warning about it. See also: https://github.com/mesonbuild/meson/issues/1542
2018-05-21Windows: Fix exception when windres is not foundXavier Claessens1-1/+1
If rescomp is not found its command is None and that make meson print backtrace instead of displaying the error message.
2018-05-21Add support for finding libraries in Fortran projectsMatthew Krupcale5-170/+265
* mesonbuild/compilers/c.py: Make the `find_library` method more generic by allowing the user to supply the `code` for compiling and linking. * mesonbuild/compilers/fortran.py: Use the methods inherited from `Compiler` base class where appropriate. Also reuse `CComiler` methods where applicable. This should be sufficient to get various compiler/linker arguments as well as to compile and link Fortran programs. This was tested with `gfortran` compiler, and while the other compilers ought to work for simple cases, their methods are primarily inherited from the base `FortranCompiler` class. * test cases/fortran/10 find library/gzip.f90: Fortran module with some basic Fortran wrapper interfaces to `gzopen`, `gzwrite`, and `gzclose` C `zlib` functions. * test cases/fortran/10 find library/main.f90: Fortran program using the `gzip` Fortran interface module to write some data to a gzip file. * test cases/fortran/10 find library/meson.build: Meson build file for this test case. This demonstrates the ability to link the Fortran program against an external library.
2018-05-21for_darwin: Also accept system='ios' in cross filesNirbheek Chauhan1-1/+1
2018-05-21dict: unit test integer keyMathieu Duponchelle1-0/+4
2018-05-21dict: fix CI issuesMathieu Duponchelle4-8/+7
2018-05-21Write coredata transactionally. Closes #3511.Jussi Pakkanen3-5/+16
2018-05-20dict: address review comment I missedMathieu Duponchelle1-0/+5
2018-05-20dict: Document, add release snippetMathieu Duponchelle3-6/+92
2018-05-20dict: address review commentsMathieu Duponchelle4-10/+27
2018-05-20dict: change test case numberingMathieu Duponchelle2-0/+0
2018-05-20Add methods to the dict builtinKyrylo Shpytsya1-0/+39
Adds "has_key" and "get". Adapted and updated by Mathieu Duponchelle <mathieu@centricular.com>
2018-05-20Add new built-in type, dictMathieu Duponchelle5-19/+122
For now dicts are immutable, and do not expose any methods, they however support "native" syntax such as [] lookup, and foreach iterating, and can be printed.
2018-05-18Print message when using polkitRyan Gonzalez1-0/+2
2018-05-18Fix #3579: Wait for a permissions failure before trying to run pkexecRyan Gonzalez1-13/+17
2018-05-18appveyor: update boost version used with VS 2015Jon Turney1-4/+4
per https://www.appveyor.com/updates/2018/05/16/, boost 1.59 has been removed from the VS 2015 image.
2018-05-17Generalize message about fallback failureJon Turney2-3/+3
The fallback might be not used not only because it couldn't be found, but also because something went wrong trying to use it. Also, update a test which relies on the specific text
2018-05-17Improve reporting about falling back to a subproject for a dependencyJon Turney1-2/+8
2018-05-17Merge pull request #3577 from noverby/wip/rib/java-codegenJussi Pakkanen10-3/+94
Include target build directory while compiling Java, for generated code dependencies (Polished)
2018-05-17Support installation via polkitRyan Gonzalez3-18/+53
2018-05-16tests: Remove redundant test and include_directories('.')Niclas Moeslund Overby10-39/+1
2018-05-16ninja: add build dir to javac -sourcepathRobert Bragg6-0/+53
To allow the javac -implicit:class behaviour to know where to find generated .java files then the build directory for the target is also added to the -sourcefile path.
2018-05-16ninja: avoid needing include_directory('.') with jar()Robert Bragg4-3/+39
Although only one file is passed to javac at a time, if your code has any inter-file dependencies javac still needs to know how to find other source files for its -implicit:class feature to work whereby it will automatically also compile files that the given file depends on. -implicit:class is the default, practical, behaviour of javac since otherwise it would be necessary to declare the class dependencies for parallel java builds to be feasible. Passing "include_directory: include_directory('.')" to jar() causes -souredir <path/to/top/of/java/src> to be passed to javac which then enables your source code to have inter-file class dependencies - assuming none of your source code is generated. This ensures that '.' is included by default.
2018-05-16ninja: pass separated paths to javac -sourcepathRobert Bragg4-1/+41
The -sourcepath option can't be passed multiple times to javac, since it simply overrides prior arguments. Instead -sourcepath takes a colon (or semi-colon on windows) separated list of paths.
2018-05-10vala: Fix shared_module linking with export_dynamic executableNirbheek Chauhan5-2/+48
Need to generate a vapi and a header, and then use that in the shared module. Needed for GNOME games. Closes https://github.com/mesonbuild/meson/issues/3538
2018-05-10test setups: Inherit env when using a test setupNirbheek Chauhan3-1/+9
Closes https://github.com/mesonbuild/meson/issues/3525
2018-05-10unit tests: Undo accidental disabling of testNirbheek Chauhan1-1/+0
Was accidentally merged. https://github.com/mesonbuild/meson/pull/3240/files#r181593745
2018-05-09Merge pull request #3539 from mesonbuild/nirbheek/fix-gtkdoc-content-files-FileJussi Pakkanen5-17/+45
gnome: some gtk-doc and gdbus-codegen issues
2018-05-09Revert "Add macOS linker versioning information"Nirbheek Chauhan7-24/+16
This reverts commit fa6ca160548d7e8df9c4c724e6c96f5e004e5316. Closes https://github.com/mesonbuild/meson/issues/3550
2018-05-09args flattening: preserve configuration_data.set behaviourMathieu Duponchelle2-0/+12
It seems that some projects relied on the previously buggy behaviour of accepting a 2-element list as the single argument to configuration_data.set(). Special-case this behaviour, and emit a deprecation message.
2018-05-09gdbus_codegen: Guess the output list for docbook generationNirbheek Chauhan3-5/+22
We were setting it to a file list that would always be wrong, and always out of date since it would never exist. However, the output list is not predictable. It usually has a 1-1 relationship with the input XML files, but it may not. This must be fixed later with API for users to provide the output names. See: https://github.com/mesonbuild/meson/pull/3539