Moved different gnome feature tests in their own subdirectories.

pull/54/merge
Jussi Pakkanen 10 years ago
parent 8ae740bb83
commit 9e1700cbfe
  1. 2
      modules/gnome.py
  2. 0
      test cases/frameworks/7 gnome/gir/golib.c
  3. 0
      test cases/frameworks/7 gnome/gir/golib.h
  4. 15
      test cases/frameworks/7 gnome/gir/meson.build
  5. 0
      test cases/frameworks/7 gnome/gir/prog.c
  6. 32
      test cases/frameworks/7 gnome/meson.build
  7. 0
      test cases/frameworks/7 gnome/resources/data/res1.txt
  8. 0
      test cases/frameworks/7 gnome/resources/main.c
  9. 7
      test cases/frameworks/7 gnome/resources/meson.build
  10. 0
      test cases/frameworks/7 gnome/resources/myresource.gresource.xml
  11. 0
      test cases/frameworks/7 gnome/schemas/com.github.meson.gschema.xml
  12. 8
      test cases/frameworks/7 gnome/schemas/meson.build
  13. 2
      test cases/frameworks/7 gnome/schemas/schemaprog.c

@ -26,7 +26,7 @@ class GnomeModule:
def compile_resources(self, state, args, kwargs):
cmd = ['glib-compile-resources', '@INPUT@', '--generate']
if 'source_dir' in kwargs:
d = os.path.join(state.build_to_src, kwargs.pop('source_dir'))
d = os.path.join(state.build_to_src, state.subdir, kwargs.pop('source_dir'))
cmd += ['--sourcedir', d]
if 'c_name' in kwargs:
cmd += ['--c-name', kwargs.pop('c_name')]

@ -0,0 +1,15 @@
libsources = ['golib.c', 'golib.h']
girexe = executable('girprog', libsources, 'prog.c',
dependencies : [glib, gobj, gir, gmod])
gnome.generate_gir(girexe,
sources : libsources,
nsversion : '1.0',
namespace : 'Meson',
install : true,
install_dir : 'typelibdir',
)
test('gobject introspection', girexe)

@ -7,33 +7,7 @@ gobj = dependency('gobject-2.0')
gir = dependency('gobject-introspection-1.0')
gmod = dependency('gmodule-2.0')
myres = gnome.compile_resources('myresources', 'myresource.gresource.xml',
source_dir : 'data',
c_name : 'myres')
subdir('resources')
subdir('gir')
subdir('schemas')
resexe = executable('resprog', 'main.c', myres,
dependencies : gio)
test('resource test', resexe)
libsources = ['golib.c', 'golib.h']
girexe = executable('girprog', libsources, 'prog.c',
dependencies : [glib, gobj, gir, gmod])
gnome.generate_gir(girexe,
sources : libsources,
nsversion : '1.0',
namespace : 'Meson',
install : true,
install_dir : 'typelibdir',
)
test('gobject introspection', girexe)
gnome.compile_schemas()
install_data('com.github.meson.gschema.xml',
install_dir : 'share/glib-2.0/schemas')
schemaexe = executable('schemaprog', 'schemaprog.c',
dependencies : gio)
test('schema test', schemaexe)

@ -0,0 +1,7 @@
myres = gnome.compile_resources('myresources', 'myresource.gresource.xml',
source_dir : 'data',
c_name : 'myres')
resexe = executable('resprog', 'main.c', myres,
dependencies : gio)
test('resource test', resexe)

@ -0,0 +1,8 @@
gnome.compile_schemas()
install_data('com.github.meson.gschema.xml',
install_dir : 'share/glib-2.0/schemas')
schemaexe = executable('schemaprog', 'schemaprog.c',
dependencies : gio)
test('schema test', schemaexe)

@ -9,7 +9,7 @@ int main(int argc, char **argv) {
GVariant *value;
GError *error = NULL;
src = g_settings_schema_source_new_from_directory(".",
src = g_settings_schema_source_new_from_directory("schemas",
g_settings_schema_source_get_default(), TRUE, &error);
if(error) {
fprintf(stderr, "Fail: %s\n", error->message);
Loading…
Cancel
Save