mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-05-13 15:40:06 +08:00
Update rtems_waf module
This commit is contained in:
parent
e18bac8a55
commit
5aa22c60af
@ -1 +1 @@
|
||||
Subproject commit 7bcf72b72ec42f2feedac5f5cc5f2f57d50b5d2b
|
||||
Subproject commit b548c77d81e390a40d4afba8afc35c8175191f0b
|
@ -549,14 +549,14 @@ class ModuleManager(builder.ModuleManager):
|
||||
# Head file collector.
|
||||
#
|
||||
self.add(' # Installs. ')
|
||||
self.add(' bld.install_files("${PREFIX}/" + rtems.arch_bsp_lib_path(bld.env.RTEMS_ARCH_BSP), ["libbsd.a"])')
|
||||
self.add(' bld.install_files("${PREFIX}/" + rtems.arch_bsp_lib_path(bld.env.RTEMS_VERSION, bld.env.RTEMS_ARCH_BSP), ["libbsd.a"])')
|
||||
header_paths = builder.header_paths()
|
||||
self.add(' header_paths = [%s,' % (str(header_paths[0])))
|
||||
for hp in header_paths[1:-1]:
|
||||
self.add(' %s,' % (str(hp)))
|
||||
self.add(' %s]' % (str(header_paths[-1])))
|
||||
self.add(' for headers in header_paths:')
|
||||
self.add(' ipath = os.path.join(rtems.arch_bsp_include_path(bld.env.RTEMS_ARCH_BSP), headers[2])')
|
||||
self.add(' ipath = os.path.join(rtems.arch_bsp_include_path(bld.env.RTEMS_VERSION, bld.env.RTEMS_ARCH_BSP), headers[2])')
|
||||
self.add(' start_dir = bld.path.find_dir(headers[0])')
|
||||
self.add(' bld.install_files("${PREFIX}/" + ipath,')
|
||||
self.add(' start_dir.ant_glob("**/" + headers[1]),')
|
||||
|
4
wscript
4
wscript
@ -1127,7 +1127,7 @@ def build(bld):
|
||||
use = libbsd_use)
|
||||
|
||||
# Installs.
|
||||
bld.install_files("${PREFIX}/" + rtems.arch_bsp_lib_path(bld.env.RTEMS_ARCH_BSP), ["libbsd.a"])
|
||||
bld.install_files("${PREFIX}/" + rtems.arch_bsp_lib_path(bld.env.RTEMS_VERSION, bld.env.RTEMS_ARCH_BSP), ["libbsd.a"])
|
||||
header_paths = [('rtemsbsd/include', '*.h', ''),
|
||||
('rtemsbsd/mghttpd', 'mongoose.h', 'mghttpd'),
|
||||
('freebsd/include', '*.h', ''),
|
||||
@ -1148,7 +1148,7 @@ def build(bld):
|
||||
('mDNSResponder/mDNSShared', 'dns_sd.h', ''),
|
||||
('mDNSResponder/mDNSPosix', 'mDNSPosix.h', '')]
|
||||
for headers in header_paths:
|
||||
ipath = os.path.join(rtems.arch_bsp_include_path(bld.env.RTEMS_ARCH_BSP), headers[2])
|
||||
ipath = os.path.join(rtems.arch_bsp_include_path(bld.env.RTEMS_VERSION, bld.env.RTEMS_ARCH_BSP), headers[2])
|
||||
start_dir = bld.path.find_dir(headers[0])
|
||||
bld.install_files("${PREFIX}/" + ipath,
|
||||
start_dir.ant_glob("**/" + headers[1]),
|
||||
|
Loading…
x
Reference in New Issue
Block a user