forked from TiVo/hxcpp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmsvc-setup.bat
More file actions
58 lines (58 loc) · 2.04 KB
/
msvc-setup.bat
File metadata and controls
58 lines (58 loc) · 2.04 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
setlocal enabledelayedexpansion
@if exist "%HXCPP_MSVC%\vsvars32.bat" (
@call "%HXCPP_MSVC%\vsvars32.bat"
@echo HXCPP_VARS
@set
) else if exist "%VS140COMNTOOLS%\vsvars32.bat" (
@call "%VS140COMNTOOLS%\vsvars32.bat"
@if defined HXCPP_WINXP_COMPAT (
@set "INCLUDE=%ProgramFiles(x86)%\Microsoft SDKs\Windows\7.1A\Include;!INCLUDE!"
@set "PATH=%ProgramFiles(x86)%\Microsoft SDKs\Windows\7.1A\Bin;!PATH!"
@set "LIB=%ProgramFiles(x86)%\Microsoft SDKs\Windows\7.1A\Lib;!LIB!"
@set HXCPP_XP_DEFINE=_USING_V140_SDK71_
)
@echo HXCPP_VARS
@set
) else if exist "%VS120COMNTOOLS%\vsvars32.bat" (
@call "%VS120COMNTOOLS%\vsvars32.bat"
@if defined HXCPP_WINXP_COMPAT (
@set "INCLUDE=%ProgramFiles(x86)%\Microsoft SDKs\Windows\7.1A\Include;!INCLUDE!"
@set "PATH=%ProgramFiles(x86)%\Microsoft SDKs\Windows\7.1A\Bin;!PATH!"
@set "LIB=%ProgramFiles(x86)%\Microsoft SDKs\Windows\7.1A\Lib;!LIB!"
@set HXCPP_XP_DEFINE=_USING_V120_SDK71_
)
@echo HXCPP_VARS
@set
) else if exist "%VS110COMNTOOLS%\vsvars32.bat" (
@call "%VS110COMNTOOLS%\vsvars32.bat"
@if defined HXCPP_WINXP_COMPAT (
@set "INCLUDE=%ProgramFiles(x86)%\Microsoft SDKs\Windows\7.1A\Include;!INCLUDE!"
@set "PATH=%ProgramFiles(x86)%\Microsoft SDKs\Windows\7.1A\Bin;!PATH!"
@set "LIB=%ProgramFiles(x86)%\Microsoft SDKs\Windows\7.1A\Lib;!LIB!"
@set HXCPP_XP_DEFINE=_USING_V110_SDK71_
)
@echo HXCPP_VARS
@set
) else if exist "%VS100COMNTOOLS%\vsvars32.bat" (
@call "%VS100COMNTOOLS%\vsvars32.bat"
@echo HXCPP_VARS
@set
) else if exist "%VS90COMNTOOLS%\vsvars32.bat" (
@call "%VS90COMNTOOLS%\vsvars32.bat"
@echo HXCPP_VARS
@set
) else if exist "%VS80COMNTOOLS%\vsvars32.bat" (
@call "%VS80COMNTOOLS%\vsvars32.bat"
@echo HXCPP_VARS
@set
) else if exist "%VS71COMNTOOLS%\vsvars32.bat" (
@call "%VS71COMNTOOLS%\vsvars32.bat"
@echo HXCPP_VARS
@set
) else if exist "%VS70COMNTOOLS%\vsvars32.bat" (
@call "%VS70COMNTOOLS%\vsvars32.bat"
@echo HXCPP_VARS
@set
) else (
echo Warning: Could not find environment variables for Visual Studio
)