|
|
|
@ -65,220 +65,158 @@ if not args.noconf:
|
|
|
|
|
except NameError:
|
|
|
|
|
BuildQuality = 1
|
|
|
|
|
try:
|
|
|
|
|
if args.preset:
|
|
|
|
|
DummyUnknownName
|
|
|
|
|
RemapLocalFrom
|
|
|
|
|
if not args.preset:
|
|
|
|
|
ToolDirectories
|
|
|
|
|
except NameError:
|
|
|
|
|
RemapLocalFrom = 'R:'
|
|
|
|
|
try:
|
|
|
|
|
if args.preset:
|
|
|
|
|
DummyUnknownName
|
|
|
|
|
RemapLocalTo
|
|
|
|
|
except NameError:
|
|
|
|
|
RemapLocalTo = os.getenv('RC_ROOT').replace('\\', '/')
|
|
|
|
|
if (not RemapLocalTo) or (not ':' in RemapLocalTo):
|
|
|
|
|
RemapLocalTo = 'R:'
|
|
|
|
|
try:
|
|
|
|
|
if args.preset:
|
|
|
|
|
DummyUnknownName
|
|
|
|
|
ToolDirectories
|
|
|
|
|
except NameError:
|
|
|
|
|
ToolDirectories = [ 'R:/distribution/nel_tools_win_x64', 'R:/distribution/ryzom_tools_win_x64' ]
|
|
|
|
|
ToolDirectories = [ 'R:/distribution/nel_tools_win_x64-distribution', 'R:/distribution/ryzom_tools_win_x64-distribution' ]
|
|
|
|
|
try:
|
|
|
|
|
ToolSuffix
|
|
|
|
|
except NameError:
|
|
|
|
|
ToolSuffix = ".exe"
|
|
|
|
|
try:
|
|
|
|
|
if args.preset:
|
|
|
|
|
DummyUnknownName
|
|
|
|
|
ScriptDirectory
|
|
|
|
|
if not args.preset:
|
|
|
|
|
ScriptDirectory
|
|
|
|
|
except NameError:
|
|
|
|
|
ScriptDirectory = "R:/code/nel/tools/build_gamedata"
|
|
|
|
|
try:
|
|
|
|
|
if args.preset:
|
|
|
|
|
DummyUnknownName
|
|
|
|
|
WorkspaceDirectory
|
|
|
|
|
if not args.preset:
|
|
|
|
|
WorkspaceDirectory
|
|
|
|
|
except NameError:
|
|
|
|
|
WorkspaceDirectory = "R:/leveldesign/workspace"
|
|
|
|
|
try:
|
|
|
|
|
if args.preset:
|
|
|
|
|
DummyUnknownName
|
|
|
|
|
DatabaseDirectory
|
|
|
|
|
if not args.preset:
|
|
|
|
|
DatabaseDirectory
|
|
|
|
|
except NameError:
|
|
|
|
|
DatabaseDirectory = "R:/graphics"
|
|
|
|
|
try:
|
|
|
|
|
if args.preset:
|
|
|
|
|
DummyUnknownName
|
|
|
|
|
SoundDirectory
|
|
|
|
|
if not args.preset:
|
|
|
|
|
SoundDirectory
|
|
|
|
|
except NameError:
|
|
|
|
|
SoundDirectory = "R:/sound"
|
|
|
|
|
try:
|
|
|
|
|
if args.preset:
|
|
|
|
|
DummyUnknownName
|
|
|
|
|
SoundDfnDirectory
|
|
|
|
|
if not args.preset:
|
|
|
|
|
SoundDfnDirectory
|
|
|
|
|
except NameError:
|
|
|
|
|
SoundDfnDirectory = "R:/sound/DFN"
|
|
|
|
|
try:
|
|
|
|
|
if args.preset:
|
|
|
|
|
DummyUnknownName
|
|
|
|
|
ExportBuildDirectory
|
|
|
|
|
if not args.preset:
|
|
|
|
|
ExportBuildDirectory
|
|
|
|
|
except NameError:
|
|
|
|
|
ExportBuildDirectory = "R:/pipeline/export"
|
|
|
|
|
try:
|
|
|
|
|
if args.preset:
|
|
|
|
|
DummyUnknownName
|
|
|
|
|
InstallDirectory
|
|
|
|
|
if not args.preset:
|
|
|
|
|
InstallDirectory
|
|
|
|
|
except NameError:
|
|
|
|
|
InstallDirectory = "R:/pipeline/install"
|
|
|
|
|
try:
|
|
|
|
|
if args.preset:
|
|
|
|
|
DummyUnknownName
|
|
|
|
|
ClientDevDirectory
|
|
|
|
|
if not args.preset:
|
|
|
|
|
ClientDevDirectory
|
|
|
|
|
except NameError:
|
|
|
|
|
ClientDevDirectory = "R:/pipeline/client_dev"
|
|
|
|
|
try:
|
|
|
|
|
if args.preset:
|
|
|
|
|
DummyUnknownName
|
|
|
|
|
ClientDevLiveDirectory
|
|
|
|
|
except NameError:
|
|
|
|
|
ClientDevLiveDirectory = "R:/pipeline/client_dev_live"
|
|
|
|
|
try:
|
|
|
|
|
if args.preset:
|
|
|
|
|
DummyUnknownName
|
|
|
|
|
ClientPatchDirectory
|
|
|
|
|
if not args.preset:
|
|
|
|
|
ClientPatchDirectory
|
|
|
|
|
except NameError:
|
|
|
|
|
ClientPatchDirectory = "R:/pipeline/client_patch"
|
|
|
|
|
try:
|
|
|
|
|
if args.preset:
|
|
|
|
|
DummyUnknownName
|
|
|
|
|
ClientInstallDirectory
|
|
|
|
|
if not args.preset:
|
|
|
|
|
ClientInstallDirectory
|
|
|
|
|
except NameError:
|
|
|
|
|
ClientInstallDirectory = "R:/pipeline/client_install"
|
|
|
|
|
try:
|
|
|
|
|
if args.preset:
|
|
|
|
|
DummyUnknownName
|
|
|
|
|
ShardInstallDirectory
|
|
|
|
|
if not args.preset:
|
|
|
|
|
ShardInstallDirectory
|
|
|
|
|
except NameError:
|
|
|
|
|
ShardInstallDirectory = "R:/pipeline/shard"
|
|
|
|
|
try:
|
|
|
|
|
if args.preset:
|
|
|
|
|
DummyUnknownName
|
|
|
|
|
ShardDevDirectory
|
|
|
|
|
except NameError:
|
|
|
|
|
ShardDevDirectory = "R:/pipeline/shard_dev"
|
|
|
|
|
try:
|
|
|
|
|
if args.preset:
|
|
|
|
|
DummyUnknownName
|
|
|
|
|
WorldEditInstallDirectory
|
|
|
|
|
if not args.preset:
|
|
|
|
|
WorldEditInstallDirectory
|
|
|
|
|
except NameError:
|
|
|
|
|
WorldEditInstallDirectory = "R:/pipeline/worldedit"
|
|
|
|
|
try:
|
|
|
|
|
if args.preset:
|
|
|
|
|
DummyUnknownName
|
|
|
|
|
WorldEditorFilesDirectory
|
|
|
|
|
if not args.preset:
|
|
|
|
|
WorldEditorFilesDirectory
|
|
|
|
|
except NameError:
|
|
|
|
|
WorldEditorFilesDirectory = "R:/code/ryzom/common/data_leveldesign/leveldesign/world_editor_files"
|
|
|
|
|
try:
|
|
|
|
|
if args.preset:
|
|
|
|
|
DummyUnknownName
|
|
|
|
|
LeveldesignDirectory
|
|
|
|
|
if not args.preset:
|
|
|
|
|
LeveldesignDirectory
|
|
|
|
|
except NameError:
|
|
|
|
|
LeveldesignDirectory = "R:/leveldesign"
|
|
|
|
|
try:
|
|
|
|
|
if args.preset:
|
|
|
|
|
DummyUnknownName
|
|
|
|
|
LeveldesignDfnDirectory
|
|
|
|
|
if not args.preset:
|
|
|
|
|
LeveldesignDfnDirectory
|
|
|
|
|
except NameError:
|
|
|
|
|
LeveldesignDfnDirectory = "R:/leveldesign/DFN"
|
|
|
|
|
try:
|
|
|
|
|
if args.preset:
|
|
|
|
|
DummyUnknownName
|
|
|
|
|
LeveldesignWorldDirectory
|
|
|
|
|
if not args.preset:
|
|
|
|
|
LeveldesignWorldDirectory
|
|
|
|
|
except NameError:
|
|
|
|
|
LeveldesignWorldDirectory = "R:/leveldesign/world"
|
|
|
|
|
try:
|
|
|
|
|
if args.preset:
|
|
|
|
|
DummyUnknownName
|
|
|
|
|
PrimitivesDirectory
|
|
|
|
|
if not args.preset:
|
|
|
|
|
PrimitivesDirectory
|
|
|
|
|
except NameError:
|
|
|
|
|
PrimitivesDirectory = "R:/leveldesign/primitives"
|
|
|
|
|
try:
|
|
|
|
|
if args.preset:
|
|
|
|
|
DummyUnknownName
|
|
|
|
|
LeveldesignDataCommonDirectory
|
|
|
|
|
if not args.preset:
|
|
|
|
|
LeveldesignDataCommonDirectory
|
|
|
|
|
except NameError:
|
|
|
|
|
LeveldesignDataCommonDirectory = "R:/leveldesign/common"
|
|
|
|
|
try:
|
|
|
|
|
if args.preset:
|
|
|
|
|
DummyUnknownName
|
|
|
|
|
LeveldesignDataShardDirectory
|
|
|
|
|
if not args.preset:
|
|
|
|
|
LeveldesignDataShardDirectory
|
|
|
|
|
except NameError:
|
|
|
|
|
LeveldesignDataShardDirectory = "R:/leveldesign/shard"
|
|
|
|
|
try:
|
|
|
|
|
if args.preset:
|
|
|
|
|
DummyUnknownName
|
|
|
|
|
TranslationDirectory
|
|
|
|
|
if not args.preset:
|
|
|
|
|
TranslationDirectory
|
|
|
|
|
except NameError:
|
|
|
|
|
TranslationDirectory = "R:/leveldesign/translation"
|
|
|
|
|
try:
|
|
|
|
|
if args.preset:
|
|
|
|
|
DummyUnknownName
|
|
|
|
|
GamedevDirectory
|
|
|
|
|
if not args.preset:
|
|
|
|
|
GamedevDirectory
|
|
|
|
|
except NameError:
|
|
|
|
|
GamedevDirectory = "R:/code/ryzom/client/data/gamedev"
|
|
|
|
|
try:
|
|
|
|
|
if args.preset:
|
|
|
|
|
DummyUnknownName
|
|
|
|
|
DataCommonDirectory
|
|
|
|
|
if not args.preset:
|
|
|
|
|
DataCommonDirectory
|
|
|
|
|
except NameError:
|
|
|
|
|
DataCommonDirectory = "R:/code/ryzom/common/data_common"
|
|
|
|
|
try:
|
|
|
|
|
if args.preset:
|
|
|
|
|
DummyUnknownName
|
|
|
|
|
DataShardDirectory
|
|
|
|
|
if not args.preset:
|
|
|
|
|
DataShardDirectory
|
|
|
|
|
except NameError:
|
|
|
|
|
DataShardDirectory = "R:/code/ryzom/server/data_shard"
|
|
|
|
|
try:
|
|
|
|
|
if args.preset:
|
|
|
|
|
DummyUnknownName
|
|
|
|
|
WindowsExeDllCfgDirectories
|
|
|
|
|
if not args.preset:
|
|
|
|
|
WindowsExeDllCfgDirectories
|
|
|
|
|
except NameError:
|
|
|
|
|
# TODO: Separate 64bit and 32bit
|
|
|
|
|
WindowsExeDllCfgDirectories = [ '', 'R:/build/fv_x64/bin/Release', 'R:/distribution/external_x64', 'R:/code/ryzom/client', '', '', '' ]
|
|
|
|
|
try:
|
|
|
|
|
if args.preset:
|
|
|
|
|
DummyUnknownName
|
|
|
|
|
LinuxServiceExecutableDirectory
|
|
|
|
|
except NameError:
|
|
|
|
|
LinuxServiceExecutableDirectory = "R:/build/server_gcc/bin"
|
|
|
|
|
try:
|
|
|
|
|
if args.preset:
|
|
|
|
|
DummyUnknownName
|
|
|
|
|
LinuxClientExecutableDirectory
|
|
|
|
|
if not args.preset:
|
|
|
|
|
LinuxServiceExecutableDirectory
|
|
|
|
|
except NameError:
|
|
|
|
|
LinuxClientExecutableDirectory = "R:/build/client_gcc/bin"
|
|
|
|
|
LinuxServiceExecutableDirectory = "R:/build/gcc_server/bin"
|
|
|
|
|
try:
|
|
|
|
|
if args.preset:
|
|
|
|
|
DummyUnknownName
|
|
|
|
|
PatchmanDevDirectory
|
|
|
|
|
if not args.preset:
|
|
|
|
|
LinuxClientExecutableDirectory
|
|
|
|
|
except NameError:
|
|
|
|
|
PatchmanDevDirectory = "R:/patchman/terminal_dev"
|
|
|
|
|
LinuxClientExecutableDirectory = "R:/build/gcc_client/bin"
|
|
|
|
|
try:
|
|
|
|
|
if args.preset:
|
|
|
|
|
DummyUnknownName
|
|
|
|
|
PatchmanCfgAdminDirectory
|
|
|
|
|
if not args.preset:
|
|
|
|
|
PatchmanCfgAdminDirectory
|
|
|
|
|
except NameError:
|
|
|
|
|
PatchmanCfgAdminDirectory = "R:/patchman/admin_install"
|
|
|
|
|
try:
|
|
|
|
|
if args.preset:
|
|
|
|
|
DummyUnknownName
|
|
|
|
|
PatchmanCfgDefaultDirectory
|
|
|
|
|
if not args.preset:
|
|
|
|
|
PatchmanCfgDefaultDirectory
|
|
|
|
|
except NameError:
|
|
|
|
|
PatchmanCfgDefaultDirectory = "R:/patchman/default"
|
|
|
|
|
try:
|
|
|
|
|
if args.preset:
|
|
|
|
|
DummyUnknownName
|
|
|
|
|
PatchmanBridgeServerDirectory
|
|
|
|
|
if not args.preset:
|
|
|
|
|
PatchmanBridgeServerDirectory
|
|
|
|
|
except NameError:
|
|
|
|
|
PatchmanBridgeServerDirectory = "R:/pipeline/bridge_server"
|
|
|
|
|
try:
|
|
|
|
@ -338,11 +276,9 @@ if not args.noconf:
|
|
|
|
|
ExportBuildDirectory = askVar(log, "[OUT] Export Build Directory", ExportBuildDirectory).replace("\\", "/")
|
|
|
|
|
InstallDirectory = askVar(log, "[OUT] Install Directory", InstallDirectory).replace("\\", "/")
|
|
|
|
|
ClientDevDirectory = askVar(log, "[OUT] Client Dev Directory", ClientDevDirectory).replace("\\", "/")
|
|
|
|
|
ClientDevLiveDirectory = askVar(log, "[OUT] Client Dev Live Directory", ClientDevLiveDirectory).replace("\\", "/")
|
|
|
|
|
ClientPatchDirectory = askVar(log, "[OUT] Client Patch Directory", ClientPatchDirectory).replace("\\", "/")
|
|
|
|
|
ClientInstallDirectory = askVar(log, "[OUT] Client Install Directory", ClientInstallDirectory).replace("\\", "/")
|
|
|
|
|
ShardInstallDirectory = askVar(log, "[OUT] Shard Data Install Directory", ShardInstallDirectory).replace("\\", "/")
|
|
|
|
|
ShardDevDirectory = askVar(log, "[OUT] Shard Dev Directory", ShardDevDirectory).replace("\\", "/")
|
|
|
|
|
WorldEditInstallDirectory = askVar(log, "[OUT] World Edit Data Install Directory", WorldEditInstallDirectory).replace("\\", "/")
|
|
|
|
|
LeveldesignDirectory = askVar(log, "[IN] Leveldesign Directory", LeveldesignDirectory).replace("\\", "/")
|
|
|
|
|
LeveldesignDfnDirectory = askVar(log, "[IN] Leveldesign DFN Directory", LeveldesignDfnDirectory).replace("\\", "/")
|
|
|
|
@ -364,7 +300,6 @@ if not args.noconf:
|
|
|
|
|
WindowsExeDllCfgDirectories[6] = askVar(log, "[IN] Septenary Windows exe/dll/cfg Directory", WindowsExeDllCfgDirectories[6]).replace("\\", "/")
|
|
|
|
|
LinuxServiceExecutableDirectory = askVar(log, "[IN] Linux Service Executable Directory", LinuxServiceExecutableDirectory).replace("\\", "/")
|
|
|
|
|
LinuxClientExecutableDirectory = askVar(log, "[IN] Linux Client Executable Directory", LinuxClientExecutableDirectory).replace("\\", "/")
|
|
|
|
|
PatchmanDevDirectory = askVar(log, "[IN] Patchman Directory", PatchmanDevDirectory).replace("\\", "/")
|
|
|
|
|
PatchmanCfgAdminDirectory = askVar(log, "[IN] Patchman Cfg Admin Directory", PatchmanCfgAdminDirectory).replace("\\", "/")
|
|
|
|
|
PatchmanCfgDefaultDirectory = askVar(log, "[IN] Patchman Cfg Default Directory", PatchmanCfgDefaultDirectory).replace("\\", "/")
|
|
|
|
|
PatchmanBridgeServerDirectory = askVar(log, "[OUT] Patchman Bridge Server Patch Directory", PatchmanBridgeServerDirectory).replace("\\", "/")
|
|
|
|
@ -415,9 +350,6 @@ if not args.noconf:
|
|
|
|
|
sf.write("# Quality option for this site (1 for BEST, 0 for DRAFT)\n")
|
|
|
|
|
sf.write("BuildQuality = " + str(BuildQuality) + "\n")
|
|
|
|
|
sf.write("\n")
|
|
|
|
|
sf.write("RemapLocalFrom = \"" + str(RemapLocalFrom) + "\"\n")
|
|
|
|
|
sf.write("RemapLocalTo = \"" + str(RemapLocalTo) + "\"\n")
|
|
|
|
|
sf.write("\n")
|
|
|
|
|
sf.write("ToolDirectories = " + str(ToolDirectories) + "\n")
|
|
|
|
|
sf.write("ToolSuffix = \"" + str(ToolSuffix) + "\"\n")
|
|
|
|
|
sf.write("\n")
|
|
|
|
@ -434,11 +366,9 @@ if not args.noconf:
|
|
|
|
|
sf.write("# Install directories\n")
|
|
|
|
|
sf.write("InstallDirectory = \"" + str(InstallDirectory) + "\"\n")
|
|
|
|
|
sf.write("ClientDevDirectory = \"" + str(ClientDevDirectory) + "\"\n")
|
|
|
|
|
sf.write("ClientDevLiveDirectory = \"" + str(ClientDevLiveDirectory) + "\"\n")
|
|
|
|
|
sf.write("ClientPatchDirectory = \"" + str(ClientPatchDirectory) + "\"\n")
|
|
|
|
|
sf.write("ClientInstallDirectory = \"" + str(ClientInstallDirectory) + "\"\n")
|
|
|
|
|
sf.write("ShardInstallDirectory = \"" + str(ShardInstallDirectory) + "\"\n")
|
|
|
|
|
sf.write("ShardDevDirectory = \"" + str(ShardDevDirectory) + "\"\n")
|
|
|
|
|
sf.write("WorldEditInstallDirectory = \"" + str(WorldEditInstallDirectory) + "\"\n")
|
|
|
|
|
sf.write("\n")
|
|
|
|
|
sf.write("# Utility directories\n")
|
|
|
|
@ -460,7 +390,6 @@ if not args.noconf:
|
|
|
|
|
sf.write("WindowsExeDllCfgDirectories = " + str(WindowsExeDllCfgDirectories) + "\n")
|
|
|
|
|
sf.write("LinuxServiceExecutableDirectory = \"" + str(LinuxServiceExecutableDirectory) + "\"\n")
|
|
|
|
|
sf.write("LinuxClientExecutableDirectory = \"" + str(LinuxClientExecutableDirectory) + "\"\n")
|
|
|
|
|
sf.write("PatchmanDevDirectory = \"" + str(PatchmanDevDirectory) + "\"\n")
|
|
|
|
|
sf.write("PatchmanCfgAdminDirectory = \"" + str(PatchmanCfgAdminDirectory) + "\"\n")
|
|
|
|
|
sf.write("PatchmanCfgDefaultDirectory = \"" + str(PatchmanCfgDefaultDirectory) + "\"\n")
|
|
|
|
|
sf.write("PatchmanBridgeServerDirectory = \"" + str(PatchmanBridgeServerDirectory) + "\"\n")
|
|
|
|
@ -478,18 +407,8 @@ if not args.noconf:
|
|
|
|
|
sf.write("\n")
|
|
|
|
|
sf.write("\n")
|
|
|
|
|
sf.write("# end of file\n")
|
|
|
|
|
sf.flush()
|
|
|
|
|
sf.close()
|
|
|
|
|
sf = open("configuration/buildsite_local.py", "w")
|
|
|
|
|
sfr = open("configuration/buildsite.py", "r")
|
|
|
|
|
for l in sfr:
|
|
|
|
|
sf.write(l.replace(RemapLocalFrom + '/', RemapLocalTo + '/'))
|
|
|
|
|
sf.flush()
|
|
|
|
|
sfr.close()
|
|
|
|
|
sf.close()
|
|
|
|
|
|
|
|
|
|
from buildsite_local import *
|
|
|
|
|
|
|
|
|
|
sys.path.append(WorkspaceDirectory)
|
|
|
|
|
from projects import *
|
|
|
|
|
|
|
|
|
@ -529,7 +448,6 @@ printLog(log, "")
|
|
|
|
|
# Additional directories
|
|
|
|
|
printLog(log, ">>> Setup additional directories <<<")
|
|
|
|
|
mkPath(log, ClientDevDirectory)
|
|
|
|
|
mkPath(log, ClientDevLiveDirectory)
|
|
|
|
|
mkPath(log, ClientPatchDirectory)
|
|
|
|
|
mkPath(log, ClientInstallDirectory)
|
|
|
|
|
|
|
|
|
@ -585,7 +503,6 @@ if not args.noverify:
|
|
|
|
|
findTool(log, ToolDirectories, TranslationToolsTool, ToolSuffix)
|
|
|
|
|
findTool(log, ToolDirectories, BuildWorldPackedColTool, ToolSuffix)
|
|
|
|
|
findTool(log, ToolDirectories, R2IslandsTexturesTool, ToolSuffix)
|
|
|
|
|
findTool(log, ToolDirectories, PatchmanServiceTool, ToolSuffix)
|
|
|
|
|
|
|
|
|
|
log.close()
|
|
|
|
|
if os.path.isfile("0_setup.log"):
|
|
|
|
|