mirror of
https://github.com/cemu-project/vcpkg.git
synced 2025-02-23 11:07:10 +01:00
[json-c] Add new port (#6446)
* [json-c] Add new port * [json-c] Export CMake module file * [json-c] Update to 2019-05-31
This commit is contained in:
parent
d605091f75
commit
046f8383ef
3
ports/json-c/CONTROL
Normal file
3
ports/json-c/CONTROL
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
Source: json-c
|
||||||
|
Version: 2019-05-31
|
||||||
|
Description: A JSON implementation in C
|
28
ports/json-c/portfile.cmake
Normal file
28
ports/json-c/portfile.cmake
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
include(vcpkg_common_functions)
|
||||||
|
|
||||||
|
# https://github.com/json-c/json-c/issues/488
|
||||||
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
||||||
|
|
||||||
|
vcpkg_from_github(
|
||||||
|
OUT_SOURCE_PATH SOURCE_PATH
|
||||||
|
REPO json-c/json-c
|
||||||
|
REF 2b1903cc6941fb87db7526680829486f27fb1073
|
||||||
|
SHA512 0ee71a0c2f75f5114b65f06ef921ac7a66173d66592fa880336896de64f3a325b251028b35396184cd7c3ffd15db3826bed83200fa80f4d11607fdf758138bf9
|
||||||
|
HEAD_REF master
|
||||||
|
)
|
||||||
|
|
||||||
|
vcpkg_configure_cmake(
|
||||||
|
SOURCE_PATH ${SOURCE_PATH}
|
||||||
|
PREFER_NINJA
|
||||||
|
)
|
||||||
|
|
||||||
|
vcpkg_install_cmake()
|
||||||
|
|
||||||
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/${PORT})
|
||||||
|
|
||||||
|
vcpkg_copy_pdbs()
|
||||||
|
|
||||||
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
||||||
|
|
||||||
|
# Handle copyright
|
||||||
|
configure_file(${SOURCE_PATH}/COPYING ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)
|
Loading…
x
Reference in New Issue
Block a user