diff options
author | jpakkane <jpakkane@gmail.com> | 2015-05-16 13:33:20 +0300 |
---|---|---|
committer | jpakkane <jpakkane@gmail.com> | 2015-05-16 13:33:20 +0300 |
commit | 64f2b4b3def020792a9a4d40622eb70cc674e73a (patch) | |
tree | d4cad12cc158f071e6d00fd511abe4c59f04f0fd /modules/gnome.py | |
parent | 4743ad90cf53b3a451f51917f920296512992e52 (diff) | |
parent | 25d5cf14efea86b7b20d5d821ac5d31cad6c18f9 (diff) | |
download | meson-64f2b4b3def020792a9a4d40622eb70cc674e73a.zip meson-64f2b4b3def020792a9a4d40622eb70cc674e73a.tar.gz meson-64f2b4b3def020792a9a4d40622eb70cc674e73a.tar.bz2 |
Merge pull request #112 from thiblahute/gir_fixes
Gir fixes
Diffstat (limited to 'modules/gnome.py')
-rw-r--r-- | modules/gnome.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/modules/gnome.py b/modules/gnome.py index afd07a0..55eec17 100644 --- a/modules/gnome.py +++ b/modules/gnome.py @@ -55,10 +55,16 @@ class GnomeModule: nsversion = kwargs.pop('nsversion') libsources = kwargs.pop('sources') girfile = '%s-%s.gir' % (ns, nsversion) + scan_command = ['g-ir-scanner', '@INPUT@'] scan_command += pkgargs scan_command += ['--namespace='+ns, '--nsversion=' + nsversion, '--warn-all', '--output', '@OUTPUT@'] + + for incdirs in girtarget.include_dirs: + for incdir in incdirs.get_incdirs(): + scan_command += ['-I%s' % os.path.join(state.environment.get_source_dir(), incdir)] + if 'includes' in kwargs: includes = kwargs.pop('includes') if isinstance(includes, str): @@ -99,7 +105,10 @@ class GnomeModule: if isinstance(girtarget, build.Executable): scan_command += ['--program', girtarget] elif isinstance(girtarget, build.SharedLibrary): - scan_command += ['--library', girtarget.get_basename()] + libname = girtarget.get_basename() + if girtarget.soversion: + libname += "-%s" % girtarget.soversion + scan_command += ['--library', libname] scankwargs = {'output' : girfile, 'input' : libsources, 'command' : scan_command} |