mirror of
https://github.com/cemu-project/vcpkg.git
synced 2025-02-21 18:17:10 +01:00
[cello] Add new port (#7386)
This commit is contained in:
parent
17785faec8
commit
ca7cb0aa89
26
ports/cello/CMakeLists.txt
Normal file
26
ports/cello/CMakeLists.txt
Normal file
@ -0,0 +1,26 @@
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
|
||||
project(cello LANGUAGES C)
|
||||
|
||||
include(GNUInstallDirs)
|
||||
|
||||
file(GLOB cello_sources src/*.c)
|
||||
add_library(cello ${cello_sources})
|
||||
|
||||
target_include_directories(
|
||||
cello
|
||||
PUBLIC
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/include>
|
||||
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
|
||||
)
|
||||
|
||||
set_target_properties(cello PROPERTIES PUBLIC_HEADER include/Cello.h)
|
||||
|
||||
install(TARGETS cello EXPORT unofficial-cello-config)
|
||||
|
||||
install(
|
||||
EXPORT unofficial-cello-config
|
||||
NAMESPACE unofficial::cello::
|
||||
DESTINATION share/unofficial-cello
|
||||
PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
|
||||
)
|
4
ports/cello/CONTROL
Normal file
4
ports/cello/CONTROL
Normal file
@ -0,0 +1,4 @@
|
||||
Source: cello
|
||||
Version: 2019-07-23
|
||||
Description: Higher level programming in C
|
||||
Homepage: http://libcello.org/
|
32
ports/cello/portfile.cmake
Normal file
32
ports/cello/portfile.cmake
Normal file
@ -0,0 +1,32 @@
|
||||
include(vcpkg_common_functions)
|
||||
|
||||
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO orangeduck/Cello
|
||||
REF da28eefbc95d8bd5628e5f1c4cc12bc1b13fef4f
|
||||
SHA512 64825cf37223dd679b379d78475218a543690c3b78333acb906d42982261df4b9ada3a87bea183fad5e2cf220311904e657b0bf5051b141c389d5ee1d2974e5b
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
vcpkg_fixup_cmake_targets(CONFIG_PATH share/unofficial-${PORT} TARGET_PATH share/unofficial-${PORT})
|
||||
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
||||
|
||||
# Handle copyright
|
||||
configure_file(${SOURCE_PATH}/LICENSE.md ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)
|
||||
|
||||
# CMake integration test
|
||||
vcpkg_test_cmake(PACKAGE_NAME unofficial-${PORT})
|
Loading…
x
Reference in New Issue
Block a user