mirror of
https://github.com/holub/mame
synced 2025-05-04 21:43:05 +03:00
18 lines
484 B
Bash
18 lines
484 B
Bash
#!/bin/sh
|
|
|
|
CURRENT_DIR=`pwd`
|
|
BUILD_DIR="build"
|
|
BUILD_OPTIONS="-DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DASMJIT_TEST=1"
|
|
|
|
echo "** Configuring ${BUILD_DIR}_dbg [Debug Build] **"
|
|
mkdir -p ../${BUILD_DIR}_dbg
|
|
cd ../${BUILD_DIR}_dbg
|
|
eval cmake .. -DCMAKE_BUILD_TYPE=Debug ${BUILD_OPTIONS}
|
|
cd ${CURRENT_DIR}
|
|
|
|
echo "** Configuring ${BUILD_DIR}_rel [Release Build] **"
|
|
mkdir -p ../${BUILD_DIR}_rel
|
|
cd ../${BUILD_DIR}_rel
|
|
eval cmake .. -DCMAKE_BUILD_TYPE=Release ${BUILD_OPTIONS}
|
|
cd ${CURRENT_DIR}
|