Guillaume Poirier-Morency
bd22c9bdd2
pkgconfig: Add a newline after variable declarations
8 years ago
Jussi Pakkanen
a01919976e
Always specify installed data with a File object. Closes #858 .
8 years ago
Nirbheek Chauhan
a2262103fb
Implement mlog.warning and use it everywhere for warnings
...
Prepends the string with 'WARNING:' in ANSI yellow.
Closes https://github.com/mesonbuild/meson/issues/961
8 years ago
Guillaume Poirier-Morency
f7a60099f6
pkgconfig: Fix absolute 'libdir' and 'includedir'
8 years ago
Guillaume Poirier-Morency
bda92b37ee
pkgconfig: Accept string for 'libraries' and 'libraries_private'
8 years ago
Guillaume Poirier-Morency
9ebc140832
pkgconfig: Process private libraries like regular ones
8 years ago
Guillaume Poirier-Morency
9429183c1d
pkgconfig: Fix typo in 'Libs.private'
...
It's no different from 'Libs', so we specify as well the directory.
8 years ago
Guillaume Poirier-Morency
3090419181
pkgconfig: Add missing 'URL' and 'Conflicts' entries
8 years ago
Guillaume Poirier-Morency
a33c5c50f1
pkgconfig: Rename 'CFlags' for 'Cflags'
8 years ago
Guillaume Poirier-Morency
e9f66b1930
pkgconfig: Prevent trailing space
...
Prepend instead of appending a space so that we never end with a
trailing space.
8 years ago
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
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
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
Ippytraxx
8ea17322e4
Add custom_install_dir to ld path in pkgconfig module
9 years ago
Hemmo Nieminen
336904b553
Move MesonException from coredata to mesonlib.
9 years ago
Jussi Pakkanen
26f647d728
And private libraries.
9 years ago
Jussi Pakkanen
c0c9a96c36
Can set requires manually into generated pc files.
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
61cb4ae9ca
Can compile full test suite.
9 years ago
Jussi Pakkanen
8b1039fa30
Organise files into a module structure.
9 years ago
Jussi Pakkanen
d64211f570
Moved pkg-config to a module so we no longer need special case code in core for it.
9 years ago