Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8
提交
2611af41
D
dragonwell8
项目概览
openanolis
/
dragonwell8
通知
5
Star
3
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell8
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
2611af41
编写于
10月 30, 2012
作者:
A
anthony
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8001764: vsvars.sh should support VS2012
Summary: Update the vsvars.sh script to support VS2012 Reviewed-by: ohair, tbell
上级
ee267a5e
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
24 addition
and
2 deletion
+24
-2
make/scripts/vsvars.sh
make/scripts/vsvars.sh
+24
-2
未找到文件。
make/scripts/vsvars.sh
浏览文件 @
2611af41
...
...
@@ -144,6 +144,16 @@ else
fi
fi
# VS2012 (VC11)
if
[
"
${
VS110COMNTOOLS
}
"
=
""
]
;
then
VS110COMNTOOLS
=
"
${
progfiles32
}
/Microsoft Visual Studio 11.0/Common7/Tools/"
export
VS110COMNTOOLS
fi
vc11Bin32Dir
=
`
envpath
"
${
VS110COMNTOOLS
}
"
`
/../../VC/Bin
vc11Bin64Dir
=
"
${
vc11Bin32Dir
}
"
vc11vars32Bat
=
"vcvars32.bat"
vc11vars64Bat
=
"vcvars64.bat"
# VS2010 (VC10)
if
[
"
${
VS100COMNTOOLS
}
"
=
""
]
;
then
VS100COMNTOOLS
=
"
${
progfiles32
}
/Microsoft Visual Studio 10.0/Common7/Tools/"
...
...
@@ -188,7 +198,7 @@ vc7vars64Bat="SetEnv.cmd /X64"
vcSelection
=
""
# Parse options
usage
=
"Usage:
$0
[-help] [-debug] [-v] [-c] [-s] [-p] [-v10] [-v9] [-v8] [-v7] [-32] [-64]"
usage
=
"Usage:
$0
[-help] [-debug] [-v] [-c] [-s] [-p] [-v1
1] [-v1
0] [-v9] [-v8] [-v7] [-32] [-64]"
while
[
$#
-gt
0
]
;
do
if
[
"
$1
"
=
"-help"
]
;
then
msg
"
${
usage
}
"
...
...
@@ -198,6 +208,7 @@ while [ $# -gt 0 ] ; do
msg
" -c Print out csh style output"
msg
" -s Print out sh style output"
msg
" -p Print out properties style output"
msg
" -v11 Use Visual Studio 11 VS2012"
msg
" -v10 Use Visual Studio 10 VS2010"
msg
" -v9 Use Visual Studio 9 VS2008"
msg
" -v8 Use Visual Studio 8 VS2005"
...
...
@@ -220,6 +231,13 @@ while [ $# -gt 0 ] ; do
elif
[
"
$1
"
=
"-p"
]
;
then
shellStyle
=
"props"
shift
elif
[
"
$1
"
=
"-v11"
]
;
then
vcBin32Dir
=
"
${
vc11Bin32Dir
}
"
vcBin64Dir
=
"
${
vc11Bin64Dir
}
"
vcvars32Bat
=
"
${
vc11vars32Bat
}
"
vcvars64Bat
=
"
${
vc11vars64Bat
}
"
vcSelection
=
"11"
shift
elif
[
"
$1
"
=
"-v10"
]
;
then
vcBin32Dir
=
"
${
vc10Bin32Dir
}
"
vcBin64Dir
=
"
${
vc10Bin64Dir
}
"
...
...
@@ -398,6 +416,8 @@ echo VS_VS90COMNTOOLS="%VS90COMNTOOLS%"
echo export VS_VS90COMNTOOLS
echo VS_VS100COMNTOOLS="%VS100COMNTOOLS%"
echo export VS_VS100COMNTOOLS
echo VS_VS110COMNTOOLS="%VS110COMNTOOLS%"
echo export VS_VS110COMNTOOLS
echo VS_VCINSTALLDIR="%VCINSTALLDIR%"
echo export VS_VCINSTALLDIR
echo VS_VSINSTALLDIR="%VSINSTALLDIR%"
...
...
@@ -521,7 +541,9 @@ printEnv MSSDK mssdk VS_MSSDK "${VS_MSSDK}"
printEnv MSTOOLS mstools VS_MSTOOLS
"
${
VS_MSTOOLS
}
"
printEnv DEVENVDIR devenvdir VS_DEVENVDIR
"
${
VS_DEVENVDIR
}
"
printEnv WINDOWSSDKDIR windowssdkdir VS_WINDOWSSDKDIR
"
${
VS_WINDOWSSDKDIR
}
"
if
[
"
${
vcSelection
}
"
=
"10"
]
;
then
if
[
"
${
vcSelection
}
"
=
"11"
]
;
then
printEnv VS110COMNTOOLS vs110comntools VS_VS110COMNTOOLS
"
${
VS_VS110COMNTOOLS
}
"
elif
[
"
${
vcSelection
}
"
=
"10"
]
;
then
printEnv VS100COMNTOOLS vs100comntools VS_VS100COMNTOOLS
"
${
VS_VS100COMNTOOLS
}
"
elif
[
"
${
vcSelection
}
"
=
"9"
]
;
then
printEnv VS90COMNTOOLS vs90comntools VS_VS90COMNTOOLS
"
${
VS_VS90COMNTOOLS
}
"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录