mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 21:49:06 +08:00
fd675b7b81
* [cld3] new port * [cld3] fix port version * update a path to the license * use vcpkg_install_cmake * remove deprecated functions * disable arm test * update sha * ci.baseline.txt * Update scripts/ci.baseline.txt Co-authored-by: Lily Wang <94091114+LilyWangLL@users.noreply.github.com> * Update ports/cld3/vcpkg.json Co-authored-by: Lily Wang <94091114+LilyWangLL@users.noreply.github.com> * Update ports/cld3/portfile.cmake Co-authored-by: Lily Wang <94091114+LilyWangLL@users.noreply.github.com> * fix version * scripts/ci.baseline.txt * update patch * c++ 11 version * disable 64-osx * more patches * fix linux/Win32 static only * anable other platforms * fix build * x64-osx * ci.baseline.txt * Revert "ci.baseline.txt" This reverts commit ade1499c0f70c5171759c5330f0b8ba7394b3438. * Update ports/cld3/portfile.cmake Co-authored-by: Lily Wang <94091114+LilyWangLL@users.noreply.github.com> * fix version * remove unused vcpkg-cmake-config * move install headers to portfile * remove ABI version * add LF to ci.baseline.txt * scripts/ci.baseline.txt * disable unit tests * fix * move COMPILER_MSVC to port file * fix version * add line break * refactoring * uncomment -D_GLIBCXX_USE_CXX11_ABI=0 * add cld3Config.cmake.in * improve cld3Config.cmake.in --------- Co-authored-by: Alexander ROZDAYBEDA <alexander.rozdaybeda@avanquest.com> Co-authored-by: Lily Wang <94091114+LilyWangLL@users.noreply.github.com>
38 lines
1.4 KiB
CMake
38 lines
1.4 KiB
CMake
if (VCPKG_TARGET_IS_WINDOWS)
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
endif()
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO google/cld3
|
|
REF b48dc46512566f5a2d41118c8c1116c4f96dc661
|
|
SHA512 c3650ffbf5855aaf04d03930f01c6efd76e1f2b2d47365348721f16531a14653ae5b3aff8fefa8e5fa1c769fdf1a9b441a88bc687f97f8c579b84f17c6984c9e
|
|
HEAD_REF master
|
|
PATCHES
|
|
fix-build.patch
|
|
)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS ${FEATURE_OPTIONS}
|
|
-DINSTALL_LIB_DIR:STRING=lib
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
vcpkg_fixup_pkgconfig()
|
|
vcpkg_copy_pdbs()
|
|
|
|
file(GLOB PUBLIC_HEADER_FILES LIST_DIRECTORIES false "${SOURCE_PATH}/src/*.h")
|
|
file(INSTALL ${PUBLIC_HEADER_FILES} DESTINATION "${CURRENT_PACKAGES_DIR}/include/cld3")
|
|
|
|
file(GLOB HEADERS_SCRIPT_SPAN_FILES LIST_DIRECTORIES false "${SOURCE_PATH}/src/script_span/*.h")
|
|
file(INSTALL ${HEADERS_SCRIPT_SPAN_FILES} DESTINATION "${CURRENT_PACKAGES_DIR}/include/cld3/script_span")
|
|
|
|
file(GLOB HEADERS_PROTO_FILES LIST_DIRECTORIES false "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/cld_3/protos/*.h")
|
|
file(INSTALL ${HEADERS_PROTO_FILES} DESTINATION "${CURRENT_PACKAGES_DIR}/include/cld_3/protos")
|
|
|
|
configure_file("${CMAKE_CURRENT_LIST_DIR}/cld3Config.cmake.in"
|
|
"${CURRENT_PACKAGES_DIR}/share/${PORT}/cld3Config.cmake" @ONLY)
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|