Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
187df7d7
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看板
未验证
提交
187df7d7
编写于
10月 10, 2018
作者:
E
Ebrahim Byagowi
提交者:
GitHub
10月 10, 2018
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[circleci] Add an iOS bot (#1233)
上级
0537a401
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
100 addition
and
52 deletion
+100
-52
.circleci/config.yml
.circleci/config.yml
+12
-0
CMakeLists.txt
CMakeLists.txt
+88
-52
未找到文件。
.circleci/config.yml
浏览文件 @
187df7d7
...
...
@@ -27,6 +27,17 @@ jobs:
# Ignoring assembler complains, https://stackoverflow.com/a/39867021
-
run
:
make 2>&1 | grep -v -e '^/var/folders/*' -e '^[[:space:]]*\.section' -e '^[[:space:]]*\^[[:space:]]*~*'
macos-notest-ios
:
macos
:
xcode
:
"
10.0.0"
steps
:
-
checkout
-
run
:
brew update-reset
-
run
:
brew install cmake
# not needed to be a framework but we like to test that also
-
run
:
cmake -DBUILD_FRAMEWORK=ON -H. -Bbuild -GXcode -DHB_IOS=ON
-
run
:
cd build && xcodebuild -sdk iphoneos12.0 -configuration Release build -arch arm64
distcheck
:
docker
:
-
image
:
ubuntu:17.10
...
...
@@ -274,6 +285,7 @@ workflows:
# macOS
-
macos-llvm-gcc-4.2
-
macos-notest-apple-gcc-i686-4.2
-
macos-notest-ios
# both autotools and cmake
-
distcheck
...
...
CMakeLists.txt
浏览文件 @
187df7d7
...
...
@@ -82,6 +82,16 @@ if (HB_CHECK)
endif
()
endif
()
set
(
HB_DISABLE_SUBSET OFF
)
set
(
HB_DISABLE_TESTS OFF
)
option
(
HB_IOS
"Apply iOS specific build flags"
OFF
)
if
(
HB_IOS
)
# We should fix their issue and enable them
set
(
HB_DISABLE_SUBSET ON
)
set
(
HB_DISABLE_TESTS ON
)
set
(
HB_HAVE_CORETEXT OFF
)
endif
()
include_directories
(
AFTER
${
PROJECT_SOURCE_DIR
}
/src
${
PROJECT_BINARY_DIR
}
/src
...
...
@@ -359,12 +369,32 @@ if (APPLE AND HB_HAVE_CORETEXT)
list
(
APPEND project_sources
${
PROJECT_SOURCE_DIR
}
/src/hb-coretext.cc
)
list
(
APPEND project_headers
${
PROJECT_SOURCE_DIR
}
/src/hb-coretext.h
)
find_library
(
APPLICATION_SERVICES_FRAMEWORK ApplicationServices
)
if
(
APPLICATION_SERVICES_FRAMEWORK
)
list
(
APPEND THIRD_PARTY_LIBS
${
APPLICATION_SERVICES_FRAMEWORK
}
)
endif
(
APPLICATION_SERVICES_FRAMEWORK
)
if
(
HB_IOS
)
find_library
(
COREFOUNDATION CoreFoundation
)
if
(
COREFOUNDATION
)
list
(
APPEND THIRD_PARTY_LIBS
${
COREFOUNDATION
}
)
endif
()
mark_as_advanced
(
COREFOUNDATION
)
find_library
(
CORETEXT CoreText
)
if
(
CORETEXT
)
list
(
APPEND THIRD_PARTY_LIBS
${
CORETEXT
}
)
endif
()
mark_as_advanced
(
CORETEXT
)
find_library
(
COREGRAPHICS CoreGraphics
)
if
(
COREGRAPHICS
)
list
(
APPEND THIRD_PARTY_LIBS
${
COREGRAPHICS
}
)
endif
()
mark_as_advanced
(
COREGRAPHICS
)
else
()
find_library
(
APPLICATION_SERVICES_FRAMEWORK ApplicationServices
)
if
(
APPLICATION_SERVICES_FRAMEWORK
)
list
(
APPEND THIRD_PARTY_LIBS
${
APPLICATION_SERVICES_FRAMEWORK
}
)
endif
()
mark_as_advanced
(
APPLICATION_SERVICES_FRAMEWORK
)
mark_as_advanced
(
APPLICATION_SERVICES_FRAMEWORK
)
endif
()
endif
()
if
(
WIN32 AND HB_HAVE_UNISCRIBE
)
...
...
@@ -527,12 +557,14 @@ add_library(harfbuzz ${project_sources} ${project_extra_sources} ${project_heade
target_link_libraries
(
harfbuzz
${
THIRD_PARTY_LIBS
}
)
## Define harfbuzz-subset library
add_library
(
harfbuzz-subset
${
subset_project_sources
}
${
subset_project_headers
}
)
add_dependencies
(
harfbuzz-subset harfbuzz
)
target_link_libraries
(
harfbuzz-subset harfbuzz
${
THIRD_PARTY_LIBS
}
)
if
(
NOT HB_DISABLE_SUBSET
)
add_library
(
harfbuzz-subset
${
subset_project_sources
}
${
subset_project_headers
}
)
add_dependencies
(
harfbuzz-subset harfbuzz
)
target_link_libraries
(
harfbuzz-subset harfbuzz
${
THIRD_PARTY_LIBS
}
)
if
(
BUILD_SHARED_LIBS
)
set_target_properties
(
harfbuzz harfbuzz-subset PROPERTIES VISIBILITY_INLINES_HIDDEN TRUE
)
if
(
BUILD_SHARED_LIBS
)
set_target_properties
(
harfbuzz harfbuzz-subset PROPERTIES VISIBILITY_INLINES_HIDDEN TRUE
)
endif
()
endif
()
if
(
UNIX OR MINGW
)
...
...
@@ -549,7 +581,9 @@ if (UNIX OR MINGW)
set
(
CMAKE_CXX_IMPLICIT_LINK_LIBRARIES
"m"
)
# libm
set
(
CMAKE_CXX_IMPLICIT_LINK_DIRECTORIES
""
)
set_target_properties
(
harfbuzz PROPERTIES LINKER_LANGUAGE C
)
set_target_properties
(
harfbuzz-subset PROPERTIES LINKER_LANGUAGE C
)
if
(
NOT HB_DISABLE_SUBSET
)
set_target_properties
(
harfbuzz-subset PROPERTIES LINKER_LANGUAGE C
)
endif
()
# No threadsafe statics as we do it ourselves
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-fno-threadsafe-statics"
)
...
...
@@ -828,51 +862,53 @@ if (UNIX AND CMAKE_GENERATOR STREQUAL "Ninja")
endif
()
## src/ executables
foreach
(
prog main test test-would-substitute test-size-params test-buffer-serialize hb-ot-tag test-unicode-ranges
)
set
(
prog_name
${
prog
}
)
if
(
${
prog_name
}
STREQUAL
"test"
)
# test can not be used as a valid executable name on cmake, lets special case it
set
(
prog_name test-test
)
endif
()
add_executable
(
${
prog_name
}
${
PROJECT_SOURCE_DIR
}
/src/
${
prog
}
.cc
)
target_link_libraries
(
${
prog_name
}
harfbuzz
${
THIRD_PARTY_LIBS
}
)
endforeach
()
set_target_properties
(
hb-ot-tag PROPERTIES COMPILE_FLAGS
"-DMAIN"
)
## Tests
if
(
UNIX OR MINGW
)
if
(
BUILD_SHARED_LIBS
)
# generate harfbuzz.def after build completion
add_custom_command
(
TARGET harfbuzz POST_BUILD
COMMAND
"
${
PYTHON_EXECUTABLE
}
"
${
PROJECT_SOURCE_DIR
}
/src/gen-def.py
${
PROJECT_BINARY_DIR
}
/harfbuzz.def
${
project_headers
}
WORKING_DIRECTORY
${
PROJECT_SOURCE_DIR
}
/src
)
add_test
(
NAME check-static-inits.sh
COMMAND
${
PROJECT_SOURCE_DIR
}
/src/check-static-inits.sh
WORKING_DIRECTORY
${
PROJECT_BINARY_DIR
}${
CMAKE_FILES_DIRECTORY
}
/harfbuzz.dir/src
# ugly hack
)
add_test
(
NAME check-libstdc++.sh COMMAND
${
PROJECT_SOURCE_DIR
}
/src/check-libstdc++.sh
)
add_test
(
NAME check-symbols.sh COMMAND
${
PROJECT_SOURCE_DIR
}
/src/check-symbols.sh
)
if
(
NOT HB_DISABLE_TESTS
)
## src/ executables
foreach
(
prog main test test-would-substitute test-size-params test-buffer-serialize hb-ot-tag test-unicode-ranges
)
set
(
prog_name
${
prog
}
)
if
(
${
prog_name
}
STREQUAL
"test"
)
# test can not be used as a valid executable name on cmake, lets special case it
set
(
prog_name test-test
)
endif
()
add_executable
(
${
prog_name
}
${
PROJECT_SOURCE_DIR
}
/src/
${
prog
}
.cc
)
target_link_libraries
(
${
prog_name
}
harfbuzz
${
THIRD_PARTY_LIBS
}
)
endforeach
()
set_target_properties
(
hb-ot-tag PROPERTIES COMPILE_FLAGS
"-DMAIN"
)
## Tests
if
(
UNIX OR MINGW
)
if
(
BUILD_SHARED_LIBS
)
# generate harfbuzz.def after build completion
add_custom_command
(
TARGET harfbuzz POST_BUILD
COMMAND
"
${
PYTHON_EXECUTABLE
}
"
${
PROJECT_SOURCE_DIR
}
/src/gen-def.py
${
PROJECT_BINARY_DIR
}
/harfbuzz.def
${
project_headers
}
WORKING_DIRECTORY
${
PROJECT_SOURCE_DIR
}
/src
)
add_test
(
NAME check-static-inits.sh
COMMAND
${
PROJECT_SOURCE_DIR
}
/src/check-static-inits.sh
WORKING_DIRECTORY
${
PROJECT_BINARY_DIR
}${
CMAKE_FILES_DIRECTORY
}
/harfbuzz.dir/src
# ugly hack
)
add_test
(
NAME check-libstdc++.sh COMMAND
${
PROJECT_SOURCE_DIR
}
/src/check-libstdc++.sh
)
add_test
(
NAME check-symbols.sh COMMAND
${
PROJECT_SOURCE_DIR
}
/src/check-symbols.sh
)
set_tests_properties
(
check-static-inits.sh check-libstdc++.sh check-symbols.sh
PROPERTIES
ENVIRONMENT
"libs=.;srcdir=
${
PROJECT_SOURCE_DIR
}
/src"
SKIP_RETURN_CODE 77
)
endif
()
add_test
(
NAME check-c-linkage-decls.sh COMMAND ./check-c-linkage-decls.sh
)
add_test
(
NAME check-header-guards.sh COMMAND ./check-header-guards.sh
)
add_test
(
NAME check-externs.sh COMMAND ./check-externs.sh
)
add_test
(
NAME check-includes.sh COMMAND ./check-includes.sh
)
set_tests_properties
(
check-
static-inits.sh check-libstdc++.sh check-symbol
s.sh
check-
c-linkage-decls.sh check-header-guards.sh check-externs.sh check-include
s.sh
PROPERTIES
ENVIRONMENT
"libs=.;srcdir=
${
PROJECT_SOURCE_DIR
}
/src"
WORKING_DIRECTORY
${
PROJECT_SOURCE_DIR
}
/src
SKIP_RETURN_CODE 77
)
endif
()
add_test
(
NAME check-c-linkage-decls.sh COMMAND ./check-c-linkage-decls.sh
)
add_test
(
NAME check-header-guards.sh COMMAND ./check-header-guards.sh
)
add_test
(
NAME check-externs.sh COMMAND ./check-externs.sh
)
add_test
(
NAME check-includes.sh COMMAND ./check-includes.sh
)
set_tests_properties
(
check-c-linkage-decls.sh check-header-guards.sh check-externs.sh check-includes.sh
PROPERTIES
WORKING_DIRECTORY
${
PROJECT_SOURCE_DIR
}
/src
SKIP_RETURN_CODE 77
)
# Needs to come last so that variables defined above are passed to
# subdirectories.
add_subdirectory
(
test
)
endif
()
# Needs to come last so that variables defined above are passed to
# subdirectories.
add_subdirectory
(
test
)
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录