Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
2110febb
T
Third Party Openssl
项目概览
OpenHarmony
/
Third Party Openssl
1 年多 前同步成功
通知
10
Star
18
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Third Party Openssl
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
2110febb
编写于
4月 06, 2016
作者:
R
Richard Levitte
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Perl cleanup: don't create lists unnecessarily
Reviewed-by:
N
Rich Salz
<
rsalz@openssl.org
>
上级
1c9f5117
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
23 addition
and
15 deletion
+23
-15
Configurations/common.tmpl
Configurations/common.tmpl
+18
-10
Configure
Configure
+5
-5
未找到文件。
Configurations/common.tmpl
浏览文件 @
2110febb
...
...
@@ -96,12 +96,16 @@
@
{
$unified_info
{
shared_sources
}
->
{
$lib
}})
],
deps
=>
[
reducedepends
(
resolvedepends
(
$lib
))
],
%ordinals
);
map
{
doobj
(
$_
,
$lib
,
intent
=>
"
lib
")
}
@
{
$unified_info
{
shared_sources
}
->
{
$lib
}};
foreach
(
@
{
$unified_info
{
shared_sources
}
->
{
$lib
}})
{
doobj
(
$_
,
$lib
,
intent
=>
"
lib
");
}
}
$OUT
.=
obj2lib
(
lib
=>
$lib
,
objs
=>
[
map
{
(
my
$x
=
$_
)
=~
s|\.o$||
;
$x
}
@
{
$unified_info
{
sources
}
->
{
$lib
}}
]);
map
{
doobj
(
$_
,
$lib
,
intent
=>
"
lib
")
}
@
{
$unified_info
{
sources
}
->
{
$lib
}};
foreach
(
@
{
$unified_info
{
sources
}
->
{
$lib
}})
{
doobj
(
$_
,
$lib
,
intent
=>
"
lib
");
}
$cache
{
$lib
}
=
1
;
}
...
...
@@ -116,8 +120,10 @@
(
@
{
$unified_info
{
sources
}
->
{
$lib
}},
@
{
$unified_info
{
shared_sources
}
->
{
$lib
}})
],
deps
=>
[
resolvedepends
(
$lib
)
]);
map
{
doobj
(
$_
,
$lib
,
intent
=>
"
dso
")
}
(
@
{
$unified_info
{
sources
}
->
{
$lib
}},
@
{
$unified_info
{
shared_sources
}
->
{
$lib
}});
foreach
((
@
{
$unified_info
{
sources
}
->
{
$lib
}},
@
{
$unified_info
{
shared_sources
}
->
{
$lib
}}))
{
doobj
(
$_
,
$lib
,
intent
=>
"
dso
");
}
$cache
{
$lib
}
=
1
;
}
...
...
@@ -131,7 +137,9 @@
objs
=>
[
map
{
(
my
$x
=
$_
)
=~
s|\.o$||
;
$x
}
@
{
$unified_info
{
sources
}
->
{
$bin
}}
],
deps
=>
$deps
);
map
{
doobj
(
$_
,
$bin
,
intent
=>
"
bin
")
}
@
{
$unified_info
{
sources
}
->
{
$bin
}};
foreach
(
@
{
$unified_info
{
sources
}
->
{
$bin
}})
{
doobj
(
$_
,
$bin
,
intent
=>
"
bin
");
}
$cache
{
$bin
}
=
1
;
}
...
...
@@ -150,12 +158,12 @@
# Build all known libraries, engines, programs and scripts.
# Everything else will be handled as a consequence.
map
{
dolib
(
$_
)
}
@
{
$unified_info
{
libraries
}};
map
{
doengine
(
$_
)
}
@
{
$unified_info
{
engines
}};
map
{
dobin
(
$_
)
}
@
{
$unified_info
{
programs
}};
map
{
doscript
(
$_
)
}
@
{
$unified_info
{
scripts
}};
dolib
(
$_
)
foreach
@
{
$unified_info
{
libraries
}};
doengine
(
$_
)
foreach
@
{
$unified_info
{
engines
}};
dobin
(
$_
)
foreach
@
{
$unified_info
{
programs
}};
doscript
(
$_
)
foreach
@
{
$unified_info
{
scripts
}};
# Finally, should there be any applicable BEGINRAW/ENDRAW sections,
# they are added here.
$OUT
.=
$_
.
"
\n
"
foreach
(
@
{
$unified_info
{
rawlines
}})
;
$OUT
.=
$_
.
"
\n
"
foreach
@
{
$unified_info
{
rawlines
}}
;
-
}
Configure
浏览文件 @
2110febb
...
...
@@ -743,9 +743,9 @@ while (@tocheckfor) {
while
(
@cascade_copy
)
{
my
(
$test
,
$descendents
)
=
(
shift
@cascade_copy
,
shift
@cascade_copy
);
if
(
ref
(
$test
)
eq
"
CODE
"
?
$test
->
()
:
defined
(
$disabled
{
$test
}))
{
map
{
foreach
(
grep
{
!
defined
(
$disabled
{
$_
})
}
@$descendents
)
{
$new_tocheckfor
{
$_
}
=
1
;
$disabled
{
$_
}
=
"
forced
";
}
grep
{
!
defined
(
$disabled
{
$_
})
}
@$descendents
;
}
}
}
@tocheckfor
=
(
keys
%new_tocheckfor
);
...
...
@@ -2128,12 +2128,12 @@ sub resolve_config {
# the config that had it.
delete
$inherited_config
{
template
};
map
{
foreach
(
keys
%inherited_config
)
{
if
(
!
$combined_inheritance
{
$_
})
{
$combined_inheritance
{
$_
}
=
[]
;
}
push
@
{
$combined_inheritance
{
$_
}},
$inherited_config
{
$_
};
}
keys
%inherited_config
;
}
}
}
...
...
@@ -2415,7 +2415,7 @@ sub quotify {
my
$processor
=
defined
(
$processors
{
$for
})
?
$processors
{
$for
}
:
sub
{
shift
;
};
map
{
$processor
->
(
$_
);
}
@_
;
return
map
{
$processor
->
(
$_
);
}
@_
;
}
# collect_from_file($filename, $line_concat_cond_re, $line_concat)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录