Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
5bc18195
T
Third Party Harfbuzz
项目概览
OpenHarmony
/
Third Party Harfbuzz
大约 1 年 前同步成功
通知
0
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
5bc18195
编写于
5月 27, 2011
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add check-includes.sh
上级
3f12c434
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
70 addition
and
9 deletion
+70
-9
src/Makefile.am
src/Makefile.am
+7
-0
src/check-c-linkage-decls.sh
src/check-c-linkage-decls.sh
+5
-1
src/check-header-guards.sh
src/check-header-guards.sh
+7
-1
src/check-includes.sh
src/check-includes.sh
+42
-0
src/check-internal-symbols.sh
src/check-internal-symbols.sh
+4
-4
src/check-libstdc++.sh
src/check-libstdc++.sh
+4
-3
src/hb-ot-shape.h
src/hb-ot-shape.h
+1
-0
未找到文件。
src/Makefile.am
浏览文件 @
5bc18195
...
...
@@ -146,6 +146,7 @@ dist_check_SCRIPTS = \
check-c-linkage-decls.sh
\
check-header-guards.sh
\
check-internal-symbols.sh
\
check-includes.sh
\
$(NULL)
if
HAVE_ICU
...
...
@@ -154,5 +155,11 @@ dist_check_SCRIPTS += check-libstdc++.sh
endif
TESTS
=
$(dist_check_SCRIPTS)
TESTS_ENVIRONMENT
=
\
srcdir
=
"
$(srcdir)
"
\
MAKE
=
"
$(MAKE)
$(AM_MAKEFLAGS)
"
\
HBSOURCES
=
"
$(HBSOURCES)
"
\
HBHEADERS
=
"
$(HBHEADERS)
"
\
$(NULL)
-include
$(top_srcdir)/git.mk
src/check-c-linkage-decls.sh
浏览文件 @
5bc18195
...
...
@@ -6,9 +6,13 @@ export LC_ALL
test
-z
"
$srcdir
"
&&
srcdir
=
.
stat
=
0
test
"x
$HBHEADERS
"
=
x
&&
HBHEADERS
=
`
find
.
-maxdepth
1
-name
'hb*.h'
`
test
"x
$HBSOURCES
"
=
x
&&
HBSOURCES
=
`
find
.
-maxdepth
1
-name
'hb-*.cc'
-or
-name
'hb-*.hh'
`
cd
"
$srcdir
"
for
x
in
hb-
*
.cc hb-
*
.h hb-
*
.hh
;
do
for
x
in
$HBHEADERS
$HBSOURCES
;
do
if
!
grep
-q
HB_BEGIN_DECLS
"
$x
"
||
!
grep
-q
HB_END_DECLS
"
$x
"
;
then
echo
"Ouch, file
$x
does not HB_BEGIN_DECLS / HB_END_DECLS"
stat
=
1
...
...
src/check-header-guards.sh
浏览文件 @
5bc18195
...
...
@@ -6,9 +6,15 @@ export LC_ALL
test
-z
"
$srcdir
"
&&
srcdir
=
.
stat
=
0
test
"x
$HBHEADERS
"
=
x
&&
HBHEADERS
=
`
find
.
-maxdepth
1
-name
'hb*.h'
`
test
"x
$HBSOURCES
"
=
x
&&
HBSOURCES
=
`
find
.
-maxdepth
1
-name
'hb-*.cc'
-or
-name
'hb-*.hh'
`
cd
"
$srcdir
"
for
x
in
hb-
*
.h hb-
*
.hh
;
do
for
x
in
$HBHEADERS
$HBSOURCES
;
do
echo
"
$x
"
|
grep
'[^h]$'
-q
&&
continue
;
x
=
`
echo
"
$x
"
|
sed
's@.*/@@'
`
tag
=
`
echo
"
$x
"
|
tr
'a-z.-'
'A-Z_'
`
lines
=
`
grep
"
\<
$tag
\>
"
"
$x
"
|
wc
-l
`
if
test
"x
$lines
"
!=
x3
;
then
...
...
src/check-includes.sh
0 → 100755
浏览文件 @
5bc18195
#!/bin/sh
LC_ALL
=
C
export
LC_ALL
test
-z
"
$srcdir
"
&&
srcdir
=
.
stat
=
0
test
"x
$HBHEADERS
"
=
x
&&
HBHEADERS
=
`
find
.
-maxdepth
1
-name
'hb*.h'
`
test
"x
$HBSOURCES
"
=
x
&&
HBSOURCES
=
`
find
.
-maxdepth
1
-name
'hb-*.cc'
-or
-name
'hb-*.hh'
`
cd
"
$srcdir
"
echo
'Checking that public header files #include "hb-common.h" or "hb.h" first (or none)'
for
x
in
$HBHEADERS
;
do
grep
'#.*\<include\>'
"
$x
"
/dev/null |
head
-n
1
done
|
grep
-v
'"hb-common[.]h"'
|
grep
-v
'"hb[.]h"'
|
grep
-v
'hb-common[.]h:'
|
grep
-v
'hb[.]h:'
|
grep
.
>
&2
&&
stat
=
1
echo
'Checking that source files #include "hb-*private.hh" first (or none)'
for
x
in
$HBSOURCES
;
do
grep
'#.*\<include\>'
"
$x
"
/dev/null |
head
-n
1
done
|
grep
-v
'"hb-.*private[.]hh"'
|
grep
-v
'hb-private[.]hh:'
|
grep
.
>
&2
&&
stat
=
1
echo
'Checking that there is no #include <hb.*.h>'
grep
'#.*\<include\>.*<.*hb'
$HBHEADERS
$HBSOURCES
>
&2
&&
stat
=
1
exit
$stat
src/check-internal-symbols.sh
浏览文件 @
5bc18195
...
...
@@ -3,6 +3,10 @@
LC_ALL
=
C
export
LC_ALL
test
-z
"
$srcdir
"
&&
srcdir
=
.
stat
=
0
if
which nm 2>/dev/null
>
/dev/null
;
then
:
else
...
...
@@ -10,10 +14,6 @@ else
exit
0
fi
test
-z
"
$srcdir
"
&&
srcdir
=
.
test
-z
"
$MAKE
"
&&
MAKE
=
make
stat
=
0
so
=
.libs/libharfbuzz.so
if
test
-f
"
$so
"
;
then
echo
"Checking that we are exposing internal symbols"
...
...
src/check-libstdc++.sh
浏览文件 @
5bc18195
...
...
@@ -3,6 +3,10 @@
LC_ALL
=
C
export
LC_ALL
test
-z
"
$srcdir
"
&&
srcdir
=
.
stat
=
0
if
which ldd 2>/dev/null
>
/dev/null
;
then
:
else
...
...
@@ -10,9 +14,6 @@ else
exit
0
fi
test
-z
"
$srcdir
"
&&
srcdir
=
.
stat
=
0
so
=
.libs/libharfbuzz.so
if
test
-f
"
$so
"
;
then
echo
"Checking that we are not linking to libstdc++"
...
...
src/hb-ot-shape.h
浏览文件 @
5bc18195
...
...
@@ -27,6 +27,7 @@
#ifndef HB_OT_SHAPE_H
#define HB_OT_SHAPE_H
#include "hb-common.h"
#include "hb-shape.h"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录