mirror of
https://github.com/reactos/reactos.git
synced 2024-09-28 13:34:53 +00:00
[CONFIGURE_SH]
- Add the ability to use the ninja generator with unix configure script svn path=/trunk/; revision=57614
This commit is contained in:
parent
68f5fd309d
commit
3ab390e130
|
@ -9,6 +9,11 @@ BUILD_ENVIRONMENT=MinGW
|
|||
ARCH=$ROS_ARCH
|
||||
REACTOS_SOURCE_DIR=$(cd `dirname $0` && pwd)
|
||||
REACTOS_OUTPUT_PATH=output-$BUILD_ENVIRONMENT-$ARCH
|
||||
if [ "$1" = "ninja" ]; then
|
||||
CMAKE_GENERATOR="Ninja"
|
||||
else
|
||||
CMAKE_GENERATOR="Unix Makefiles"
|
||||
fi
|
||||
|
||||
if [ "$REACTOS_SOURCE_DIR" = "$PWD" ]; then
|
||||
echo Creating directories in $REACTOS_OUTPUT_PATH
|
||||
|
@ -23,12 +28,12 @@ cd host-tools
|
|||
rm -f CMakeCache.txt
|
||||
|
||||
REACTOS_BUILD_TOOLS_DIR="$PWD"
|
||||
cmake -G "Unix Makefiles" -DARCH=$ARCH "$REACTOS_SOURCE_DIR"
|
||||
cmake -G "$CMAKE_GENERATOR" -DARCH=$ARCH "$REACTOS_SOURCE_DIR"
|
||||
|
||||
echo Preparing reactos...
|
||||
cd ../reactos
|
||||
rm -f CMakeCache.txt
|
||||
|
||||
cmake -G "Unix Makefiles" -DENABLE_CCACHE=0 -DPCH=0 -DCMAKE_TOOLCHAIN_FILE=toolchain-gcc.cmake -DARCH=$ARCH -DREACTOS_BUILD_TOOLS_DIR="$REACTOS_BUILD_TOOLS_DIR" "$REACTOS_SOURCE_DIR"
|
||||
cmake -G "$CMAKE_GENERATOR" -DENABLE_CCACHE=0 -DPCH=0 -DCMAKE_TOOLCHAIN_FILE=toolchain-gcc.cmake -DARCH=$ARCH -DREACTOS_BUILD_TOOLS_DIR="$REACTOS_BUILD_TOOLS_DIR" "$REACTOS_SOURCE_DIR"
|
||||
|
||||
echo Configure script complete! Enter directories and execute appropriate build commands\(ex: make, makex, etc...\).
|
||||
|
|
Loading…
Reference in a new issue