citrun

watch C/C++ source code execute
Log | Files | Refs | LICENSE

commit 4dedb0e666370ad61ab4a92ac44ec1a2560fad33
parent 9c8e9948985117fdd8ec77afd250b650ac92b6f2
Author: Kyle Milz <kyle@windows.krwm.net>
Date:   Fri, 30 Dec 2016 09:11:07 -0800

add first pass at configure.bat

Diffstat:
Aconfigure.bat | 77+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 77 insertions(+), 0 deletions(-)

diff --git a/configure.bat b/configure.bat @@ -0,0 +1,77 @@ +@echo off +rem +rem Checks that a bunch of crap is installed and available on Windows. +rem +echo Configuring C It Run on NT +echo. + +rem +rem Need to 'setlocal' otherwise Path modifications get saved to the parent shell. +rem Extends to end of file so we have these modifications the entire time. +rem +setlocal +set Path=C:\Users\kyle\src\jam-2.6\bin.ntx86;%Path% +set Path=C:\Users\kyle\src\llvm-3.9.1.src\Debug\bin;%Path% + +WHERE cl +if %ERRORLEVEL% NEQ 0 ( + echo cl.exe not found on the Path! + echo( + echo Please make sure Visual Studio is installed and that you're running this + echo at a developer command prompt with the correct Path set. + + exit /B 1 +) + +WHERE jam +if %ERRORLEVEL% NEQ 0 ( + echo jam.exe not found on the Path! + echo( + echo Jam can be downloaded by this command: +) + +WHERE llvm-config.exe 2>nul +if %ERRORLEVEL% NEQ 0 ( + echo llvm-config.exe not found on the Path! + echo You need to have compiled the LLVM sources by hand to get this + echo executable. + echo( + echo Download LLVM sources from http://llvm.org/. + + exit /B 1 +) + +set LLVM_LIBS=bitreader mcparser transformutils option + +del Jamrules + +echo C++FLAGS += -std=c++11 -fno-exceptions -fno-rtti ; >>Jamrules +echo( >>Jamrules + +echo FONT_PATH = "C:\Windows\Fonts\consola.ttf" ; >>Jamrules +echo CITRUN_SHARE = C:\Users\kyle\citrun\src ; >>Jamrules +echo( >>Jamrules + +rem GL_CFLAGS = `pkg-config --cflags glfw3 glew freetype2` ; +rem GL_LIBS = ${GL_EXTRALIB-} `pkg-config --libs glfw3 glew freetype2` ; +rem GLTEST_LIBS = `pkg-config --libs osmesa` ; + +echo INST_CFLAGS = >>Jamrules +llvm-config.exe --cxxflags >>Jamrules +echo ; >>Jamrules +echo( >>Jamrules + +echo INST_LDFLAGS = >>Jamrules +llvm-config.exe --ldflags >>Jamrules +echo ; >>Jamrules +echo( >>Jamrules + +echo INST_LIBS = >>Jamrules +llvm-config.exe --libs %LLVM_LIBS% >>Jamrules +llvm-config.exe --system-libs >>Jamrules +echo ; >>Jamrules +echo( >>Jamrules + +copy /b Jamrules + Jamrules.tail Jamrules + +endlocal