3d1874af59
The previous order of flags (unintentionally) had `-lboost_log` flag specified before `-lndn-cxx`. Incidentally, the order adjustment avoids a symbol collision between the two libraries that prevented nfd-status and nfdc from working on Ubuntu 14.04. A proper fix will follow (see #2859). Change-Id: I68a5d37b013c1bf91b25e707a04ab1f66298a7f4 Refs: #3650
39 lines
1.4 KiB
Python
39 lines
1.4 KiB
Python
# -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
|
|
|
|
from waflib import Utils, Context
|
|
|
|
top = '..'
|
|
|
|
def build(bld):
|
|
# List all .cpp files (whole tool should be in one .cpp)
|
|
for i in bld.path.ant_glob(['*.cpp']):
|
|
name = str(i)[:-len(".cpp")]
|
|
bld(features=['cxx', 'cxxprogram'],
|
|
target="../bin/%s" % name,
|
|
source=[i] + bld.path.ant_glob(['%s/**/*.cpp' % name]),
|
|
use='core-objects NDN_CXX BOOST LIBRESOLV'
|
|
)
|
|
|
|
# List all directories files (tool can has multiple .cpp in the directory)
|
|
for name in bld.path.ant_glob(['*'], dir=True, src=False):
|
|
srcFiles = bld.path.ant_glob(['%s/**/*.cpp' % name])
|
|
if len(srcFiles) > 0:
|
|
bld(features=['cxx', 'cxxprogram'],
|
|
target="../bin/%s" % name,
|
|
source=srcFiles,
|
|
use='core-objects NDN_CXX BOOST LIBRESOLV',
|
|
includes='%s' % name,
|
|
)
|
|
|
|
bld(features="subst",
|
|
source=bld.path.ant_glob(['*.sh', '*.py']),
|
|
target=['../bin/%s' % node.change_ext('')
|
|
for node in bld.path.ant_glob(['*.sh', '*.py'])],
|
|
install_path="${BINDIR}",
|
|
chmod=Utils.O755,
|
|
VERSION=Context.g_module.VERSION
|
|
)
|
|
|
|
bld.install_files("${DATAROOTDIR}/ndn",
|
|
bld.path.ant_glob('nfd-status-http-server-files/*'))
|