|
|
@ -30,6 +30,7 @@ sys.path.append("configuration")
|
|
|
|
parser = argparse.ArgumentParser(description='Ryzom Core - Build Gamedata - Setup')
|
|
|
|
parser = argparse.ArgumentParser(description='Ryzom Core - Build Gamedata - Setup')
|
|
|
|
parser.add_argument('--noconf', '-nc', action='store_true')
|
|
|
|
parser.add_argument('--noconf', '-nc', action='store_true')
|
|
|
|
parser.add_argument('--noverify', '-nv', action='store_true')
|
|
|
|
parser.add_argument('--noverify', '-nv', action='store_true')
|
|
|
|
|
|
|
|
parser.add_argument('--preset', '-p', action='store_true')
|
|
|
|
# parser.add_argument('--haltonerror', '-eh', action='store_true')
|
|
|
|
# parser.add_argument('--haltonerror', '-eh', action='store_true')
|
|
|
|
parser.add_argument('--includeproject', '-ipj', nargs='+')
|
|
|
|
parser.add_argument('--includeproject', '-ipj', nargs='+')
|
|
|
|
parser.add_argument('--excludeproject', '-epj', nargs='+')
|
|
|
|
parser.add_argument('--excludeproject', '-epj', nargs='+')
|
|
|
@ -64,126 +65,157 @@ if not args.noconf:
|
|
|
|
except NameError:
|
|
|
|
except NameError:
|
|
|
|
BuildQuality = 1
|
|
|
|
BuildQuality = 1
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
|
|
|
|
if not args.preset:
|
|
|
|
ToolDirectories
|
|
|
|
ToolDirectories
|
|
|
|
except NameError:
|
|
|
|
except NameError:
|
|
|
|
ToolDirectories = [ 'R:/build/dev/bin/Release', 'R:/external/bin' ]
|
|
|
|
ToolDirectories = [ 'R:/distribution/nel_tools_win_x64-distribution', 'R:/distribution/ryzom_tools_win_x64-distribution' ]
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
ToolSuffix
|
|
|
|
ToolSuffix
|
|
|
|
except NameError:
|
|
|
|
except NameError:
|
|
|
|
ToolSuffix = ".exe"
|
|
|
|
ToolSuffix = ".exe"
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
|
|
|
|
if not args.preset:
|
|
|
|
ScriptDirectory
|
|
|
|
ScriptDirectory
|
|
|
|
except NameError:
|
|
|
|
except NameError:
|
|
|
|
ScriptDirectory = "R:/code/nel/tools/build_gamedata"
|
|
|
|
ScriptDirectory = "R:/code/nel/tools/build_gamedata"
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
|
|
|
|
if not args.preset:
|
|
|
|
WorkspaceDirectory
|
|
|
|
WorkspaceDirectory
|
|
|
|
except NameError:
|
|
|
|
except NameError:
|
|
|
|
WorkspaceDirectory = "R:/leveldesign/workspace"
|
|
|
|
WorkspaceDirectory = "R:/leveldesign/workspace"
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
|
|
|
|
if not args.preset:
|
|
|
|
DatabaseDirectory
|
|
|
|
DatabaseDirectory
|
|
|
|
except NameError:
|
|
|
|
except NameError:
|
|
|
|
DatabaseDirectory = "R:/graphics"
|
|
|
|
DatabaseDirectory = "R:/graphics"
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
|
|
|
|
if not args.preset:
|
|
|
|
SoundDirectory
|
|
|
|
SoundDirectory
|
|
|
|
except NameError:
|
|
|
|
except NameError:
|
|
|
|
SoundDirectory = "R:/sound"
|
|
|
|
SoundDirectory = "R:/sound"
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
|
|
|
|
if not args.preset:
|
|
|
|
SoundDfnDirectory
|
|
|
|
SoundDfnDirectory
|
|
|
|
except NameError:
|
|
|
|
except NameError:
|
|
|
|
SoundDfnDirectory = "R:/sound/DFN"
|
|
|
|
SoundDfnDirectory = "R:/sound/DFN"
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
|
|
|
|
if not args.preset:
|
|
|
|
ExportBuildDirectory
|
|
|
|
ExportBuildDirectory
|
|
|
|
except NameError:
|
|
|
|
except NameError:
|
|
|
|
ExportBuildDirectory = "R:/pipeline/export"
|
|
|
|
ExportBuildDirectory = "R:/pipeline/export"
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
|
|
|
|
if not args.preset:
|
|
|
|
InstallDirectory
|
|
|
|
InstallDirectory
|
|
|
|
except NameError:
|
|
|
|
except NameError:
|
|
|
|
InstallDirectory = "R:/pipeline/install"
|
|
|
|
InstallDirectory = "R:/pipeline/install"
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
|
|
|
|
if not args.preset:
|
|
|
|
ClientDevDirectory
|
|
|
|
ClientDevDirectory
|
|
|
|
except NameError:
|
|
|
|
except NameError:
|
|
|
|
ClientDevDirectory = "R:/pipeline/client_dev"
|
|
|
|
ClientDevDirectory = "R:/pipeline/client_dev"
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
|
|
|
|
if not args.preset:
|
|
|
|
ClientPatchDirectory
|
|
|
|
ClientPatchDirectory
|
|
|
|
except NameError:
|
|
|
|
except NameError:
|
|
|
|
ClientPatchDirectory = "R:/pipeline/client_patch"
|
|
|
|
ClientPatchDirectory = "R:/pipeline/client_patch"
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
|
|
|
|
if not args.preset:
|
|
|
|
ClientInstallDirectory
|
|
|
|
ClientInstallDirectory
|
|
|
|
except NameError:
|
|
|
|
except NameError:
|
|
|
|
ClientInstallDirectory = "R:/pipeline/client_install"
|
|
|
|
ClientInstallDirectory = "R:/pipeline/client_install"
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
|
|
|
|
if not args.preset:
|
|
|
|
ShardInstallDirectory
|
|
|
|
ShardInstallDirectory
|
|
|
|
except NameError:
|
|
|
|
except NameError:
|
|
|
|
ShardInstallDirectory = "R:/pipeline/shard"
|
|
|
|
ShardInstallDirectory = "R:/pipeline/shard"
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
|
|
|
|
if not args.preset:
|
|
|
|
WorldEditInstallDirectory
|
|
|
|
WorldEditInstallDirectory
|
|
|
|
except NameError:
|
|
|
|
except NameError:
|
|
|
|
WorldEditInstallDirectory = "R:/pipeline/worldedit"
|
|
|
|
WorldEditInstallDirectory = "R:/pipeline/worldedit"
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
|
|
|
|
if not args.preset:
|
|
|
|
|
|
|
|
WorldEditorFilesDirectory
|
|
|
|
|
|
|
|
except NameError:
|
|
|
|
|
|
|
|
WorldEditorFilesDirectory = "R:/code/ryzom/common/data_leveldesign/leveldesign/world_editor_files"
|
|
|
|
|
|
|
|
try:
|
|
|
|
|
|
|
|
if not args.preset:
|
|
|
|
LeveldesignDirectory
|
|
|
|
LeveldesignDirectory
|
|
|
|
except NameError:
|
|
|
|
except NameError:
|
|
|
|
LeveldesignDirectory = "R:/leveldesign"
|
|
|
|
LeveldesignDirectory = "R:/leveldesign"
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
|
|
|
|
if not args.preset:
|
|
|
|
LeveldesignDfnDirectory
|
|
|
|
LeveldesignDfnDirectory
|
|
|
|
except NameError:
|
|
|
|
except NameError:
|
|
|
|
LeveldesignDfnDirectory = "R:/leveldesign/DFN"
|
|
|
|
LeveldesignDfnDirectory = "R:/leveldesign/DFN"
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
|
|
|
|
if not args.preset:
|
|
|
|
LeveldesignWorldDirectory
|
|
|
|
LeveldesignWorldDirectory
|
|
|
|
except NameError:
|
|
|
|
except NameError:
|
|
|
|
LeveldesignWorldDirectory = "R:/leveldesign/world"
|
|
|
|
LeveldesignWorldDirectory = "R:/leveldesign/world"
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
|
|
|
|
if not args.preset:
|
|
|
|
PrimitivesDirectory
|
|
|
|
PrimitivesDirectory
|
|
|
|
except NameError:
|
|
|
|
except NameError:
|
|
|
|
PrimitivesDirectory = "R:/leveldesign/primitives"
|
|
|
|
PrimitivesDirectory = "R:/leveldesign/primitives"
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
GamedevDirectory
|
|
|
|
if not args.preset:
|
|
|
|
except NameError:
|
|
|
|
LeveldesignDataCommonDirectory
|
|
|
|
GamedevDirectory = "R:/code/ryzom/client/data/gamedev"
|
|
|
|
|
|
|
|
try:
|
|
|
|
|
|
|
|
DataShardDirectory
|
|
|
|
|
|
|
|
except NameError:
|
|
|
|
|
|
|
|
DataShardDirectory = "R:/code/ryzom/server/data_shard"
|
|
|
|
|
|
|
|
try:
|
|
|
|
|
|
|
|
DataCommonDirectory
|
|
|
|
|
|
|
|
except NameError:
|
|
|
|
except NameError:
|
|
|
|
DataCommonDirectory = "R:/code/ryzom/common/data_common"
|
|
|
|
LeveldesignDataCommonDirectory = "R:/leveldesign/common"
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
|
|
|
|
if not args.preset:
|
|
|
|
LeveldesignDataShardDirectory
|
|
|
|
LeveldesignDataShardDirectory
|
|
|
|
except NameError:
|
|
|
|
except NameError:
|
|
|
|
LeveldesignDataShardDirectory = "R:/leveldesign/shard"
|
|
|
|
LeveldesignDataShardDirectory = "R:/leveldesign/shard"
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
LeveldesignDataCommonDirectory
|
|
|
|
if not args.preset:
|
|
|
|
except NameError:
|
|
|
|
|
|
|
|
LeveldesignDataCommonDirectory = "R:/leveldesign/common"
|
|
|
|
|
|
|
|
try:
|
|
|
|
|
|
|
|
TranslationDirectory
|
|
|
|
TranslationDirectory
|
|
|
|
except NameError:
|
|
|
|
except NameError:
|
|
|
|
TranslationDirectory = "R:/leveldesign/translation"
|
|
|
|
TranslationDirectory = "R:/leveldesign/translation"
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
WorldEditorFilesDirectory
|
|
|
|
if not args.preset:
|
|
|
|
|
|
|
|
GamedevDirectory
|
|
|
|
except NameError:
|
|
|
|
except NameError:
|
|
|
|
WorldEditorFilesDirectory = "R:/code/ryzom/common/data_leveldesign/leveldesign/world_editor_files"
|
|
|
|
GamedevDirectory = "R:/code/ryzom/client/data/gamedev"
|
|
|
|
|
|
|
|
try:
|
|
|
|
|
|
|
|
if not args.preset:
|
|
|
|
|
|
|
|
DataCommonDirectory
|
|
|
|
|
|
|
|
except NameError:
|
|
|
|
|
|
|
|
DataCommonDirectory = "R:/code/ryzom/common/data_common"
|
|
|
|
|
|
|
|
try:
|
|
|
|
|
|
|
|
if not args.preset:
|
|
|
|
|
|
|
|
DataShardDirectory
|
|
|
|
|
|
|
|
except NameError:
|
|
|
|
|
|
|
|
DataShardDirectory = "R:/code/ryzom/server/data_shard"
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
|
|
|
|
if not args.preset:
|
|
|
|
WindowsExeDllCfgDirectories
|
|
|
|
WindowsExeDllCfgDirectories
|
|
|
|
except NameError:
|
|
|
|
except NameError:
|
|
|
|
WindowsExeDllCfgDirectories = [ 'C:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/redist/x86', 'R:/external/bin', 'R:/build/dev/bin/Release', 'R:/code/ryzom/client', 'R:/code/nel/lib', 'R:/code/ryzom/bin', 'R:/code/ryzom/tools/client/client_config/bin' ]
|
|
|
|
# TODO: Separate 64bit and 32bit
|
|
|
|
|
|
|
|
WindowsExeDllCfgDirectories = [ '', 'R:/build/fv_x64/bin/Release', 'R:/distribution/external_x64', 'R:/code/ryzom/client', '', '', '' ]
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
|
|
|
|
if not args.preset:
|
|
|
|
LinuxServiceExecutableDirectory
|
|
|
|
LinuxServiceExecutableDirectory
|
|
|
|
except NameError:
|
|
|
|
except NameError:
|
|
|
|
LinuxServiceExecutableDirectory = "R:/build/gcc_server/bin"
|
|
|
|
LinuxServiceExecutableDirectory = "R:/build/gcc_server/bin"
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
|
|
|
|
if not args.preset:
|
|
|
|
LinuxClientExecutableDirectory
|
|
|
|
LinuxClientExecutableDirectory
|
|
|
|
except NameError:
|
|
|
|
except NameError:
|
|
|
|
LinuxClientExecutableDirectory = "R:/build/gcc_client/bin"
|
|
|
|
LinuxClientExecutableDirectory = "R:/build/gcc_client/bin"
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
|
|
|
|
if not args.preset:
|
|
|
|
PatchmanCfgAdminDirectory
|
|
|
|
PatchmanCfgAdminDirectory
|
|
|
|
except NameError:
|
|
|
|
except NameError:
|
|
|
|
PatchmanCfgAdminDirectory = "R:/patchman/admin_install"
|
|
|
|
PatchmanCfgAdminDirectory = "R:/patchman/admin_install"
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
|
|
|
|
if not args.preset:
|
|
|
|
PatchmanCfgDefaultDirectory
|
|
|
|
PatchmanCfgDefaultDirectory
|
|
|
|
except NameError:
|
|
|
|
except NameError:
|
|
|
|
PatchmanCfgDefaultDirectory = "R:/patchman/default"
|
|
|
|
PatchmanCfgDefaultDirectory = "R:/patchman/default"
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
|
|
|
|
if not args.preset:
|
|
|
|
PatchmanBridgeServerDirectory
|
|
|
|
PatchmanBridgeServerDirectory
|
|
|
|
except NameError:
|
|
|
|
except NameError:
|
|
|
|
PatchmanBridgeServerDirectory = "R:/pipeline/bridge_server"
|
|
|
|
PatchmanBridgeServerDirectory = "R:/pipeline/bridge_server"
|
|
|
@ -232,6 +264,7 @@ if not args.noconf:
|
|
|
|
printLog(log, "Use -- if you need to insert an empty value.")
|
|
|
|
printLog(log, "Use -- if you need to insert an empty value.")
|
|
|
|
printLog(log, "")
|
|
|
|
printLog(log, "")
|
|
|
|
BuildQuality = int(askVar(log, "Build Quality", str(BuildQuality)))
|
|
|
|
BuildQuality = int(askVar(log, "Build Quality", str(BuildQuality)))
|
|
|
|
|
|
|
|
if not args.preset:
|
|
|
|
ToolDirectories[0] = askVar(log, "[IN] Primary Tool Directory", ToolDirectories[0]).replace("\\", "/")
|
|
|
|
ToolDirectories[0] = askVar(log, "[IN] Primary Tool Directory", ToolDirectories[0]).replace("\\", "/")
|
|
|
|
ToolDirectories[1] = askVar(log, "[IN] Secondary Tool Directory", ToolDirectories[1]).replace("\\", "/")
|
|
|
|
ToolDirectories[1] = askVar(log, "[IN] Secondary Tool Directory", ToolDirectories[1]).replace("\\", "/")
|
|
|
|
ToolSuffix = askVar(log, "Tool Suffix", ToolSuffix)
|
|
|
|
ToolSuffix = askVar(log, "Tool Suffix", ToolSuffix)
|
|
|
|