Created
August 8, 2020 01:44
-
-
Save hxhb/0ec648a193d445a92412c8577888b190 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
import sys | |
import os | |
g_engineBuildBat = 'Engine\Build\BatchFiles\Build.bat' | |
g_engineRunUATBat = 'Engine\Build\BatchFiles\RunUAT.bat' | |
g_generateProjectBat = 'Engine\Build\BatchFiles\GenerateProjectFiles.bat' | |
g_bg_installed_build_win64_xml = "Engine\Build\InstalledEngineBuild.xml" | |
g_bg_build_tools_target_name = "\"Build Tools %s\" " | |
g_bg_build_engine_target_name = "\"Make Installed Build %s\" " | |
g_bg_build_engine_configuration = "-set:GameConfigurations=Development;Shipping " | |
g_bg_b_compiler_vs2019 = "-set:VS2019=true " | |
# Output | |
g_bg_output_dir = "-set:SavedOutput=D:\\FEngineBin " | |
def BuildEngineBySourceCode(PlatformName): | |
print("=====Begin Build Engine by Source Code=====") | |
print("=======Generating VS Project Files=======") | |
os.system(g_generateProjectBat) | |
print("=======VS Project Files Generated!=======") | |
print("=======Building Tools %s=======" % (PlatformName)) | |
l_build_tools_command = g_engineRunUATBat + " BuildGraph -Script=" + g_bg_installed_build_win64_xml + " -Target="+ g_bg_build_tools_target_name % (PlatformName) | |
print("Build Command: " + l_build_tools_command) | |
os.system(l_build_tools_command) | |
print("=======Building Tools %s Successed!=======" % (PlatformName)) | |
print("=======Building \"Make Installed Build %s\"=======" % (PlatformName)) | |
l_build_engine_command = g_engineRunUATBat + " BuildGraph -Script=" + g_bg_installed_build_win64_xml + " -Target="+ g_bg_build_engine_target_name % (PlatformName) + g_bg_build_engine_configuration + g_bg_b_compiler_vs2019 | |
print("Build Command: " + l_build_engine_command) | |
os.system(l_build_engine_command) | |
print("=======Building \"Make Installed Build %s\" Successed!=======" % (PlatformName)) | |
print("=====Build Engine by Source Code SUCCESSED!=====") | |
BuildEngineBySourceCode("Win64") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment