mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-31 05:03:22 +08:00
Introduce SOURCE_PATH to almost all portfiles
This commit is contained in:
parent
4c382b02c7
commit
3679955544
@ -1,4 +1,5 @@
|
|||||||
include(vcpkg_common_functions)
|
include(vcpkg_common_functions)
|
||||||
|
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/cocos2d-x-cocos2d-x-3.10)
|
||||||
vcpkg_download_distfile(ARCHIVE_FILE
|
vcpkg_download_distfile(ARCHIVE_FILE
|
||||||
URLS "https://github.com/cocos2d/cocos2d-x/archive/cocos2d-x-3.10.tar.gz"
|
URLS "https://github.com/cocos2d/cocos2d-x/archive/cocos2d-x-3.10.tar.gz"
|
||||||
FILENAME "cocos2d-x-3.10.tar.gz"
|
FILENAME "cocos2d-x-3.10.tar.gz"
|
||||||
@ -12,7 +13,7 @@ vcpkg_download_distfile(DEPS_ARCHIVE_FILE
|
|||||||
|
|
||||||
vcpkg_extract_source_archive(${ARCHIVE_FILE})
|
vcpkg_extract_source_archive(${ARCHIVE_FILE})
|
||||||
|
|
||||||
if(NOT EXISTS ${CURRENT_BUILDTREES_DIR}/src/cocos2d-x-cocos2d-x-3.10/external/unzip)
|
if(NOT EXISTS ${SOURCE_PATH}/external/unzip)
|
||||||
message(STATUS "Extracting dependencies ${DEPS_ARCHIVE_FILE}")
|
message(STATUS "Extracting dependencies ${DEPS_ARCHIVE_FILE}")
|
||||||
file(MAKE_DIRECTORY ${CURRENT_BUILDTREES_DIR}/deps)
|
file(MAKE_DIRECTORY ${CURRENT_BUILDTREES_DIR}/deps)
|
||||||
vcpkg_execute_required_process(
|
vcpkg_execute_required_process(
|
||||||
@ -20,15 +21,15 @@ if(NOT EXISTS ${CURRENT_BUILDTREES_DIR}/src/cocos2d-x-cocos2d-x-3.10/external/un
|
|||||||
WORKING_DIRECTORY ${CURRENT_BUILDTREES_DIR}/deps
|
WORKING_DIRECTORY ${CURRENT_BUILDTREES_DIR}/deps
|
||||||
LOGNAME extract-deps
|
LOGNAME extract-deps
|
||||||
)
|
)
|
||||||
file(REMOVE_RECURSE ${CURRENT_BUILDTREES_DIR}/src/cocos2d-x-cocos2d-x-3.10/external)
|
file(REMOVE_RECURSE ${SOURCE_PATH}/external)
|
||||||
file(RENAME ${CURRENT_BUILDTREES_DIR}/deps/cocos2d-x-3rd-party-libs-bin-3-deps-79 ${CURRENT_BUILDTREES_DIR}/src/cocos2d-x-cocos2d-x-3.10/external)
|
file(RENAME ${CURRENT_BUILDTREES_DIR}/deps/cocos2d-x-3rd-party-libs-bin-3-deps-79 ${SOURCE_PATH}/external)
|
||||||
endif()
|
endif()
|
||||||
message(STATUS "Extracting dependencies done")
|
message(STATUS "Extracting dependencies done")
|
||||||
|
|
||||||
file(REMOVE ${CURRENT_BUILDTREES_DIR}/src/cocos2d-x-cocos2d-x-3.10/cmake/Modules/FindGLFW3.cmake)
|
file(REMOVE ${SOURCE_PATH}/cmake/Modules/FindGLFW3.cmake)
|
||||||
|
|
||||||
vcpkg_configure_cmake(
|
vcpkg_configure_cmake(
|
||||||
SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/cocos2d-x-cocos2d-x-3.10
|
SOURCE_PATH ${SOURCE_PATH}
|
||||||
OPTIONS
|
OPTIONS
|
||||||
-DUSE_CHIPMUNK=OFF
|
-DUSE_CHIPMUNK=OFF
|
||||||
-DUSE_BOX2D=OFF
|
-DUSE_BOX2D=OFF
|
||||||
@ -42,6 +43,6 @@ vcpkg_configure_cmake(
|
|||||||
vcpkg_build_cmake()
|
vcpkg_build_cmake()
|
||||||
vcpkg_install_cmake()
|
vcpkg_install_cmake()
|
||||||
|
|
||||||
file(INSTALL ${CURRENT_BUILDTREES_DIR}/src/cocos2d-x-cocos2d-x-3.10/licenses/LICENSE_cocos2d-x.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/cocos2d-x RENAME copyright)
|
file(INSTALL ${SOURCE_PATH}/licenses/LICENSE_cocos2d-x.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/cocos2d-x RENAME copyright)
|
||||||
vcpkg_copy_pdbs()
|
vcpkg_copy_pdbs()
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
include(vcpkg_common_functions)
|
include(vcpkg_common_functions)
|
||||||
|
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/constexpr-a98b1db39c909e0130d21d3910d4faf97035a625)
|
||||||
vcpkg_download_distfile(ARCHIVE
|
vcpkg_download_distfile(ARCHIVE
|
||||||
URLS "https://github.com/elbeno/constexpr/archive/a98b1db39c909e0130d21d3910d4faf97035a625.zip"
|
URLS "https://github.com/elbeno/constexpr/archive/a98b1db39c909e0130d21d3910d4faf97035a625.zip"
|
||||||
FILENAME "constexpr-a98b1db39c909e0130d21d3910d4faf97035a625.zip"
|
FILENAME "constexpr-a98b1db39c909e0130d21d3910d4faf97035a625.zip"
|
||||||
@ -7,10 +8,9 @@ vcpkg_download_distfile(ARCHIVE
|
|||||||
vcpkg_extract_source_archive(${ARCHIVE})
|
vcpkg_extract_source_archive(${ARCHIVE})
|
||||||
|
|
||||||
# Put the licence file where vcpkg expects it
|
# Put the licence file where vcpkg expects it
|
||||||
set(SOURCE_DIR ${CURRENT_BUILDTREES_DIR}/src/constexpr-a98b1db39c909e0130d21d3910d4faf97035a625)
|
file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/constexpr/LICENSE)
|
||||||
file(COPY ${SOURCE_DIR}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/constexpr/LICENSE)
|
|
||||||
file(RENAME ${CURRENT_PACKAGES_DIR}/share/constexpr/LICENSE ${CURRENT_PACKAGES_DIR}/share/constexpr/copyright)
|
file(RENAME ${CURRENT_PACKAGES_DIR}/share/constexpr/LICENSE ${CURRENT_PACKAGES_DIR}/share/constexpr/copyright)
|
||||||
|
|
||||||
# Copy the constexpr header files
|
# Copy the constexpr header files
|
||||||
file(GLOB HEADER_FILES ${SOURCE_DIR}/src/include/*.h)
|
file(GLOB HEADER_FILES ${SOURCE_PATH}/src/include/*.h)
|
||||||
file(COPY ${HEADER_FILES} DESTINATION ${CURRENT_PACKAGES_DIR}/include)
|
file(COPY ${HEADER_FILES} DESTINATION ${CURRENT_PACKAGES_DIR}/include)
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
include(vcpkg_common_functions)
|
include(vcpkg_common_functions)
|
||||||
|
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/curl-7.48.0)
|
||||||
vcpkg_download_distfile(ARCHIVE_FILE
|
vcpkg_download_distfile(ARCHIVE_FILE
|
||||||
URLS "https://curl.haxx.se/download/curl-7.48.0.tar.bz2"
|
URLS "https://curl.haxx.se/download/curl-7.48.0.tar.bz2"
|
||||||
FILENAME "curl-7.48.0.tar.bz2"
|
FILENAME "curl-7.48.0.tar.bz2"
|
||||||
@ -7,7 +8,7 @@ vcpkg_download_distfile(ARCHIVE_FILE
|
|||||||
vcpkg_extract_source_archive(${ARCHIVE_FILE})
|
vcpkg_extract_source_archive(${ARCHIVE_FILE})
|
||||||
|
|
||||||
vcpkg_configure_cmake(
|
vcpkg_configure_cmake(
|
||||||
SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/curl-7.48.0
|
SOURCE_PATH ${SOURCE_PATH}
|
||||||
OPTIONS
|
OPTIONS
|
||||||
-DBUILD_CURL_TESTS=OFF
|
-DBUILD_CURL_TESTS=OFF
|
||||||
-DBUILD_CURL_EXE=OFF
|
-DBUILD_CURL_EXE=OFF
|
||||||
@ -19,6 +20,6 @@ vcpkg_configure_cmake(
|
|||||||
vcpkg_build_cmake()
|
vcpkg_build_cmake()
|
||||||
vcpkg_install_cmake()
|
vcpkg_install_cmake()
|
||||||
|
|
||||||
file(INSTALL ${CURRENT_BUILDTREES_DIR}/src/curl-7.48.0/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/curl RENAME copyright)
|
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/curl RENAME copyright)
|
||||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
||||||
vcpkg_copy_pdbs()
|
vcpkg_copy_pdbs()
|
@ -1,4 +1,5 @@
|
|||||||
include(vcpkg_common_functions)
|
include(vcpkg_common_functions)
|
||||||
|
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/doctest-1.1.0)
|
||||||
vcpkg_download_distfile(ARCHIVE
|
vcpkg_download_distfile(ARCHIVE
|
||||||
URLS "https://github.com/onqtam/doctest/archive/1.1.0.zip"
|
URLS "https://github.com/onqtam/doctest/archive/1.1.0.zip"
|
||||||
FILENAME "doctest-1.1.0.zip"
|
FILENAME "doctest-1.1.0.zip"
|
||||||
@ -7,7 +8,7 @@ vcpkg_download_distfile(ARCHIVE
|
|||||||
vcpkg_extract_source_archive(${ARCHIVE})
|
vcpkg_extract_source_archive(${ARCHIVE})
|
||||||
|
|
||||||
# Handle copyright
|
# Handle copyright
|
||||||
file(INSTALL ${CURRENT_BUILDTREES_DIR}/src/doctest-1.1.0/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/doctest RENAME copyright)
|
file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/doctest RENAME copyright)
|
||||||
|
|
||||||
# Copy header file
|
# Copy header file
|
||||||
file(INSTALL ${CURRENT_BUILDTREES_DIR}/src/doctest-1.1.0/doctest/doctest.h DESTINATION ${CURRENT_PACKAGES_DIR}/include/doctest)
|
file(INSTALL ${SOURCE_PATH}/doctest/doctest.h DESTINATION ${CURRENT_PACKAGES_DIR}/include/doctest)
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
include(vcpkg_common_functions)
|
include(vcpkg_common_functions)
|
||||||
|
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/eigen-eigen-dc6cfdf9bcec)
|
||||||
vcpkg_download_distfile(ARCHIVE
|
vcpkg_download_distfile(ARCHIVE
|
||||||
URLS "http://bitbucket.org/eigen/eigen/get/3.2.9.tar.bz2"
|
URLS "http://bitbucket.org/eigen/eigen/get/3.2.9.tar.bz2"
|
||||||
FILENAME "eigen-3.2.9.tar.bz2"
|
FILENAME "eigen-3.2.9.tar.bz2"
|
||||||
@ -7,13 +8,12 @@ vcpkg_download_distfile(ARCHIVE
|
|||||||
vcpkg_extract_source_archive(${ARCHIVE})
|
vcpkg_extract_source_archive(${ARCHIVE})
|
||||||
|
|
||||||
# Put the licence file where vcpkg expects it
|
# Put the licence file where vcpkg expects it
|
||||||
file(RENAME ${CURRENT_BUILDTREES_DIR}/src/eigen-eigen-dc6cfdf9bcec ${CURRENT_BUILDTREES_DIR}/src/eigen)
|
file(COPY ${SOURCE_PATH}/COPYING.README DESTINATION ${CURRENT_PACKAGES_DIR}/share/eigen3/COPYING.README)
|
||||||
file(COPY ${CURRENT_BUILDTREES_DIR}/src/eigen/COPYING.README DESTINATION ${CURRENT_PACKAGES_DIR}/share/eigen3/COPYING.README)
|
|
||||||
file(RENAME ${CURRENT_PACKAGES_DIR}/share/eigen3/COPYING.README ${CURRENT_PACKAGES_DIR}/share/eigen3/copyright)
|
file(RENAME ${CURRENT_PACKAGES_DIR}/share/eigen3/COPYING.README ${CURRENT_PACKAGES_DIR}/share/eigen3/copyright)
|
||||||
|
|
||||||
file(GLOB_RECURSE GARBAGE ${CURRENT_BUILDTREES_DIR}/src/eigen/Eigen/CMakeLists.*)
|
file(GLOB_RECURSE GARBAGE ${SOURCE_PATH}/Eigen/CMakeLists.*)
|
||||||
file(REMOVE ${GARBAGE})
|
file(REMOVE ${GARBAGE})
|
||||||
|
|
||||||
# Copy the eigen header files
|
# Copy the eigen header files
|
||||||
file(COPY ${CURRENT_BUILDTREES_DIR}/src/eigen/Eigen/ DESTINATION ${CURRENT_PACKAGES_DIR}/include/Eigen/)
|
file(COPY ${SOURCE_PATH}/Eigen/ DESTINATION ${CURRENT_PACKAGES_DIR}/include/Eigen/)
|
||||||
vcpkg_copy_pdbs()
|
vcpkg_copy_pdbs()
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
include(vcpkg_common_functions)
|
include(vcpkg_common_functions)
|
||||||
|
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/expat-2.1.1)
|
||||||
vcpkg_download_distfile(ARCHIVE_FILE
|
vcpkg_download_distfile(ARCHIVE_FILE
|
||||||
URLS "http://downloads.sourceforge.net/project/expat/expat/2.1.1/expat-2.1.1.tar.bz2"
|
URLS "http://downloads.sourceforge.net/project/expat/expat/2.1.1/expat-2.1.1.tar.bz2"
|
||||||
FILENAME "expat-2.1.1.tar.bz2"
|
FILENAME "expat-2.1.1.tar.bz2"
|
||||||
@ -7,7 +8,7 @@ vcpkg_download_distfile(ARCHIVE_FILE
|
|||||||
vcpkg_extract_source_archive(${ARCHIVE_FILE})
|
vcpkg_extract_source_archive(${ARCHIVE_FILE})
|
||||||
|
|
||||||
vcpkg_configure_cmake(
|
vcpkg_configure_cmake(
|
||||||
SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/expat-2.1.1
|
SOURCE_PATH ${SOURCE_PATH}
|
||||||
OPTIONS
|
OPTIONS
|
||||||
-DBUILD_examples=OFF
|
-DBUILD_examples=OFF
|
||||||
-DBUILD_tests=OFF
|
-DBUILD_tests=OFF
|
||||||
@ -18,5 +19,5 @@ vcpkg_build_cmake()
|
|||||||
vcpkg_install_cmake()
|
vcpkg_install_cmake()
|
||||||
|
|
||||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include ${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig ${CURRENT_PACKAGES_DIR}/lib/pkgconfig)
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include ${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig ${CURRENT_PACKAGES_DIR}/lib/pkgconfig)
|
||||||
file(INSTALL ${CURRENT_BUILDTREES_DIR}/src/expat-2.1.1/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/expat RENAME copyright)
|
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/expat RENAME copyright)
|
||||||
vcpkg_copy_pdbs()
|
vcpkg_copy_pdbs()
|
@ -1,5 +1,5 @@
|
|||||||
include(vcpkg_common_functions)
|
include(vcpkg_common_functions)
|
||||||
|
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/fmt-3.0.0)
|
||||||
vcpkg_download_distfile(ARCHIVE_FILE
|
vcpkg_download_distfile(ARCHIVE_FILE
|
||||||
URLS "https://github.com/fmtlib/fmt/archive/3.0.0.tar.gz"
|
URLS "https://github.com/fmtlib/fmt/archive/3.0.0.tar.gz"
|
||||||
FILENAME "fmt-3.0.0.tar.gz"
|
FILENAME "fmt-3.0.0.tar.gz"
|
||||||
@ -8,7 +8,7 @@ vcpkg_download_distfile(ARCHIVE_FILE
|
|||||||
vcpkg_extract_source_archive(${ARCHIVE_FILE})
|
vcpkg_extract_source_archive(${ARCHIVE_FILE})
|
||||||
|
|
||||||
vcpkg_configure_cmake(
|
vcpkg_configure_cmake(
|
||||||
SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/fmt-3.0.0
|
SOURCE_PATH ${SOURCE_PATH}
|
||||||
OPTIONS
|
OPTIONS
|
||||||
-DFMT_TEST=OFF
|
-DFMT_TEST=OFF
|
||||||
)
|
)
|
||||||
@ -16,7 +16,7 @@ vcpkg_configure_cmake(
|
|||||||
vcpkg_build_cmake()
|
vcpkg_build_cmake()
|
||||||
|
|
||||||
vcpkg_install_cmake()
|
vcpkg_install_cmake()
|
||||||
file(INSTALL ${CURRENT_BUILDTREES_DIR}/src/fmt-3.0.0/LICENSE.rst DESTINATION ${CURRENT_PACKAGES_DIR}/share/fmt RENAME copyright)
|
file(INSTALL ${SOURCE_PATH}/LICENSE.rst DESTINATION ${CURRENT_PACKAGES_DIR}/share/fmt RENAME copyright)
|
||||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
||||||
file(REMOVE ${CURRENT_PACKAGES_DIR}/include/fmt/format.cc)
|
file(REMOVE ${CURRENT_PACKAGES_DIR}/include/fmt/format.cc)
|
||||||
file(REMOVE ${CURRENT_PACKAGES_DIR}/include/fmt/ostream.cc)
|
file(REMOVE ${CURRENT_PACKAGES_DIR}/include/fmt/ostream.cc)
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
include(vcpkg_common_functions)
|
include(vcpkg_common_functions)
|
||||||
|
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/freetype-2.6.3)
|
||||||
vcpkg_download_distfile(ARCHIVE
|
vcpkg_download_distfile(ARCHIVE
|
||||||
URLS "http://download.savannah.gnu.org/releases/freetype/freetype-2.6.3.tar.bz2"
|
URLS "http://download.savannah.gnu.org/releases/freetype/freetype-2.6.3.tar.bz2"
|
||||||
FILENAME "freetype-2.6.3.tar.bz2"
|
FILENAME "freetype-2.6.3.tar.bz2"
|
||||||
@ -7,12 +8,12 @@ vcpkg_download_distfile(ARCHIVE
|
|||||||
vcpkg_extract_source_archive(${ARCHIVE})
|
vcpkg_extract_source_archive(${ARCHIVE})
|
||||||
|
|
||||||
vcpkg_apply_patches(
|
vcpkg_apply_patches(
|
||||||
SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/freetype-2.6.3
|
SOURCE_PATH ${SOURCE_PATH}
|
||||||
PATCHES ${CMAKE_CURRENT_LIST_DIR}/0001-Support-Windows-DLLs-via-CMAKE_WINDOWS_EXPORT_ALL_SY.patch
|
PATCHES ${CMAKE_CURRENT_LIST_DIR}/0001-Support-Windows-DLLs-via-CMAKE_WINDOWS_EXPORT_ALL_SY.patch
|
||||||
)
|
)
|
||||||
|
|
||||||
vcpkg_configure_cmake(
|
vcpkg_configure_cmake(
|
||||||
SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/freetype-2.6.3
|
SOURCE_PATH ${SOURCE_PATH}
|
||||||
OPTIONS
|
OPTIONS
|
||||||
-DBUILD_SHARED_LIBS=ON
|
-DBUILD_SHARED_LIBS=ON
|
||||||
)
|
)
|
||||||
@ -31,9 +32,9 @@ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib/cmake)
|
|||||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/lib/cmake)
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/lib/cmake)
|
||||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
||||||
file(COPY
|
file(COPY
|
||||||
${CURRENT_BUILDTREES_DIR}/src/freetype-2.6.3/docs/LICENSE.TXT
|
${SOURCE_PATH}/docs/LICENSE.TXT
|
||||||
${CURRENT_BUILDTREES_DIR}/src/freetype-2.6.3/docs/FTL.TXT
|
${SOURCE_PATH}/docs/FTL.TXT
|
||||||
${CURRENT_BUILDTREES_DIR}/src/freetype-2.6.3/docs/GPLv2.TXT
|
${SOURCE_PATH}/docs/GPLv2.TXT
|
||||||
DESTINATION ${CURRENT_PACKAGES_DIR}/share/freetype
|
DESTINATION ${CURRENT_PACKAGES_DIR}/share/freetype
|
||||||
)
|
)
|
||||||
file(RENAME ${CURRENT_PACKAGES_DIR}/share/freetype/LICENSE.TXT ${CURRENT_PACKAGES_DIR}/share/freetype/copyright)
|
file(RENAME ${CURRENT_PACKAGES_DIR}/share/freetype/LICENSE.TXT ${CURRENT_PACKAGES_DIR}/share/freetype/copyright)
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
include(vcpkg_common_functions)
|
include(vcpkg_common_functions)
|
||||||
|
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/glew-1.13.0)
|
||||||
vcpkg_download_distfile(ARCHIVE_FILE
|
vcpkg_download_distfile(ARCHIVE_FILE
|
||||||
URLS "http://downloads.sourceforge.net/project/glew/glew/1.13.0/glew-1.13.0.tgz"
|
URLS "http://downloads.sourceforge.net/project/glew/glew/1.13.0/glew-1.13.0.tgz"
|
||||||
FILENAME "glew-1.13.0.tgz"
|
FILENAME "glew-1.13.0.tgz"
|
||||||
@ -15,9 +16,9 @@ ELSE()
|
|||||||
SET(BUILD_ARCH ${TRIPLET_SYSTEM_ARCH})
|
SET(BUILD_ARCH ${TRIPLET_SYSTEM_ARCH})
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
if(NOT EXISTS ${CURRENT_BUILDTREES_DIR}/src/glew-1.13.0/build/vc12/glew_shared14.vcxproj)
|
if(NOT EXISTS ${SOURCE_PATH}/build/vc12/glew_shared14.vcxproj)
|
||||||
message(STATUS "Upgrading projects")
|
message(STATUS "Upgrading projects")
|
||||||
file(READ ${CURRENT_BUILDTREES_DIR}/src/glew-1.13.0/build/vc12/glew_shared.vcxproj PROJ)
|
file(READ ${SOURCE_PATH}/build/vc12/glew_shared.vcxproj PROJ)
|
||||||
string(REPLACE
|
string(REPLACE
|
||||||
"<PlatformToolset>v120</PlatformToolset>"
|
"<PlatformToolset>v120</PlatformToolset>"
|
||||||
"<PlatformToolset>v140</PlatformToolset>"
|
"<PlatformToolset>v140</PlatformToolset>"
|
||||||
@ -26,38 +27,38 @@ if(NOT EXISTS ${CURRENT_BUILDTREES_DIR}/src/glew-1.13.0/build/vc12/glew_shared14
|
|||||||
"opengl32.lib%"
|
"opengl32.lib%"
|
||||||
"opengl32.lib\;%"
|
"opengl32.lib\;%"
|
||||||
PROJ ${PROJ})
|
PROJ ${PROJ})
|
||||||
file(WRITE ${CURRENT_BUILDTREES_DIR}/src/glew-1.13.0/build/vc12/glew_shared14.vcxproj ${PROJ})
|
file(WRITE ${SOURCE_PATH}/build/vc12/glew_shared14.vcxproj ${PROJ})
|
||||||
endif()
|
endif()
|
||||||
message(STATUS "Upgrading projects done")
|
message(STATUS "Upgrading projects done")
|
||||||
|
|
||||||
vcpkg_build_msbuild(
|
vcpkg_build_msbuild(
|
||||||
PROJECT_PATH ${CURRENT_BUILDTREES_DIR}/src/glew-1.13.0/build/vc12/glew_shared14.vcxproj
|
PROJECT_PATH ${SOURCE_PATH}/build/vc12/glew_shared14.vcxproj
|
||||||
)
|
)
|
||||||
|
|
||||||
message(STATUS "Installing")
|
message(STATUS "Installing")
|
||||||
|
|
||||||
file(INSTALL
|
file(INSTALL
|
||||||
${CURRENT_BUILDTREES_DIR}/src/glew-1.13.0/bin/Debug/${BUILD_ARCH}/glew32d.dll
|
${SOURCE_PATH}/bin/Debug/${BUILD_ARCH}/glew32d.dll
|
||||||
${CURRENT_BUILDTREES_DIR}/src/glew-1.13.0/bin/Debug/${BUILD_ARCH}/glew32d.pdb
|
${SOURCE_PATH}/bin/Debug/${BUILD_ARCH}/glew32d.pdb
|
||||||
DESTINATION ${CURRENT_PACKAGES_DIR}/debug/bin
|
DESTINATION ${CURRENT_PACKAGES_DIR}/debug/bin
|
||||||
)
|
)
|
||||||
file(INSTALL
|
file(INSTALL
|
||||||
${CURRENT_BUILDTREES_DIR}/src/glew-1.13.0/bin/Release/${BUILD_ARCH}/glew32.dll
|
${SOURCE_PATH}/bin/Release/${BUILD_ARCH}/glew32.dll
|
||||||
${CURRENT_BUILDTREES_DIR}/src/glew-1.13.0/bin/Release/${BUILD_ARCH}/glew32.pdb
|
${SOURCE_PATH}/bin/Release/${BUILD_ARCH}/glew32.pdb
|
||||||
DESTINATION ${CURRENT_PACKAGES_DIR}/bin
|
DESTINATION ${CURRENT_PACKAGES_DIR}/bin
|
||||||
)
|
)
|
||||||
file(INSTALL
|
file(INSTALL
|
||||||
${CURRENT_BUILDTREES_DIR}/src/glew-1.13.0/lib/Debug/${BUILD_ARCH}/glew32d.lib
|
${SOURCE_PATH}/lib/Debug/${BUILD_ARCH}/glew32d.lib
|
||||||
DESTINATION ${CURRENT_PACKAGES_DIR}/debug/lib
|
DESTINATION ${CURRENT_PACKAGES_DIR}/debug/lib
|
||||||
)
|
)
|
||||||
file(INSTALL
|
file(INSTALL
|
||||||
${CURRENT_BUILDTREES_DIR}/src/glew-1.13.0/lib/Release/${BUILD_ARCH}/glew32.lib
|
${SOURCE_PATH}/lib/Release/${BUILD_ARCH}/glew32.lib
|
||||||
DESTINATION ${CURRENT_PACKAGES_DIR}/lib
|
DESTINATION ${CURRENT_PACKAGES_DIR}/lib
|
||||||
)
|
)
|
||||||
file(INSTALL
|
file(INSTALL
|
||||||
${CURRENT_BUILDTREES_DIR}/src/glew-1.13.0/include/GL
|
${SOURCE_PATH}/include/GL
|
||||||
DESTINATION ${CURRENT_PACKAGES_DIR}/include
|
DESTINATION ${CURRENT_PACKAGES_DIR}/include
|
||||||
)
|
)
|
||||||
file(INSTALL ${CURRENT_BUILDTREES_DIR}/src/glew-1.13.0/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/glew RENAME copyright)
|
file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/glew RENAME copyright)
|
||||||
vcpkg_copy_pdbs()
|
vcpkg_copy_pdbs()
|
||||||
message(STATUS "Installing done")
|
message(STATUS "Installing done")
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
include(vcpkg_common_functions)
|
include(vcpkg_common_functions)
|
||||||
|
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/glfw-3.1.2)
|
||||||
vcpkg_download_distfile(ARCHIVE
|
vcpkg_download_distfile(ARCHIVE
|
||||||
URLS "https://github.com/glfw/glfw/releases/download/3.1.2/glfw-3.1.2.zip"
|
URLS "https://github.com/glfw/glfw/releases/download/3.1.2/glfw-3.1.2.zip"
|
||||||
FILENAME "glfw-3.1.2.zip"
|
FILENAME "glfw-3.1.2.zip"
|
||||||
@ -7,20 +8,20 @@ vcpkg_download_distfile(ARCHIVE
|
|||||||
vcpkg_extract_source_archive(${ARCHIVE})
|
vcpkg_extract_source_archive(${ARCHIVE})
|
||||||
|
|
||||||
if(NOT EXISTS ${CURRENT_BUILDTREES_DIR}/patch.stamp)
|
if(NOT EXISTS ${CURRENT_BUILDTREES_DIR}/patch.stamp)
|
||||||
file(READ ${CURRENT_BUILDTREES_DIR}/src/glfw-3.1.2/src/glfw3Config.cmake.in CONFIG)
|
file(READ ${SOURCE_PATH}/src/glfw3Config.cmake.in CONFIG)
|
||||||
string(REPLACE "\"@GLFW_LIB_NAME@\"" "NAMES @GLFW_LIB_NAME@ @GLFW_LIB_NAME@dll"
|
string(REPLACE "\"@GLFW_LIB_NAME@\"" "NAMES @GLFW_LIB_NAME@ @GLFW_LIB_NAME@dll"
|
||||||
CONFIG ${CONFIG}
|
CONFIG ${CONFIG}
|
||||||
)
|
)
|
||||||
string(REPLACE "@PACKAGE_CMAKE_INSTALL_PREFIX@" "@PACKAGE_CMAKE_INSTALL_PREFIX@/../.."
|
string(REPLACE "@PACKAGE_CMAKE_INSTALL_PREFIX@" "@PACKAGE_CMAKE_INSTALL_PREFIX@/../.."
|
||||||
CONFIG ${CONFIG}
|
CONFIG ${CONFIG}
|
||||||
)
|
)
|
||||||
file(WRITE ${CURRENT_BUILDTREES_DIR}/src/glfw-3.1.2/src/glfw3Config.cmake.in ${CONFIG})
|
file(WRITE ${SOURCE_PATH}/src/glfw3Config.cmake.in ${CONFIG})
|
||||||
file(APPEND ${CURRENT_BUILDTREES_DIR}/src/glfw-3.1.2/src/glfw3Config.cmake.in "set(GLFW3_LIBRARIES \${GLFW3_LIBRARY})\n")
|
file(APPEND ${SOURCE_PATH}/src/glfw3Config.cmake.in "set(GLFW3_LIBRARIES \${GLFW3_LIBRARY})\n")
|
||||||
file(WRITE ${CURRENT_BUILDTREES_DIR}/patch.stamp)
|
file(WRITE ${CURRENT_BUILDTREES_DIR}/patch.stamp)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
vcpkg_configure_cmake(
|
vcpkg_configure_cmake(
|
||||||
SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/glfw-3.1.2
|
SOURCE_PATH ${SOURCE_PATH}
|
||||||
OPTIONS
|
OPTIONS
|
||||||
-DBUILD_SHARED_LIBS=ON
|
-DBUILD_SHARED_LIBS=ON
|
||||||
-DGLFW_BUILD_EXAMPLES=OFF
|
-DGLFW_BUILD_EXAMPLES=OFF
|
||||||
@ -52,7 +53,7 @@ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|||||||
file(REMOVE ${CURRENT_PACKAGES_DIR}/lib/glfw3.lib)
|
file(REMOVE ${CURRENT_PACKAGES_DIR}/lib/glfw3.lib)
|
||||||
file(REMOVE ${CURRENT_PACKAGES_DIR}/debug/lib/glfw3.lib)
|
file(REMOVE ${CURRENT_PACKAGES_DIR}/debug/lib/glfw3.lib)
|
||||||
|
|
||||||
file(COPY ${CURRENT_BUILDTREES_DIR}/src/glfw-3.1.2/COPYING.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/glfw3)
|
file(COPY ${SOURCE_PATH}/COPYING.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/glfw3)
|
||||||
file(RENAME ${CURRENT_PACKAGES_DIR}/share/glfw3/COPYING.txt ${CURRENT_PACKAGES_DIR}/share/glfw3/copyright)
|
file(RENAME ${CURRENT_PACKAGES_DIR}/share/glfw3/COPYING.txt ${CURRENT_PACKAGES_DIR}/share/glfw3/copyright)
|
||||||
vcpkg_copy_pdbs()
|
vcpkg_copy_pdbs()
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
include(vcpkg_common_functions)
|
include(vcpkg_common_functions)
|
||||||
|
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/glm)
|
||||||
vcpkg_download_distfile(ARCHIVE
|
vcpkg_download_distfile(ARCHIVE
|
||||||
URLS "https://github.com/g-truc/glm/releases/download/0.9.8.0/glm-0.9.8.0.zip"
|
URLS "https://github.com/g-truc/glm/releases/download/0.9.8.0/glm-0.9.8.0.zip"
|
||||||
FILENAME "glm-0.9.8.0.zip"
|
FILENAME "glm-0.9.8.0.zip"
|
||||||
@ -7,12 +8,12 @@ vcpkg_download_distfile(ARCHIVE
|
|||||||
vcpkg_extract_source_archive(${ARCHIVE})
|
vcpkg_extract_source_archive(${ARCHIVE})
|
||||||
|
|
||||||
# Remove glm/CMakeLists.txt
|
# Remove glm/CMakeLists.txt
|
||||||
file(REMOVE ${CURRENT_BUILDTREES_DIR}/src/glm/glm/CMakeLists.txt)
|
file(REMOVE ${SOURCE_PATH}/glm/CMakeLists.txt)
|
||||||
|
|
||||||
# Put the license file where vcpkg expects it
|
# Put the license file where vcpkg expects it
|
||||||
file(COPY ${CURRENT_BUILDTREES_DIR}/src/glm/copying.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/glm/)
|
file(COPY ${SOURCE_PATH}/copying.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/glm/)
|
||||||
file(RENAME ${CURRENT_PACKAGES_DIR}/share/glm/copying.txt ${CURRENT_PACKAGES_DIR}/share/glm/copyright)
|
file(RENAME ${CURRENT_PACKAGES_DIR}/share/glm/copying.txt ${CURRENT_PACKAGES_DIR}/share/glm/copyright)
|
||||||
|
|
||||||
# Copy the glm header files
|
# Copy the glm header files
|
||||||
file(GLOB HEADER_FILES ${CURRENT_BUILDTREES_DIR}/src/glm/glm/*)
|
file(GLOB HEADER_FILES ${SOURCE_PATH}/glm/*)
|
||||||
file(COPY ${HEADER_FILES} DESTINATION ${CURRENT_PACKAGES_DIR}/include/glm)
|
file(COPY ${HEADER_FILES} DESTINATION ${CURRENT_PACKAGES_DIR}/include/glm)
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
include(vcpkg_common_functions)
|
include(vcpkg_common_functions)
|
||||||
|
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/gsl-fd5ad87bf25cb5e87104ee58106dee9bc809cd93)
|
||||||
vcpkg_download_distfile(ARCHIVE
|
vcpkg_download_distfile(ARCHIVE
|
||||||
URLS "https://github.com/Microsoft/GSL/archive/fd5ad87bf25cb5e87104ee58106dee9bc809cd93.zip"
|
URLS "https://github.com/Microsoft/GSL/archive/fd5ad87bf25cb5e87104ee58106dee9bc809cd93.zip"
|
||||||
FILENAME "gsl-fd5ad87bf.zip"
|
FILENAME "gsl-fd5ad87bf.zip"
|
||||||
@ -6,8 +7,8 @@ vcpkg_download_distfile(ARCHIVE
|
|||||||
)
|
)
|
||||||
vcpkg_extract_source_archive(${ARCHIVE})
|
vcpkg_extract_source_archive(${ARCHIVE})
|
||||||
|
|
||||||
file(INSTALL ${CURRENT_BUILDTREES_DIR}/src/gsl-fd5ad87bf25cb5e87104ee58106dee9bc809cd93/gsl DESTINATION ${CURRENT_PACKAGES_DIR}/include FILES_MATCHING PATTERN "*")
|
file(INSTALL ${SOURCE_PATH}/gsl DESTINATION ${CURRENT_PACKAGES_DIR}/include FILES_MATCHING PATTERN "*")
|
||||||
|
|
||||||
# Handle copyright
|
# Handle copyright
|
||||||
file(COPY ${CURRENT_BUILDTREES_DIR}/src/gsl-fd5ad87bf25cb5e87104ee58106dee9bc809cd93/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/gsl)
|
file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/gsl)
|
||||||
file(RENAME ${CURRENT_PACKAGES_DIR}/share/gsl/LICENSE ${CURRENT_PACKAGES_DIR}/share/gsl/copyright)
|
file(RENAME ${CURRENT_PACKAGES_DIR}/share/gsl/LICENSE ${CURRENT_PACKAGES_DIR}/share/gsl/copyright)
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
include(vcpkg_common_functions)
|
include(vcpkg_common_functions)
|
||||||
|
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-src/libuv-1.9.1)
|
||||||
vcpkg_download_distfile(ARCHIVE
|
vcpkg_download_distfile(ARCHIVE
|
||||||
URLS "https://github.com/libuv/libuv/archive/v1.9.1.zip"
|
URLS "https://github.com/libuv/libuv/archive/v1.9.1.zip"
|
||||||
FILENAME "libuv-v1.9.1.zip"
|
FILENAME "libuv-v1.9.1.zip"
|
||||||
@ -52,13 +53,13 @@ if(TRIPLET_SYSTEM_ARCH MATCHES "x86|x64")
|
|||||||
message(STATUS "Building Release")
|
message(STATUS "Building Release")
|
||||||
vcpkg_execute_required_process(
|
vcpkg_execute_required_process(
|
||||||
COMMAND cmd /c vcbuild.bat release ${TRIPLET_SYSTEM_ARCH} shared
|
COMMAND cmd /c vcbuild.bat release ${TRIPLET_SYSTEM_ARCH} shared
|
||||||
WORKING_DIRECTORY ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-src/libuv-1.9.1
|
WORKING_DIRECTORY ${SOURCE_PATH}
|
||||||
LOGNAME ${TARGET_TRIPLET}-build-rel
|
LOGNAME ${TARGET_TRIPLET}-build-rel
|
||||||
)
|
)
|
||||||
message(STATUS "Building Debug")
|
message(STATUS "Building Debug")
|
||||||
vcpkg_execute_required_process(
|
vcpkg_execute_required_process(
|
||||||
COMMAND cmd /c vcbuild.bat debug ${TRIPLET_SYSTEM_ARCH} shared
|
COMMAND cmd /c vcbuild.bat debug ${TRIPLET_SYSTEM_ARCH} shared
|
||||||
WORKING_DIRECTORY ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-src/libuv-1.9.1
|
WORKING_DIRECTORY ${SOURCE_PATH}
|
||||||
LOGNAME ${TARGET_TRIPLET}-build-dbg
|
LOGNAME ${TARGET_TRIPLET}-build-dbg
|
||||||
)
|
)
|
||||||
else()
|
else()
|
||||||
@ -75,28 +76,28 @@ file(MAKE_DIRECTORY
|
|||||||
)
|
)
|
||||||
|
|
||||||
file(COPY
|
file(COPY
|
||||||
${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-src/libuv-1.9.1/include/tree.h
|
${SOURCE_PATH}/include/tree.h
|
||||||
${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-src/libuv-1.9.1/include/uv.h
|
${SOURCE_PATH}/include/uv.h
|
||||||
${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-src/libuv-1.9.1/include/uv-version.h
|
${SOURCE_PATH}/include/uv-version.h
|
||||||
${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-src/libuv-1.9.1/include/uv-errno.h
|
${SOURCE_PATH}/include/uv-errno.h
|
||||||
${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-src/libuv-1.9.1/include/uv-threadpool.h
|
${SOURCE_PATH}/include/uv-threadpool.h
|
||||||
${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-src/libuv-1.9.1/include/uv-win.h
|
${SOURCE_PATH}/include/uv-win.h
|
||||||
DESTINATION ${CURRENT_PACKAGES_DIR}/include)
|
DESTINATION ${CURRENT_PACKAGES_DIR}/include)
|
||||||
|
|
||||||
file(COPY
|
file(COPY
|
||||||
${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-src/libuv-1.9.1/Debug/libuv.dll
|
${SOURCE_PATH}/Debug/libuv.dll
|
||||||
DESTINATION ${CURRENT_PACKAGES_DIR}/debug/bin)
|
DESTINATION ${CURRENT_PACKAGES_DIR}/debug/bin)
|
||||||
file(COPY
|
file(COPY
|
||||||
${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-src/libuv-1.9.1/Debug/libuv.lib
|
${SOURCE_PATH}/Debug/libuv.lib
|
||||||
DESTINATION ${CURRENT_PACKAGES_DIR}/debug/lib)
|
DESTINATION ${CURRENT_PACKAGES_DIR}/debug/lib)
|
||||||
file(COPY
|
file(COPY
|
||||||
${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-src/libuv-1.9.1/Release/libuv.dll
|
${SOURCE_PATH}/Release/libuv.dll
|
||||||
DESTINATION ${CURRENT_PACKAGES_DIR}/bin)
|
DESTINATION ${CURRENT_PACKAGES_DIR}/bin)
|
||||||
file(COPY
|
file(COPY
|
||||||
${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-src/libuv-1.9.1/Release/libuv.lib
|
${SOURCE_PATH}/Release/libuv.lib
|
||||||
DESTINATION ${CURRENT_PACKAGES_DIR}/lib)
|
DESTINATION ${CURRENT_PACKAGES_DIR}/lib)
|
||||||
file(COPY
|
file(COPY
|
||||||
${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-src/libuv-1.9.1/LICENSE
|
${SOURCE_PATH}/LICENSE
|
||||||
DESTINATION ${CURRENT_PACKAGES_DIR}/share/libuv)
|
DESTINATION ${CURRENT_PACKAGES_DIR}/share/libuv)
|
||||||
|
|
||||||
file(RENAME
|
file(RENAME
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
include(vcpkg_common_functions)
|
include(vcpkg_common_functions)
|
||||||
|
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/libwebsockets-2.0.0)
|
||||||
vcpkg_download_distfile(ARCHIVE
|
vcpkg_download_distfile(ARCHIVE
|
||||||
URLS "https://github.com/warmcat/libwebsockets/archive/v2.0.0.zip"
|
URLS "https://github.com/warmcat/libwebsockets/archive/v2.0.0.zip"
|
||||||
FILENAME "libwebsockets-v2.0.0.zip"
|
FILENAME "libwebsockets-v2.0.0.zip"
|
||||||
@ -7,7 +8,7 @@ vcpkg_download_distfile(ARCHIVE
|
|||||||
vcpkg_extract_source_archive(${ARCHIVE})
|
vcpkg_extract_source_archive(${ARCHIVE})
|
||||||
|
|
||||||
vcpkg_configure_cmake(
|
vcpkg_configure_cmake(
|
||||||
SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/libwebsockets-2.0.0
|
SOURCE_PATH ${SOURCE_PATH}
|
||||||
OPTIONS
|
OPTIONS
|
||||||
-DLWS_WITH_STATIC=OFF
|
-DLWS_WITH_STATIC=OFF
|
||||||
-DLWS_USE_BUNDLED_ZLIB=OFF
|
-DLWS_USE_BUNDLED_ZLIB=OFF
|
||||||
@ -30,6 +31,6 @@ file(RENAME
|
|||||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
||||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/cmake)
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/cmake)
|
||||||
|
|
||||||
file(COPY ${CURRENT_BUILDTREES_DIR}/src/libwebsockets-2.0.0/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/libwebsockets)
|
file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/libwebsockets)
|
||||||
file(RENAME ${CURRENT_PACKAGES_DIR}/share/libwebsockets/LICENSE ${CURRENT_PACKAGES_DIR}/share/libwebsockets/copyright)
|
file(RENAME ${CURRENT_PACKAGES_DIR}/share/libwebsockets/LICENSE ${CURRENT_PACKAGES_DIR}/share/libwebsockets/copyright)
|
||||||
vcpkg_copy_pdbs()
|
vcpkg_copy_pdbs()
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
include(vcpkg_common_functions)
|
include(vcpkg_common_functions)
|
||||||
|
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/mpg123-1.23.3)
|
||||||
vcpkg_download_distfile(ARCHIVE
|
vcpkg_download_distfile(ARCHIVE
|
||||||
URLS "http://downloads.sourceforge.net/project/mpg123/mpg123/1.23.3/mpg123-1.23.3.tar.bz2"
|
URLS "http://downloads.sourceforge.net/project/mpg123/mpg123/1.23.3/mpg123-1.23.3.tar.bz2"
|
||||||
FILENAME "mpg123-1.23.3.tar.bz2"
|
FILENAME "mpg123-1.23.3.tar.bz2"
|
||||||
@ -11,44 +12,44 @@ get_filename_component(YASM_EXE_PATH ${YASM} DIRECTORY)
|
|||||||
set(ENV{PATH} "${YASM_EXE_PATH};$ENV{PATH}")
|
set(ENV{PATH} "${YASM_EXE_PATH};$ENV{PATH}")
|
||||||
|
|
||||||
vcpkg_apply_patches(
|
vcpkg_apply_patches(
|
||||||
SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/mpg123-1.23.3
|
SOURCE_PATH ${SOURCE_PATH}
|
||||||
PATCHES ${CMAKE_CURRENT_LIST_DIR}/0001-Modify-2010-libmpg123.vcxproj-to-use-VS-2015-along-w.patch
|
PATCHES ${CMAKE_CURRENT_LIST_DIR}/0001-Modify-2010-libmpg123.vcxproj-to-use-VS-2015-along-w.patch
|
||||||
)
|
)
|
||||||
|
|
||||||
vcpkg_build_msbuild(
|
vcpkg_build_msbuild(
|
||||||
PROJECT_PATH ${CURRENT_BUILDTREES_DIR}/src/mpg123-1.23.3/ports/MSVC++/2010/libmpg123/libmpg123.vcxproj
|
PROJECT_PATH ${SOURCE_PATH}/ports/MSVC++/2010/libmpg123/libmpg123.vcxproj
|
||||||
RELEASE_CONFIGURATION Release_x86_Dll
|
RELEASE_CONFIGURATION Release_x86_Dll
|
||||||
DEBUG_CONFIGURATION Debug_x86_Dll
|
DEBUG_CONFIGURATION Debug_x86_Dll
|
||||||
)
|
)
|
||||||
|
|
||||||
message(STATUS "Installing")
|
message(STATUS "Installing")
|
||||||
file(INSTALL
|
file(INSTALL
|
||||||
${CURRENT_BUILDTREES_DIR}/src/mpg123-1.23.3/ports/MSVC++/2010/libmpg123/Debug/libmpg123.dll
|
${SOURCE_PATH}/ports/MSVC++/2010/libmpg123/Debug/libmpg123.dll
|
||||||
${CURRENT_BUILDTREES_DIR}/src/mpg123-1.23.3/ports/MSVC++/2010/libmpg123/Debug/libmpg123.pdb
|
${SOURCE_PATH}/ports/MSVC++/2010/libmpg123/Debug/libmpg123.pdb
|
||||||
DESTINATION ${CURRENT_PACKAGES_DIR}/debug/bin
|
DESTINATION ${CURRENT_PACKAGES_DIR}/debug/bin
|
||||||
)
|
)
|
||||||
file(INSTALL
|
file(INSTALL
|
||||||
${CURRENT_BUILDTREES_DIR}/src/mpg123-1.23.3/ports/MSVC++/2010/libmpg123/Release/libmpg123.dll
|
${SOURCE_PATH}/ports/MSVC++/2010/libmpg123/Release/libmpg123.dll
|
||||||
${CURRENT_BUILDTREES_DIR}/src/mpg123-1.23.3/ports/MSVC++/2010/libmpg123/Release/libmpg123.pdb
|
${SOURCE_PATH}/ports/MSVC++/2010/libmpg123/Release/libmpg123.pdb
|
||||||
DESTINATION ${CURRENT_PACKAGES_DIR}/bin
|
DESTINATION ${CURRENT_PACKAGES_DIR}/bin
|
||||||
)
|
)
|
||||||
file(INSTALL
|
file(INSTALL
|
||||||
${CURRENT_BUILDTREES_DIR}/src/mpg123-1.23.3/ports/MSVC++/2010/libmpg123/Debug/libmpg123.lib
|
${SOURCE_PATH}/ports/MSVC++/2010/libmpg123/Debug/libmpg123.lib
|
||||||
DESTINATION ${CURRENT_PACKAGES_DIR}/debug/lib
|
DESTINATION ${CURRENT_PACKAGES_DIR}/debug/lib
|
||||||
)
|
)
|
||||||
file(INSTALL
|
file(INSTALL
|
||||||
${CURRENT_BUILDTREES_DIR}/src/mpg123-1.23.3/ports/MSVC++/2010/libmpg123/Release/libmpg123.lib
|
${SOURCE_PATH}/ports/MSVC++/2010/libmpg123/Release/libmpg123.lib
|
||||||
DESTINATION ${CURRENT_PACKAGES_DIR}/lib
|
DESTINATION ${CURRENT_PACKAGES_DIR}/lib
|
||||||
)
|
)
|
||||||
file(INSTALL
|
file(INSTALL
|
||||||
${CURRENT_BUILDTREES_DIR}/src/mpg123-1.23.3/ports/MSVC++/mpg123.h
|
${SOURCE_PATH}/ports/MSVC++/mpg123.h
|
||||||
DESTINATION ${CURRENT_PACKAGES_DIR}/include
|
DESTINATION ${CURRENT_PACKAGES_DIR}/include
|
||||||
)
|
)
|
||||||
file(INSTALL
|
file(INSTALL
|
||||||
${CURRENT_BUILDTREES_DIR}/src/mpg123-1.23.3/src/libmpg123/mpg123.h.in
|
${SOURCE_PATH}/src/libmpg123/mpg123.h.in
|
||||||
DESTINATION ${CURRENT_PACKAGES_DIR}/include
|
DESTINATION ${CURRENT_PACKAGES_DIR}/include
|
||||||
)
|
)
|
||||||
file(INSTALL ${CURRENT_BUILDTREES_DIR}/src/mpg123-1.23.3/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/mpg123 RENAME copyright)
|
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/mpg123 RENAME copyright)
|
||||||
vcpkg_copy_pdbs()
|
vcpkg_copy_pdbs()
|
||||||
|
|
||||||
message(STATUS "Installing done")
|
message(STATUS "Installing done")
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
include(vcpkg_common_functions)
|
include(vcpkg_common_functions)
|
||||||
|
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/mpir-2.7.2)
|
||||||
vcpkg_download_distfile(ARCHIVE_FILE
|
vcpkg_download_distfile(ARCHIVE_FILE
|
||||||
URLS "http://mpir.org/mpir-2.7.2.tar.lz"
|
URLS "http://mpir.org/mpir-2.7.2.tar.lz"
|
||||||
FILENAME "mpir-2.7.2.tar.lz"
|
FILENAME "mpir-2.7.2.tar.lz"
|
||||||
@ -7,7 +8,7 @@ vcpkg_download_distfile(ARCHIVE_FILE
|
|||||||
vcpkg_extract_source_archive(${ARCHIVE_FILE})
|
vcpkg_extract_source_archive(${ARCHIVE_FILE})
|
||||||
|
|
||||||
vcpkg_build_msbuild(
|
vcpkg_build_msbuild(
|
||||||
PROJECT_PATH ${CURRENT_BUILDTREES_DIR}/src/mpir-2.7.2/build.vc14/dll_mpir_gc/dll_mpir_gc.vcxproj
|
PROJECT_PATH ${SOURCE_PATH}/build.vc14/dll_mpir_gc/dll_mpir_gc.vcxproj
|
||||||
)
|
)
|
||||||
|
|
||||||
IF (TRIPLET_SYSTEM_ARCH MATCHES "x86")
|
IF (TRIPLET_SYSTEM_ARCH MATCHES "x86")
|
||||||
@ -17,32 +18,32 @@ ELSE()
|
|||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
file(INSTALL
|
file(INSTALL
|
||||||
${CURRENT_BUILDTREES_DIR}/src/mpir-2.7.2/dll/${BUILD_ARCH}/Debug/gmp.h
|
${SOURCE_PATH}/dll/${BUILD_ARCH}/Debug/gmp.h
|
||||||
${CURRENT_BUILDTREES_DIR}/src/mpir-2.7.2/dll/${BUILD_ARCH}/Debug/gmpxx.h
|
${SOURCE_PATH}/dll/${BUILD_ARCH}/Debug/gmpxx.h
|
||||||
${CURRENT_BUILDTREES_DIR}/src/mpir-2.7.2/dll/${BUILD_ARCH}/Debug/mpir.h
|
${SOURCE_PATH}/dll/${BUILD_ARCH}/Debug/mpir.h
|
||||||
${CURRENT_BUILDTREES_DIR}/src/mpir-2.7.2/dll/${BUILD_ARCH}/Debug/mpirxx.h
|
${SOURCE_PATH}/dll/${BUILD_ARCH}/Debug/mpirxx.h
|
||||||
DESTINATION ${CURRENT_PACKAGES_DIR}/include
|
DESTINATION ${CURRENT_PACKAGES_DIR}/include
|
||||||
)
|
)
|
||||||
file(INSTALL
|
file(INSTALL
|
||||||
${CURRENT_BUILDTREES_DIR}/src/mpir-2.7.2/dll/${BUILD_ARCH}/Debug/mpir.dll
|
${SOURCE_PATH}/dll/${BUILD_ARCH}/Debug/mpir.dll
|
||||||
${CURRENT_BUILDTREES_DIR}/src/mpir-2.7.2/dll/${BUILD_ARCH}/Debug/mpir.pdb
|
${SOURCE_PATH}/dll/${BUILD_ARCH}/Debug/mpir.pdb
|
||||||
DESTINATION ${CURRENT_PACKAGES_DIR}/debug/bin
|
DESTINATION ${CURRENT_PACKAGES_DIR}/debug/bin
|
||||||
)
|
)
|
||||||
file(INSTALL
|
file(INSTALL
|
||||||
${CURRENT_BUILDTREES_DIR}/src/mpir-2.7.2/dll/${BUILD_ARCH}/Release/mpir.dll
|
${SOURCE_PATH}/dll/${BUILD_ARCH}/Release/mpir.dll
|
||||||
${CURRENT_BUILDTREES_DIR}/src/mpir-2.7.2/dll/${BUILD_ARCH}/Release/mpir.pdb
|
${SOURCE_PATH}/dll/${BUILD_ARCH}/Release/mpir.pdb
|
||||||
DESTINATION ${CURRENT_PACKAGES_DIR}/bin
|
DESTINATION ${CURRENT_PACKAGES_DIR}/bin
|
||||||
)
|
)
|
||||||
file(INSTALL
|
file(INSTALL
|
||||||
${CURRENT_BUILDTREES_DIR}/src/mpir-2.7.2/dll/${BUILD_ARCH}/Debug/mpir.lib
|
${SOURCE_PATH}/dll/${BUILD_ARCH}/Debug/mpir.lib
|
||||||
DESTINATION ${CURRENT_PACKAGES_DIR}/debug/lib
|
DESTINATION ${CURRENT_PACKAGES_DIR}/debug/lib
|
||||||
)
|
)
|
||||||
file(INSTALL
|
file(INSTALL
|
||||||
${CURRENT_BUILDTREES_DIR}/src/mpir-2.7.2/dll/${BUILD_ARCH}/Release/mpir.lib
|
${SOURCE_PATH}/dll/${BUILD_ARCH}/Release/mpir.lib
|
||||||
DESTINATION ${CURRENT_PACKAGES_DIR}/lib
|
DESTINATION ${CURRENT_PACKAGES_DIR}/lib
|
||||||
)
|
)
|
||||||
|
|
||||||
file(INSTALL ${CURRENT_BUILDTREES_DIR}/src/mpir-2.7.2/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/mpir RENAME copyright)
|
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/mpir RENAME copyright)
|
||||||
|
|
||||||
vcpkg_copy_pdbs()
|
vcpkg_copy_pdbs()
|
||||||
message(STATUS "Installing done")
|
message(STATUS "Installing done")
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
include(vcpkg_common_functions)
|
include(vcpkg_common_functions)
|
||||||
|
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/openal-soft-1.17.2)
|
||||||
vcpkg_download_distfile(ARCHIVE
|
vcpkg_download_distfile(ARCHIVE
|
||||||
URLS "http://openal-soft.org/openal-releases/openal-soft-1.17.2.tar.bz2"
|
URLS "http://openal-soft.org/openal-releases/openal-soft-1.17.2.tar.bz2"
|
||||||
FILENAME "openal-soft-1.17.2.tar.bz2"
|
FILENAME "openal-soft-1.17.2.tar.bz2"
|
||||||
@ -8,7 +9,7 @@ vcpkg_download_distfile(ARCHIVE
|
|||||||
vcpkg_extract_source_archive(${ARCHIVE})
|
vcpkg_extract_source_archive(${ARCHIVE})
|
||||||
|
|
||||||
vcpkg_configure_cmake(
|
vcpkg_configure_cmake(
|
||||||
SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/openal-soft-1.17.2
|
SOURCE_PATH ${SOURCE_PATH}
|
||||||
OPTIONS
|
OPTIONS
|
||||||
-DALSOFT_UTILS=OFF
|
-DALSOFT_UTILS=OFF
|
||||||
-DALSOFT_NO_CONFIG_UTIL=ON
|
-DALSOFT_NO_CONFIG_UTIL=ON
|
||||||
@ -22,7 +23,7 @@ vcpkg_build_cmake()
|
|||||||
vcpkg_install_cmake()
|
vcpkg_install_cmake()
|
||||||
|
|
||||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
||||||
file(COPY ${CURRENT_BUILDTREES_DIR}/src/openal-soft-1.17.2/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/openal-soft)
|
file(COPY ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/openal-soft)
|
||||||
file(RENAME ${CURRENT_PACKAGES_DIR}/share/openal-soft/COPYING ${CURRENT_PACKAGES_DIR}/share/openal-soft/copyright)
|
file(RENAME ${CURRENT_PACKAGES_DIR}/share/openal-soft/COPYING ${CURRENT_PACKAGES_DIR}/share/openal-soft/copyright)
|
||||||
vcpkg_copy_pdbs()
|
vcpkg_copy_pdbs()
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
include(vcpkg_common_functions)
|
include(vcpkg_common_functions)
|
||||||
|
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/opencv-92387b1ef8fad15196dd5f7fb4931444a68bc93a)
|
||||||
vcpkg_download_distfile(ARCHIVE
|
vcpkg_download_distfile(ARCHIVE
|
||||||
URLS "https://github.com/opencv/opencv/archive/92387b1ef8fad15196dd5f7fb4931444a68bc93a.zip"
|
URLS "https://github.com/opencv/opencv/archive/92387b1ef8fad15196dd5f7fb4931444a68bc93a.zip"
|
||||||
FILENAME "opencv-92387b1ef8fad15196dd5f7fb4931444a68bc93a.zip"
|
FILENAME "opencv-92387b1ef8fad15196dd5f7fb4931444a68bc93a.zip"
|
||||||
@ -6,8 +7,6 @@ vcpkg_download_distfile(ARCHIVE
|
|||||||
)
|
)
|
||||||
vcpkg_extract_source_archive(${ARCHIVE})
|
vcpkg_extract_source_archive(${ARCHIVE})
|
||||||
|
|
||||||
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/opencv-92387b1ef8fad15196dd5f7fb4931444a68bc93a)
|
|
||||||
|
|
||||||
vcpkg_apply_patches(
|
vcpkg_apply_patches(
|
||||||
SOURCE_PATH ${SOURCE_PATH}
|
SOURCE_PATH ${SOURCE_PATH}
|
||||||
PATCHES "${CMAKE_CURRENT_LIST_DIR}/opencv-installation-options.patch"
|
PATCHES "${CMAKE_CURRENT_LIST_DIR}/opencv-installation-options.patch"
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
include(vcpkg_common_functions)
|
include(vcpkg_common_functions)
|
||||||
|
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/openssl-1.0.2h)
|
||||||
vcpkg_find_acquire_program(PERL)
|
vcpkg_find_acquire_program(PERL)
|
||||||
find_program(NMAKE nmake)
|
find_program(NMAKE nmake)
|
||||||
|
|
||||||
@ -11,10 +12,10 @@ vcpkg_download_distfile(OPENSSL_SOURCE_ARCHIVE
|
|||||||
SHA512 780601f6f3f32f42b6d7bbc4c593db39a3575f9db80294a10a68b2b0bb79448d9bd529ca700b9977354cbdfc65887c76af0aa7b90d3ee421f74ab53e6f15c303
|
SHA512 780601f6f3f32f42b6d7bbc4c593db39a3575f9db80294a10a68b2b0bb79448d9bd529ca700b9977354cbdfc65887c76af0aa7b90d3ee421f74ab53e6f15c303
|
||||||
)
|
)
|
||||||
|
|
||||||
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${CURRENT_BUILDTREES_DIR}/src/openssl-1.0.2h)
|
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
||||||
|
|
||||||
vcpkg_configure_cmake(
|
vcpkg_configure_cmake(
|
||||||
SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/openssl-1.0.2h
|
SOURCE_PATH ${SOURCE_PATH}
|
||||||
GENERATOR "NMake Makefiles"
|
GENERATOR "NMake Makefiles"
|
||||||
OPTIONS
|
OPTIONS
|
||||||
-DCURRENT_INSTALLED_DIR=${CURRENT_INSTALLED_DIR}
|
-DCURRENT_INSTALLED_DIR=${CURRENT_INSTALLED_DIR}
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
include(vcpkg_common_functions)
|
include(vcpkg_common_functions)
|
||||||
|
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/Range-V3-VS2015-ede9ad367fd5ec764fecb039c874614bd908e6b6)
|
||||||
vcpkg_download_distfile(ARCHIVE
|
vcpkg_download_distfile(ARCHIVE
|
||||||
URLS "https://github.com/Microsoft/Range-V3-VS2015/archive/ede9ad367fd5ec764fecb039c874614bd908e6b6.zip"
|
URLS "https://github.com/Microsoft/Range-V3-VS2015/archive/ede9ad367fd5ec764fecb039c874614bd908e6b6.zip"
|
||||||
FILENAME "range-v3-ede9ad367fd5ec764fecb039c874614bd908e6b6.zip"
|
FILENAME "range-v3-ede9ad367fd5ec764fecb039c874614bd908e6b6.zip"
|
||||||
@ -6,7 +7,7 @@ vcpkg_download_distfile(ARCHIVE
|
|||||||
)
|
)
|
||||||
vcpkg_extract_source_archive(${ARCHIVE})
|
vcpkg_extract_source_archive(${ARCHIVE})
|
||||||
|
|
||||||
file(COPY ${CURRENT_BUILDTREES_DIR}/src/Range-V3-VS2015-ede9ad367fd5ec764fecb039c874614bd908e6b6/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/range-v3)
|
file(COPY ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/range-v3)
|
||||||
file(RENAME ${CURRENT_PACKAGES_DIR}/share/range-v3/LICENSE.txt ${CURRENT_PACKAGES_DIR}/share/range-v3/copyright)
|
file(RENAME ${CURRENT_PACKAGES_DIR}/share/range-v3/LICENSE.txt ${CURRENT_PACKAGES_DIR}/share/range-v3/copyright)
|
||||||
file(INSTALL ${CURRENT_BUILDTREES_DIR}/src/Range-V3-VS2015-ede9ad367fd5ec764fecb039c874614bd908e6b6/include DESTINATION ${CURRENT_PACKAGES_DIR} FILES_MATCHING PATTERN "*.hpp")
|
file(INSTALL ${SOURCE_PATH}/include DESTINATION ${CURRENT_PACKAGES_DIR} FILES_MATCHING PATTERN "*.hpp")
|
||||||
vcpkg_copy_pdbs()
|
vcpkg_copy_pdbs()
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
include(vcpkg_common_functions)
|
include(vcpkg_common_functions)
|
||||||
|
SET(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/rapidjson-879def80f2e466cdf4c86dc7e53ea2dd4cafaea0)
|
||||||
vcpkg_download_distfile(ARCHIVE
|
vcpkg_download_distfile(ARCHIVE
|
||||||
URLS "https://github.com/miloyip/rapidjson/archive/879def80f2e466cdf4c86dc7e53ea2dd4cafaea0.zip"
|
URLS "https://github.com/miloyip/rapidjson/archive/879def80f2e466cdf4c86dc7e53ea2dd4cafaea0.zip"
|
||||||
FILENAME "rapidjson-879def80f2e466cdf4c86dc7e53ea2dd4cafaea0.zip"
|
FILENAME "rapidjson-879def80f2e466cdf4c86dc7e53ea2dd4cafaea0.zip"
|
||||||
@ -7,9 +8,9 @@ vcpkg_download_distfile(ARCHIVE
|
|||||||
vcpkg_extract_source_archive(${ARCHIVE})
|
vcpkg_extract_source_archive(${ARCHIVE})
|
||||||
|
|
||||||
# Put the licence file where vcpkg expects it
|
# Put the licence file where vcpkg expects it
|
||||||
file(COPY ${CURRENT_BUILDTREES_DIR}/src/rapidjson-879def80f2e466cdf4c86dc7e53ea2dd4cafaea0/license.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/rapidjson)
|
file(COPY ${SOURCE_PATH}/license.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/rapidjson)
|
||||||
file(RENAME ${CURRENT_PACKAGES_DIR}/share/rapidjson/license.txt ${CURRENT_PACKAGES_DIR}/share/rapidjson/copyright)
|
file(RENAME ${CURRENT_PACKAGES_DIR}/share/rapidjson/license.txt ${CURRENT_PACKAGES_DIR}/share/rapidjson/copyright)
|
||||||
|
|
||||||
# Copy the rapidjson header files
|
# Copy the rapidjson header files
|
||||||
file(INSTALL ${CURRENT_BUILDTREES_DIR}/src/rapidjson-879def80f2e466cdf4c86dc7e53ea2dd4cafaea0/include DESTINATION ${CURRENT_PACKAGES_DIR} FILES_MATCHING PATTERN "*.h")
|
file(INSTALL ${SOURCE_PATH}/include DESTINATION ${CURRENT_PACKAGES_DIR} FILES_MATCHING PATTERN "*.h")
|
||||||
vcpkg_copy_pdbs()
|
vcpkg_copy_pdbs()
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
include(vcpkg_common_functions)
|
include(vcpkg_common_functions)
|
||||||
|
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/rapidxml-1.13)
|
||||||
vcpkg_download_distfile(ARCHIVE
|
vcpkg_download_distfile(ARCHIVE
|
||||||
URLS "https://sourceforge.net/projects/rapidxml/files/rapidxml/rapidxml%201.13/rapidxml-1.13.zip/download"
|
URLS "https://sourceforge.net/projects/rapidxml/files/rapidxml/rapidxml%201.13/rapidxml-1.13.zip/download"
|
||||||
FILENAME "rapidxml-1.13.zip"
|
FILENAME "rapidxml-1.13.zip"
|
||||||
@ -7,8 +8,8 @@ vcpkg_download_distfile(ARCHIVE
|
|||||||
vcpkg_extract_source_archive(${ARCHIVE})
|
vcpkg_extract_source_archive(${ARCHIVE})
|
||||||
|
|
||||||
# Handle copyright
|
# Handle copyright
|
||||||
file(COPY ${CURRENT_BUILDTREES_DIR}/src/rapidxml-1.13/license.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/rapidxml)
|
file(COPY ${SOURCE_PATH}/license.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/rapidxml)
|
||||||
file(RENAME ${CURRENT_PACKAGES_DIR}/share/rapidxml/license.txt ${CURRENT_PACKAGES_DIR}/share/rapidxml/copyright)
|
file(RENAME ${CURRENT_PACKAGES_DIR}/share/rapidxml/license.txt ${CURRENT_PACKAGES_DIR}/share/rapidxml/copyright)
|
||||||
|
|
||||||
# Copy the header files
|
# Copy the header files
|
||||||
file(INSTALL ${CURRENT_BUILDTREES_DIR}/src/rapidxml-1.13/ DESTINATION ${CURRENT_PACKAGES_DIR}/include FILES_MATCHING PATTERN "*.hpp")
|
file(INSTALL ${SOURCE_PATH}/ DESTINATION ${CURRENT_PACKAGES_DIR}/include FILES_MATCHING PATTERN "*.hpp")
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
include(vcpkg_common_functions)
|
include(vcpkg_common_functions)
|
||||||
|
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/SDL2-2.0.4)
|
||||||
vcpkg_download_distfile(ARCHIVE_FILE
|
vcpkg_download_distfile(ARCHIVE_FILE
|
||||||
URLS "http://libsdl.org/release/SDL2-2.0.4.tar.gz"
|
URLS "http://libsdl.org/release/SDL2-2.0.4.tar.gz"
|
||||||
FILENAME "SDL2-2.0.4.tar.gz"
|
FILENAME "SDL2-2.0.4.tar.gz"
|
||||||
@ -8,27 +9,27 @@ vcpkg_extract_source_archive(${ARCHIVE_FILE})
|
|||||||
|
|
||||||
if(TRIPLET_SYSTEM_NAME MATCHES "WindowsStore")
|
if(TRIPLET_SYSTEM_NAME MATCHES "WindowsStore")
|
||||||
vcpkg_build_msbuild(
|
vcpkg_build_msbuild(
|
||||||
PROJECT_PATH ${CURRENT_BUILDTREES_DIR}/src/SDL2-2.0.4/VisualC-WinRT/UWP_VS2015/SDL-UWP.vcxproj
|
PROJECT_PATH ${SOURCE_PATH}/VisualC-WinRT/UWP_VS2015/SDL-UWP.vcxproj
|
||||||
)
|
)
|
||||||
|
|
||||||
file(COPY
|
file(COPY
|
||||||
${CURRENT_BUILDTREES_DIR}/src/SDL2-2.0.4/VisualC-WinRT/UWP_VS2015/Debug/SDL-UWP/SDL2.dll
|
${SOURCE_PATH}/VisualC-WinRT/UWP_VS2015/Debug/SDL-UWP/SDL2.dll
|
||||||
${CURRENT_BUILDTREES_DIR}/src/SDL2-2.0.4/VisualC-WinRT/UWP_VS2015/Debug/SDL-UWP/SDL2.pdb
|
${SOURCE_PATH}/VisualC-WinRT/UWP_VS2015/Debug/SDL-UWP/SDL2.pdb
|
||||||
DESTINATION ${CURRENT_PACKAGES_DIR}/debug/bin)
|
DESTINATION ${CURRENT_PACKAGES_DIR}/debug/bin)
|
||||||
file(COPY
|
file(COPY
|
||||||
${CURRENT_BUILDTREES_DIR}/src/SDL2-2.0.4/VisualC-WinRT/UWP_VS2015/Release/SDL-UWP/SDL2.dll
|
${SOURCE_PATH}/VisualC-WinRT/UWP_VS2015/Release/SDL-UWP/SDL2.dll
|
||||||
${CURRENT_BUILDTREES_DIR}/src/SDL2-2.0.4/VisualC-WinRT/UWP_VS2015/Release/SDL-UWP/SDL2.pdb
|
${SOURCE_PATH}/VisualC-WinRT/UWP_VS2015/Release/SDL-UWP/SDL2.pdb
|
||||||
DESTINATION ${CURRENT_PACKAGES_DIR}/bin)
|
DESTINATION ${CURRENT_PACKAGES_DIR}/bin)
|
||||||
file(COPY ${CURRENT_BUILDTREES_DIR}/src/SDL2-2.0.4/VisualC-WinRT/UWP_VS2015/Debug/SDL-UWP/SDL2.lib DESTINATION ${CURRENT_PACKAGES_DIR}/debug/lib)
|
file(COPY ${SOURCE_PATH}/VisualC-WinRT/UWP_VS2015/Debug/SDL-UWP/SDL2.lib DESTINATION ${CURRENT_PACKAGES_DIR}/debug/lib)
|
||||||
file(COPY ${CURRENT_BUILDTREES_DIR}/src/SDL2-2.0.4/VisualC-WinRT/UWP_VS2015/Release/SDL-UWP/SDL2.lib DESTINATION ${CURRENT_PACKAGES_DIR}/lib)
|
file(COPY ${SOURCE_PATH}/VisualC-WinRT/UWP_VS2015/Release/SDL-UWP/SDL2.lib DESTINATION ${CURRENT_PACKAGES_DIR}/lib)
|
||||||
|
|
||||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/include)
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/include)
|
||||||
file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/include)
|
file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/include)
|
||||||
file(COPY ${CURRENT_BUILDTREES_DIR}/src/SDL2-2.0.4/include DESTINATION ${CURRENT_PACKAGES_DIR}/include)
|
file(COPY ${SOURCE_PATH}/include DESTINATION ${CURRENT_PACKAGES_DIR}/include)
|
||||||
file(RENAME ${CURRENT_PACKAGES_DIR}/include/include ${CURRENT_PACKAGES_DIR}/include/SDL2)
|
file(RENAME ${CURRENT_PACKAGES_DIR}/include/include ${CURRENT_PACKAGES_DIR}/include/SDL2)
|
||||||
else()
|
else()
|
||||||
vcpkg_configure_cmake(
|
vcpkg_configure_cmake(
|
||||||
SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/SDL2-2.0.4
|
SOURCE_PATH ${SOURCE_PATH}
|
||||||
OPTIONS
|
OPTIONS
|
||||||
-DSDL_STATIC=OFF
|
-DSDL_STATIC=OFF
|
||||||
)
|
)
|
||||||
@ -39,5 +40,5 @@ else()
|
|||||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
file(INSTALL ${CURRENT_BUILDTREES_DIR}/src/SDL2-2.0.4/COPYING.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/sdl2 RENAME copyright)
|
file(INSTALL ${SOURCE_PATH}/COPYING.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/sdl2 RENAME copyright)
|
||||||
vcpkg_copy_pdbs()
|
vcpkg_copy_pdbs()
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
include(vcpkg_common_functions)
|
include(vcpkg_common_functions)
|
||||||
|
SET(SOURCE_PATH "${CURRENT_BUILDTREES_DIR}/src/Sery-1.0")
|
||||||
vcpkg_download_distfile(ARCHIVE
|
vcpkg_download_distfile(ARCHIVE
|
||||||
URLS "https://github.com/Ninetainedo/Sery/archive/v1.0.zip"
|
URLS "https://github.com/Ninetainedo/Sery/archive/v1.0.zip"
|
||||||
FILENAME "sery-1.0.0.zip"
|
FILENAME "sery-1.0.0.zip"
|
||||||
@ -6,10 +7,8 @@ vcpkg_download_distfile(ARCHIVE
|
|||||||
)
|
)
|
||||||
vcpkg_extract_source_archive(${ARCHIVE})
|
vcpkg_extract_source_archive(${ARCHIVE})
|
||||||
|
|
||||||
SET(SERY_ROOT_DIR "${CURRENT_BUILDTREES_DIR}/src/Sery-1.0")
|
|
||||||
|
|
||||||
vcpkg_configure_cmake(
|
vcpkg_configure_cmake(
|
||||||
SOURCE_PATH ${SERY_ROOT_DIR}
|
SOURCE_PATH ${SOURCE_PATH}
|
||||||
# OPTIONS -DUSE_THIS_IN_ALL_BUILDS=1 -DUSE_THIS_TOO=2
|
# OPTIONS -DUSE_THIS_IN_ALL_BUILDS=1 -DUSE_THIS_TOO=2
|
||||||
# OPTIONS_RELEASE -DOPTIMIZE=1
|
# OPTIONS_RELEASE -DOPTIMIZE=1
|
||||||
# OPTIONS_DEBUG -DDEBUGGABLE=1
|
# OPTIONS_DEBUG -DDEBUGGABLE=1
|
||||||
@ -23,7 +22,7 @@ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|||||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/cmake)
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/cmake)
|
||||||
|
|
||||||
# Handle copyright
|
# Handle copyright
|
||||||
file(COPY ${SERY_ROOT_DIR}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/sery)
|
file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/sery)
|
||||||
file(RENAME ${CURRENT_PACKAGES_DIR}/share/sery/LICENSE ${CURRENT_PACKAGES_DIR}/share/sery/copyright)
|
file(RENAME ${CURRENT_PACKAGES_DIR}/share/sery/LICENSE ${CURRENT_PACKAGES_DIR}/share/sery/copyright)
|
||||||
|
|
||||||
# Moves cmake files where appropriate
|
# Moves cmake files where appropriate
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
include(vcpkg_common_functions)
|
include(vcpkg_common_functions)
|
||||||
|
set(SOURCE_PATH ${CMAKE_CURRENT_LIST_DIR})
|
||||||
vcpkg_download_distfile(ARCHIVE
|
vcpkg_download_distfile(ARCHIVE
|
||||||
URLS "http://www.sqlite.org/2016/sqlite-amalgamation-3120200.zip"
|
URLS "http://www.sqlite.org/2016/sqlite-amalgamation-3120200.zip"
|
||||||
FILENAME "sqlite-amalgamation-3120200.zip"
|
FILENAME "sqlite-amalgamation-3120200.zip"
|
||||||
@ -7,7 +8,7 @@ vcpkg_download_distfile(ARCHIVE
|
|||||||
vcpkg_extract_source_archive(${ARCHIVE})
|
vcpkg_extract_source_archive(${ARCHIVE})
|
||||||
|
|
||||||
vcpkg_configure_cmake(
|
vcpkg_configure_cmake(
|
||||||
SOURCE_PATH ${CMAKE_CURRENT_LIST_DIR}
|
SOURCE_PATH ${SOURCE_PATH}
|
||||||
OPTIONS
|
OPTIONS
|
||||||
-DSOURCE=${CURRENT_BUILDTREES_DIR}/src/sqlite-amalgamation-3120200
|
-DSOURCE=${CURRENT_BUILDTREES_DIR}/src/sqlite-amalgamation-3120200
|
||||||
)
|
)
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
include(vcpkg_common_functions)
|
include(vcpkg_common_functions)
|
||||||
|
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/stb-e713a69f1ea6ee1e0d55725ed0731520045a5993)
|
||||||
vcpkg_download_distfile(ARCHIVE
|
vcpkg_download_distfile(ARCHIVE
|
||||||
URLS "https://github.com/nothings/stb/archive/e713a69f1ea6ee1e0d55725ed0731520045a5993.zip"
|
URLS "https://github.com/nothings/stb/archive/e713a69f1ea6ee1e0d55725ed0731520045a5993.zip"
|
||||||
FILENAME "stb-e713a69f1ea6ee1e0d55725ed0731520045a5993.zip"
|
FILENAME "stb-e713a69f1ea6ee1e0d55725ed0731520045a5993.zip"
|
||||||
@ -7,10 +8,9 @@ vcpkg_download_distfile(ARCHIVE
|
|||||||
vcpkg_extract_source_archive(${ARCHIVE})
|
vcpkg_extract_source_archive(${ARCHIVE})
|
||||||
|
|
||||||
# Put the licence file where vcpkg expects it
|
# Put the licence file where vcpkg expects it
|
||||||
set(SOURCE_DIR ${CURRENT_BUILDTREES_DIR}/src/stb-e713a69f1ea6ee1e0d55725ed0731520045a5993)
|
file(COPY ${SOURCE_PATH}/README.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/stb/README.md)
|
||||||
file(COPY ${SOURCE_DIR}/README.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/stb/README.md)
|
|
||||||
file(RENAME ${CURRENT_PACKAGES_DIR}/share/stb/README.md ${CURRENT_PACKAGES_DIR}/share/stb/copyright)
|
file(RENAME ${CURRENT_PACKAGES_DIR}/share/stb/README.md ${CURRENT_PACKAGES_DIR}/share/stb/copyright)
|
||||||
|
|
||||||
# Copy the stb header files
|
# Copy the stb header files
|
||||||
file(GLOB HEADER_FILES ${SOURCE_DIR}/*.h)
|
file(GLOB HEADER_FILES ${SOURCE_PATH}/*.h)
|
||||||
file(COPY ${HEADER_FILES} DESTINATION ${CURRENT_PACKAGES_DIR}/include)
|
file(COPY ${HEADER_FILES} DESTINATION ${CURRENT_PACKAGES_DIR}/include)
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
include(vcpkg_common_functions)
|
include(vcpkg_common_functions)
|
||||||
|
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/tiff-4.0.6)
|
||||||
vcpkg_download_distfile(ARCHIVE
|
vcpkg_download_distfile(ARCHIVE
|
||||||
URLS "http://download.osgeo.org/libtiff/tiff-4.0.6.tar.gz"
|
URLS "http://download.osgeo.org/libtiff/tiff-4.0.6.tar.gz"
|
||||||
FILENAME "tiff-4.0.6.tar.gz"
|
FILENAME "tiff-4.0.6.tar.gz"
|
||||||
@ -7,7 +8,7 @@ vcpkg_download_distfile(ARCHIVE
|
|||||||
vcpkg_extract_source_archive(${ARCHIVE})
|
vcpkg_extract_source_archive(${ARCHIVE})
|
||||||
|
|
||||||
vcpkg_configure_cmake(
|
vcpkg_configure_cmake(
|
||||||
SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/tiff-4.0.6
|
SOURCE_PATH ${SOURCE_PATH}
|
||||||
OPTIONS -Dcxx=OFF
|
OPTIONS -Dcxx=OFF
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -20,7 +21,7 @@ file(REMOVE_RECURSE
|
|||||||
${CURRENT_PACKAGES_DIR}/share
|
${CURRENT_PACKAGES_DIR}/share
|
||||||
)
|
)
|
||||||
file(COPY
|
file(COPY
|
||||||
${CURRENT_BUILDTREES_DIR}/src/tiff-4.0.6/COPYRIGHT
|
${SOURCE_PATH}/COPYRIGHT
|
||||||
DESTINATION ${CURRENT_PACKAGES_DIR}/share/tiff
|
DESTINATION ${CURRENT_PACKAGES_DIR}/share/tiff
|
||||||
)
|
)
|
||||||
file(RENAME
|
file(RENAME
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
include(vcpkg_common_functions)
|
include(vcpkg_common_functions)
|
||||||
|
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/tinyxml2-3.0.0)
|
||||||
vcpkg_download_distfile(ARCHIVE
|
vcpkg_download_distfile(ARCHIVE
|
||||||
URLS "https://github.com/leethomason/tinyxml2/archive/3.0.0.zip"
|
URLS "https://github.com/leethomason/tinyxml2/archive/3.0.0.zip"
|
||||||
FILENAME "tinyxml2-3.0.0.zip"
|
FILENAME "tinyxml2-3.0.0.zip"
|
||||||
@ -7,7 +8,7 @@ vcpkg_download_distfile(ARCHIVE
|
|||||||
vcpkg_extract_source_archive(${ARCHIVE})
|
vcpkg_extract_source_archive(${ARCHIVE})
|
||||||
|
|
||||||
vcpkg_configure_cmake(
|
vcpkg_configure_cmake(
|
||||||
SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/tinyxml2-3.0.0
|
SOURCE_PATH ${SOURCE_PATH}
|
||||||
# OPTIONS -DUSE_THIS_IN_ALL_BUILDS=1
|
# OPTIONS -DUSE_THIS_IN_ALL_BUILDS=1
|
||||||
# OPTIONS_RELEASE -DOPTIMIZE=1
|
# OPTIONS_RELEASE -DOPTIMIZE=1
|
||||||
# OPTIONS_DEBUG -DDEBUGGABLE=1
|
# OPTIONS_DEBUG -DDEBUGGABLE=1
|
||||||
@ -17,6 +18,6 @@ vcpkg_build_cmake()
|
|||||||
vcpkg_install_cmake()
|
vcpkg_install_cmake()
|
||||||
|
|
||||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
||||||
file(COPY ${CURRENT_BUILDTREES_DIR}/src/tinyxml2-3.0.0/readme.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/tinyxml2)
|
file(COPY ${SOURCE_PATH}/readme.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/tinyxml2)
|
||||||
file(RENAME ${CURRENT_PACKAGES_DIR}/share/tinyxml2/readme.md ${CURRENT_PACKAGES_DIR}/share/tinyxml2/copyright)
|
file(RENAME ${CURRENT_PACKAGES_DIR}/share/tinyxml2/readme.md ${CURRENT_PACKAGES_DIR}/share/tinyxml2/copyright)
|
||||||
vcpkg_copy_pdbs()
|
vcpkg_copy_pdbs()
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
include(vcpkg_common_functions)
|
include(vcpkg_common_functions)
|
||||||
|
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/zlib-1.2.8)
|
||||||
vcpkg_download_distfile(ARCHIVE_FILE
|
vcpkg_download_distfile(ARCHIVE_FILE
|
||||||
URLS "http://zlib.net/zlib128.zip"
|
URLS "http://zlib.net/zlib128.zip"
|
||||||
FILENAME "zlib128.zip"
|
FILENAME "zlib128.zip"
|
||||||
@ -7,7 +8,7 @@ vcpkg_download_distfile(ARCHIVE_FILE
|
|||||||
vcpkg_extract_source_archive(${ARCHIVE_FILE})
|
vcpkg_extract_source_archive(${ARCHIVE_FILE})
|
||||||
|
|
||||||
vcpkg_configure_cmake(
|
vcpkg_configure_cmake(
|
||||||
SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/zlib-1.2.8
|
SOURCE_PATH ${SOURCE_PATH}
|
||||||
OPTIONS
|
OPTIONS
|
||||||
-DSKIP_INSTALL_FILES=ON
|
-DSKIP_INSTALL_FILES=ON
|
||||||
OPTIONS_DEBUG
|
OPTIONS_DEBUG
|
||||||
|
Loading…
x
Reference in New Issue
Block a user