Skip to content

Commit

Permalink
Added feature to optionally install all Angelscript standard addons (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
adam4813 authored and vicroms committed Aug 16, 2019
1 parent 22e787f commit 0a03325
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ports/angelscript/CONTROL
Original file line number Diff line number Diff line change
@@ -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
8 changes: 8 additions & 0 deletions ports/angelscript/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 0a03325

Please sign in to comment.