Nirbheek Chauhan
814f4909f9
pkgconfig: Handle library names starting with 'lib'
...
Sometimes people want the library to start with 'lib' everywhere, which
is achieved by setting name_prefix to '' and the target name to
'libfoo'. In that case, try to get the pkg-config '-lfoo' arg right.
Also, don't warn about anything on Windows
Fixes https://github.com/mesonbuild/meson/issues/889
8 years ago
Nirbheek Chauhan
674b520206
pkgconfig: Only warn for suffix if the filename doesn't start with lib
8 years ago
Nirbheek Chauhan
d819914af0
pkgconfig: Warn if library has name_prefix/suffix set
...
GCC/Clang won't be able to find it via an -lfoo flag, so the pkg-config
file might be unusable.
Fixes https://github.com/mesonbuild/meson/issues/889
8 years ago
Igor Gnatenko
0d58ddd739
rpm: couple of improvements and fixes
...
* Don't hardcode /usr/bin, use %{_bindir}
* Implement %meson_build / %meson_install / %meson_test
* Automatic handling of out-of-tree builds
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
8 years ago
Patrick Griffis
94b7b59546
gnome.generate_gir(): Also include current build dir
...
Continuation of 084b854ce0
8 years ago
Patrick Griffis
dd9dfa77fb
gnome.generate_gir(): Add install_dir_gir and install_dir_typelib
...
A generic `install_dir` is less useful and didn't work so just ignore it
8 years ago
Patrick Griffis
084b854ce0
gnome: Consistently include current source dir
...
This is a common pattern so avoid the duplication
8 years ago
Elliott Sales de Andrade
2840539a08
Don't overwrite mkenums C file dependencies.
8 years ago
Elliott Sales de Andrade
8f024c0697
Allow running mkenums without templates.
8 years ago
Jussi Pakkanen
d61b71fdc2
Converted mkenums to be single invocation.
8 years ago
Elliott Sales de Andrade
1033728c85
Fix mkenums and genmarshal argument names.
...
Dashes aren't allowed in keyword argument names.
8 years ago
Elliott Sales de Andrade
ceee8bc6b2
Generate genmarshal header and body simultaneously.
...
This follows the same style as gnome.compile_resources, which produces
both files from one invocation.
8 years ago
Elliott Sales de Andrade
2a8a0727fc
Add support for glib-genmarshal to gnome module.
8 years ago
Elliott Sales de Andrade
ab004ab189
Add support for glib-mkenums to gnome module.
8 years ago
Thibault Saunier
bb3823e6f4
gnome: Allow specifying gtkdoc where to install directory
8 years ago
Thibault Saunier
f86fbf6ebf
gnome: Run gtkdoc-scanobjs and add a way to get assets working
...
Allowing the object tree to be generated.
We need to add options to allow copying the ncesseary sources and
assets so the HTML generator can work with them (everything is
relative so we need to copy them in the build directory).
Until now the documentation was not generated from the user provided
main sgml file but it was using a generated one, which lead to a broken
documentation. Starting using it revealed the other bugs fixed in that
commit.
8 years ago
Thibault Saunier
68ae8e1ad0
gnome: Factor out a get_dependencies_flags method
...
And recurse to make sure that we build against all internal
dependencies dependencies.
8 years ago
Thibault Saunier
52a4b3302e
gnome: Make all include paths absolute
...
The relative computation was broken when using
subprojects.
8 years ago
TingPing
5b34e560e5
gnome: Print useful error if missing compile_resource arg ( #811 )
8 years ago
Elliott Sales de Andrade
28e1f3ba13
Fix pkgconfig libraries passed to GIR targets.
8 years ago
Elliott Sales de Andrade
7a6534e054
GIR: Handle all dependencies and internal libraries.
8 years ago
Elliott Sales de Andrade
68a2e5c9c9
Also add GIR include_directories to header search path.
8 years ago
Elliott Sales de Andrade
9009f8267e
Allow GirTargets as includes for another GirTarget.
8 years ago
Elliott Sales de Andrade
3ae327a2ac
Pull dependency directly from GIR's target library.
8 years ago
Elliott Sales de Andrade
d0b6f0b7a4
Add dependency's include paths to GIR generation.
8 years ago
Elliott Sales de Andrade
f2ccad64fc
Determine GIR include paths like targets.
...
These paths are now generated similar to
NinjaBackend.generate_single_compile where IncludeDirs create includes
of both the build directory path and the source directory path.
This also fixes a bug with include_directories, where the path string
supplied to the IncludeDirs initializer was used for the search path,
instead of the actual location to which it referred. Often, this was a
'.', and not a really useful path.
8 years ago
grindhold
167deda665
module pkgconfig: added install_dir attribute ( #776 )
...
the pkgconfig module automatically specified to install the
pkgconfig file to {libdir}/pkgconfig. Default settings in meson
already include multiarch-directories like x86_64-gnu-linux into
the libdir. pkgconfig usually does not check inside multiarch-dirs
for any pkgconfig-files.
to make this a bit more flexible, this commit introduces the
install_dir attribute for pkgconfig.generate. if it is set, the
default install path will be overridden by the users input
8 years ago
TingPing
0e79664155
Minor pkgconfig module cleanups ( #748 )
...
* pkgconfig: Remove unused function
Leftover copy from modtest
* Add self to authors.txt
8 years ago
Thibault Saunier
6c6c706bb8
gnome: Handle internal dependencies to generate gir files
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
Elliott Sales de Andrade
a2321b24f6
Flatten isinstance calls. ( #715 )
...
That is, isinstance(x, y) or isinstance(x, z) can be flattened with a
tuple to isinstance(x, (y, z)).
8 years ago
Jussi Pakkanen
fae8ad90a4
Consistent kwarg popping.
8 years ago
Jussi Pakkanen
4b3414cba0
Add extra_args kwarg to glib-compile-resources. Closes #698 .
8 years ago
Jussi Pakkanen
4a92b78e6e
A few error message fixes.
8 years ago
Nirbheek Chauhan
e6c927d8ac
gnome: Update RunTarget usage to new syntax
...
This was broken in 0733c0f9a1
9 years ago
Nirbheek Chauhan
201f2aebed
Also read WINDRES envvar to find windres ( #645 )
...
This is, of course, only used when building with MinGW
9 years ago
Wim Taymans
660c872422
gnome.py: typelib files should be installed in libdir
...
The typelib files should be installed in libdir, even on debian (which
has them in /usr/lib/x86_64-linux-gnu/girepository-1.0/).
9 years ago
Jussi Pakkanen
0733c0f9a1
Changed run_target to take command as kwarg and add depends. This makes it behave the same as custom_target.
9 years ago
Ippytraxx
8ea17322e4
Add custom_install_dir to ld path in pkgconfig module
9 years ago
Jussi Pakkanen
76d88259bd
Make sure outputs do not contain stray path segments.
9 years ago
Jussi Pakkanen
cc055387cd
Can have multiple Qt resource files in a single target. Closes #572 .
9 years ago
Jussi Pakkanen
3b3c05f6b1
Can pass extra args to xgettext. Closes #554 .
9 years ago
Jussi Pakkanen
d8e08224da
Helper function to get the install dir of a gtkdoc module. Closes #551 .
9 years ago
Emmanuele Bassi
8998e44cd9
Support passing extra arguments to gtkdoc-fixxref
...
The extra arguments are typically used to specified the location of
installed API references that gtk-doc can use to create cross links
for symbols.
Fixes #555
9 years ago
Jussi Pakkanen
dc148e0702
Remove all special casing for gettext and use elementary operations instead.
9 years ago
Tim-Philipp Müller
3b5dcdbd42
gnome: only print warning when gresource-related functionality is used ( #510 )
...
It's confusing to print this when using stuff that works just fine.
9 years ago
Jussi Pakkanen
e44229b9c2
Removed no longer used attribute from rpm generator. Closes #502 .
9 years ago
Jussi Pakkanen
6841672eb5
Import fix. Closes #498 .
9 years ago
Hemmo Nieminen
336904b553
Move MesonException from coredata to mesonlib.
9 years ago
Jussi Pakkanen
26f647d728
And private libraries.
9 years ago