Sam Thursfield
25f13067c2
gnome: allow use of generated files with compile_resources()
...
This commit adds a 'dependencies' keyword to the
gnome.compile_resources() function, which allows your resource blob
to depend on files generated at build-time from custom_target() or
configure_file() targets.
My current use case for this is source data that gets processed with Gettext
translation tools before being compiled into the resource blob.
This feature only works with GLib version 2.48.2 and above. So the
compile_resources() function now detects GLib version and raises an
error if the version of GLib being used is too old.
The compile_resources() test case is now split into two, so that the
existing one can continue to run on systems with old GLib versions (such
as Ubuntu Xenial, which the automated tests on travisci.org use), but
where new enough GLib is available we also test generating gresource
content.
The existing warning about glib-compile-resources is now only printed
if GLib version is older than 2.50.0 because
<https://bugzilla.gnome.org/show_bug.cgi?id=745754 > is fixed in the
2.50.0 release.
8 years ago
Sam Thursfield
c1d2b65c73
Use stdout for success message instead of stderr in gresource test
...
This doesn't fix an issue, it's just good practice.
8 years ago
Nirbheek Chauhan
6a002a7bea
tests/gnome: Add missing enums.h dep to enums2.c
...
Was causing intermittent test failures
8 years ago
Thibault Saunier
6eacca2024
dependencies: Fix traceback always setting 'variable'
...
if pkg-config return != 0 and the dep is not required, it will not be set
8 years ago
Elliott Sales de Andrade
71eddecdc7
Add missing dependency in gnome.mkenums test.
8 years ago
Nirbheek Chauhan
d3e73e0dbc
tests/7 gnome: Add a dependency on the compiled schemas
...
The executable needs to pull in the compiled schemas or they won't be
compiled.
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
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
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
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
Jussi Pakkanen
bd23131eca
Some platforms require linking against libintl explicitly.
8 years ago
Thibault Saunier
5780c42b70
tests: framworks: 7 gnome: Stop using g_autoptr
8 years ago
Thibault Saunier
082cb075b0
Test building gir file using internal dependencies
8 years ago
Nirbheek Chauhan
24aa7f300a
tests: Don't fail wxwidgets test if wxwidgets is not installed ( #639 )
...
The widgets pull in lots of deprecated libraries, so don't require it
8 years ago
Jussi Pakkanen
cc055387cd
Can have multiple Qt resource files in a single target. Closes #572 .
9 years ago
Jussi Pakkanen
d8e08224da
Helper function to get the install dir of a gtkdoc module. Closes #551 .
9 years ago
Jussi Pakkanen
12a4e7d7e7
Moved gettext into i18n module.
9 years ago
Jussi Pakkanen
8b6848ebc3
Add dir support for find_library and remove deprecated standalone version. Closes #450 .
9 years ago
Jussi Pakkanen
edaf663ee2
By default do not specify language version but instead use the compiler's default.
9 years ago
Jussi Pakkanen
3cbe9d32fa
Added script to run benchmarks.
9 years ago
Jussi Pakkanen
18c423db15
Fix gtkdoc. We had to disable the test but on the other hand we have gstreamer docs working.
9 years ago
Jussi Pakkanen
9a4016d37a
Added option for VS exception type.
9 years ago
Jussi Pakkanen
50663144c3
Can set compiler options, added language versions for Gnu and Clang.
9 years ago
Jussi Pakkanen
384365c843
Added outdir() method to build targets so we can make output dirs togglable.
9 years ago
Jussi Pakkanen
325ed6288b
Can leave Boost modules empty to only use the plain header libraries. Closes #263 .
9 years ago
Jussi Pakkanen
776f899e78
Made boost on windows kinda work.
9 years ago
Jussi Pakkanen
a90bbb7277
Finally full test suite passes, even gir.
9 years ago
Jussi Pakkanen
f32db9afa2
Generator outputs are all relative.
9 years ago
Igor Gnatenko
0384fa9175
add python test for glib and test against lib
...
print->print_message is caused because GI does print->print_
in python bindings which is not good.
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
9 years ago
Igor Gnatenko
7b0dd7299c
tests/gnome/gir: use modern GLib stuff
...
* less boilerplate GObject code
* fixes memory leaks in main function
* drop unused deps
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
9 years ago
Jussi Pakkanen
60ff47f736
Can specify gtk-doc search dirs with include_directories. Closes #231 .
9 years ago
Jussi Pakkanen
cbc329fc32
Add sgml main to gtk-doc.
9 years ago
Jussi Pakkanen
83cc5ce4c5
Allow more than one install script and make gtkdoc method return one.
9 years ago
Jussi Pakkanen
8b52dec6d9
Can generate gtkdoc documentation.
9 years ago
Jussi Pakkanen
39c26d6fe0
Can use both main and nomain gtest in same project. Fixes #149 .
10 years ago
Jussi Pakkanen
698b1c6471
Use QMake to sniff compiler flags on platforms without pkg-config.
10 years ago
Jussi Pakkanen
bfa68aaeaf
Autodetect Qt5 rcc dependencies as well as reasonably possible.
10 years ago
Igor Gnatenko
d121b7cd55
modules/gnome: add export_packages kwarg to g-ir-scanner
...
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
10 years ago
Igor Gnatenko
2db5f97402
modules/gnome: add symbol_prefix kwarg to g-ir-scanner
...
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
10 years ago
Igor Gnatenko
f1d2827bce
modules/gnome: inherit global cflags to g-ir-scanner. Closes #74
...
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
10 years ago
Igor Gnatenko
3be7297de8
modules/gnome: add support for multiple include for Gir. Closes #69
...
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
10 years ago
Igor Gnatenko
888945ac2e
modules/gnome: install Gir also and auto-detect it's dir
...
Gir file should be installed in devel subpackage
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
10 years ago
Igor Gnatenko
f94fc2f497
modules/gnome: auto-set girepository directory
...
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
10 years ago
Jussi Pakkanen
9741f75277
Created gdbus-codegen helper in the gnome module.
10 years ago
Jussi Pakkanen
9e1700cbfe
Moved different gnome feature tests in their own subdirectories.
10 years ago
Jussi Pakkanen
8ae740bb83
Added simple gsettings schema compiler to gnome module.
10 years ago