2017-07-21 21:19:52 +08:00
|
|
|
# WARNING: do not run this script without defining THREADS!
|
|
|
|
# If THREADS isn't defined then this script will call 'make -j'.
|
|
|
|
# From the manpage: "If the -j option is given without an argument, make will not limit the number of jobs that can run simultaneously."
|
|
|
|
# That means that the whole build will be started simultaneously and IT WILL CRASH YOUR COMPUTER!
|
|
|
|
|
2017-07-30 16:58:19 +08:00
|
|
|
cd ../..
|
2017-07-21 21:19:52 +08:00
|
|
|
|
2017-07-30 05:17:17 +08:00
|
|
|
TIMEOUT=600 ./init
|
2017-07-21 21:19:52 +08:00
|
|
|
bash -c "doxygen Doxyfile >/dev/null 2>/dev/null"
|
|
|
|
|
|
|
|
cd build
|
2017-10-04 20:46:57 +08:00
|
|
|
cmake -DCMAKE_BUILD_TYPE=Release -DUSE_READLINE=OFF ..
|
2017-07-30 16:58:19 +08:00
|
|
|
TIMEOUT=1000 make -j$THREADS
|
2017-10-06 19:10:31 +08:00
|
|
|
# Create a binary package (which can then be used for Docker image).
|
2017-10-07 20:41:59 +08:00
|
|
|
#cpack -D CPACK_SET_DESTDIR=ON -G TGZ
|
2017-07-30 05:17:17 +08:00
|
|
|
|
2017-09-24 04:43:58 +08:00
|
|
|
cd ../tools
|
|
|
|
|
|
|
|
./setup
|
|
|
|
|
|
|
|
cd apollo
|
2017-07-21 21:19:52 +08:00
|
|
|
|
2017-07-30 16:58:19 +08:00
|
|
|
./generate release
|