[dxut] add build for optional libs.

This commit is contained in:
sdcb 2016-11-28 13:06:48 +08:00
parent bc8a015889
commit 00f10b7789
2 changed files with 15 additions and 14 deletions

View File

@ -1,3 +1,3 @@
Source: dxut
Version: 11.14-1
Version: 11.14-2
Description: A "GLUT"-like framework for Direct3D 11.x Win32 desktop applications

View File

@ -11,33 +11,34 @@ vcpkg_download_distfile(ARCHIVE_FILE
)
vcpkg_extract_source_archive(${ARCHIVE_FILE})
vcpkg_build_msbuild(
PROJECT_PATH ${SOURCE_PATH}/Core/DXUT_2015.vcxproj
)
IF (TRIPLET_SYSTEM_ARCH MATCHES "x86")
SET(BUILD_ARCH "Win32")
ELSE()
SET(BUILD_ARCH ${TRIPLET_SYSTEM_ARCH})
ENDIF()
file(INSTALL
${SOURCE_PATH}/Core/DDSTextureLoader.h
${SOURCE_PATH}/Core/DXErr.h
${SOURCE_PATH}/Core/DXUT.h
${SOURCE_PATH}/Core/DXUTDevice11.h
${SOURCE_PATH}/Core/DXUTmisc.h
${SOURCE_PATH}/Core/Screengrab.h
${SOURCE_PATH}/Core/WICTextureLoader.h
DESTINATION ${CURRENT_PACKAGES_DIR}/include
vcpkg_build_msbuild(
PROJECT_PATH ${SOURCE_PATH}/DXUT_2015.sln
PLATFORM ${BUILD_ARCH}
)
file(INSTALL
${SOURCE_PATH}/Core/
${SOURCE_PATH}/Optional/
DESTINATION ${CURRENT_PACKAGES_DIR}/include
FILES_MATCHING PATTERN "*.h"
)
file(REMOVE_RECURSE
${CURRENT_PACKAGES_DIR}/include/Bin)
file(INSTALL
${SOURCE_PATH}/Core/Bin/Desktop_2015/${BUILD_ARCH}/Release/DXUT.lib
${SOURCE_PATH}/Optional/Bin/Desktop_2015/${BUILD_ARCH}/Release/DXUTOpt.lib
DESTINATION ${CURRENT_PACKAGES_DIR}/lib)
file(INSTALL
${SOURCE_PATH}/Core/Bin/Desktop_2015/${BUILD_ARCH}/Debug/DXUT.lib
${SOURCE_PATH}/Optional/Bin/Desktop_2015/${BUILD_ARCH}/Debug/DXUTOpt.lib
DESTINATION ${CURRENT_PACKAGES_DIR}/debug/lib)
vcpkg_copy_pdbs()