diff options
| author | Alexander Karatarakis <alkarata@microsoft.com> | 2016-10-21 18:24:53 -0700 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2016-10-21 18:24:53 -0700 |
| commit | 4cb94dcfc27a1e5cba4294f3b79bc5cae460c355 (patch) | |
| tree | 6ddd5b744aa60c1e966e3d18f701257488d2f103 | |
| parent | af2500416bcbab58fd0de516d96e6d533bc93904 (diff) | |
| parent | 4bf9b4db060b1dcd499c40fcba4edd0008d29679 (diff) | |
| download | vcpkg-4cb94dcfc27a1e5cba4294f3b79bc5cae460c355.tar.gz vcpkg-4cb94dcfc27a1e5cba4294f3b79bc5cae460c355.zip | |
Merge branch 'libccd' of https://github.com/jslee02/vcpkg into jslee02-libccd
| -rw-r--r-- | ports/libccd/CONTROL | 3 | ||||
| -rw-r--r-- | ports/libccd/portfile.cmake | 33 |
2 files changed, 36 insertions, 0 deletions
diff --git a/ports/libccd/CONTROL b/ports/libccd/CONTROL new file mode 100644 index 000000000..3a3a0252d --- /dev/null +++ b/ports/libccd/CONTROL @@ -0,0 +1,3 @@ +Source: libccd +Version: 2.0.0 +Description: Library for collision detection between two convex shapes diff --git a/ports/libccd/portfile.cmake b/ports/libccd/portfile.cmake new file mode 100644 index 000000000..8417689fd --- /dev/null +++ b/ports/libccd/portfile.cmake @@ -0,0 +1,33 @@ +# Common Ambient Variables: +# VCPKG_ROOT_DIR = <C:\path\to\current\vcpkg> +# TARGET_TRIPLET is the current triplet (x86-windows, etc) +# PORT is the current port name (zlib, etc) +# CURRENT_BUILDTREES_DIR = ${VCPKG_ROOT_DIR}\buildtrees\${PORT} +# CURRENT_PACKAGES_DIR = ${VCPKG_ROOT_DIR}\packages\${PORT}_${TARGET_TRIPLET} +# + +include(${CMAKE_TRIPLET_FILE}) +include(vcpkg_common_functions) +set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/libccd-16b9379fb6e8610566fe5e1396166daf7106f165) +vcpkg_download_distfile(ARCHIVE + URLS "https://github.com/danfis/libccd/archive/16b9379fb6e8610566fe5e1396166daf7106f165.zip" + FILENAME "libccd-16b9379fb6e8610566fe5e1396166daf7106f165.zip" + SHA512 6cb3ea713f1b1ac1bf48c9ee7e14cb85b3ec5c822ce239330913edc00cb84c846b49ec090cbfa226ef8de70bac97199eb2bf4c651225e3cfc6f6a9dd441aa7db +) +vcpkg_extract_source_archive(${ARCHIVE}) + +vcpkg_configure_cmake( + SOURCE_PATH ${SOURCE_PATH} + # OPTIONS -DUSE_THIS_IN_ALL_BUILDS=1 -DUSE_THIS_TOO=2 + # OPTIONS_RELEASE -DOPTIMIZE=1 + # OPTIONS_DEBUG -DDEBUGGABLE=1 +) + +vcpkg_install_cmake() + +# Avoid a copy of file in debug +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug) + +# Handle copyright +file(COPY ${SOURCE_PATH}/BSD-LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/libccd) +file(RENAME ${CURRENT_PACKAGES_DIR}/share/libccd/BSD-LICENSE ${CURRENT_PACKAGES_DIR}/share/libccd/copyright) |
