Author: spetreolle
Date: Mon May 16 21:26:08 2011
New Revision: 51801
URL:
http://svn.reactos.org/svn/reactos?rev=51801&view=rev
Log:
Add cmake configure script for unix.
Added:
trunk/reactos/configure.sh (with props)
Modified:
trunk/reactos/configure.cmd (props changed)
Propchange: trunk/reactos/configure.cmd
------------------------------------------------------------------------------
svn:executable = *
Added: trunk/reactos/configure.sh
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/configure.sh?rev=51801&…
==============================================================================
--- trunk/reactos/configure.sh (added)
+++ trunk/reactos/configure.sh [iso-8859-1] Mon May 16 21:26:08 2011
@@ -1,0 +1,38 @@
+#!/bin/bash
+if [ "x$ROS_ARCH" == "x" ]
+then
+ echo Could not detect RosBE.
+ exit 1
+fi
+
+BUILD_ENVIRONMENT=MinGW
+ARCH=$ROS_ARCH
+REACTOS_SOURCE_DIR=$(cd `dirname $0` && pwd)
+REACTOS_OUTPUT_PATH=output-$BUILD_ENVIRONMENT-$ARCH
+
+echo ARCH $ARCH ROS $ROS_ARCH
+if [ "$REACTOS_SOURCE_DIR" == "$PWD" ]
+then
+ echo Creating directories in $REACTOS_OUTPUT_PATH
+ mkdir -p $REACTOS_OUTPUT_PATH
+ cd "$REACTOS_OUTPUT_PATH"
+fi
+
+mkdir -p host-tools
+mkdir -p reactos
+
+echo Preparing host tools...
+cd host-tools
+if [ -f CMakeCache.txt ]
+then
+ rm -f CMakeCache.txt
+fi
+
+REACTOS_BUILD_TOOLS_DIR="$PWD"
+cmake -G "Unix Makefiles" -DARCH=$ARCH "$REACTOS_SOURCE_DIR"
+
+cd ../reactos
+cmake -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE=toolchain-mingw32.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...).
+
Propchange: trunk/reactos/configure.sh
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: trunk/reactos/configure.sh
------------------------------------------------------------------------------
svn:executable = *