Jussi Pakkanen
ba0456748e
Prefer pkg-config to sdl2-config.
8 years ago
Elliott Sales de Andrade
4c71695e41
Use context manager for file I/O.
...
There are a few cases where a context manager cannot be used, such as
the logger.
8 years ago
ippytraxx
9aef099bc7
'name' needs to be 'self.name' in DependencyException
8 years ago
Nirbheek Chauhan
577b6dfdf6
find_program: Find scripts without extensions on Windows
...
Because of how files and executables work on Windows, scripts that use
an interpreter must have an extension, and that extension must be
associated with an interpreter. The full list of executable extensions
is available in the PATHEXT environment variable.
However, UNIX-like OSes use an executable bit and read the shebang to
figure out what interpreter to use, and the scripts don't need to have
extensions. We can now detect these scripts using find_program by
manually searching in PATH and reading the shebang.
8 years ago
Nirbheek Chauhan
baf8481c4f
pkg-config: Print 'NO' when version is too old
...
This gives a clearer output when the dependency is not required or has a
fallback subproject otherwise the user is left wondering why the optional
dependency wasn't used or why the fallback subproject is being used.
8 years ago
Nirbheek Chauhan
48b4defa37
pkg-config: Move setting of cargs and libs to functions
...
Much cleaner this way. It's completely clear what each block of code does.
8 years ago
Nirbheek Chauhan
bc63103ae0
pkg-config: Short-circuit when there's no pkg-config file found
...
Just exit immediately when there's no pkg-config file found instead of putting
everything else in a huge 'else:'. Much clearer and avoids one level of
indentation.
No code changes accompany this.
8 years ago
Thibault Saunier
a23f577415
dependencies: Add a get_version method to Python3Dependency
...
Otherwise ninja files regeneration fails with:
AttributeError: 'Python3Dependency' object has no attribute 'get_version'
9 years ago
Jussi Pakkanen
35eb8c7b9a
Added version info to sdl2dep. Closes #616 .
9 years ago
Nirbheek Chauhan
cd509043e0
wxwidgets: Don't error out if dependency is not required ( #606 )
9 years ago
Jussi Pakkanen
f9910d2c11
Ensure cargs and libs variables always exist. Closes #581 .
9 years ago
Nirbheek Chauhan
c33e7a68a1
Also reuse subproject-based fallback dependencies
...
This allows a project to use the same fallbacks dependency from the same
subproject multiple times in the same way that external dependencies can be.
Also change the format of the dependency identifier to ensure that fallback
checks with different dirname/varname aren't mistakenly reused. We now use
a tuple for this because the format is simpler to construct and it gives us the
same immutability guarantees as a string which is needed for using it as
a dictionary key.
9 years ago
Jussi Pakkanen
cff4e7d299
Can query version strings of dependencies.
9 years ago
Hemmo Nieminen
336904b553
Move MesonException from coredata to mesonlib.
9 years ago
Jussi Pakkanen
8b6848ebc3
Add dir support for find_library and remove deprecated standalone version. Closes #450 .
9 years ago
Jussi Pakkanen
6b548a1c75
Added find_library method and deprecated the standalone version. Closes #396 .
9 years ago
Jussi Pakkanen
52b66edb6c
Can specify compile and link args for internal deps.
9 years ago
Jussi Pakkanen
a04c33e125
Can build Python extension on OSX.
9 years ago
Jussi Pakkanen
98d3fb5372
Extract python3 dependency information from the current process if it is not available in pkg-config.
9 years ago
Jussi Pakkanen
25793975d7
Can ask pkg-config to provide static libraries. Closes #380 .
9 years ago
Jussi Pakkanen
23b98cd6e6
Renamed meson package to mesonbuild so that we can have a script named meson in the same toplevel dir.
9 years ago
Jussi Pakkanen
8b1039fa30
Organise files into a module structure.
9 years ago
Jussi Pakkanen
9fca19c4eb
More cleanups.
9 years ago
Jussi Pakkanen
275ac36a28
Some more error logging.
9 years ago
Jussi Pakkanen
d92e6c4595
Boost win detection tuning.
9 years ago
Jussi Pakkanen
10acaffde7
Added explicit thread dependency.
9 years ago
Thibault Saunier
c2e163e655
gnome: Link against dependencies when building the gir files
9 years ago
Jussi Pakkanen
a91bfbbc45
Added pkg-config logging statement.
9 years ago
Jussi Pakkanen
7b45e6f5f5
Can store ext deps to internal deps. Closes #304 .
9 years ago
Jussi Pakkanen
dd68c926f8
Boost path fix for Windows.
9 years ago
Jussi Pakkanen
325ed6288b
Can leave Boost modules empty to only use the plain header libraries. Closes #263 .
9 years ago
Germán Diago Gómez
89020de121
Replaced check for mac osx by mesonlib.is_osx()
9 years ago
Germán Diago Gómez
b3b5f507ee
BoostDependency dylib detection added.
9 years ago
Jussi Pakkanen
776f899e78
Made boost on windows kinda work.
9 years ago
Jussi Pakkanen
7ff0873b07
Add OpenGL link args on Windows.
9 years ago
Thibault Saunier
3c23b19250
Fix access to the pkgconfig path in CrossBuildInfo
9 years ago
Jouni Roivas
e63e126104
Fix regexp match for qmake version
10 years ago
Jussi Pakkanen
aba97eda6b
A few fixes to gl detection.
10 years ago
Igor Gnatenko
d7ca9eee5a
vala: add support for --target-glib
...
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
10 years ago
Jussi Pakkanen
4f9d0e3e3e
Initialise version field of Qt5 dep. Closes #158
10 years ago
Jussi Pakkanen
e72f9b2312
Rework pkgconfig and add missing method. Fixes #153 .
10 years ago
Igor Gnatenko
a9303a450e
dependency: Undefined variable 'type_string'. Closes #156
...
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
10 years ago
Igor Gnatenko
474f438675
dependencies: fixes for codestyle to be more PEP-8
...
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
10 years ago
Igor Gnatenko
25176f2368
dependencies: Undefined variable 'required'. Closes #154
...
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
10 years ago
Jussi Pakkanen
6d744b13ff
Now can create internal dependencies to simplify subproject usage.
10 years ago
Jussi Pakkanen
39c26d6fe0
Can use both main and nomain gtest in same project. Fixes #149 .
10 years ago
Igor Gnatenko
b89d2e33aa
trivial: fix style
10 years ago
Mathieu Duponchelle
9c9e94d531
PkgConfigDependency: Add a get_variable method.
10 years ago
Jussi Pakkanen
d170780b7e
Added methods to get source and build root directories.
10 years ago
Jussi Pakkanen
bf02849d59
Use cross file's pkgconfig binary when cross compiling. Closes #138 .
10 years ago