Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- setlocal ENABLEDELAYEDEXPANSION
- IF "%OGRE_PATH%" == "" GOTO NOPATH
- REM MODIFY THE DIRECTORIES HERE FOR OGRE3D.
- set files=log logmanager renderwindow root scenemanager viewport framelistener camera
- goto PREPAREARGS
- :BUILD
- FOR %%N IN (%files%) DO mingw32-g++.exe -mthreads -fmessage-length=0 -fexceptions -fident -DWIN32 -D_DEBUG -D_WINDOWS -Wall -g -I%OGRE_PATH%\include\OGRE -I%OGRE_PATH%\boost_1_42 -I..\Dogre -c "dogre\%%N\%%N.cpp" -o obj\Debug\dogre\%%N\%%N.o
- mingw32-g++.exe -shared -Wl,--dll -L%OGRE_PATH%\bin\debug -Ldogre !objects! -o build\Dogre.dll -Wl,--enable-auto-image-base -Wl,--add-stdcall-alias %OGRE_PATH%\bin\debug\OgreMain_d.dll %OGRE_PATH%\bin\debug\OIS_d.dll
- echo Now run postbuild.bat
- GOTO END
- :NOPATH
- echo Please set the OGRE_PATH environment variable.
- GOTO END
- :PREPAREARGS
- SET first=0
- SET objects=
- FOR %%N IN (%files%) DO (
- IF !first!==0 (
- (SET objects=obj\Debug\dogre\%%N\%%N.o)
- )
- IF !first!==1 SET objects=!objects! obj\Debug\dogre\%%N\%%N.o
- SET first=1
- )
- goto BUILD
- :END
- endlocal
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement