From 0a033250c7dd3f4013248216e259548693b8cc8c Mon Sep 17 00:00:00 2001 From: Adam Martin Date: Fri, 16 Aug 2019 00:47:14 -0500 Subject: Added feature to optionally install all Angelscript standard addons (#7650) --- ports/angelscript/CONTROL | 5 ++++- ports/angelscript/portfile.cmake | 8 ++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/ports/angelscript/CONTROL b/ports/angelscript/CONTROL index 7315b1a90..103dda42e 100644 --- a/ports/angelscript/CONTROL +++ b/ports/angelscript/CONTROL @@ -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 diff --git a/ports/angelscript/portfile.cmake b/ports/angelscript/portfile.cmake index f6521df29..3aea242b5 100644 --- a/ports/angelscript/portfile.cmake +++ b/ports/angelscript/portfile.cmake @@ -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) -- cgit v1.2.3