Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
1f2e1cd5
T
Third Party Openssl
项目概览
OpenHarmony
/
Third Party Openssl
大约 1 年 前同步成功
通知
9
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
1f2e1cd5
编写于
3月 17, 2016
作者:
R
Richard Levitte
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Make picker, thread and combine standard config helper functions
Document them as well Reviewed-by:
N
Andy Polyakov
<
appro@openssl.org
>
上级
1fbab1dc
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
52 addition
and
32 deletion
+52
-32
Configurations/10-main.conf
Configurations/10-main.conf
+0
-16
Configurations/90-team.conf
Configurations/90-team.conf
+0
-10
Configurations/99-personal-levitte.conf
Configurations/99-personal-levitte.conf
+0
-6
Configure
Configure
+52
-0
未找到文件。
Configurations/10-main.conf
浏览文件 @
1f2e1cd5
## -*- mode: perl; -*-
## Standard openssl configuration targets.
sub
picker
{
my
%
opts
= @
_
;
return
sub
{
add
($
opts
{
default
} || (),
$
opts
{$
config
{
build_type
}} || ())->(); }
}
sub
threads
{
my
@
flags
= @
_
;
return
sub
{
add
($
disabled
{
threads
} ? () : @
flags
)->(); }
}
sub
combine
{
my
@
stuff
= @
_
;
return
sub
{
add
(@
stuff
)->(); }
}
# Helper functions for the Windows configs
my
$
vc_win64a_info
= {};
sub
vc_win64a_info
{
...
...
Configurations/90-team.conf
浏览文件 @
1f2e1cd5
## -*- mode: perl; -*-
## Build configuration targets for openssl-team members
sub
threads
{
my
@
flags
= @
_
;
return
sub
{
add
($
disabled
{
threads
} ? () : @
flags
)->(); }
}
sub
combine
{
my
@
stuff
= @
_
;
return
sub
{
add
(@
stuff
)->(); }
}
%
targets
= (
"purify"
=> {
cc
=>
"purify gcc"
,
...
...
Configurations/99-personal-levitte.conf
浏览文件 @
1f2e1cd5
## -*- mode: perl; -*-
## Personal configuration targets
sub
picker
{
my
%
opts
= @
_
;
return
sub
{
add
($
opts
{
default
} || (),
$
opts
{$
config
{
build_type
}} || ())->(); }
}
%
targets
= (
"levitte-linux-elf"
=> {
inherit_from
=> [
"linux-elf"
],
...
...
Configure
浏览文件 @
1f2e1cd5
...
...
@@ -1961,6 +1961,11 @@ exit(0);
# Configuration file reading #########################################
# Note: All of the helper functions are for lazy evaluation. They all
# return a CODE ref, which will return the intended value when evaluated.
# Thus, whenever there
'
s mention of a returned value, it's about that
# intended value.
# Helper function to implem
ent
conditional
inheritance
depending
on
the
# value of $disabled{asm}. Used in inherit_from values as follows:
#
...
...
@@ -1973,6 +1978,53 @@ sub asm {
}
}
# Helper function to implement conditional value variants, with a default
# plus additional values based on the value of $config{build_type}.
# Arguments are given in hash table form:
#
# picker(default => "Basic string: ",
# debug => "debug",
# release => "release")
#
# When configuring with --debug, the resulting string will be
# "Basic string: debug", and when not, it will be "Basic string: release"
#
# This can be used to create variants of sets of flags according to the
# build type:
#
# cflags => picker(default => "-Wall",
# debug => "-g -O0",
# release => "-O3")
#
sub
picker
{
my
%opts
=
@_
;
return
sub
{
add
(
$opts
{
default
}
||
(),
$opts
{
$config
{
build_type
}}
||
())
->
();
}
}
# Helper function to combine several values of different types into one.
# This is useful if you want to combine a string with the result of a
# lazy function, such as:
#
# cflags => combine("-Wall", sub { $disabled{zlib} ? () : "-DZLIB" })
#
sub
combine
{
my
@stuff
=
@_
;
return
sub
{
add
(
@stuff
)
->
();
}
}
# Helper function to implement conditional values depending on the value
# of $disabled{threads}. Can be used as follows:
#
# cflags => combine("-Wall", threads("-pthread"))
#
sub
threads
{
my
@flags
=
@_
;
return
sub
{
add
(
$disabled
{
threads
}
?
()
:
@flags
)
->
();
}
}
our
$add_called
=
0
;
# Helper function to implement adding values to already existing configuration
# values. It handles elements that are ARRAYs, CODEs and scalars
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录