Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
M
mediasoup
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
聂卓夫
mediasoup
Commits
38566707
提交
38566707
authored
12月 26, 2019
作者:
Iñaki Baz Castillo
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'issue-347' into v3
上级
33639a84
d739ef6d
显示空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
68 行增加
和
5 行删除
+68
-5
MSVSVersion.py
worker/deps/gyp/pylib/gyp/MSVSVersion.py
+10
-5
input.py
worker/deps/gyp/pylib/gyp/input.py
+2
-0
all-dependent-settings.gyp
...ings/nested-dependent-settings/all-dependent-settings.gyp
+19
-0
direct-dependent-settings.gyp
...s/nested-dependent-settings/direct-dependent-settings.gyp
+19
-0
gyptest-nested-dependent-settings.py
...d-dependent-settings/gyptest-nested-dependent-settings.py
+18
-0
没有找到文件。
worker/deps/gyp/pylib/gyp/MSVSVersion.py
浏览文件 @
38566707
...
@@ -263,12 +263,12 @@ def _CreateVersion(name, path, sdk_based=False):
...
@@ -263,12 +263,12 @@ def _CreateVersion(name, path, sdk_based=False):
'2019'
:
VisualStudioVersion
(
'2019'
,
'2019'
:
VisualStudioVersion
(
'2019'
,
'Visual Studio 2019'
,
'Visual Studio 2019'
,
solution_version
=
'12.00'
,
solution_version
=
'12.00'
,
project_version
=
'1
5
.0'
,
project_version
=
'1
6
.0'
,
flat_sln
=
False
,
flat_sln
=
False
,
uses_vcxproj
=
True
,
uses_vcxproj
=
True
,
path
=
path
,
path
=
path
,
sdk_based
=
sdk_based
,
sdk_based
=
sdk_based
,
default_toolset
=
'v14
1
'
,
default_toolset
=
'v14
2
'
,
compatible_sdks
=
[
'v8.1'
,
'v10.0'
]),
compatible_sdks
=
[
'v8.1'
,
'v10.0'
]),
'2017'
:
VisualStudioVersion
(
'2017'
,
'2017'
:
VisualStudioVersion
(
'2017'
,
'Visual Studio 2017'
,
'Visual Studio 2017'
,
...
@@ -409,7 +409,8 @@ def _DetectVisualStudioVersions(versions_to_check, force_express):
...
@@ -409,7 +409,8 @@ def _DetectVisualStudioVersions(versions_to_check, force_express):
'11.0'
:
'2012'
,
'11.0'
:
'2012'
,
'12.0'
:
'2013'
,
'12.0'
:
'2013'
,
'14.0'
:
'2015'
,
'14.0'
:
'2015'
,
'15.0'
:
'2017'
'15.0'
:
'2017'
,
'16.0'
:
'2019'
}
}
versions
=
[]
versions
=
[]
for
version
in
versions_to_check
:
for
version
in
versions_to_check
:
...
@@ -448,7 +449,10 @@ def _DetectVisualStudioVersions(versions_to_check, force_express):
...
@@ -448,7 +449,10 @@ def _DetectVisualStudioVersions(versions_to_check, force_express):
if
not
path
:
if
not
path
:
continue
continue
path
=
_ConvertToCygpath
(
path
)
path
=
_ConvertToCygpath
(
path
)
if
version
==
'15.0'
:
if
version
==
'16.0'
:
if
os
.
path
.
exists
(
path
):
versions
.
append
(
_CreateVersion
(
'2019'
,
path
))
elif
version
==
'15.0'
:
if
os
.
path
.
exists
(
path
):
if
os
.
path
.
exists
(
path
):
versions
.
append
(
_CreateVersion
(
'2017'
,
path
))
versions
.
append
(
_CreateVersion
(
'2017'
,
path
))
elif
version
!=
'14.0'
:
# There is no Express edition for 2015.
elif
version
!=
'14.0'
:
# There is no Express edition for 2015.
...
@@ -470,7 +474,7 @@ def SelectVisualStudioVersion(version='auto', allow_fallback=True):
...
@@ -470,7 +474,7 @@ def SelectVisualStudioVersion(version='auto', allow_fallback=True):
if
version
==
'auto'
:
if
version
==
'auto'
:
version
=
os
.
environ
.
get
(
'GYP_MSVS_VERSION'
,
'auto'
)
version
=
os
.
environ
.
get
(
'GYP_MSVS_VERSION'
,
'auto'
)
version_map
=
{
version_map
=
{
'auto'
:
(
'15.0'
,
'14.0'
,
'12.0'
,
'10.0'
,
'9.0'
,
'8.0'
,
'11.0'
),
'auto'
:
(
'1
6.0'
,
'1
5.0'
,
'14.0'
,
'12.0'
,
'10.0'
,
'9.0'
,
'8.0'
,
'11.0'
),
'2005'
:
(
'8.0'
,),
'2005'
:
(
'8.0'
,),
'2005e'
:
(
'8.0'
,),
'2005e'
:
(
'8.0'
,),
'2008'
:
(
'9.0'
,),
'2008'
:
(
'9.0'
,),
...
@@ -483,6 +487,7 @@ def SelectVisualStudioVersion(version='auto', allow_fallback=True):
...
@@ -483,6 +487,7 @@ def SelectVisualStudioVersion(version='auto', allow_fallback=True):
'2013e'
:
(
'12.0'
,),
'2013e'
:
(
'12.0'
,),
'2015'
:
(
'14.0'
,),
'2015'
:
(
'14.0'
,),
'2017'
:
(
'15.0'
,),
'2017'
:
(
'15.0'
,),
'2019'
:
(
'16.0'
,),
}
}
override_path
=
os
.
environ
.
get
(
'GYP_MSVS_OVERRIDE_PATH'
)
override_path
=
os
.
environ
.
get
(
'GYP_MSVS_OVERRIDE_PATH'
)
if
override_path
:
if
override_path
:
...
...
worker/deps/gyp/pylib/gyp/input.py
浏览文件 @
38566707
...
@@ -102,11 +102,13 @@ def IsPathSection(section):
...
@@ -102,11 +102,13 @@ def IsPathSection(section):
base_non_configuration_keys
=
[
base_non_configuration_keys
=
[
# Sections that must exist inside targets and not configurations.
# Sections that must exist inside targets and not configurations.
'actions'
,
'actions'
,
'all_dependent_settings'
,
'configurations'
,
'configurations'
,
'copies'
,
'copies'
,
'default_configuration'
,
'default_configuration'
,
'dependencies'
,
'dependencies'
,
'dependencies_original'
,
'dependencies_original'
,
'direct_dependent_settings'
,
'libraries'
,
'libraries'
,
'postbuilds'
,
'postbuilds'
,
'product_dir'
,
'product_dir'
,
...
...
worker/deps/gyp/test/dependent-settings/nested-dependent-settings/all-dependent-settings.gyp
0 → 100644
浏览文件 @
38566707
{
"targets": [
{
"target_name": "settings",
"type": "none",
"all_dependent_settings": {
"target_conditions": [
["'library' in _type", {"all_dependent_settings": {}}]
]
},
},
{
"target_name": "library",
"type": "static_library",
"dependencies": ["settings"],
},
]
}
worker/deps/gyp/test/dependent-settings/nested-dependent-settings/direct-dependent-settings.gyp
0 → 100644
浏览文件 @
38566707
{
"targets": [
{
"target_name": "settings",
"type": "none",
"all_dependent_settings": {
"target_conditions": [
["'library' in _type", {"direct_dependent_settings": {}}]
]
},
},
{
"target_name": "library",
"type": "static_library",
"dependencies": ["settings"],
},
]
}
worker/deps/gyp/test/dependent-settings/nested-dependent-settings/gyptest-nested-dependent-settings.py
0 → 100644
浏览文件 @
38566707
#!/usr/bin/env python
# Copyright (c) 2009 Google Inc. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""
Verifies nested dependent_settings directives project generation.
"""
import
TestGyp
test
=
TestGyp
.
TestGyp
()
test
.
run_gyp
(
"all-dependent-settings.gyp"
)
test
.
run_gyp
(
"direct-dependent-settings.gyp"
)
test
.
pass_test
()
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论