Add GDB mode to make launch
This commit is contained in:
parent
fcdb200396
commit
574733df8b
|
@ -25,7 +25,9 @@ HARD_CLEAN=false
|
|||
BUILD_CARLAUE4=false
|
||||
LAUNCH_UE4_EDITOR=false
|
||||
|
||||
OPTS=`getopt -o h --long help,build,rebuild,launch,clean,hard-clean -n 'parse-options' -- "$@"`
|
||||
GDB=
|
||||
|
||||
OPTS=`getopt -o h --long help,build,rebuild,launch,clean,hard-clean,gdb -n 'parse-options' -- "$@"`
|
||||
|
||||
if [ $? != 0 ] ; then echo "$USAGE_STRING" ; exit 2 ; fi
|
||||
|
||||
|
@ -33,6 +35,9 @@ eval set -- "$OPTS"
|
|||
|
||||
while true; do
|
||||
case "$1" in
|
||||
--gdb )
|
||||
GDB="gdb --args";
|
||||
shift ;;
|
||||
--build )
|
||||
BUILD_CARLAUE4=true;
|
||||
shift ;;
|
||||
|
@ -133,7 +138,7 @@ fi
|
|||
if ${LAUNCH_UE4_EDITOR} ; then
|
||||
|
||||
log "Launching UE4Editor..."
|
||||
${UE4_ROOT}/Engine/Binaries/Linux/UE4Editor "${PWD}/CarlaUE4.uproject"
|
||||
${GDB} ${UE4_ROOT}/Engine/Binaries/Linux/UE4Editor "${PWD}/CarlaUE4.uproject"
|
||||
|
||||
else
|
||||
|
||||
|
|
|
@ -4,10 +4,10 @@ help:
|
|||
@less ${CARLA_BUILD_TOOLS_FOLDER}/Linux.mk.help
|
||||
|
||||
launch: LibCarla.server.release
|
||||
@${CARLA_BUILD_TOOLS_FOLDER}/BuildCarlaUE4.sh --build --launch
|
||||
@${CARLA_BUILD_TOOLS_FOLDER}/BuildCarlaUE4.sh --build --launch $(ARGS)
|
||||
|
||||
launch-only:
|
||||
@${CARLA_BUILD_TOOLS_FOLDER}/BuildCarlaUE4.sh --launch
|
||||
@${CARLA_BUILD_TOOLS_FOLDER}/BuildCarlaUE4.sh --launch $(ARGS)
|
||||
|
||||
package: CarlaUE4Editor PythonAPI
|
||||
@${CARLA_BUILD_TOOLS_FOLDER}/Package.sh $(ARGS)
|
||||
|
|
Loading…
Reference in New Issue