Skip to content

Commit

Permalink
Update build scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
qiuwch committed Oct 19, 2017
1 parent 5bebff4 commit b361558
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 28 deletions.
2 changes: 1 addition & 1 deletion build.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def main():
elif descriptor_file.endswith('.uproject'):
project_name = os.path.basename(descriptor_file).split('.')[0]
if not output_folder:
output_folder = 'Binaries/%s' % project_name
output_folder = 'UE4Binaries/%s' % project_name
abs_output_folder = os.path.abspath(output_folder)

ue4.package(abs_descriptor_file, abs_output_folder)
Expand Down
48 changes: 21 additions & 27 deletions examples/model_zoo/build_binaries.py
Original file line number Diff line number Diff line change
@@ -1,36 +1,30 @@
import subprocess
import subprocess, os

ue4_win = r"C:\Program Files\Epic Games\UE_4.16"
ue4_linux = "/home/qiuwch/workspace/UE416"

uprojects = [
dict(
uproject_path = r'C:\qiuwch\workspace\uprojects\UE4ArchinteriorsVol2Scene1\ArchinteriorsVol2Scene1.uproject',
ue4_path = ue4_win,
log_file = 'log/win_scene1.log'
),
dict(
uproject_path = r'C:\qiuwch\workspace\uprojects\UE4ArchinteriorsVol2Scene2\ArchinteriorsVol2Scene2.uproject',
ue4_path = ue4_win,
log_file = 'log/win_scene2.log'
),
dict(
uproject_path = r'C:\qiuwch\workspace\uprojects\UE4ArchinteriorsVol2Scene3\ArchinteriorsVol2Scene3.uproject',
ue4_path = ue4_win,
log_file = 'log/win_scene3.log'
),
dict(
uproject_path = r'C:\qiuwch\workspace\uprojects\UE4RealisticRendering\RealisticRendering.uproject',
ue4_path = ue4_win,
log_file = 'log/win_rr.log'
),
dict(
uproject_path = r'C:\qiuwch\workspace\uprojects\UE4UrbanCity\UrbanCity.uproject',
ue4_path = ue4_win,
log_file = 'log/win_urbancity.log'
),
win_uprojects = [
r'C:\qiuwch\workspace\uprojects\UE4RealisticRendering\RealisticRendering.uproject',
r'C:\qiuwch\workspace\uprojects\UE4ArchinteriorsVol2Scene1\ArchinteriorsVol2Scene1.uproject',
r'C:\qiuwch\workspace\uprojects\UE4ArchinteriorsVol2Scene2\ArchinteriorsVol2Scene2.uproject',
r'C:\qiuwch\workspace\uprojects\UE4ArchinteriorsVol2Scene3\ArchinteriorsVol2Scene3.uproject',
r'C:\qiuwch\workspace\uprojects\UE4UrbanCity\UrbanCity.uproject',
r'D:\workspace\uprojects\Matinee\Matinee.uproject',
r'D:\workspace\uprojects\PhotorealisticCharacter\PhotorealisticCharacter2.uproject',
]

uprojects = []

for uproject_path in win_uprojects:
uproject_name = os.path.basename(uproject_path).split('.')[0]
uprojects.append(
dict(
uproject_path = uproject_path,
ue4_path = ue4_win,
log_file = 'log/win_%s.log' % uproject_name
),
)

if __name__ == '__main__':
for uproject in uprojects:
cmd = [
Expand Down

0 comments on commit b361558

Please sign in to comment.