mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 00:45:24 +00:00

Refactor IDL compilation: - Move all macros to idl-support.cmake - Make rpc proxy a static library, instead of fiddeling with SOURCE variable - Merge client and server rpc libraries into one library - Reorder global makelist file a little - Improve configure script - Improve naming, use add_* when a target is added, generate_* when only a file is generated - Don't compile wbemcli.idl on MSVC (temp hack) - Don't compile rossym on MSVC, we don't use it - Use ml64 as assembler when compiling for amd64 - fix spec2def invocation svn path=/branches/cmake-bringup/; revision=50478
60 lines
1.5 KiB
Batchfile
60 lines
1.5 KiB
Batchfile
@echo off
|
|
|
|
rem Get the source root directory
|
|
set ROS_SOURCE_DIR=%~dp0
|
|
|
|
rem Detect build environment (Mingw, VS, WDK, ...)
|
|
if not "%ROS_ARCH%" == "" (
|
|
echo Detected RosBE for %ROS_ARCH%
|
|
set BUILD_ENVIRONMENT=MINGW
|
|
set ARCH=%ROS_ARCH%
|
|
)
|
|
if not "%DDK_TARGET_OS%" == "" (
|
|
echo Detected DDK/WDK for %_BUILDARCH%
|
|
if "%_BUILDARCH%" == "x86" (
|
|
set ARCH=i386
|
|
)
|
|
if "%_BUILDARCH%" == "AMD64" (
|
|
set ARCH=amd64
|
|
)
|
|
set BUILD_ENVIRONMENT=WDK
|
|
)
|
|
|
|
|
|
rem Create directories
|
|
echo Preparing host tools...
|
|
if not exist host-tools (
|
|
mkdir host-tools
|
|
)
|
|
cd host-tools
|
|
if EXIST CMakeCache.txt (
|
|
del CMakeCache.txt /q
|
|
)
|
|
set REACTOS_BUILD_TOOLS_DIR=%CD%
|
|
if "%BUILD_ENVIRONMENT%" == "MINGW" (
|
|
cmake -G "MinGW Makefiles" -DARCH=%ARCH% %ROS_SOURCE_DIR%
|
|
)
|
|
if "%BUILD_ENVIRONMENT%" == "WDK" (
|
|
cmake -G "NMake Makefiles" -DARCH=%ARCH% %ROS_SOURCE_DIR%
|
|
)
|
|
cd..
|
|
|
|
echo Preparing reactos...
|
|
if not exist reactos (
|
|
mkdir reactos
|
|
)
|
|
|
|
cd reactos
|
|
if EXIST CMakeCache.txt (
|
|
del CMakeCache.txt /q
|
|
)
|
|
if "%BUILD_ENVIRONMENT%" == "MINGW" (
|
|
cmake -G "MinGW Makefiles" -DCMAKE_TOOLCHAIN_FILE=toolchain-mingw32.cmake -DARCH=%ARCH% -DREACTOS_BUILD_TOOLS_DIR:DIR="%REACTOS_BUILD_TOOLS_DIR%" %ROS_SOURCE_DIR%
|
|
)
|
|
if "%BUILD_ENVIRONMENT%" == "WDK" (
|
|
cmake -G "NMake Makefiles" -DCMAKE_TOOLCHAIN_FILE=toolchain-msvc.cmake -DARCH=%ARCH% -DREACTOS_BUILD_TOOLS_DIR:DIR="%REACTOS_BUILD_TOOLS_DIR%" %ROS_SOURCE_DIR%
|
|
)
|
|
cd..
|
|
|
|
rem Create a root makefile
|
|
rem echo ... > makefile
|