Author: dreimer
Date: Wed Feb 6 11:37:56 2008
New Revision: 32152
URL:
http://svn.reactos.org/svn/reactos?rev=32152&view=rev
Log:
first step to add multiple Arches selection to RosBE
Added:
trunk/tools/RosBE/RosBE-Windows/Root/charch.cmd (with props)
Modified:
trunk/tools/RosBE/RosBE-Windows/Root/ChangeLog.txt
trunk/tools/RosBE/RosBE-Windows/Root/Help.cmd
trunk/tools/RosBE/RosBE-Windows/Root/RosBE.cmd
trunk/tools/RosBE/RosBE-Windows/Root/RosBE.mac
Modified: trunk/tools/RosBE/RosBE-Windows/Root/ChangeLog.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/RosBE-Windows/Root/Cha…
==============================================================================
--- trunk/tools/RosBE/RosBE-Windows/Root/ChangeLog.txt (original)
+++ trunk/tools/RosBE/RosBE-Windows/Root/ChangeLog.txt Wed Feb 6 11:37:56 2008
@@ -1,3 +1,7 @@
+*** XXX xxrd, 2008 - RosBE 1.3 Released
+
+- Added: Tool to set the Architecture to build ROS for. (Daniel Reimer)
+
*** January 23rd, 2008 - RosBE 1.2 Released
- Updated: NASM to 2.01 (Peter Ward)
Modified: trunk/tools/RosBE/RosBE-Windows/Root/Help.cmd
URL:
http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/RosBE-Windows/Root/Hel…
==============================================================================
--- trunk/tools/RosBE/RosBE-Windows/Root/Help.cmd (original)
+++ trunk/tools/RosBE/RosBE-Windows/Root/Help.cmd Wed Feb 6 11:37:56 2008
@@ -27,6 +27,11 @@
echo with the appropriate number.
echo basedir - Switch back to the ReactOS source directory.
+ if exist "%_ROSBE_BASEDIR%\charch.cmd" (
+ echo chdefdir [OPTIONS] - Change the Architecture to build for for the
+ echo current RosBE session.
+ )
+
if exist "%_ROSBE_BASEDIR%\chdefdir.cmd" (
echo chdefdir [OPTIONS] - Change the ReactOS source directory for the
echo current RosBE session.
@@ -96,6 +101,16 @@
echo Switches back to the ReactOS source directory.
goto :EOC
)
+if exist "%_ROSBE_BASEDIR%\charch.cmd" (
+ if /i "%1" == "charch" (
+ echo Usage: charch [OPTIONS]
+ echo Change the ReactOS source directory for the current RosBE session.
+ echo Possible Architectures are: x86, ppc, arm.
+ echo.
+ echo previous - Switch to the previous ReactOS source directory.
+ goto :EOC
+ )
+)
if exist "%_ROSBE_BASEDIR%\chdefdir.cmd" (
if /i "%1" == "chdefdir" (
echo Usage: chdefdir [OPTIONS]
Modified: trunk/tools/RosBE/RosBE-Windows/Root/RosBE.cmd
URL:
http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/RosBE-Windows/Root/Ros…
==============================================================================
--- trunk/tools/RosBE/RosBE-Windows/Root/RosBE.cmd (original)
+++ trunk/tools/RosBE/RosBE-Windows/Root/RosBE.cmd Wed Feb 6 11:37:56 2008
@@ -138,6 +138,7 @@
if not exist "%_ROSBE_BASEDIR%\chdefdir.cmd" ( doskey CHDEFDIR= )
if not exist "%_ROSBE_BASEDIR%\chdefgcc.cmd" ( doskey CHDEFGCC= )
+ if not exist "%_ROSBE_BASEDIR%\charch.cmd" ( doskey CHARCH= )
if not exist "%_ROSBE_BASEDIR%\Config.cmd" ( doskey CONFIG= )
if not exist "%_ROSBE_BASEDIR%\reladdr2line.cmd" ( doskey RADDR2LINE= )
if not exist "%_ROSBE_BASEDIR%\scut.cmd" ( doskey SCUT= )
Modified: trunk/tools/RosBE/RosBE-Windows/Root/RosBE.mac
URL:
http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/RosBE-Windows/Root/Ros…
==============================================================================
--- trunk/tools/RosBE/RosBE-Windows/Root/RosBE.mac (original)
+++ trunk/tools/RosBE/RosBE-Windows/Root/RosBE.mac Wed Feb 6 11:37:56 2008
@@ -1,6 +1,7 @@
BASEDIR = cd /d "%_ROSBE_ROSSOURCEDIR%"
CHDEFDIR = "%_ROSBE_BASEDIR%\chdefdir.cmd" $*
CHDEFGCC = "%_ROSBE_BASEDIR%\chdefgcc.cmd" $*
+CHARCH = "%_ROSBE_BASEDIR%\charch.cmd" $*
CLEAN = "%_ROSBE_BASEDIR%\Clean.cmd" $*
CONFIG = "%_ROSBE_BASEDIR%\Config.cmd" $*
ENV = set
Added: trunk/tools/RosBE/RosBE-Windows/Root/charch.cmd
URL:
http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/RosBE-Windows/Root/cha…
==============================================================================
--- trunk/tools/RosBE/RosBE-Windows/Root/charch.cmd (added)
+++ trunk/tools/RosBE/RosBE-Windows/Root/charch.cmd Wed Feb 6 11:37:56 2008
@@ -1,0 +1,83 @@
+::
+:: PROJECT: RosBE - ReactOS Build Environment for Windows
+:: LICENSE: GNU General Public License v2. (see LICENSE.txt)
+:: FILE: Root/charch.cmd
+:: PURPOSE: Tool to change the current Arch to build ROS for in RosBE.
+:: COPYRIGHT: Copyright 2008 Daniel Reimer <reimer.daniel(a)freenet.de>
+::
+@echo off
+if not defined _ROSBE_DEBUG set _ROSBE_DEBUG=0
+if %_ROSBE_DEBUG% == 1 (
+ @echo on
+)
+
+title Change the Architecture to build for...
+
+::
+:: Parse the command line arguments.
+::
+if "%1" == "" (
+ call :INTERACTIVE
+) else (
+ set _1=%1
+)
+if /i "%_1%" == "previous" (
+ popd
+)
+if /i "%_1%" == "x86" (
+ set _ROSBE_ARCH%=x86
+ set _ROSBE_PREFIX=mingw32
+ goto :EOC
+)
+if /i "%_1%" == "arm" (
+ set _ROSBE_ARCH%=arm
+ set _ROSBE_PREFIX=mingwarm
+ goto :EOC
+)
+if /i "%_1%" == "ppc" (
+ set _ROSBE_ARCH%=ppc
+ set _ROSBE_PREFIX=mingwppc
+ goto :EOC
+)
+if not "%_1%" == "" (
+ echo Unknown parameter specified. Try 'help [COMMAND]'.
+ goto :EOC
+)
+goto :EOC
+
+::
+:: If Parameters were set, parse them, if not, ask the user to add them.
+::
+:INTERACTIVE
+ set /p _1="Please enter a Architecture you want to build ReactOS for: "
+ if "%_1%" == "" (
+ echo ERROR: You must enter a Architecture.
+ goto :EOC
+ )
+goto :EOF
+
+:EOC
+pushd %_1%
+
+::
+:: Set to x86, ppc or arm.
+::
+set ROS_ARCH=%_ROSBE_ARCH%
+
+::
+:: Default is mingw32. ppc could be mingwppc, arm mingwarm.
+::
+set ROS_PREFIX=%_ROSBE_PREFIX%
+
+REM chdefgcc %PATH%
+REM Maybe another way to set the compiler...
+
+if defined _ROSBE_VERSION (
+ title ReactOS Build Environment %_ROSBE_VERSION%
+)
+
+::
+:: Unload all used Vars.
+::
+set _ROSBE_ARCH=
+set _ROSBE_PREFIX=
Propchange: trunk/tools/RosBE/RosBE-Windows/Root/charch.cmd
------------------------------------------------------------------------------
svn:eol-style = native