Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
bafdf3d9
T
Third Party Harfbuzz
项目概览
OpenHarmony
/
Third Party Harfbuzz
接近 2 年 前同步成功
通知
1
Star
18
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Third Party Harfbuzz
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
bafdf3d9
编写于
2月 04, 2013
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Merge check-internal-symbols.sh and check-exported-symbols.sh
上级
ceeae30f
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
14 addition
and
39 deletion
+14
-39
src/Makefile.am
src/Makefile.am
+1
-2
src/check-internal-symbols.sh
src/check-internal-symbols.sh
+0
-34
src/check-symbols.sh
src/check-symbols.sh
+13
-3
未找到文件。
src/Makefile.am
浏览文件 @
bafdf3d9
...
@@ -277,9 +277,8 @@ test_size_params_LDADD = libharfbuzz.la $(HBLIBS)
...
@@ -277,9 +277,8 @@ test_size_params_LDADD = libharfbuzz.la $(HBLIBS)
dist_check_SCRIPTS
=
\
dist_check_SCRIPTS
=
\
check-c-linkage-decls.sh
\
check-c-linkage-decls.sh
\
check-header-guards.sh
\
check-header-guards.sh
\
check-exported-symbols.sh
\
check-includes.sh
\
check-includes.sh
\
check-
internal-
symbols.sh
\
check-symbols.sh
\
$(NULL)
$(NULL)
if
HAVE_ICU
if
HAVE_ICU
...
...
src/check-internal-symbols.sh
已删除
100755 → 0
浏览文件 @
ceeae30f
#!/bin/sh
LC_ALL
=
C
export
LC_ALL
test
-z
"
$srcdir
"
&&
srcdir
=
.
stat
=
0
if
which nm 2>/dev/null
>
/dev/null
;
then
:
else
echo
"check-internal-symbols.sh: 'nm' not found; skipping test"
exit
77
fi
tested
=
false
for
suffix
in
.so
;
do
so
=
`
echo
.libs/libharfbuzz
$suffix
`
if
test
-f
"
$so
"
;
then
echo
"Checking that we are not exposing internal symbols"
if
nm
"
$so
"
|
grep
' [BCDGINRSTVW] '
|
grep
-v
' T _fini\>\| T _init\>\| T hb_\| __bss_start\>\| __bss_start__\>\| __bss_end__\>\| _edata\>\| _end\>\| _bss_end__\>\| __end__\>'
;
then
echo
"Ouch, internal symbols exposed"
stat
=
1
fi
tested
=
true
fi
done
if
!
$tested
;
then
echo
"check-internal-symbols.sh: libharfbuzz shared library not found; skipping test"
exit
77
fi
exit
$stat
src/check-
exported-
symbols.sh
→
src/check-symbols.sh
浏览文件 @
bafdf3d9
...
@@ -10,7 +10,7 @@ stat=0
...
@@ -10,7 +10,7 @@ stat=0
if
which nm 2>/dev/null
>
/dev/null
;
then
if
which nm 2>/dev/null
>
/dev/null
;
then
:
:
else
else
echo
"check-
exported-
symbols.sh: 'nm' not found; skipping test"
echo
"check-symbols.sh: 'nm' not found; skipping test"
exit
77
exit
77
fi
fi
...
@@ -20,15 +20,25 @@ tested=false
...
@@ -20,15 +20,25 @@ tested=false
for
def
in
$defs
;
do
for
def
in
$defs
;
do
lib
=
`
echo
"
$def
"
|
sed
's/[.]def$//;s@.*/@@'
`
lib
=
`
echo
"
$def
"
|
sed
's/[.]def$//;s@.*/@@'
`
so
=
.libs/lib
${
lib
}
.so
so
=
.libs/lib
${
lib
}
.so
EXPORTED_SYMBOLS
=
"
`
nm
"
$so
"
|
grep
' [BCDGINRSTVW] '
|
grep
-v
' T _fini\>\| T _init\>\| __bss_start\>\| __bss_start__\>\| __bss_end__\>\| _edata\>\| _end\>\| _bss_end__\>\| __end__\>'
|
cut
-d
' '
-f3
`
"
if
test
-f
"
$so
"
;
then
if
test
-f
"
$so
"
;
then
echo
"Checking that
$so
has the same symbol list as
$def
"
echo
"Checking that
$so
has the same symbol list as
$def
"
{
{
echo
EXPORTS
echo
EXPORTS
nm
"
$so
"
|
grep
' [BCDGINRSTVW] '
|
grep
-v
' T _fini\>\| T _init\>\| __bss_start\>\| __bss_start__\>\| __bss_end__\>\| _edata\>\| _end\>\| _bss_end__\>\| __end__\>'
|
cut
-d
' '
-f3
echo
"
$EXPORTED_SYMBOLS
"
stat
=
1
# cheat: copy the last line from the def file!
# cheat: copy the last line from the def file!
tail
-n1
"
$def
"
tail
-n1
"
$def
"
}
| diff
"
$def
"
-
>
&2
||
stat
=
1
}
| diff
"
$def
"
-
>
&2
||
stat
=
1
echo
"Checking that we are not exposing internal symbols"
if
echo
"
$EXPORTED_SYMBOLS
"
|
grep
-v
'hb_'
;
then
echo
"Ouch, internal symbols exposed"
stat
=
1
fi
tested
=
true
tested
=
true
fi
fi
done
done
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录