mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 10:19:07 +08:00
[irrlicht] Add Supports and fix environment variable reference (#11852)
This commit is contained in:
parent
a5e28c4b35
commit
cb97769f89
@ -16,7 +16,7 @@ set(IRR_TOOL_DIR "tools")
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
set(DXSDK "")
|
||||
if(DEFINED ENV{DXSDK_DIR})
|
||||
set(DXSDK "ENV{DXSDK_DIR}")
|
||||
set(DXSDK "$ENV{DXSDK_DIR}")
|
||||
endif()
|
||||
|
||||
set(IRR_UNICODE_PATH 0 CACHE BOOL "Whether to enable unicode path support on windows")
|
||||
|
@ -3,6 +3,7 @@ Version: 1.8.4-5
|
||||
Homepage: http://irrlicht.sourceforge.net
|
||||
Description: Irrlicht lightning fast 3d engine
|
||||
Build-Depends: zlib, libpng, bzip2, libjpeg-turbo
|
||||
Supports: !(arm|uwp|osx)
|
||||
|
||||
Feature: unicode
|
||||
Description: Support unicode path on windows
|
||||
|
@ -1,3 +1,5 @@
|
||||
vcpkg_fail_port_install(ON_ARCH "arm" ON_TARGET "osx" "uwp")
|
||||
|
||||
vcpkg_download_distfile(ARCHIVE
|
||||
URLS "https://downloads.sourceforge.net/project/irrlicht/Irrlicht%20SDK/1.8/1.8.4/irrlicht-1.8.4.zip"
|
||||
FILENAME "irrlicht-1.8.4.zip"
|
||||
@ -12,9 +14,7 @@ vcpkg_extract_source_archive_ex(
|
||||
"fix-encoding.patch"
|
||||
)
|
||||
|
||||
# Copy CMakeLists.txt to the source, because Irrlicht does not have one.
|
||||
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
||||
file(COPY ${CMAKE_CURRENT_LIST_DIR}/LICENSE.txt DESTINATION ${SOURCE_PATH})
|
||||
configure_file(${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt ${SOURCE_PATH}/CMakeLists.txt COPYONLY)
|
||||
|
||||
vcpkg_check_features(
|
||||
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
||||
@ -24,10 +24,7 @@ vcpkg_check_features(
|
||||
tools IRR_BUILD_TOOLS
|
||||
)
|
||||
|
||||
set(SHARED_LIB TRUE)
|
||||
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
||||
set(SHARED_LIB FALSE)
|
||||
endif()
|
||||
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" SHARED_LIB)
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
@ -52,7 +49,5 @@ vcpkg_copy_pdbs()
|
||||
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
||||
file(COPY ${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake DESTINATION ${CURRENT_PACKAGES_DIR}/share/irrlicht)
|
||||
endif()
|
||||
# Post-build test for cmake libraries
|
||||
vcpkg_test_cmake(PACKAGE_NAME irrlicht)
|
||||
|
||||
file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
||||
file(INSTALL ${CMAKE_CURRENT_LIST_DIR}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
Loading…
Reference in New Issue
Block a user