Added feature to optionally install all Angelscript standard addons (#7650)

This commit is contained in:
Adam Martin 2019-08-16 00:47:14 -05:00 committed by Victor Romero
parent 22e787f944
commit 0a033250c7
2 changed files with 12 additions and 1 deletions

View File

@ -1,3 +1,6 @@
Source: angelscript
Version: 2.33.0-1
Version: 2.33.1-1
Description: The AngelCode Scripting Library, or AngelScript as it is also known, is an extremely flexible cross-platform scripting library designed to allow applications to extend their functionality through external scripts. It has been designed from the beginning to be an easy to use component, both for the application programmer and the script writer.
Feature: addons
Description: Installs all addons for use in compiling scripts addons

View File

@ -28,3 +28,11 @@ vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/Angelscript)
# Handle copyright
file(INSTALL ${CURRENT_PORT_DIR}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/angelscript RENAME copyright)
# Copy the addon files
if("addons" IN_LIST FEATURES)
file(INSTALL ${SOURCE_PATH}/add_on/ DESTINATION ${CURRENT_PACKAGES_DIR}/include/angelscript FILES_MATCHING PATTERN "*.h" PATTERN "*.cpp")
endif()
# Post-build test for cmake libraries
# vcpkg_test_cmake(PACKAGE_NAME angelscript)