-
Notifications
You must be signed in to change notification settings - Fork 10
/
open-vs.bat
44 lines (35 loc) · 1.75 KB
/
open-vs.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
@echo off
echo Setting environment variables...
set BOOST_BASE_DIR="C:\Luke Smith\HydFPE\Libraries\Boost\"
set BOOST_INCLUDE_DIR="%BOOST_BASE_DIR:"=%"
set BOOST_LIB_DIR_DEBUG="%BOOST_BASE_DIR:"=%\stage\lib\
set BOOST_LIB_DIR_RELEASE="%BOOST_BASE_DIR:"=%\stage\lib\
set GDAL_BASE_DIR="C:\Luke Smith\HydFPE\Libraries\GDAL\"
set GDAL_INCLUDE_CORE_DIR="%GDAL_BASE_DIR:"=%\gcore\"
set GDAL_INCLUDE_PORT_DIR="%GDAL_BASE_DIR:"=%\port\"
set GDAL_LIB_DIR_DEBUG="%GDAL_BASE_DIR:"=%\lib32\debug\"
set GDAL_LIB_DIR_RELEASE="%GDAL_BASE_DIR:"=%\lib32\release\"
set GDAL_DLL_DIR_DEBUG="%GDAL_BASE_DIR:"=%\lib32\debug\"
set GDAL_DLL_DIR_RELEASE="%GDAL_BASE_DIR:"=%\lib32\release\"
set GDAL_DLL_FILENAME="gdal110.dll"
echo Removing quotes from variables...
set BOOST_BASE_DIR=%BOOST_BASE_DIR:"=%
set BOOST_INCLUDE_DIR=%BOOST_INCLUDE_DIR:"=%
set BOOST_LIB_DIR_DEBUG=%BOOST_LIB_DIR_DEBUG:"=%
set BOOST_LIB_DIR_RELEASE=%BOOST_LIB_DIR_RELEASE:"=%
set GDAL_BASE_DIR=%GDAL_BASE_DIR:"=%
set GDAL_INCLUDE_CORE_DIR=%GDAL_INCLUDE_CORE_DIR:"=%
set GDAL_INCLUDE_PORT_DIR=%GDAL_INCLUDE_PORT_DIR:"=%
set GDAL_LIB_DIR_DEBUG=%GDAL_LIB_DIR_DEBUG:"=%
set GDAL_LIB_DIR_RELEASE=%GDAL_LIB_DIR_RELEASE:"=%
set GDAL_DLL_DIR_DEBUG=%GDAL_DLL_DIR_DEBUG:"=%
set GDAL_DLL_DIR_RELEASE=%GDAL_DLL_DIR_RELEASE:"=%
set GDAL_DLL_FILENAME=%GDAL_DLL_FILENAME:"=%
echo Finding Visual Studio...
if "%VS100COMNTOOLS%"=="" (echo.) else (call "%VS100COMNTOOLS%\vsvars32.bat")
if "%VS110COMNTOOLS%"=="" (echo.) else (call "%VS110COMNTOOLS%\vsvars32.bat")
if "%VS120COMNTOOLS%"=="" (echo.) else (call "%VS120COMNTOOLS%\vsvars32.bat")
if "%VS130COMNTOOLS%"=="" (echo.) else (call "%VS130COMNTOOLS%\vsvars32.bat")
if "%VS140COMNTOOLS%"=="" (echo.) else (call "%VS140COMNTOOLS%\vsvars32.bat")
echo Starting Visual Studio...
devenv HiPIMS-OCL.sln