The last few commits regressed 'check'; fix those up.
# Public API
def run(self):
- print ' GEN ' + (self._options.output and
- self._options.output or '<stdout>')
c_path = self._generate_tempfile('.c')
f = open(c_path, 'w')
f.write(_PROGRAM_TEMPLATE)
from __future__ import with_statement
-import os
-
from .ast import (Alias, Array, Bitfield, Callback, Class, Constant, Enum,
Function, Interface, List, Map, Member, Struct, Union,
Varargs)
def _create_const(self, symbol):
# Don't create constants for non-public things
# http://bugzilla.gnome.org/show_bug.cgi?id=572790
- if symbol.source_filename is None or not symbol.source_filename.endswith('.h'):
+ if (symbol.source_filename is None or
+ not symbol.source_filename.endswith('.h')):
return None
name = self.remove_prefix(symbol.ident)
if symbol.const_string is not None:
return libtool_path.split(' ')
try:
- subprocess.check_call(['libtool', '--version'])
+ subprocess.check_call(['libtool', '--version'],
+ stdout=open(os.devnull))
except subprocess.CalledProcessError, e:
# If libtool's not installed, assume we don't need it
return None
check-local: offsets-1.0.typelib
LD_LIBRARY_PATH=$(top_builddir)/girepository/.libs:$(builddir)/.libs$${LD_LIBRARY_PATH:+:$$LD_LIBRARY_PATH} \
- GI_TYPELIB_PATH=:$(top_builddir)/gir gitestoffsets$(EXEEXT) offsets.compiled offsets.introspected
+ GI_TYPELIB_PATH=:$(top_builddir)/gir ./gitestoffsets$(EXEEXT) offsets.compiled offsets.introspected
diff -u offsets.compiled offsets.introspected
CLEANFILES += offsets.compiled offsets.introspected