if k in sorted(invmap.keys()):
f.write("\tglobal:\n")
for s in invmap.get(k, []):
- f.write("\t\t%s;\n" % s);
+ f.write("\t\t%s;\n" % s)
f.write("}%s;\n\n" % last_key)
last_key = " %s" % symver
f.write("%s {\n" % current_version)
if not 'EXTRA_CFLAGS' in bld.env:
list = []
else:
- list = bld.env['EXTRA_CFLAGS'];
+ list = bld.env['EXTRA_CFLAGS']
ret.extend(list)
if not allow_warnings and 'PICKY_CFLAGS' in bld.env:
- list = bld.env['PICKY_CFLAGS'];
+ list = bld.env['PICKY_CFLAGS']
ret.extend(list)
if hide_symbols and bld.env.HAVE_VISIBILITY_ATTR:
ret.append(bld.env.VISIBILITY_CFLAGS)
@conf
def CHECK_LARGEFILE(conf, define='HAVE_LARGEFILE'):
'''see what we need for largefile support'''
- getconf_cflags = conf.CHECK_COMMAND(['getconf', 'LFS_CFLAGS']);
+ getconf_cflags = conf.CHECK_COMMAND(['getconf', 'LFS_CFLAGS'])
if getconf_cflags is not False:
if (conf.CHECK_CODE('if (sizeof(off_t) < 8) return 1',
define='WORKING_GETCONF_LFS_CFLAGS',
perl_arch_install_dir = None
if vendor_prefix == conf.env.PREFIX:
- perl_arch_install_dir = check_perl_config_var('vendorarch');
+ perl_arch_install_dir = check_perl_config_var('vendorarch')
if perl_arch_install_dir is None:
- perl_arch_install_dir = "${LIBDIR}/perl5";
+ perl_arch_install_dir = "${LIBDIR}/perl5"
conf.start_msg("PERL_ARCH_INSTALL_DIR: ")
conf.end_msg("'%s'" % (perl_arch_install_dir), 'GREEN')
conf.env.PERL_ARCH_INSTALL_DIR = perl_arch_install_dir
perl_lib_install_dir = None
if vendor_prefix == conf.env.PREFIX:
- perl_lib_install_dir = check_perl_config_var('vendorlib');
+ perl_lib_install_dir = check_perl_config_var('vendorlib')
if perl_lib_install_dir is None:
- perl_lib_install_dir = "${DATADIR}/perl5";
+ perl_lib_install_dir = "${DATADIR}/perl5"
conf.start_msg("PERL_LIB_INSTALL_DIR: ")
conf.end_msg("'%s'" % (perl_lib_install_dir), 'GREEN')
conf.env.PERL_LIB_INSTALL_DIR = perl_lib_install_dir
'''Build a IDL file using pidl.
This will produce up to 13 output files depending on the options used'''
- bname = source[0:-4]; # strip off the .idl suffix
+ bname = source[0:-4] # strip off the .idl suffix
bname = os.path.basename(bname)
name = "%s_%s" % (pname, bname.upper())