2015-03-03 16:36:42 +08:00
|
|
|
#put xctool.sh into your PATH
|
2015-03-14 17:08:52 +08:00
|
|
|
|
|
|
|
#######
|
|
|
|
# Cmake build
|
|
|
|
#######
|
|
|
|
# DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
2021-05-18 16:40:30 +08:00
|
|
|
# ADXE_ROOT="$DIR"/../../..
|
|
|
|
# cd ${ADXE_ROOT}
|
2015-03-14 17:08:52 +08:00
|
|
|
# mkdir mac-build
|
|
|
|
# cd mac-build
|
|
|
|
# cmake ..
|
|
|
|
# make -j4
|
|
|
|
|
|
|
|
#######
|
|
|
|
# xcode build
|
|
|
|
#######
|
2015-03-03 16:36:42 +08:00
|
|
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
2021-05-18 16:40:30 +08:00
|
|
|
ADXE_ROOT="$DIR"/../../../..
|
|
|
|
xcodebuild -project "$ADXE_ROOT"/build/cocos2d_tests.xcodeproj -scheme "build all tests Mac" clean | xcpretty
|
|
|
|
xcodebuild -project "$ADXE_ROOT"/build/cocos2d_tests.xcodeproj -scheme "build all tests Mac" build | xcpretty
|
2015-04-29 13:58:35 +08:00
|
|
|
#xcpretty has a bug, some xcodebuid fails return value would be treated as 0.
|
2021-05-18 16:40:30 +08:00
|
|
|
xcodebuild -project "$ADXE_ROOT"/build/cocos2d_tests.xcodeproj -scheme "build all tests Mac" build
|