Commit Graph

6688 Commits

Author SHA1 Message Date
Nirbheek Chauhan 99e77cf48d docs: Consistently use the same heading level in release notes [skip ci]
Otherwise some headings are much too large.
2018-12-13 20:06:31 +05:30
Niklas Haas 261ab9b214 pkgconfig: Fix link order of library dependencies
Since `_process_libs` appends the lib's dependencies this list already,
the final return value of `_process_libs` will end up after its
dependencies, which is the wrong way around. (The lib must come first,
then its dependencies)

The easiest solution is to simply pre-pend the return value of
`_process_libs` rather than appending it, so that its dependencies come
after the library itself.

Closes #4091.
2018-12-12 10:42:32 -05:00
Jussi Pakkanen f0ee06bdab Add all files from scripts to MSI package. Closes #4621. 2018-12-12 16:21:38 +02:00
Jussi Pakkanen c66d4c144a Better Python exe detector. Closes #4614. 2018-12-12 16:15:18 +02:00
Jussi Pakkanen 131459bd05 Add Renesas RL78 CPU family. Closes #4606. 2018-12-11 20:56:35 +02:00
Daniel Mensinger 194adc828f Only autodetect 'vs' backend on windows 2018-12-11 20:54:17 +02:00
Christoph Reiter 8e85a7b7b8 python: only link extension modules against libpython when distutils does too. Fixes #4117
Windows requires things to be linked, on macOS distutils doesn't link by default.
On Linux etc. things are not so clear, some distros like Debian patch distutils to not link,
some don't. In addition the manylinux wheels spec prohibits linking against libpython
and upstream is thinking about changing the default:
https://bugs.python.org/issue34814

Call into distutils to figure out what distutils does and in case it doesn't link
against libpython replace the passed in Python dependency with a partial one.
2018-12-10 20:25:33 +02:00
Simon Arlott f77ead26eb docs: build_always_stale was added in 0.47 [skip ci] 2018-12-10 20:21:55 +02:00
Jon Turney 2df39c398d Add a missing newline in release note [skip ci] 2018-12-10 15:36:54 +00:00
Jussi Pakkanen 6124a97722 Bump version number for new development. 2018-12-10 00:33:03 +02:00
Jussi Pakkanen 51aaa15bda Update everything for release 0.49.0 2018-12-09 21:58:12 +02:00
Jussi Pakkanen f7e657629f Disable broken MMX code. 2018-12-09 21:41:49 +02:00
Jussi Pakkanen 03311e6d8c Skip if a suitable D alternative is not found. 2018-12-09 19:55:18 +02:00
Jussi Pakkanen f1116bc16a Skip CMake dependency check if CMake is not installed. 2018-12-09 17:51:11 +02:00
Martin Storsjö 05e75ab3e7 Reinstate "compilers/c: Fix allow undefined link arg for PE/COFF"
This reinstates 2256e6314b, which was
lost in refactoring in 9f9cfd2139.
2018-12-09 16:24:58 +02:00
Jussi Pakkanen d64f93800f Do not write cp entry when it is empty. Closes #4602. 2018-12-09 16:24:37 +02:00
Jussi Pakkanen f881532559 Updated Linux CI image to cosmic. 2018-12-09 16:23:19 +02:00
Jussi Pakkanen c6e022b560 Print ASCII version of unrepresentable text. Closes #4600. 2018-12-07 23:12:44 +02:00
John Preston ca2e378c98 Update VS files only if something changed.
If you change only some project in meson.build,
only that .vcxproj file will be updated and reloaded.

If you change something not related to VS solution and projects
or simply touch the meson.build file, nothing will be reloaded.
2018-12-07 21:36:48 +02:00
Jussi Pakkanen 95c620db67 Error out if kwargs dict contains a kwargs entry.
Yo dawg! We heard U don't like kwargs in kwargs, so we made it
impossible to put kwargs in your kwargs so now you can't kwargs with
your kwargs.
2018-12-07 21:35:26 +02:00
Jussi Pakkanen c44a5a1aec Deduplicate export-dynamic and pthread. Closes #4567. 2018-12-06 16:20:54 +02:00
Philippe Normand 4db1b3a09f modules/python: Do not override link_args with None largs
None is not iterable so it would trigger a TypeError later when link_args are
passed on to CompilerArgs.extend_direct().
2018-12-05 22:18:53 +02:00
Dylan Baker 46f3b8f753 docs: fix link to platform install quirks [skip ci]
Fixes #4571
2018-12-05 17:57:04 +00:00
Jon Turney a2b0dd13a4 Don't blame absent cmake for all missing dependencies 2018-12-05 19:39:44 +02:00
Nirbheek Chauhan 0b3a607fd8 Correctly detect 32-bit arm userland on 64-bit arm
This is the same case as 32-bit x86 on x86_64.

Closes https://github.com/mesonbuild/meson/issues/4586
2018-12-05 19:39:01 +02:00
Nirbheek Chauhan 579b5bba12 Reorganize cpu detection code to be more consistent
Use a single point of exit for the detect_cpu* functions, and factor
out the compiler define code into a helper function.
2018-12-05 19:39:01 +02:00
Nirbheek Chauhan b75ff762f8 Fix detection with VS 2017, and fix a bug in detection on VS 2008
Starting with VS 2017, `Platform` is not always set (f.ex., if you use
VsDevCmd.bat directly instead of vcvars*.bat), but `VSCMD_ARG_HOST_ARCH`
is always set, so try that first.
2018-12-05 19:39:01 +02:00
Nirbheek Chauhan 5f8aedfa8b
Fix typos in kwargdict snippet [skip ci] 2018-12-05 08:20:09 +05:30
Nirbheek Chauhan 55d79a6ba2 docs: Misc syntax fixes and missing links [skip ci] 2018-12-05 02:40:34 +00:00
Nirbheek Chauhan c502ddfebf docs: Document subproject(... required: false) [skip ci]
Somehow this was missed in the original PR #3885
2018-12-05 02:40:34 +00:00
Nirbheek Chauhan febd3e8524
Document how to declare fallback-only dependencies [skip ci] 2018-12-05 07:44:27 +05:30
Jussi Pakkanen 58b838a80b Can specify keyword arguments with a dict. 2018-12-04 23:44:17 +02:00
John Preston c17a80f47b Use correct environment for REGEN in VS backend.
Try to guess which VS Command Prompt was used for the Meson call.
If one is chosen invoke it before calling Meson in REGEN command.
2018-12-04 20:19:19 +02:00
Xavier Claessens 8612f1543f pkgconfig: Improve and document generator behaviour
- Add libraries from InternalDependency.libraries
- Deprecate association of libraries from the "libraries" keyword
argument to the generated pkg-config file.
2018-12-04 06:49:02 -05:00
Xavier Claessens 377719cc7b BuildTarget: Fix typo, self.install does not exists 2018-12-04 06:49:02 -05:00
John Ericson 2ba97d506d Use more `environment.default_*` for consistency
After we make this work consistently, we can try to abstract the new pattern.
2018-12-03 22:34:53 +02:00
John Ericson 0fd548e16f Combine `run_tests` import lines in `run_unittests` 2018-12-03 22:33:20 +02:00
Luca Boccassi 80ac40b7e7 pkgconfig: do not generated dependency on itself
If a project generates a single pc file but multiple shared libraries
with dependencies on each other, the generated pc name will be used to
generate a Requires.private dependency, which means the project will
depend on itself. This breaks at least some versions of pkg-config
(0.27 in RHEL7) which cannot handle the recursion and error out.

When adding the dependency using the pc name, check that it's not
on the project itself.

Fixes #4583
2018-12-03 14:58:43 -05:00
Jussi Pakkanen 7ffc26078d
Merge pull request #4389 from xclaesse/subprojects-cmd
Add 'meson subprojects update' command
2018-12-02 19:48:10 +02:00
Mohammed Sadiq 41a98d0fdd coverage: Print summary after gcovr html generation
summary from stdout is often used by Automated builds to show build details

The --print-summary option was added to gcovr in v3.2, since html output
was added only in 3.1, limitting support to 3.2 won’t be a big deal.

--print-summary is not enabled for text/xml report generation as it will
result in meson not supporting any gcovr version less than 3.2.
2018-12-02 19:47:42 +02:00
Xavier Claessens 2efedf80e0 Add documentation for 'meson subprojects' command line 2018-12-02 08:37:32 -05:00
Xavier Claessens 0e7513e734 flake8: ignore W504: line break after binary operator
It wasn't an error before, and plenty of files does that.
2018-12-02 08:37:32 -05:00
Xavier Claessens d655515a6b Add 'meson subprojects download' command 2018-12-02 08:37:32 -05:00
Xavier Claessens b5eac54c9e Add 'meson subprojects checkout' command 2018-12-02 08:37:32 -05:00
Xavier Claessens 60b58e056f Add 'meson subprojects update' command
This is inspired by gst-build's git-update script.
2018-12-02 08:37:32 -05:00
Jussi Pakkanen d272f23dba
Merge pull request #4569 from lzutao/readme
Add link to built-in options page
2018-12-01 23:17:48 +02:00
lzutao 8b3939bde6 Fix the freenode link [skip ci] 2018-12-01 23:17:13 +02:00
Lzu Tao 4bd0243daf Update sample output of meson configure [skip ci] 2018-12-01 22:08:24 +02:00
Lzu Tao 2a23dd8bb0 Add link to built-in options page [skip ci] 2018-11-30 18:00:32 +07:00
Laurent Pinchart 80bdc71c0e syntax-highlighting: vim: Allow overriding shiftwidth and softtabstop
The vim syntax indentation rules stored in indent/meson.vim set the
local shiftwidth and softtabstop variables. As the file is loaded last,
after ~/.vim/after/ftplugin/meson.vim (when present), this prevents
overriding the default values for shiftwidth and softtabstop in a local
configuration.

Fix this by setting shiftwidth and softtabstop in ftplugin/meson.vim
instead (as done by the python indentiation rules in upstream vim for
instance) to allow local overrides.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2018-11-30 01:19:10 +02:00