update README.md in javascript
[liba.git] / vcpkg / portfile.cmake
blob9d881d79bdb45417a45e3f00d92a689de100978d
1 vcpkg_from_git(OUT_SOURCE_PATH SOURCE_PATH
2   URL https://github.com/tqfx/${PORT}.git
3   REF @GIT_COMMIT_LONG@
4   HEAD_REF main
7 vcpkg_check_features(OUT_FEATURE_OPTIONS OPTIONS_RELEASE
8   FEATURES ipo LIBA_IPO
11 vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
12   FEATURES
13     pkgconfig LIBA_PKGCONFIG
14     symlink LIBA_SYMLINK
17 vcpkg_configure_cmake(SOURCE_PATH ${SOURCE_PATH}
18   OPTIONS -DBUILD_TESTING=OFF ${FEATURE_OPTIONS}
19   OPTIONS_RELEASE ${OPTIONS_RELEASE}
22 vcpkg_install_cmake()
24 vcpkg_copy_pdbs()
26 if(LIBA_PKGCONFIG)
27   vcpkg_fixup_pkgconfig()
28 endif()
30 vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/${PORT})
32 file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
34 if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
35   file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
36 endif()
38 file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)