Commit Graph

2092 Commits

Author SHA1 Message Date
Dylan Baker 3a0f8ab0cf dependencies/dev: remove unused imports
flake8 complains about them, and I prefer to have a clean error log in
vim.
2018-01-06 13:49:34 -08:00
Dylan Baker 4620bdd8b4 tests: fix rpath_uses_ORIGIN on dragonflybsd
Which always seems to prepend /usr/lib/gcc50 (or whatever version) to
the rpath, and $ORIGIN after that.
2018-01-06 13:49:34 -08:00
Dylan Baker 10a560a411 compilers: fix unittest "16 prebuilt shared" on dragonfly bsd 2018-01-06 13:49:34 -08:00
Jon Turney fd66692f73 Fix a problem when anyone actually tries to use a non-found dependency
Fix BuildTarget.add_deps() to handle class Dependency
Extend test case to cover uses of the not-found dependency object
2018-01-06 19:20:32 +02:00
Jussi Pakkanen 86feb843f4 Add promote to list of wrap commands. 2018-01-06 15:48:43 +02:00
Jon Turney 1a948b2e67 Fix dependency('boost') on Cygwin
Fix dependency('boost') on Cygwin, broken in PR #2824

Like linux, Cygwin doesn't use -mt tags
Not sure what's correct for BSDs and Haiku
2018-01-04 22:48:14 +00:00
Jussi Pakkanen 0538009d30 Bump minimum supported Python from 3.4 to 3.5. 2018-01-04 21:29:02 +02:00
Jussi Pakkanen 65f78a722a
Merge pull request #2856 from jon-turney/warning-location
Consolidate warning location formatting
2018-01-03 22:32:40 +02:00
Jussi Pakkanen c814f1145b
Merge pull request #2824 from bredelings/fix-boost
Fix boost on mac and linux: correctly search for boost and set -mt suffix when needed.
2018-01-02 22:17:23 +02:00
Jussi Pakkanen ad54bc3726
Merge pull request #2838 from mesonbuild/nirbheek/consolidate-subproject-dep-checking
intrp: Consolidate subproject dep checking and logging
2018-01-02 20:35:19 +02:00
Benjamin Redelings 62bec86aa6 Handle header-only boost modules on Unix when BOOST_ROOT is not set. 2018-01-01 22:42:49 -08:00
Benjamin Redelings ce0b0d463f Fix macports builds: don't override include paths unless BOOST_ROOT.
We don't want to add /usr/local to the include path, because that will
pick up homebrew headers.
2018-01-01 22:42:49 -08:00
Benjamin Redelings 075e2d4154 Add todo comments. 2018-01-01 22:42:49 -08:00
Benjamin Redelings a12d47984e Remove unqualified import and add mesonlib. in from of symbols. 2018-01-01 22:42:49 -08:00
Benjamin Redelings 57265e2486 Use include path to find <boost/version.hpp> and version number. 2018-01-01 22:42:49 -08:00
Benjamin Redelings ea4d5697a8 Fix style issues. 2018-01-01 22:42:49 -08:00
Benjamin Redelings a82abfcb4a Use new strategy for finding libraries on Linux & Mac. 2018-01-01 22:42:49 -08:00
Benjamin Redelings 1043b0b4a2 Factor out extra linker search dirs into new function. 2018-01-01 22:42:49 -08:00
Benjamin Redelings c62078dae5 Add missing for_linux( ) function. 2018-01-01 22:42:49 -08:00
Benjamin Redelings d55f330df0 Change values in lib_modules dict to lists (of linker args). 2018-01-01 22:42:49 -08:00
Benjamin Redelings 1af17075ab Add information about Linux and Mac. 2018-01-01 22:42:49 -08:00
Benjamin Redelings 074bd544c7 Fix typo. 2018-01-01 22:42:49 -08:00
Benjamin Redelings 4c7802b107 Link against the library files that we found during module detection. 2018-01-01 22:42:49 -08:00
Benjamin Redelings 71d24094cd Factor out code to compute modname from basename into a single place. 2018-01-01 22:42:49 -08:00
Jon Turney bcc95d7dd7 Use location formatting in mlog.warning() for invalid kwarg warning
This already reports the location (in a slightly different format), but
using mlog.warning() will make it easier if we want to change the location
format in future.
2018-01-01 13:21:01 +00:00
Jon Turney f85fde743a Wire up locations in a couple more warnings
These are the remaining warnings in the parser, where we have the location
to hand.
2018-01-01 13:21:00 +00:00
Jon Turney 2ed875e1b4 Consolidate warning location formatting in mlog.warning()
Also use .format() rather than %
Also use build.environment rather than hardcoding 'meson.build'
2018-01-01 13:20:55 +00:00
Jussi Pakkanen d4985d981f Merged init branch. 2018-01-01 02:12:13 +02:00
Jussi Pakkanen f2b33b8dcb
Merge pull request #2852 from jon-turney/warning-location
Add filename and lineno to duplicate kwargs warning
2018-01-01 02:09:45 +02:00
Jussi Pakkanen 4a189cf8c5 Add unit test that checks that the sample projects compile. 2017-12-31 23:24:29 +02:00
Jussi Pakkanen f1afd44b2b Added C++ library sample. 2017-12-31 23:18:08 +02:00
Jussi Pakkanen 21101fd00a Added C++ exe sample project. 2017-12-31 23:18:08 +02:00
Jussi Pakkanen 3cc1462dd2 Add a sample shared library project. 2017-12-31 23:18:08 +02:00
Jussi Pakkanen d2b68d31dd Added init command that creates a sample exe project. 2017-12-31 23:18:08 +02:00
Nirbheek Chauhan 851475db9b intrp: Consolidate subproject dep checking and logging
If a dep is not found on the system and a fallback is specified, we
have two cases:

1. Look for the dependency in a pre-initialized subproject
2. Initialize the subproject and look for the dependency

Both these require version comparing, ensuring the fetched variable
is a dependency, and printing a success message, erroring out, etc.

Now we share the relevant code instead of duplicating it. It already
diverged, so this is a good thing.

As a side-effect, we now log fallback dependencies in the same format
as system dependencies:

    Dependency libva found: YES
    Dependency libva found: YES (cached)

    Dependency glib-2.0 from subproject subprojects/glib found: YES
    Dependency glib-2.0 from subproject subprojects/glib found: YES (cached)
2018-01-01 01:14:03 +05:30
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
snsmac 27d5c1c3f9 The scanbuild script does now also look for executables with a version in the name 2017-12-30 23:22:39 +02:00
Jussi Pakkanen a9c57e17a9
Merge pull request #2849 from polarina/vsregenfix
Fix Visual Studio version detection for the `vs` backend
2017-12-30 23:22:01 +02:00
Alexey Stukalov 4f32d11e1b add Compiler.thread_flags() stub
fixes #2834
2017-12-30 23:21:42 +02:00
Jon Turney ad5cc2ce55 Append warning location to warning output by warning() 2017-12-30 20:10:15 +00:00
Jon Turney 3c75ae9ced Add filename and lineno to duplicate kwargs warning
Fixes #1626

Also fix 'a an error' typo
2017-12-30 19:32:54 +00:00
Nirbheek Chauhan ae0f4ef055 compilers: Fix error when objc/objc++ compilers are not found
Earlier it would exit with a traceback:

UnboundLocalError: local variable 'out' referenced before assignment
2017-12-30 18:02:28 +02:00
Nirbheek Chauhan 6f3e2a0a07 compilers: prefer C++ over objc in clink_langs
Otherwise we will try to use the objc compiler when linking projects
with both objc and C++.

Technically we should use the objc++ linker when doing this, but on
most (all?) systems the objc++ linker is `c++`, which is the same
as the C++ linker.

Closes https://github.com/mesonbuild/meson/issues/2468
2017-12-30 17:59:34 +02:00
Gabríel Arthúr Pétursson 2fc3fc8d67 Remember which Visual Studio backend was auto-detected
This fixes the REGEN build target since VSINSTALLDIR does not get set by
Visual Studio when building targets.

Fixes #2848.
2017-12-30 14:03:59 +00:00
Gabríel Arthúr Pétursson c8355c9ffa Fail Visual Studio version detection if VSINSTALLDIR is not set
The Visual Studio Developer Command Prompt always sets the VSINSTALLDIR
environment variable. If not, we probably have a broken environment and
won't get very far anyway.
2017-12-30 13:58:38 +00:00
Karol Szuster 8fb7d9261a Add missing space 2017-12-27 00:41:09 +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 1806aac376
Merge pull request #2817 from jon-turney/master
Update prefix-dependent defaults when project(default_options:) changes prefix
2017-12-26 13:22:03 +02:00
Jussi Pakkanen d55e98ef50
Merge pull request #2581 from NickeZ/check-subproj-version
Disallow subprojects have incompatible deps
2017-12-26 13:18:45 +02:00
Jussi Pakkanen 1904b1a976
Merge pull request #2806 from inigomartinez/gtkdoc
gnome.gtkdoc: Add support for non string based content files
2017-12-26 13:15:08 +02:00