Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 4 additions & 7 deletions config/wscript
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,25 @@
# encoding: utf-8

def configure(ctx):
# Nuke the zcm.pc in build/ to ensure it's correct after a build
# We need to do this because we're generating the file with the substring tool
# And waf is not treating Environment Vars as a dependency for the file
ctx.exec_command('rm -f ' + ctx.path.get_bld().abspath() + '/zcm.pc')
pass

def build(ctx):
ctx(features="subst",
source="zcm.pc.in",
target="zcm.pc",
install_path="${LIBDIR}/pkgconfig",
always=True)
PREFIX = ctx.env.PREFIX)

if ctx.env.USING_ELF:
ctx(features="subst",
source="zcm-tools-util.pc.in",
target="zcm-tools-util.pc",
install_path="${LIBDIR}/pkgconfig",
always=True)
PREFIX = ctx.env.PREFIX)

if ctx.env.USING_JAVA:
ctx(features="subst",
source="zcm-tools.pc.in",
target="zcm-tools.pc",
install_path="${LIBDIR}/pkgconfig",
always=True)
PREFIX = ctx.env.PREFIX)
2 changes: 1 addition & 1 deletion config/zcm.pc.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
prefix=@prefix@
prefix=@PREFIX@
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
libdir64=${exec_prefix}/lib64
Expand Down
5 changes: 2 additions & 3 deletions waftools/strip_on_install.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@ def copy_fun(self, src, tgt):
tgt = '\\\\?\\' + tgt
shutil.copy2(src, tgt)
os.chmod(tgt, self.chmod)

striptool = os.environ.get('STRIP_TOOL', 'strip')
if getattr(self.generator, 'link_task', None):
if self.generator.link_task.outputs[0] in self.inputs:
self.generator.bld.cmd_and_log('strip %s' % tgt, quiet=Context.BOTH)
self.generator.bld.cmd_and_log('%s %s' % (striptool, tgt), quiet=Context.BOTH)
Build.inst.copy_fun = copy_fun

2 changes: 1 addition & 1 deletion wscript
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ def setup_environment(ctx):
ctx.env.CXXFLAGS_default.append('-march=%s' % ctx.env.MARCH)

ctx.env.INCLUDES_default = [ctx.path.abspath()]
ctx.env.LIB_default = ['rt']
ctx.env.LIB_default = ['rt'] if ctx.env.USING_IPCSHM else []
ctx.env.LINKFLAGS_default = ['-pthread']

ctx.env.DEFINES_default = ['_LARGEFILE_SOURCE', '_FILE_OFFSET_BITS=64']
Expand Down
Loading