mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-29 20:23:41 +08:00
[shiva] add a port of shiva c++ engine
This commit is contained in:
parent
5af585756c
commit
823e6a2abf
4
ports/shiva/CONTROL
Normal file
4
ports/shiva/CONTROL
Normal file
@ -0,0 +1,4 @@
|
||||
Source: shiva
|
||||
Version: 0.1
|
||||
Description: Modern C++ Game Engine
|
||||
Build-Depends: boost-stacktrace, boost-filesystem, entt, eastl
|
35
ports/shiva/portfile.cmake
Normal file
35
ports/shiva/portfile.cmake
Normal file
@ -0,0 +1,35 @@
|
||||
# Common Ambient Variables:
|
||||
# CURRENT_BUILDTREES_DIR = ${VCPKG_ROOT_DIR}\buildtrees\${PORT}
|
||||
# CURRENT_PACKAGES_DIR = ${VCPKG_ROOT_DIR}\packages\${PORT}_${TARGET_TRIPLET}
|
||||
# CURRENT_PORT_DIR = ${VCPKG_ROOT_DIR}\ports\${PORT}
|
||||
# PORT = current port name (zlib, etc)
|
||||
# TARGET_TRIPLET = current triplet (x86-windows, x64-windows-static, etc)
|
||||
# VCPKG_CRT_LINKAGE = C runtime linkage type (static, dynamic)
|
||||
# VCPKG_LIBRARY_LINKAGE = target library linkage type (static, dynamic)
|
||||
# VCPKG_ROOT_DIR = <C:\path\to\current\vcpkg>
|
||||
# VCPKG_TARGET_ARCHITECTURE = target architecture (x64, x86, arm)
|
||||
#
|
||||
|
||||
include(vcpkg_common_functions)
|
||||
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/shiva-0.1)
|
||||
vcpkg_download_distfile(ARCHIVE
|
||||
URLS "https://github.com/Milerius/shiva/archive/0.1.zip"
|
||||
FILENAME "shiva.zip"
|
||||
SHA512 8c736af68f7e82cfce3a90bfedb310f132f78bb3c2c5d0e83899761526ceccab8c72b47674c825b53428d4c97355656954d231e9eaed062be8e498746c4fb2ad
|
||||
)
|
||||
vcpkg_extract_source_archive(${ARCHIVE})
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA # Disable this option if project cannot be built with Ninja
|
||||
OPTIONS -DSHIVA_BUILD_TESTS=OFF
|
||||
# OPTIONS_RELEASE -DOPTIMIZE=1
|
||||
# OPTIONS_DEBUG -DDEBUGGABLE=1
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/shiva)
|
||||
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug ${CURRENT_PACKAGES_DIR}/lib)
|
||||
file(COPY ${CURRENT_BUILDTREES_DIR}/src/shiva-0.1/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/shiva)
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/share/shiva/LICENSE ${CURRENT_PACKAGES_DIR}/share/shiva/copyright)
|
Loading…
x
Reference in New Issue
Block a user