2018-07-26 18:41:20 +08:00
|
|
|
ARGS=--all
|
|
|
|
|
|
|
|
default: help
|
|
|
|
|
2018-08-01 22:34:17 +08:00
|
|
|
# root of the project (makefile directory)
|
|
|
|
export ROOT_PATH=$(CURDIR)/
|
|
|
|
|
|
|
|
# dependecy install/build directory (rpclib, gtest, boost)
|
|
|
|
export INSTALLATION_DIR=$(ROOT_PATH)Build/
|
2018-07-27 22:16:58 +08:00
|
|
|
|
2018-07-26 18:41:20 +08:00
|
|
|
help:
|
2018-08-30 18:18:07 +08:00
|
|
|
@type "${CARLA_BUILD_TOOLS_FOLDER}\Windows.mk.help"
|
2018-07-26 18:41:20 +08:00
|
|
|
|
2019-11-20 00:43:29 +08:00
|
|
|
# use PHONY to force next line as command and avoid conflict with folders of the same name
|
|
|
|
.PHONY: import
|
|
|
|
import: server
|
2020-04-11 02:01:27 +08:00
|
|
|
@"${CARLA_BUILD_TOOLS_FOLDER}/Import.py" $(ARGS)
|
2019-11-20 00:43:29 +08:00
|
|
|
|
2023-02-15 16:50:55 +08:00
|
|
|
CarlaUE4Editor: LibCarla osm2odr
|
2020-12-10 21:25:32 +08:00
|
|
|
@"${CARLA_BUILD_TOOLS_FOLDER}/BuildCarlaUE4.bat" --build $(ARGS)
|
2020-03-05 20:16:18 +08:00
|
|
|
|
2020-04-14 18:00:33 +08:00
|
|
|
launch: CarlaUE4Editor
|
2021-01-29 23:57:40 +08:00
|
|
|
@"${CARLA_BUILD_TOOLS_FOLDER}/BuildCarlaUE4.bat" --launch $(ARGS)
|
2018-07-26 18:41:20 +08:00
|
|
|
|
2019-10-22 20:28:14 +08:00
|
|
|
launch-only:
|
2022-06-09 05:22:30 +08:00
|
|
|
@"${CARLA_BUILD_TOOLS_FOLDER}/BuildCarlaUE4.bat" --launch $(ARGS)
|
2019-10-22 20:28:14 +08:00
|
|
|
|
2018-08-24 20:58:46 +08:00
|
|
|
package: PythonAPI
|
2021-02-24 00:29:35 +08:00
|
|
|
@"${CARLA_BUILD_TOOLS_FOLDER}/Package.bat" --ue-version 4.26 $(ARGS)
|
2018-07-26 18:41:20 +08:00
|
|
|
|
2020-04-23 03:03:11 +08:00
|
|
|
.PHONY: docs
|
2018-07-26 18:41:20 +08:00
|
|
|
docs:
|
2018-07-31 22:35:02 +08:00
|
|
|
@doxygen
|
|
|
|
@echo "Documentation index at ./Doxygen/html/index.html"
|
2018-07-26 18:41:20 +08:00
|
|
|
|
2020-04-23 03:03:11 +08:00
|
|
|
PythonAPI.docs:
|
|
|
|
python PythonAPI/docs/doc_gen.py
|
|
|
|
cd PythonAPI/docs && python bp_doc_gen.py
|
|
|
|
|
2018-07-26 18:41:20 +08:00
|
|
|
clean:
|
2021-02-24 00:29:35 +08:00
|
|
|
@"${CARLA_BUILD_TOOLS_FOLDER}/Package.bat" --clean --ue-version 4.26
|
2018-08-29 20:13:20 +08:00
|
|
|
@"${CARLA_BUILD_TOOLS_FOLDER}/BuildCarlaUE4.bat" --clean
|
|
|
|
@"${CARLA_BUILD_TOOLS_FOLDER}/BuildPythonAPI.bat" --clean
|
|
|
|
@"${CARLA_BUILD_TOOLS_FOLDER}/BuildLibCarla.bat" --clean
|
2020-10-19 22:22:00 +08:00
|
|
|
@"${CARLA_BUILD_TOOLS_FOLDER}/BuildOSM2ODR.bat" --clean
|
2018-07-26 18:41:20 +08:00
|
|
|
|
|
|
|
rebuild: setup
|
2020-07-30 22:36:51 +08:00
|
|
|
@"${CARLA_BUILD_TOOLS_FOLDER}/BuildCarlaUE4.bat" --rebuild
|
2019-02-12 19:02:35 +08:00
|
|
|
@"${CARLA_BUILD_TOOLS_FOLDER}/BuildLibCarla.bat" --rebuild
|
2020-10-19 22:22:00 +08:00
|
|
|
@"${CARLA_BUILD_TOOLS_FOLDER}/BuildOSM2ODR.bat" --rebuild
|
2019-02-12 19:02:35 +08:00
|
|
|
@"${CARLA_BUILD_TOOLS_FOLDER}/BuildPythonAPI.bat" --rebuild
|
2018-07-26 18:41:20 +08:00
|
|
|
|
|
|
|
check: PythonAPI
|
|
|
|
@echo "Not implemented!"
|
|
|
|
|
|
|
|
benchmark: LibCarla
|
|
|
|
@echo "Not implemented!"
|
|
|
|
|
|
|
|
.PHONY: PythonAPI
|
2020-07-28 16:41:28 +08:00
|
|
|
PythonAPI: LibCarla osm2odr
|
2018-08-29 20:13:20 +08:00
|
|
|
@"${CARLA_BUILD_TOOLS_FOLDER}/BuildPythonAPI.bat" --py3
|
2018-07-26 18:41:20 +08:00
|
|
|
|
2019-02-12 19:26:49 +08:00
|
|
|
server: setup
|
|
|
|
@"${CARLA_BUILD_TOOLS_FOLDER}/BuildLibCarla.bat" --server
|
|
|
|
|
|
|
|
client: setup
|
|
|
|
@"${CARLA_BUILD_TOOLS_FOLDER}/BuildLibCarla.bat" --client
|
|
|
|
|
2018-07-26 18:41:20 +08:00
|
|
|
.PHONY: LibCarla
|
|
|
|
LibCarla: setup
|
2018-08-29 20:13:20 +08:00
|
|
|
@"${CARLA_BUILD_TOOLS_FOLDER}/BuildLibCarla.bat" --server --client
|
2018-07-26 18:41:20 +08:00
|
|
|
|
|
|
|
setup:
|
2021-07-13 22:43:08 +08:00
|
|
|
@"${CARLA_BUILD_TOOLS_FOLDER}/Setup.bat" --boost-toolset msvc-14.2 $(ARGS)
|
2020-03-05 20:16:18 +08:00
|
|
|
|
2020-07-17 18:36:49 +08:00
|
|
|
.PHONY: Plugins
|
|
|
|
plugins:
|
|
|
|
@"${CARLA_BUILD_TOOLS_FOLDER}/Plugins.bat" $(ARGS)
|
|
|
|
|
2020-03-05 20:16:18 +08:00
|
|
|
deploy:
|
|
|
|
@"${CARLA_BUILD_TOOLS_FOLDER}/Deploy.bat" $(ARGS)
|
2020-07-27 17:18:15 +08:00
|
|
|
|
2020-07-28 16:41:28 +08:00
|
|
|
osm2odr:
|
2021-03-15 17:33:39 +08:00
|
|
|
@"${CARLA_BUILD_TOOLS_FOLDER}/BuildOSM2ODR.bat" --build $(ARGS)
|