2016-09-28 16:21:47 -07:00
|
|
|
# Common Ambient Variables:
|
2017-03-13 03:39:46 +03:00
|
|
|
# CURRENT_BUILDTREES_DIR = ${VCPKG_ROOT_DIR}\buildtrees\${PORT}
|
|
|
|
# CURRENT_PACKAGES_DIR = ${VCPKG_ROOT_DIR}\packages\${PORT}_${TARGET_TRIPLET}
|
2017-06-15 08:30:22 +09:00
|
|
|
# CURRENT_PORT_DIR = ${VCPKG_ROOT_DIR}\ports\${PORT}
|
2019-10-07 20:07:26 -07:00
|
|
|
# CURRENT_INSTALLED_DIR = ${VCPKG_ROOT_DIR}\installed\${TRIPLET}
|
|
|
|
# DOWNLOADS = ${VCPKG_ROOT_DIR}\downloads
|
2017-03-13 03:39:46 +03:00
|
|
|
# PORT = current port name (zlib, etc)
|
|
|
|
# TARGET_TRIPLET = current triplet (x86-windows, x64-windows-static, etc)
|
|
|
|
# VCPKG_CRT_LINKAGE = C runtime linkage type (static, dynamic)
|
|
|
|
# VCPKG_LIBRARY_LINKAGE = target library linkage type (static, dynamic)
|
|
|
|
# VCPKG_ROOT_DIR = <C:\path\to\current\vcpkg>
|
|
|
|
# VCPKG_TARGET_ARCHITECTURE = target architecture (x64, x86, arm)
|
2019-10-07 20:07:26 -07:00
|
|
|
# VCPKG_TOOLCHAIN = ON OFF
|
|
|
|
# TRIPLET_SYSTEM_ARCH = arm x86 x64
|
|
|
|
# BUILD_ARCH = "Win32" "x64" "ARM"
|
|
|
|
# DEBUG_CONFIG = "Debug Static" "Debug Dll"
|
|
|
|
# RELEASE_CONFIG = "Release Static"" "Release DLL"
|
2019-10-07 20:10:46 -07:00
|
|
|
# VCPKG_TARGET_IS_WINDOWS
|
|
|
|
# VCPKG_TARGET_IS_UWP
|
|
|
|
# VCPKG_TARGET_IS_LINUX
|
|
|
|
# VCPKG_TARGET_IS_OSX
|
|
|
|
# VCPKG_TARGET_IS_FREEBSD
|
|
|
|
# VCPKG_TARGET_IS_ANDROID
|
2020-01-18 00:36:08 +01:00
|
|
|
# VCPKG_TARGET_IS_MINGW
|
2019-10-07 20:07:26 -07:00
|
|
|
# VCPKG_TARGET_EXECUTABLE_SUFFIX
|
|
|
|
# VCPKG_TARGET_STATIC_LIBRARY_SUFFIX
|
|
|
|
# VCPKG_TARGET_SHARED_LIBRARY_SUFFIX
|
2016-09-28 16:21:47 -07:00
|
|
|
#
|
2020-01-18 00:36:08 +01:00
|
|
|
# See additional helpful variables in /docs/maintainers/vcpkg_common_definitions.md
|
2016-09-28 16:21:47 -07:00
|
|
|
|
2022-05-18 02:26:19 -07:00
|
|
|
# Also consider vcpkg_from_* functions if you can; the generated code here is for any web accessable
|
|
|
|
# source archive.
|
|
|
|
# vcpkg_from_github
|
|
|
|
# vcpkg_from_gitlab
|
|
|
|
# vcpkg_from_bitbucket
|
|
|
|
# vcpkg_from_sourceforge
|
2016-09-18 20:50:08 -07:00
|
|
|
vcpkg_download_distfile(ARCHIVE
|
2016-09-25 14:46:43 +02:00
|
|
|
URLS "@URL@"
|
2016-09-18 20:50:08 -07:00
|
|
|
FILENAME "@FILENAME@"
|
2016-09-22 21:30:58 +02:00
|
|
|
SHA512 @SHA512@
|
2016-09-18 20:50:08 -07:00
|
|
|
)
|
2019-02-15 14:32:07 -08:00
|
|
|
|
|
|
|
vcpkg_extract_source_archive_ex(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
2022-05-18 02:26:19 -07:00
|
|
|
ARCHIVE "${ARCHIVE}"
|
2019-02-15 14:32:07 -08:00
|
|
|
# (Optional) A friendly name to use instead of the filename of the archive (e.g.: a version number or tag).
|
|
|
|
# REF 1.0.0
|
2020-01-18 00:36:08 +01:00
|
|
|
# (Optional) Read the docs for how to generate patches at:
|
2023-08-15 12:09:40 -07:00
|
|
|
# https://github.com/microsoft/vcpkg-docs/blob/main/vcpkg/examples/patching.md
|
2019-02-15 14:32:07 -08:00
|
|
|
# PATCHES
|
|
|
|
# 001_port_fixes.patch
|
|
|
|
# 002_more_port_fixes.patch
|
|
|
|
)
|
2016-09-18 20:50:08 -07:00
|
|
|
|
2019-10-07 13:31:39 -04:00
|
|
|
# # Check if one or more features are a part of a package installation.
|
|
|
|
# # See /docs/maintainers/vcpkg_check_features.md for more details
|
|
|
|
# vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
2023-09-26 08:49:57 +02:00
|
|
|
# FEATURES
|
2019-10-07 13:31:39 -04:00
|
|
|
# tbb WITH_TBB
|
|
|
|
# INVERTED_FEATURES
|
|
|
|
# tbb ROCKSDB_IGNORE_PACKAGE_TBB
|
|
|
|
# )
|
|
|
|
|
2022-03-02 00:23:01 +01:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2016-09-18 20:50:08 -07:00
|
|
|
# OPTIONS -DUSE_THIS_IN_ALL_BUILDS=1 -DUSE_THIS_TOO=2
|
|
|
|
# OPTIONS_RELEASE -DOPTIMIZE=1
|
|
|
|
# OPTIONS_DEBUG -DDEBUGGABLE=1
|
|
|
|
)
|
|
|
|
|
2022-03-02 00:23:01 +01:00
|
|
|
vcpkg_cmake_install()
|
2016-09-18 20:50:08 -07:00
|
|
|
|
2019-10-07 13:31:39 -04:00
|
|
|
# # Moves all .cmake files from /debug/share/@PORT@/ to /share/@PORT@/
|
2022-03-02 00:23:01 +01:00
|
|
|
# # See /docs/maintainers/ports/vcpkg-cmake-config/vcpkg_cmake_config_fixup.md for more details
|
|
|
|
# When you uncomment "vcpkg_cmake_config_fixup()", you need to add the following to "dependencies" vcpkg.json:
|
2022-04-01 04:27:44 +02:00
|
|
|
#{
|
2022-03-02 00:23:01 +01:00
|
|
|
# "name": "vcpkg-cmake-config",
|
|
|
|
# "host": true
|
|
|
|
#}
|
2022-08-03 18:59:36 -07:00
|
|
|
# vcpkg_cmake_config_fixup()
|
2019-10-07 13:31:39 -04:00
|
|
|
|
2022-07-13 18:41:52 +02:00
|
|
|
# Uncomment the line below if necessary to install the license file for the port
|
|
|
|
# as a file named `copyright` to the directory `${CURRENT_PACKAGES_DIR}/share/${PORT}`
|
|
|
|
# vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|