aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Martin <adam.madram@gmail.com>2019-08-16 00:47:14 -0500
committerVictor Romero <romerosanchezv@gmail.com>2019-08-15 22:47:14 -0700
commit0a033250c7dd3f4013248216e259548693b8cc8c (patch)
tree8f30186c5e60e42bb04ba440ed9ffd1a589e1cc6
parent22e787f9448a25dae734ca06c80e7e5af5fb6537 (diff)
downloadvcpkg-0a033250c7dd3f4013248216e259548693b8cc8c.tar.gz
vcpkg-0a033250c7dd3f4013248216e259548693b8cc8c.zip
Added feature to optionally install all Angelscript standard addons (#7650)
-rw-r--r--ports/angelscript/CONTROL5
-rw-r--r--ports/angelscript/portfile.cmake8
2 files changed, 12 insertions, 1 deletions
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)