mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-18 12:46:19 +08:00
[libunibreak] init port
This commit is contained in:
parent
8fac93e539
commit
47f329089a
35
ports/libunibreak/CMakeLists.txt
Normal file
35
ports/libunibreak/CMakeLists.txt
Normal file
@ -0,0 +1,35 @@
|
||||
cmake_minimum_required(VERSION 3.8.0)
|
||||
|
||||
project(libunibreak)
|
||||
|
||||
set(libunibreak_srcs
|
||||
src/linebreakdata.c
|
||||
src/linebreakdef.c
|
||||
src/wordbreak.c
|
||||
src/graphemebreak.c
|
||||
src/unibreakbase.c
|
||||
src/unibreakdef.c
|
||||
)
|
||||
|
||||
|
||||
include_directories(src)
|
||||
|
||||
add_library(libunibreak ${libunibreak_srcs})
|
||||
|
||||
install(
|
||||
TARGETS libunibreak
|
||||
RUNTIME DESTINATION bin
|
||||
LIBRARY DESTINATION lib
|
||||
ARCHIVE DESTINATION lib
|
||||
)
|
||||
|
||||
if(NOT DISABLE_INSTALL_HEADERS)
|
||||
install(
|
||||
FILES
|
||||
src/linebreak.h
|
||||
src/linebreakdef.h
|
||||
src/wordbreak.h
|
||||
src/wordbreakdef.h
|
||||
DESTINATION include
|
||||
)
|
||||
endif()
|
3
ports/libunibreak/CONTROL
Normal file
3
ports/libunibreak/CONTROL
Normal file
@ -0,0 +1,3 @@
|
||||
Source: libunibreak
|
||||
Version: 4.0
|
||||
Description: an implementation of the line breaking and word breaking algorithms as described in [Unicode Standard Annex 14] 1 and [Unicode Standard Annex 29] 2. Check the project's [home page] 3 for up-to-date information.
|
24
ports/libunibreak/portfile.cmake
Normal file
24
ports/libunibreak/portfile.cmake
Normal file
@ -0,0 +1,24 @@
|
||||
include(vcpkg_common_functions)
|
||||
if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
||||
message(WARNING "Dynamic not supported building static")
|
||||
set(VCPKG_LIBRARY_LINKAGE static)
|
||||
endif()
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO adah1972/libunibreak
|
||||
REF libunibreak_4_0
|
||||
SHA512 f11295133a1c65f365a5287f7377f69ac7998f19b06d44818fb55c8a5ba3edabc36de8d1b7c0d38db9d982f0e443d0a751f6d51841865094122df4cd74c9af3b
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
OPTIONS_DEBUG -DDISABLE_INSTALL_HEADERS=ON
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
|
||||
file(INSTALL ${SOURCE_PATH}/LICENCE DESTINATION ${CURRENT_PACKAGES_DIR}/share/libunibreak RENAME copyright)
|
Loading…
Reference in New Issue
Block a user