Add --all option to python build script.

This commit is contained in:
Marcel Pi 2024-02-12 15:32:10 +01:00
parent c57375a395
commit 7bcbef736b
1 changed files with 12 additions and 15 deletions

View File

@ -99,11 +99,8 @@ def ADDCLIIntOption(name : str, default : int, help : str):
argp.add_argument(f'--{name}', type = int, default = int(default), help = f'{help} (default = {default}).') argp.add_argument(f'--{name}', type = int, default = int(default), help = f'{help} (default = {default}).')
AddCLIFlag( AddCLIFlag(
'launch', 'all',
'Build and open the CarlaUE4 project in the Unreal Engine editor.') 'Build all targets.')
AddCLIFlag(
'launch-only',
'Open the CARLA project in the Unreal Engine editor, skipping all build steps.')
AddCLIFlag( AddCLIFlag(
'import', 'import',
f'Import maps and assets from "{WORKSPACE_PATH / "Import"}" into Unreal.') f'Import maps and assets from "{WORKSPACE_PATH / "Import"}" into Unreal.')
@ -256,13 +253,13 @@ def SyncArgs():
ARGV = SyncArgs() ARGV = SyncArgs()
SEQUENTIAL = ARGV.configure_sequential SEQUENTIAL = ARGV.configure_sequential
ENABLE_OSM2ODR = ARGV.osm2odr ENABLE_OSM2ODR = ARGV.osm2odr or ARGV.all
ENABLE_GTEST = ARGV.gtest ENABLE_GTEST = ARGV.gtest
ENABLE_OSM_WORLD_RENDERER = ARGV.osm_world_renderer ENABLE_OSM_WORLD_RENDERER = ARGV.osm_world_renderer or ARGV.all
ENABLE_CARLA_UE = ARGV.carla_ue ENABLE_CARLA_UE = ARGV.carla_ue or ARGV.all
ENABLE_PYTHON_API = ARGV.python_api ENABLE_PYTHON_API = ARGV.python_api or ARGV.all
ENABLE_LIBCARLA_CLIENT = ARGV.libcarla_client ENABLE_LIBCARLA_CLIENT = ARGV.libcarla_client or ARGV.all
ENABLE_LIBCARLA_SERVER = ARGV.libcarla_server ENABLE_LIBCARLA_SERVER = ARGV.libcarla_server or ARGV.all
ENABLE_LIBCARLA = any([ ENABLE_LIBCARLA = any([
ENABLE_CARLA_UE, ENABLE_CARLA_UE,
ENABLE_PYTHON_API, ENABLE_PYTHON_API,
@ -277,9 +274,9 @@ ENABLE_UNITY_BUILD = ARGV.unity_build
ENABLE_NVIDIA_OMNIVERSE = ARGV.nv_omniverse ENABLE_NVIDIA_OMNIVERSE = ARGV.nv_omniverse
ENABLE_RSS = ARGV.rss ENABLE_RSS = ARGV.rss
UPDATE_DEPENDENCIES = ARGV.update_deps UPDATE_DEPENDENCIES = ARGV.update_deps or ARGV.all
BUILD_DEPENDENCIES = ARGV.build_deps BUILD_DEPENDENCIES = ARGV.build_deps or ARGV.all
UPDATE_CARLA_UE_ASSETS = ARGV.update_ue_assets UPDATE_CARLA_UE_ASSETS = ARGV.update_ue_assets or ARGV.all
PARALLELISM = ARGV.parallelism PARALLELISM = ARGV.parallelism
# Root paths: # Root paths:
CARLA_VERSION_STRING = ARGV.version CARLA_VERSION_STRING = ARGV.version
@ -1469,4 +1466,4 @@ if __name__ == '__main__':
ARGS_SYNC_PATH.unlink(missing_ok = True) ARGS_SYNC_PATH.unlink(missing_ok = True)
finally: finally:
pass pass
exit(0) exit(0)