Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
e38bd948
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,发现更多精彩内容 >>
提交
e38bd948
编写于
4月 21, 2016
作者:
R
Richard Levitte
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update the Configurations READMEs
Reviewed-by:
N
Tim Hudson
<
tjh@openssl.org
>
上级
5951e840
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
64 addition
and
26 deletion
+64
-26
Configurations/README
Configurations/README
+7
-3
Configurations/README.design
Configurations/README.design
+57
-23
未找到文件。
Configurations/README
浏览文件 @
e38bd948
...
@@ -498,6 +498,8 @@ They are all expected to return a string with the lines they produce.
...
@@ -498,6 +498,8 @@ They are all expected to return a string with the lines they produce.
generatesrc(src => "PATH/TO/tobegenerated",
generatesrc(src => "PATH/TO/tobegenerated",
generator => [ "generatingfile", ... ]
generator => [ "generatingfile", ... ]
generator => [ "generatingfile", ... ]
incs => [ "INCL/PATH", ... ],
deps => [ "dep1", ... ],
deps => [ "dep1", ... ],
intent => one of "libs", "dso", "bin" );
intent => one of "libs", "dso", "bin" );
...
@@ -507,9 +509,11 @@ They are all expected to return a string with the lines they produce.
...
@@ -507,9 +509,11 @@ They are all expected to return a string with the lines they produce.
expected to be the file to generate from.
expected to be the file to generate from.
generatesrc() is expected to analyse and figure out
generatesrc() is expected to analyse and figure out
exactly how to apply that file and how to capture
exactly how to apply that file and how to capture
the result. 'deps' is a list of explicit
the result. 'incs' and 'deps' are include
dependencies. 'intent' indicates what the generated
directories and files that are used if $(CC) used as
file is going to be used for.
an intermediary step when generating the end product
(the file indicated by 'src'). 'intent' indicates
what the generated file is going to be used for.
src2obj - function that produces build file lines to build an
src2obj - function that produces build file lines to build an
object file from source files and associated data.
object file from source files and associated data.
...
...
Configurations/README.design
浏览文件 @
e38bd948
...
@@ -103,9 +103,8 @@ This build.info file informs us that 'libcrypto' is built from a few
...
@@ -103,9 +103,8 @@ This build.info file informs us that 'libcrypto' is built from a few
source files, 'crypto/aes.c', 'crypto/evp.c' and 'crypto/cversion.c'.
source files, 'crypto/aes.c', 'crypto/evp.c' and 'crypto/cversion.c'.
It also shows us that building the object file inferred from
It also shows us that building the object file inferred from
'crypto/cversion.c' depends on 'crypto/buildinf.h'. Finally, it
'crypto/cversion.c' depends on 'crypto/buildinf.h'. Finally, it
also shows the possibility to include raw build-file statements in a
also shows the possibility to declare how some files are generated
build.info file, in this case showing how 'buildinf.h' is built on
using some script, in this case a perl script.
Unix-like operating systems.
Two things are worth an extra note:
Two things are worth an extra note:
...
@@ -153,10 +152,10 @@ information comes down to this:
...
@@ -153,10 +152,10 @@ information comes down to this:
INCLUDE[apps/openssl]=. include
INCLUDE[apps/openssl]=. include
DEPEND[apps/openssl]=libssl
DEPEND[apps/openssl]=libssl
ENGINES=engines/
lib
ossltest
ENGINES=engines/ossltest
SOURCE[engines/
lib
ossltest]=engines/e_ossltest.c
SOURCE[engines/ossltest]=engines/e_ossltest.c
DEPEND[engines/
lib
ossltest]=libcrypto
DEPEND[engines/ossltest]=libcrypto
INCLUDE[engines/
lib
ossltest]=include
INCLUDE[engines/ossltest]=include
GENERATE[crypto/buildinf.h]=util/mkbuildinf.pl "$(CC) $(CFLAGS)" "$(PLATFORM)"
GENERATE[crypto/buildinf.h]=util/mkbuildinf.pl "$(CC) $(CFLAGS)" "$(PLATFORM)"
DEPEND[crypto/buildinf.h]=Makefile
DEPEND[crypto/buildinf.h]=Makefile
...
@@ -202,6 +201,10 @@ indexes:
...
@@ -202,6 +201,10 @@ indexes:
engines => a list of engines. These are directly inferred from
engines => a list of engines. These are directly inferred from
the ENGINES variable in build.info files.
the ENGINES variable in build.info files.
generate => a hash table containing 'file' => [ 'generator' ... ]
pairs. These are directly inferred from the GENERATE
variables in build.info files.
includes => a hash table containing 'file' => [ 'include' ... ]
includes => a hash table containing 'file' => [ 'include' ... ]
pairs. These are directly inferred from the INCLUDE
pairs. These are directly inferred from the INCLUDE
variables in build.info files.
variables in build.info files.
...
@@ -247,11 +250,15 @@ section above would be digested into a %unified_info table:
...
@@ -247,11 +250,15 @@ section above would be digested into a %unified_info table:
[
[
"libssl",
"libssl",
],
],
"crypto/buildinf.h" =>
[
"Makefile",
],
"crypto/cversion.o" =>
"crypto/cversion.o" =>
[
[
"crypto/buildinf.h",
"crypto/buildinf.h",
],
],
"engines/
lib
ossltest" =>
"engines/ossltest" =>
[
[
"libcrypto",
"libcrypto",
],
],
...
@@ -262,8 +269,18 @@ section above would be digested into a %unified_info table:
...
@@ -262,8 +269,18 @@ section above would be digested into a %unified_info table:
},
},
"engines" =>
"engines" =>
[
[
"engines/
lib
ossltest",
"engines/ossltest",
],
],
"generate" =>
{
"crypto/buildinf.h" =>
[
"util/mkbuildinf.pl",
"\"\$(CC)",
"\$(CFLAGS)\"",
"\"$(PLATFORM)\"",
],
},
"includes" =>
"includes" =>
{
{
"apps/openssl" =>
"apps/openssl" =>
...
@@ -271,7 +288,7 @@ section above would be digested into a %unified_info table:
...
@@ -271,7 +288,7 @@ section above would be digested into a %unified_info table:
".",
".",
"include",
"include",
],
],
"engines/
lib
ossltest" =>
"engines/ossltest" =>
[
[
"include"
"include"
],
],
...
@@ -308,9 +325,6 @@ section above would be digested into a %unified_info table:
...
@@ -308,9 +325,6 @@ section above would be digested into a %unified_info table:
],
],
"rawlines" =>
"rawlines" =>
[
[
"crypto/buildinf.h : Makefile",
" perl util/mkbuildinf.h \"\$(CC) \$(CFLAGS)\" \"\$(PLATFORM)\" \\"
" > crypto/buildinf.h"
],
],
"sources" =>
"sources" =>
{
{
...
@@ -338,7 +352,7 @@ section above would be digested into a %unified_info table:
...
@@ -338,7 +352,7 @@ section above would be digested into a %unified_info table:
[
[
"engines/e_ossltest.c",
"engines/e_ossltest.c",
],
],
"engines/
lib
ossltest" =>
"engines/ossltest" =>
[
[
"engines/e_ossltest.o",
"engines/e_ossltest.o",
],
],
...
@@ -382,6 +396,29 @@ build static libraries from object files, to build shared libraries
...
@@ -382,6 +396,29 @@ build static libraries from object files, to build shared libraries
from static libraries, to programs from object files and libraries,
from static libraries, to programs from object files and libraries,
etc.
etc.
generatesrc - function that produces build file lines to generate
a source file from some input.
It's called like this:
generatesrc(src => "PATH/TO/tobegenerated",
generator => [ "generatingfile", ... ]
incs => [ "INCL/PATH", ... ],
deps => [ "dep1", ... ],
intent => one of "libs", "dso", "bin" );
'src' has the name of the file to be generated.
'generator' is the command or part of command to
generate the file, of which the first item is
expected to be the file to generate from.
generatesrc() is expected to analyse and figure out
exactly how to apply that file and how to capture
the result. 'incs' and 'deps' are include
directories and files that are used if $(CC) used as
an intermediary step when generating the end product
(the file indicated by 'src'). 'intent' indicates
what the generated file is going to be used for.
src2obj - function that produces build file lines to build an
src2obj - function that produces build file lines to build an
object file from source files and associated data.
object file from source files and associated data.
...
@@ -509,25 +546,22 @@ following calls:
...
@@ -509,25 +546,22 @@ following calls:
# Note 2: libobj2shlib gets both the name of the static library
# Note 2: libobj2shlib gets both the name of the static library
# and the names of all the object files that go into it. It's up
# and the names of all the object files that go into it. It's up
# to the implementation to decide which to use as input.
# to the implementation to decide which to use as input.
# Note 3: common.tmpl peals off the ".o" extension from all object
# files, as the platform at hand may have a different one.
libobj2shlib(shlib => "libssl",
libobj2shlib(shlib => "libssl",
lib => "libssl",
lib => "libssl",
objs => [ "ssl/tls
.o
" ],
objs => [ "ssl/tls" ],
deps => [ "libcrypto" ]
deps => [ "libcrypto" ]
ordinals => [ "ssl", "util/libssl.num" ]);
ordinals => [ "ssl", "util/libssl.num" ]);
obj2lib(lib => "libssl"
obj2lib(lib => "libssl"
objs => [ "ssl/tls
.o
" ]);
objs => [ "ssl/tls" ]);
# Note 3: common.tmpl peals off the ".o" extension, as the
# platform at hand may have a different one.
src2obj(obj => "ssl/tls"
src2obj(obj => "ssl/tls"
srcs => [ "ssl/tls.c" ],
srcs => [ "ssl/tls.c" ],
deps => [ ],
deps => [ ],
incs => [ "include" ]);
incs => [ "include" ],
intent => "lib");
src2dep(obj => "ssl/tls"
srcs => [ "ssl/tls.c" ],
incs => [ "include" ]);
The returned strings from all those calls are then concatenated
The returned strings from all those calls are then concatenated
together and written to the resulting build-file.
together and written to the resulting build-file.
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录