Skip to content

Commit 58532a6

Browse files
authored
Copy the iotjs libraries into the build folder in case of TizenRT (#212)
JSRemoteTest-DCO-1.0-Signed-off-by: Roland Takacs [email protected]
1 parent a14da88 commit 58532a6

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

jstest/builder/builder.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def init_modules(modules):
2626
exec_cmd(command)
2727

2828

29-
def build_modules(modules, builddir):
29+
def build_modules(modules):
3030
'''
3131
Build all the modules and save the artifacts.
3232
'''
@@ -35,8 +35,14 @@ def build_modules(modules, builddir):
3535
for _, build_info in sorted(modules.iteritems()):
3636
exec_cmd(build_info.get('build'))
3737

38+
39+
def save_artifacts(modules, builddir):
40+
'''
41+
Copy the created files (libs, linker.map, ...) into the build folder.
42+
'''
43+
for _, build_info in modules.iteritems():
44+
# Do not copy the artifact if not necessary.
3845
for artifact in build_info.get('artifacts', []):
39-
# Do not copy the artifact if not necessary.
4046
if 'dst' not in artifact:
4147
continue
4248

@@ -99,7 +105,8 @@ def build(self):
99105
modules = self.read_modules()
100106

101107
init_modules(modules)
102-
build_modules(modules, self.build_dir)
108+
build_modules(modules)
109+
save_artifacts(modules, self.build_dir)
103110

104111
# Create build information.
105112
builder_utils.create_build_info(self.env)

0 commit comments

Comments
 (0)