early-access version 2853
This commit is contained in:
10
externals/vcpkg/ports/3fd/RapidXML.patch
vendored
Executable file
10
externals/vcpkg/ports/3fd/RapidXML.patch
vendored
Executable file
@@ -0,0 +1,10 @@
|
||||
--- a/3FD/xml.h
|
||||
+++ b/3FD/xml.h
|
||||
@@ -4,6 +4,6 @@
|
||||
#include "exceptions.h"
|
||||
#include "utils.h"
|
||||
-#include <rapidxml.hpp>
|
||||
+#include <rapidxml/rapidxml.hpp>
|
||||
|
||||
#include <array>
|
||||
#include <algorithm>
|
||||
70
externals/vcpkg/ports/3fd/portfile.cmake
vendored
Executable file
70
externals/vcpkg/ports/3fd/portfile.cmake
vendored
Executable file
@@ -0,0 +1,70 @@
|
||||
# Check architecture:
|
||||
if (VCPKG_TARGET_ARCHITECTURE STREQUAL "x86")
|
||||
set(BUILD_ARCH "Win32")
|
||||
elseif (VCPKG_TARGET_ARCHITECTURE STREQUAL "x64")
|
||||
set(BUILD_ARCH "x64")
|
||||
elseif (VCPKG_TARGET_ARCHITECTURE STREQUAL "arm")
|
||||
set(BUILD_ARCH "ARM")
|
||||
else()
|
||||
message(FATAL_ERROR "Unsupported architecture: ${VCPKG_TARGET_ARCHITECTURE}")
|
||||
endif()
|
||||
|
||||
# Check library linkage:
|
||||
vcpkg_check_linkage(ONLY_STATIC_LIBRARY ONLY_DYNAMIC_CRT)
|
||||
|
||||
# Get source code:
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO faburaya/3fd
|
||||
REF 3a0fe606268721d1560b88dcca8647c67c0b275c # v2.6.3 (Stable)
|
||||
SHA512 70630291b4055de2044ad76ef21e99d6ab6fd3468debb2a864a461cf8513642fe87f116e9dfff96ecff96f4577108493dc25aa40eeefcd93ee75990b13bb7b20
|
||||
HEAD_REF master
|
||||
PATCHES
|
||||
RapidXML.patch
|
||||
)
|
||||
|
||||
# Build:
|
||||
if (VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore") # UWP:
|
||||
vcpkg_install_msbuild(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
PROJECT_SUBPATH "3FD/3FD.WinRT.UWP.vcxproj"
|
||||
PLATFORM ${BUILD_ARCH}
|
||||
USE_VCPKG_INTEGRATION
|
||||
)
|
||||
elseif (NOT VCPKG_CMAKE_SYSTEM_NAME) # Win32:
|
||||
vcpkg_install_msbuild(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
PROJECT_SUBPATH "3FD/3FD.vcxproj"
|
||||
PLATFORM ${BUILD_ARCH}
|
||||
TARGET Build
|
||||
USE_VCPKG_INTEGRATION
|
||||
)
|
||||
else()
|
||||
message(FATAL_ERROR "Unsupported system: 3FD is not currently ported to VCPKG in ${VCPKG_CMAKE_SYSTEM_NAME}!")
|
||||
endif()
|
||||
|
||||
# Install:
|
||||
file(GLOB HEADER_FILES LIST_DIRECTORIES false "${SOURCE_PATH}/3FD/*.h")
|
||||
file(INSTALL
|
||||
${HEADER_FILES}
|
||||
DESTINATION ${CURRENT_PACKAGES_DIR}/include/3FD
|
||||
PATTERN "*_impl*.h" EXCLUDE
|
||||
PATTERN "*example*.h" EXCLUDE
|
||||
PATTERN "stdafx.h" EXCLUDE
|
||||
PATTERN "targetver.h" EXCLUDE
|
||||
)
|
||||
|
||||
file(INSTALL ${SOURCE_PATH}/btree DESTINATION ${CURRENT_PACKAGES_DIR}/include/3FD)
|
||||
file(INSTALL ${SOURCE_PATH}/OpenCL/CL DESTINATION ${CURRENT_PACKAGES_DIR}/include/3FD)
|
||||
|
||||
file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/share/3FD)
|
||||
file(INSTALL
|
||||
${SOURCE_PATH}/3FD/3fd-config-template.xml
|
||||
DESTINATION ${CURRENT_PACKAGES_DIR}/share/3FD
|
||||
)
|
||||
|
||||
# Handle copyright
|
||||
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/3fd RENAME copyright)
|
||||
file(INSTALL ${SOURCE_PATH}/Acknowledgements.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/3fd)
|
||||
|
||||
vcpkg_copy_pdbs()
|
||||
23
externals/vcpkg/ports/3fd/vcpkg.json
vendored
Executable file
23
externals/vcpkg/ports/3fd/vcpkg.json
vendored
Executable file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"name": "3fd",
|
||||
"version": "2.6.3",
|
||||
"port-version": 2,
|
||||
"description": "C++ Framework For Fast Development",
|
||||
"supports": "windows & !static & !arm64",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "boost-lockfree",
|
||||
"platform": "windows"
|
||||
},
|
||||
{
|
||||
"name": "boost-regex",
|
||||
"platform": "windows"
|
||||
},
|
||||
{
|
||||
"name": "poco",
|
||||
"platform": "windows"
|
||||
},
|
||||
"rapidxml",
|
||||
"sqlite3"
|
||||
]
|
||||
}
|
||||
5
externals/vcpkg/ports/7zip/7zip-config.cmake.in
vendored
Executable file
5
externals/vcpkg/ports/7zip/7zip-config.cmake.in
vendored
Executable file
@@ -0,0 +1,5 @@
|
||||
@PACKAGE_INIT@
|
||||
|
||||
include("${CMAKE_CURRENT_LIST_DIR}/7zip-targets.cmake")
|
||||
|
||||
check_required_components(7zip)
|
||||
457
externals/vcpkg/ports/7zip/CMakeLists.txt
vendored
Executable file
457
externals/vcpkg/ports/7zip/CMakeLists.txt
vendored
Executable file
@@ -0,0 +1,457 @@
|
||||
cmake_minimum_required(VERSION 3.19)
|
||||
|
||||
project(7zip LANGUAGES C CXX)
|
||||
|
||||
if(VCPKG_TARGET_IS_WINDOWS)
|
||||
enable_language(ASM_MASM)
|
||||
elseif(VCPKG_TARGET_IS_LINUX)
|
||||
enable_language(ASM)
|
||||
endif()
|
||||
|
||||
add_library(7zip)
|
||||
|
||||
target_sources(7zip PRIVATE
|
||||
CPP/7zip/Compress/Bcj2Coder.cpp
|
||||
CPP/7zip/Compress/Bcj2Register.cpp
|
||||
CPP/7zip/Compress/BcjCoder.cpp
|
||||
CPP/7zip/Compress/BcjRegister.cpp
|
||||
CPP/7zip/Compress/BitlDecoder.cpp
|
||||
CPP/7zip/Compress/BranchMisc.cpp
|
||||
CPP/7zip/Compress/BranchRegister.cpp
|
||||
CPP/7zip/Compress/ByteSwap.cpp
|
||||
CPP/7zip/Compress/BZip2Crc.cpp
|
||||
CPP/7zip/Compress/BZip2Decoder.cpp
|
||||
CPP/7zip/Compress/BZip2Encoder.cpp
|
||||
CPP/7zip/Compress/BZip2Register.cpp
|
||||
CPP/7zip/Compress/CopyCoder.cpp
|
||||
CPP/7zip/Compress/CopyRegister.cpp
|
||||
CPP/7zip/Compress/Deflate64Register.cpp
|
||||
CPP/7zip/Compress/DeflateDecoder.cpp
|
||||
CPP/7zip/Compress/DeflateEncoder.cpp
|
||||
CPP/7zip/Compress/DeflateRegister.cpp
|
||||
CPP/7zip/Compress/DeltaFilter.cpp
|
||||
CPP/7zip/Compress/ImplodeDecoder.cpp
|
||||
CPP/7zip/Compress/LzfseDecoder.cpp
|
||||
CPP/7zip/Compress/LzhDecoder.cpp
|
||||
CPP/7zip/Compress/Lzma2Decoder.cpp
|
||||
CPP/7zip/Compress/Lzma2Encoder.cpp
|
||||
CPP/7zip/Compress/Lzma2Register.cpp
|
||||
CPP/7zip/Compress/LzmaDecoder.cpp
|
||||
CPP/7zip/Compress/LzmaEncoder.cpp
|
||||
CPP/7zip/Compress/LzmaRegister.cpp
|
||||
CPP/7zip/Compress/LzmsDecoder.cpp
|
||||
CPP/7zip/Compress/LzOutWindow.cpp
|
||||
CPP/7zip/Compress/LzxDecoder.cpp
|
||||
CPP/7zip/Compress/PpmdDecoder.cpp
|
||||
CPP/7zip/Compress/PpmdEncoder.cpp
|
||||
CPP/7zip/Compress/PpmdRegister.cpp
|
||||
CPP/7zip/Compress/PpmdZip.cpp
|
||||
CPP/7zip/Compress/QuantumDecoder.cpp
|
||||
CPP/7zip/Compress/Rar1Decoder.cpp
|
||||
CPP/7zip/Compress/Rar2Decoder.cpp
|
||||
CPP/7zip/Compress/Rar3Decoder.cpp
|
||||
CPP/7zip/Compress/Rar3Vm.cpp
|
||||
CPP/7zip/Compress/Rar5Decoder.cpp
|
||||
CPP/7zip/Compress/RarCodecsRegister.cpp
|
||||
CPP/7zip/Compress/ShrinkDecoder.cpp
|
||||
CPP/7zip/Compress/XpressDecoder.cpp
|
||||
CPP/7zip/Compress/XzDecoder.cpp
|
||||
CPP/7zip/Compress/XzEncoder.cpp
|
||||
CPP/7zip/Compress/ZlibDecoder.cpp
|
||||
CPP/7zip/Compress/ZlibEncoder.cpp
|
||||
CPP/7zip/Compress/ZDecoder.cpp
|
||||
CPP/7zip/Compress/CodecExports.cpp
|
||||
|
||||
CPP/7zip/Crypto/7zAes.cpp
|
||||
CPP/7zip/Crypto/7zAesRegister.cpp
|
||||
CPP/7zip/Crypto/HmacSha1.cpp
|
||||
CPP/7zip/Crypto/HmacSha256.cpp
|
||||
CPP/7zip/Crypto/MyAes.cpp
|
||||
CPP/7zip/Crypto/MyAesReg.cpp
|
||||
CPP/7zip/Crypto/Pbkdf2HmacSha1.cpp
|
||||
CPP/7zip/Crypto/RandGen.cpp
|
||||
CPP/7zip/Crypto/Rar20Crypto.cpp
|
||||
CPP/7zip/Crypto/Rar5Aes.cpp
|
||||
CPP/7zip/Crypto/RarAes.cpp
|
||||
CPP/7zip/Crypto/WzAes.cpp
|
||||
CPP/7zip/Crypto/ZipCrypto.cpp
|
||||
CPP/7zip/Crypto/ZipStrong.cpp
|
||||
|
||||
C/7zBuf2.c
|
||||
C/7zStream.c
|
||||
C/Alloc.c
|
||||
C/Bcj2.c
|
||||
C/Bcj2Enc.c
|
||||
C/Blake2s.c
|
||||
C/Bra.c
|
||||
C/Bra86.c
|
||||
C/BraIA64.c
|
||||
C/BwtSort.c
|
||||
C/CpuArch.c
|
||||
C/Delta.c
|
||||
C/HuffEnc.c
|
||||
C/LzFind.c
|
||||
C/LzFindMt.c
|
||||
C/Lzma2Dec.c
|
||||
C/Lzma2DecMt.c
|
||||
C/Lzma2Enc.c
|
||||
C/LzmaEnc.c
|
||||
C/LzmaLib.c
|
||||
C/MtCoder.c
|
||||
C/MtDec.c
|
||||
C/Ppmd7.c
|
||||
C/Ppmd7aDec.c
|
||||
C/Ppmd7Dec.c
|
||||
C/Ppmd7Enc.c
|
||||
C/Ppmd8.c
|
||||
C/Ppmd8Dec.c
|
||||
C/Ppmd8Enc.c
|
||||
C/Sha1.c
|
||||
C/Sha256.c
|
||||
C/Sort.c
|
||||
C/Threads.c
|
||||
C/Xz.c
|
||||
C/XzDec.c
|
||||
C/XzEnc.c
|
||||
C/XzIn.c
|
||||
C/Aes.c
|
||||
C/7zCrc.c
|
||||
C/XzCrc64.c
|
||||
|
||||
CPP/Common/CRC.cpp
|
||||
CPP/Common/CrcReg.cpp
|
||||
CPP/Common/DynLimBuf.cpp
|
||||
CPP/Common/IntToString.cpp
|
||||
CPP/Common/LzFindPrepare.cpp
|
||||
CPP/Common/MyMap.cpp
|
||||
CPP/Common/MyString.cpp
|
||||
CPP/Common/MyVector.cpp
|
||||
CPP/Common/MyWindows.cpp
|
||||
CPP/Common/MyXml.cpp
|
||||
CPP/Common/NewHandler.cpp
|
||||
CPP/Common/Sha1Prepare.cpp
|
||||
CPP/Common/Sha1Reg.cpp
|
||||
CPP/Common/Sha256Prepare.cpp
|
||||
CPP/Common/Sha256Reg.cpp
|
||||
CPP/Common/StringConvert.cpp
|
||||
CPP/Common/StringToInt.cpp
|
||||
CPP/Common/UTFConvert.cpp
|
||||
CPP/Common/Wildcard.cpp
|
||||
CPP/Common/XzCrc64Init.cpp
|
||||
CPP/Common/XzCrc64Reg.cpp
|
||||
|
||||
CPP/Windows/FileDir.cpp
|
||||
CPP/Windows/FileFind.cpp
|
||||
CPP/Windows/FileIO.cpp
|
||||
CPP/Windows/FileName.cpp
|
||||
CPP/Windows/PropVariant.cpp
|
||||
CPP/Windows/PropVariantUtils.cpp
|
||||
CPP/Windows/Synchronization.cpp
|
||||
CPP/Windows/System.cpp
|
||||
CPP/Windows/TimeUtils.cpp
|
||||
|
||||
CPP/7zip/Common/CreateCoder.cpp
|
||||
CPP/7zip/Common/CWrappers.cpp
|
||||
CPP/7zip/Common/InBuffer.cpp
|
||||
CPP/7zip/Common/InOutTempBuffer.cpp
|
||||
CPP/7zip/Common/FilterCoder.cpp
|
||||
CPP/7zip/Common/LimitedStreams.cpp
|
||||
CPP/7zip/Common/LockedStream.cpp
|
||||
CPP/7zip/Common/MemBlocks.cpp
|
||||
CPP/7zip/Common/MethodId.cpp
|
||||
CPP/7zip/Common/MethodProps.cpp
|
||||
CPP/7zip/Common/OffsetStream.cpp
|
||||
CPP/7zip/Common/OutBuffer.cpp
|
||||
CPP/7zip/Common/OutMemStream.cpp
|
||||
CPP/7zip/Common/ProgressMt.cpp
|
||||
CPP/7zip/Common/ProgressUtils.cpp
|
||||
CPP/7zip/Common/PropId.cpp
|
||||
CPP/7zip/Common/StreamBinder.cpp
|
||||
CPP/7zip/Common/StreamObjects.cpp
|
||||
CPP/7zip/Common/StreamUtils.cpp
|
||||
CPP/7zip/Common/UniqBlocks.cpp
|
||||
CPP/7zip/Common/VirtThread.cpp
|
||||
|
||||
CPP/7zip/Archive/ApmHandler.cpp
|
||||
CPP/7zip/Archive/ArHandler.cpp
|
||||
CPP/7zip/Archive/ArjHandler.cpp
|
||||
CPP/7zip/Archive/Base64Handler.cpp
|
||||
CPP/7zip/Archive/Bz2Handler.cpp
|
||||
CPP/7zip/Archive/ComHandler.cpp
|
||||
CPP/7zip/Archive/CpioHandler.cpp
|
||||
CPP/7zip/Archive/CramfsHandler.cpp
|
||||
CPP/7zip/Archive/DeflateProps.cpp
|
||||
CPP/7zip/Archive/DmgHandler.cpp
|
||||
CPP/7zip/Archive/ElfHandler.cpp
|
||||
CPP/7zip/Archive/ExtHandler.cpp
|
||||
CPP/7zip/Archive/FatHandler.cpp
|
||||
CPP/7zip/Archive/FlvHandler.cpp
|
||||
CPP/7zip/Archive/GzHandler.cpp
|
||||
CPP/7zip/Archive/GptHandler.cpp
|
||||
CPP/7zip/Archive/HandlerCont.cpp
|
||||
CPP/7zip/Archive/HfsHandler.cpp
|
||||
CPP/7zip/Archive/IhexHandler.cpp
|
||||
CPP/7zip/Archive/LzhHandler.cpp
|
||||
CPP/7zip/Archive/LzmaHandler.cpp
|
||||
CPP/7zip/Archive/MachoHandler.cpp
|
||||
CPP/7zip/Archive/MbrHandler.cpp
|
||||
CPP/7zip/Archive/MslzHandler.cpp
|
||||
CPP/7zip/Archive/MubHandler.cpp
|
||||
CPP/7zip/Archive/NtfsHandler.cpp
|
||||
CPP/7zip/Archive/PeHandler.cpp
|
||||
CPP/7zip/Archive/PpmdHandler.cpp
|
||||
CPP/7zip/Archive/QcowHandler.cpp
|
||||
CPP/7zip/Archive/RpmHandler.cpp
|
||||
CPP/7zip/Archive/SplitHandler.cpp
|
||||
CPP/7zip/Archive/SquashfsHandler.cpp
|
||||
CPP/7zip/Archive/SwfHandler.cpp
|
||||
CPP/7zip/Archive/UefiHandler.cpp
|
||||
CPP/7zip/Archive/VdiHandler.cpp
|
||||
CPP/7zip/Archive/VhdHandler.cpp
|
||||
CPP/7zip/Archive/VmdkHandler.cpp
|
||||
CPP/7zip/Archive/XarHandler.cpp
|
||||
CPP/7zip/Archive/XzHandler.cpp
|
||||
CPP/7zip/Archive/ZHandler.cpp
|
||||
CPP/7zip/Archive/ArchiveExports.cpp
|
||||
CPP/7zip/Archive/DllExports2.cpp
|
||||
|
||||
CPP/7zip/Archive/Common/CoderMixer2.cpp
|
||||
CPP/7zip/Archive/Common/DummyOutStream.cpp
|
||||
CPP/7zip/Archive/Common/FindSignature.cpp
|
||||
CPP/7zip/Archive/Common/InStreamWithCRC.cpp
|
||||
CPP/7zip/Archive/Common/ItemNameUtils.cpp
|
||||
CPP/7zip/Archive/Common/MultiStream.cpp
|
||||
CPP/7zip/Archive/Common/OutStreamWithCRC.cpp
|
||||
CPP/7zip/Archive/Common/OutStreamWithSha1.cpp
|
||||
CPP/7zip/Archive/Common/HandlerOut.cpp
|
||||
CPP/7zip/Archive/Common/ParseProperties.cpp
|
||||
|
||||
CPP/7zip/Archive/7z/7zCompressionMode.cpp
|
||||
CPP/7zip/Archive/7z/7zDecode.cpp
|
||||
CPP/7zip/Archive/7z/7zEncode.cpp
|
||||
CPP/7zip/Archive/7z/7zExtract.cpp
|
||||
CPP/7zip/Archive/7z/7zFolderInStream.cpp
|
||||
CPP/7zip/Archive/7z/7zHandler.cpp
|
||||
CPP/7zip/Archive/7z/7zHandlerOut.cpp
|
||||
CPP/7zip/Archive/7z/7zHeader.cpp
|
||||
CPP/7zip/Archive/7z/7zIn.cpp
|
||||
CPP/7zip/Archive/7z/7zOut.cpp
|
||||
CPP/7zip/Archive/7z/7zProperties.cpp
|
||||
CPP/7zip/Archive/7z/7zSpecStream.cpp
|
||||
CPP/7zip/Archive/7z/7zUpdate.cpp
|
||||
CPP/7zip/Archive/7z/7zRegister.cpp
|
||||
|
||||
CPP/7zip/Archive/Cab/CabBlockInStream.cpp
|
||||
CPP/7zip/Archive/Cab/CabHandler.cpp
|
||||
CPP/7zip/Archive/Cab/CabHeader.cpp
|
||||
CPP/7zip/Archive/Cab/CabIn.cpp
|
||||
CPP/7zip/Archive/Cab/CabRegister.cpp
|
||||
|
||||
CPP/7zip/Archive/Chm/ChmHandler.cpp
|
||||
CPP/7zip/Archive/Chm/ChmIn.cpp
|
||||
|
||||
CPP/7zip/Archive/Iso/IsoHandler.cpp
|
||||
CPP/7zip/Archive/Iso/IsoHeader.cpp
|
||||
CPP/7zip/Archive/Iso/IsoIn.cpp
|
||||
CPP/7zip/Archive/Iso/IsoRegister.cpp
|
||||
|
||||
CPP/7zip/Archive/Nsis/NsisDecode.cpp
|
||||
CPP/7zip/Archive/Nsis/NsisHandler.cpp
|
||||
CPP/7zip/Archive/Nsis/NsisIn.cpp
|
||||
CPP/7zip/Archive/Nsis/NsisRegister.cpp
|
||||
|
||||
CPP/7zip/Archive/Rar/RarHandler.cpp
|
||||
CPP/7zip/Archive/Rar/Rar5Handler.cpp
|
||||
|
||||
CPP/7zip/Archive/Tar/TarHandler.cpp
|
||||
CPP/7zip/Archive/Tar/TarHandlerOut.cpp
|
||||
CPP/7zip/Archive/Tar/TarHeader.cpp
|
||||
CPP/7zip/Archive/Tar/TarIn.cpp
|
||||
CPP/7zip/Archive/Tar/TarOut.cpp
|
||||
CPP/7zip/Archive/Tar/TarUpdate.cpp
|
||||
CPP/7zip/Archive/Tar/TarRegister.cpp
|
||||
|
||||
CPP/7zip/Archive/Udf/UdfHandler.cpp
|
||||
CPP/7zip/Archive/Udf/UdfIn.cpp
|
||||
|
||||
CPP/7zip/Archive/Wim/WimHandler.cpp
|
||||
CPP/7zip/Archive/Wim/WimHandlerOut.cpp
|
||||
CPP/7zip/Archive/Wim/WimIn.cpp
|
||||
CPP/7zip/Archive/Wim/WimRegister.cpp
|
||||
|
||||
CPP/7zip/Archive/Zip/ZipAddCommon.cpp
|
||||
CPP/7zip/Archive/Zip/ZipHandler.cpp
|
||||
CPP/7zip/Archive/Zip/ZipHandlerOut.cpp
|
||||
CPP/7zip/Archive/Zip/ZipIn.cpp
|
||||
CPP/7zip/Archive/Zip/ZipItem.cpp
|
||||
CPP/7zip/Archive/Zip/ZipOut.cpp
|
||||
CPP/7zip/Archive/Zip/ZipUpdate.cpp
|
||||
CPP/7zip/Archive/Zip/ZipRegister.cpp
|
||||
|
||||
CPP/7zip/Archive/Archive2.def
|
||||
C/Util/LzmaLib/LzmaLib.def
|
||||
)
|
||||
|
||||
# 7zCrcOpt
|
||||
if(VCPKG_TARGET_IS_WINDOWS)
|
||||
if(VCPKG_TARGET_ARCHITECTURE STREQUAL "x86" OR VCPKG_TARGET_ARCHITECTURE STREQUAL "x64")
|
||||
target_sources(7zip PRIVATE Asm/x86/7zCrcOpt.asm)
|
||||
set_source_files_properties(Asm/x86/7zCrcOpt.asm PROPERTIES LANGUAGE ASM_MASM)
|
||||
else()
|
||||
target_sources(7zip PRIVATE C/7zCrcOpt.c)
|
||||
endif()
|
||||
else()
|
||||
target_sources(7zip PRIVATE C/7zCrcOpt.c)
|
||||
endif()
|
||||
|
||||
# AesOpt
|
||||
if(VCPKG_TARGET_IS_WINDOWS)
|
||||
if(VCPKG_TARGET_ARCHITECTURE STREQUAL "x86" OR VCPKG_TARGET_ARCHITECTURE STREQUAL "x64")
|
||||
target_sources(7zip PRIVATE Asm/x86/AesOpt.asm)
|
||||
set_source_files_properties(Asm/x86/AesOpt.asm PROPERTIES LANGUAGE ASM_MASM)
|
||||
else()
|
||||
target_sources(7zip PRIVATE C/AesOpt.c)
|
||||
endif()
|
||||
else()
|
||||
target_sources(7zip PRIVATE C/AesOpt.c)
|
||||
endif()
|
||||
|
||||
# LzFindOpt
|
||||
if(VCPKG_TARGET_IS_WINDOWS)
|
||||
if(VCPKG_TARGET_ARCHITECTURE STREQUAL "x64")
|
||||
target_sources(7zip PRIVATE Asm/x86/LzFindOpt.asm)
|
||||
set_source_files_properties(Asm/x86/LzFindOpt.asm PROPERTIES LANGUAGE ASM_MASM)
|
||||
else()
|
||||
target_sources(7zip PRIVATE C/LzFindOpt.c)
|
||||
endif()
|
||||
else()
|
||||
target_sources(7zip PRIVATE C/LzFindOpt.c)
|
||||
endif()
|
||||
|
||||
# LzmaDecOpt
|
||||
target_sources(7zip PRIVATE C/LzmaDec.c)
|
||||
if((VCPKG_TARGET_IS_WINDOWS AND VCPKG_TARGET_ARCHITECTURE STREQUAL "x64") OR
|
||||
(VCPKG_TARGET_IS_LINUX AND VCPKG_TARGET_ARCHITECTURE STREQUAL "arm64")
|
||||
)
|
||||
if(VCPKG_TARGET_IS_WINDOWS AND VCPKG_TARGET_ARCHITECTURE STREQUAL "x64")
|
||||
target_sources(7zip PRIVATE Asm/x86/LzmaDecOpt.asm)
|
||||
set_source_files_properties(Asm/x86/LzmaDecOpt.asm PROPERTIES LANGUAGE ASM_MASM)
|
||||
elseif(VCPKG_TARGET_IS_LINUX AND VCPKG_TARGET_ARCHITECTURE STREQUAL "arm64")
|
||||
target_sources(7zip PRIVATE Asm/arm64/LzmaDecOpt.S)
|
||||
set_source_files_properties(Asm/x86/LzmaDecOpt.asm PROPERTIES LANGUAGE ASM)
|
||||
endif()
|
||||
|
||||
get_source_file_property(defs C/LzmaDec.c COMPILE_DEFINITIONS)
|
||||
list(APPEND defs "_LZMA_DEC_OPT")
|
||||
set_source_files_properties(C/LzmaDec.c PROPERTIES COMPILE_DEFINITIONS "${defs}")
|
||||
endif()
|
||||
|
||||
# Sha1Opt
|
||||
if(VCPKG_TARGET_IS_WINDOWS)
|
||||
if(VCPKG_TARGET_ARCHITECTURE STREQUAL "x86" OR VCPKG_TARGET_ARCHITECTURE STREQUAL "x64")
|
||||
target_sources(7zip PRIVATE Asm/x86/Sha1Opt.asm)
|
||||
set_source_files_properties(Asm/x86/Sha1Opt.asm PROPERTIES LANGUAGE ASM_MASM)
|
||||
else()
|
||||
target_sources(7zip PRIVATE C/Sha1Opt.c)
|
||||
endif()
|
||||
else()
|
||||
target_sources(7zip PRIVATE C/Sha1Opt.c)
|
||||
endif()
|
||||
|
||||
# Sha256Opt
|
||||
if(VCPKG_TARGET_IS_WINDOWS)
|
||||
if(VCPKG_TARGET_ARCHITECTURE STREQUAL "x86" OR VCPKG_TARGET_ARCHITECTURE STREQUAL "x64")
|
||||
target_sources(7zip PRIVATE Asm/x86/Sha256Opt.asm)
|
||||
set_source_files_properties(Asm/x86/Sha256Opt.asm PROPERTIES LANGUAGE ASM_MASM)
|
||||
else()
|
||||
target_sources(7zip PRIVATE C/Sha256Opt.c)
|
||||
endif()
|
||||
else()
|
||||
target_sources(7zip PRIVATE C/Sha256Opt.c)
|
||||
endif()
|
||||
|
||||
# XzCrc64Opt
|
||||
if(VCPKG_TARGET_IS_WINDOWS)
|
||||
if(VCPKG_TARGET_ARCHITECTURE STREQUAL "x86" OR VCPKG_TARGET_ARCHITECTURE STREQUAL "x64")
|
||||
target_sources(7zip PRIVATE Asm/x86/XzCrc64Opt.asm)
|
||||
set_source_files_properties(Asm/x86/XzCrc64Opt.asm PROPERTIES LANGUAGE ASM_MASM)
|
||||
else()
|
||||
target_sources(7zip PRIVATE C/XzCrc64Opt.c)
|
||||
endif()
|
||||
else()
|
||||
target_sources(7zip PRIVATE C/XzCrc64Opt.c)
|
||||
endif()
|
||||
|
||||
target_compile_definitions(7zip
|
||||
PUBLIC
|
||||
-D_REENTRANT
|
||||
-D_FILE_OFFSET_BITS=64
|
||||
-D_LARGEFILE_SOURCE
|
||||
-DEXTERNAL_CODECS
|
||||
-D_7ZIP_LARGE_PAGES
|
||||
-DUNICODE
|
||||
-D_UNICODE
|
||||
)
|
||||
|
||||
target_include_directories(7zip
|
||||
INTERFACE
|
||||
$<INSTALL_INTERFACE:include>/7zip/CPP
|
||||
)
|
||||
|
||||
set(PUBLIC_HEADERS
|
||||
C/7zTypes.h
|
||||
C/Alloc.h
|
||||
C/LzFind.h
|
||||
C/LzFindMt.h
|
||||
C/LzHash.h
|
||||
C/LzmaDec.h
|
||||
C/LzmaEnc.h
|
||||
C/LzmaLib.h
|
||||
C/Threads.h
|
||||
CPP/7zip/Archive/IArchive.h
|
||||
CPP/7zip/ICoder.h
|
||||
CPP/7zip/IDecl.h
|
||||
CPP/7zip/IPassword.h
|
||||
CPP/7zip/IProgress.h
|
||||
CPP/7zip/IStream.h
|
||||
CPP/7zip/PropID.h
|
||||
CPP/Common/Defs.h
|
||||
CPP/Common/MyTypes.h
|
||||
CPP/Common/MyUnknown.h
|
||||
CPP/Common/MyWindows.h
|
||||
)
|
||||
|
||||
install(
|
||||
TARGETS 7zip
|
||||
EXPORT 7zip-targets
|
||||
ARCHIVE DESTINATION lib
|
||||
LIBRARY DESTINATION lib
|
||||
RUNTIME DESTINATION bin
|
||||
)
|
||||
|
||||
# Headers makes relative includes so directory structure must be kept
|
||||
foreach(HEADER ${PUBLIC_HEADERS})
|
||||
get_filename_component(HEADER_DIR ${HEADER} DIRECTORY)
|
||||
install(
|
||||
FILES ${HEADER}
|
||||
CONFIGURATIONS Release
|
||||
DESTINATION include/7zip/${HEADER_DIR}
|
||||
)
|
||||
endforeach()
|
||||
|
||||
include(CMakePackageConfigHelpers)
|
||||
configure_package_config_file(
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/7zip-config.cmake.in"
|
||||
"${CMAKE_CURRENT_BINARY_DIR}/7zip-config.cmake"
|
||||
INSTALL_DESTINATION "share/7zip"
|
||||
)
|
||||
install(
|
||||
FILES "${CMAKE_CURRENT_BINARY_DIR}/7zip-config.cmake"
|
||||
DESTINATION "share/7zip"
|
||||
)
|
||||
|
||||
install(
|
||||
EXPORT 7zip-targets
|
||||
DESTINATION share/7zip
|
||||
NAMESPACE 7zip::
|
||||
)
|
||||
30
externals/vcpkg/ports/7zip/portfile.cmake
vendored
Executable file
30
externals/vcpkg/ports/7zip/portfile.cmake
vendored
Executable file
@@ -0,0 +1,30 @@
|
||||
set(7ZIP_VERSION "2107")
|
||||
vcpkg_download_distfile(ARCHIVE
|
||||
URLS "https://www.7-zip.org/a/7z${7ZIP_VERSION}-src.7z"
|
||||
FILENAME "7z${7ZIP_VERSION}-src.7z"
|
||||
SHA512 c13521a9829ac239a89015e1f5da27eeaa2469754e3f8ca32311d964ea9d0b40a17e4f8ccbd425d3e865aa768be345368f1c36f354d5710ac7cb2749dd6a3ab5
|
||||
)
|
||||
|
||||
vcpkg_extract_source_archive(
|
||||
SOURCE_PATH
|
||||
ARCHIVE "${ARCHIVE}"
|
||||
NO_REMOVE_ONE_LEVEL
|
||||
)
|
||||
|
||||
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
||||
file(COPY "${CMAKE_CURRENT_LIST_DIR}/7zip-config.cmake.in" DESTINATION "${SOURCE_PATH}")
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
vcpkg_cmake_config_fixup()
|
||||
|
||||
file(
|
||||
INSTALL "${SOURCE_PATH}/DOC/License.txt"
|
||||
DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}"
|
||||
RENAME copyright
|
||||
)
|
||||
19
externals/vcpkg/ports/7zip/vcpkg.json
vendored
Executable file
19
externals/vcpkg/ports/7zip/vcpkg.json
vendored
Executable file
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"name": "7zip",
|
||||
"version-string": "21.07",
|
||||
"port-version": 1,
|
||||
"description": "Library for archiving file with a high compression ratio.",
|
||||
"homepage": "https://www.7-zip.org",
|
||||
"license": "LGPL-2.1-or-later",
|
||||
"supports": "!uwp",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
}
|
||||
23
externals/vcpkg/ports/abseil/fix-32-bit-arm.patch
vendored
Executable file
23
externals/vcpkg/ports/abseil/fix-32-bit-arm.patch
vendored
Executable file
@@ -0,0 +1,23 @@
|
||||
diff --git a/absl/time/internal/cctz/src/zone_info_source.cc b/absl/time/internal/cctz/src/zone_info_source.cc
|
||||
index 7209533..5ab5a59 100644
|
||||
--- a/absl/time/internal/cctz/src/zone_info_source.cc
|
||||
+++ b/absl/time/internal/cctz/src/zone_info_source.cc
|
||||
@@ -65,7 +65,7 @@ ZoneInfoSourceFactory zone_info_source_factory __attribute__((weak)) =
|
||||
extern ZoneInfoSourceFactory zone_info_source_factory;
|
||||
extern ZoneInfoSourceFactory default_factory;
|
||||
ZoneInfoSourceFactory default_factory = DefaultFactory;
|
||||
-#if defined(_M_IX86)
|
||||
+#if defined(_M_IX86) || defined(_M_ARM)
|
||||
#pragma comment( \
|
||||
linker, \
|
||||
"/alternatename:?zone_info_source_factory@cctz_extension@time_internal@" ABSL_INTERNAL_MANGLED_NS \
|
||||
@@ -83,8 +83,7 @@ ZoneInfoSourceFactory default_factory = DefaultFactory;
|
||||
"@@U?$default_delete@VZoneInfoSource@cctz@time_internal@" ABSL_INTERNAL_MANGLED_NS \
|
||||
"@@@std@@@std@@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@2@@Z@" ABSL_INTERNAL_MANGLED_BACKREFERENCE \
|
||||
"@@ZA")
|
||||
-#elif defined(_M_IA_64) || defined(_M_AMD64) || defined(_M_ARM) || \
|
||||
- defined(_M_ARM64)
|
||||
+#elif defined(_M_IA_64) || defined(_M_AMD64) || defined(_M_ARM64)
|
||||
#pragma comment( \
|
||||
linker, \
|
||||
"/alternatename:?zone_info_source_factory@cctz_extension@time_internal@" ABSL_INTERNAL_MANGLED_NS \
|
||||
94
externals/vcpkg/ports/abseil/fix-cxx-standard.patch
vendored
Executable file
94
externals/vcpkg/ports/abseil/fix-cxx-standard.patch
vendored
Executable file
@@ -0,0 +1,94 @@
|
||||
diff --git a/CMake/abslConfig.cmake.in b/CMake/abslConfig.cmake.in
|
||||
index 62d246d..afcec1f 100644
|
||||
--- a/CMake/abslConfig.cmake.in
|
||||
+++ b/CMake/abslConfig.cmake.in
|
||||
@@ -6,3 +6,5 @@ find_dependency(Threads)
|
||||
@PACKAGE_INIT@
|
||||
|
||||
include ("${CMAKE_CURRENT_LIST_DIR}/@PROJECT_NAME@Targets.cmake")
|
||||
+
|
||||
+set(ABSL_USE_CXX17 @ABSL_USE_CXX17@)
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 750a475..239977f 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -67,6 +67,23 @@ else()
|
||||
option(ABSL_ENABLE_INSTALL "Enable install rule" ON)
|
||||
endif()
|
||||
|
||||
+# CXX standard
|
||||
+option(ABSL_USE_CXX17 "Enable CXX 17 standard" OFF)
|
||||
+
|
||||
+if (ABSL_USE_CXX17)
|
||||
+ set(CMAKE_CXX_STANDARD 17)
|
||||
+ set(STD_ANY 1)
|
||||
+ set(STD_OPTIONAL 1)
|
||||
+ set(STD_STRING_VIEW 1)
|
||||
+ set(STD_VARIANT 1)
|
||||
+else()
|
||||
+ set(CMAKE_CXX_STANDARD 11)
|
||||
+ set(STD_ANY 0)
|
||||
+ set(STD_OPTIONAL 0)
|
||||
+ set(STD_STRING_VIEW 0)
|
||||
+ set(STD_VARIANT 0)
|
||||
+endif()
|
||||
+
|
||||
option(ABSL_PROPAGATE_CXX_STD
|
||||
"Use CMake C++ standard meta features (e.g. cxx_std_11) that propagate to targets that link to Abseil"
|
||||
OFF) # TODO: Default to ON for CMake 3.8 and greater.
|
||||
diff --git a/absl/base/CMakeLists.txt b/absl/base/CMakeLists.txt
|
||||
index c7233cb..65a9076 100644
|
||||
--- a/absl/base/CMakeLists.txt
|
||||
+++ b/absl/base/CMakeLists.txt
|
||||
@@ -38,6 +38,11 @@ absl_cc_library(
|
||||
COPTS
|
||||
${ABSL_DEFAULT_COPTS}
|
||||
)
|
||||
+if (NOT EXISTS ${CMAKE_CURRENT_LIST_DIR}/options.h.in)
|
||||
+ file(RENAME ${CMAKE_CURRENT_LIST_DIR}/options.h ${CMAKE_CURRENT_LIST_DIR}/options.h.in)
|
||||
+endif()
|
||||
+file(REMOVE ${CMAKE_CURRENT_LIST_DIR}/options.h)
|
||||
+configure_file(${CMAKE_CURRENT_LIST_DIR}/options.h.in ${CMAKE_CURRENT_LIST_DIR}/options.h @ONLY)
|
||||
|
||||
absl_cc_library(
|
||||
NAME
|
||||
diff --git a/absl/base/options.h b/absl/base/options.h
|
||||
index 56b4e36..0b098ed 100644
|
||||
--- a/absl/base/options.h
|
||||
+++ b/absl/base/options.h
|
||||
@@ -100,7 +100,7 @@
|
||||
// User code should not inspect this macro. To check in the preprocessor if
|
||||
// absl::any is a typedef of std::any, use the feature macro ABSL_USES_STD_ANY.
|
||||
|
||||
-#define ABSL_OPTION_USE_STD_ANY 2
|
||||
+#define ABSL_OPTION_USE_STD_ANY @STD_ANY@
|
||||
|
||||
|
||||
// ABSL_OPTION_USE_STD_OPTIONAL
|
||||
@@ -127,7 +127,7 @@
|
||||
// absl::optional is a typedef of std::optional, use the feature macro
|
||||
// ABSL_USES_STD_OPTIONAL.
|
||||
|
||||
-#define ABSL_OPTION_USE_STD_OPTIONAL 2
|
||||
+#define ABSL_OPTION_USE_STD_OPTIONAL @STD_OPTIONAL@
|
||||
|
||||
|
||||
// ABSL_OPTION_USE_STD_STRING_VIEW
|
||||
@@ -154,7 +154,7 @@
|
||||
// absl::string_view is a typedef of std::string_view, use the feature macro
|
||||
// ABSL_USES_STD_STRING_VIEW.
|
||||
|
||||
-#define ABSL_OPTION_USE_STD_STRING_VIEW 2
|
||||
+#define ABSL_OPTION_USE_STD_STRING_VIEW @STD_STRING_VIEW@
|
||||
|
||||
// ABSL_OPTION_USE_STD_VARIANT
|
||||
//
|
||||
@@ -180,7 +180,7 @@
|
||||
// absl::variant is a typedef of std::variant, use the feature macro
|
||||
// ABSL_USES_STD_VARIANT.
|
||||
|
||||
-#define ABSL_OPTION_USE_STD_VARIANT 2
|
||||
+#define ABSL_OPTION_USE_STD_VARIANT @STD_VARIANT@
|
||||
|
||||
|
||||
// ABSL_OPTION_USE_INLINE_NAMESPACE
|
||||
55
externals/vcpkg/ports/abseil/portfile.cmake
vendored
Executable file
55
externals/vcpkg/ports/abseil/portfile.cmake
vendored
Executable file
@@ -0,0 +1,55 @@
|
||||
if (NOT VCPKG_TARGET_IS_WINDOWS)
|
||||
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
||||
endif()
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO abseil/abseil-cpp
|
||||
REF 215105818dfde3174fe799600bb0f3cae233d0bf #LTS 20211102, Patch 1
|
||||
SHA512 75d234eac76be8790cf09e3e1144e4b4cf5cacb61e46961a9e4a35b37d0fa85243afdd5de5f47a006ef96af6fc91ecc0c233297c4c32258c08d46304b3361330
|
||||
HEAD_REF master
|
||||
PATCHES
|
||||
# in C++17 mode, use std::any, std::optional, std::string_view, std::variant
|
||||
# instead of the library replacement types
|
||||
# in C++11 mode, force use of library replacement types, otherwise the automatic
|
||||
# detection can cause ABI issues depending on which compiler options
|
||||
# are enabled for consuming user code
|
||||
fix-cxx-standard.patch
|
||||
)
|
||||
|
||||
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
||||
FEATURES
|
||||
cxx17 ABSL_USE_CXX17
|
||||
)
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
DISABLE_PARALLEL_CONFIGURE
|
||||
OPTIONS ${FEATURE_OPTIONS}
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
vcpkg_cmake_config_fixup(PACKAGE_NAME absl CONFIG_PATH lib/cmake/absl)
|
||||
vcpkg_fixup_pkgconfig()
|
||||
|
||||
vcpkg_copy_pdbs()
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share"
|
||||
"${CURRENT_PACKAGES_DIR}/debug/include"
|
||||
"${CURRENT_PACKAGES_DIR}/include/absl/copts"
|
||||
"${CURRENT_PACKAGES_DIR}/include/absl/strings/testdata"
|
||||
"${CURRENT_PACKAGES_DIR}/include/absl/time/internal/cctz/testdata"
|
||||
)
|
||||
|
||||
if (VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
||||
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/absl/base/config.h"
|
||||
"#elif defined(ABSL_CONSUME_DLL)" "#elif 1"
|
||||
)
|
||||
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/absl/base/internal/thread_identity.h"
|
||||
"&& !defined(ABSL_CONSUME_DLL)" "&& 0"
|
||||
)
|
||||
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/absl/container/internal/hashtablez_sampler.h"
|
||||
"!defined(ABSL_CONSUME_DLL)" "0"
|
||||
)
|
||||
endif()
|
||||
|
||||
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
||||
26
externals/vcpkg/ports/abseil/vcpkg.json
vendored
Executable file
26
externals/vcpkg/ports/abseil/vcpkg.json
vendored
Executable file
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"name": "abseil",
|
||||
"version-string": "20211102.1",
|
||||
"description": [
|
||||
"an open-source collection designed to augment the C++ standard library.",
|
||||
"Abseil is an open-source collection of C++ library code designed to augment the C++ standard library. The Abseil library code is collected from Google's own C++ code base, has been extensively tested and used in production, and is the same code we depend on in our daily coding lives.",
|
||||
"In some cases, Abseil provides pieces missing from the C++ standard; in others, Abseil provides alternatives to the standard for special needs we've found through usage in the Google code base. We denote those cases clearly within the library code we provide you.",
|
||||
"Abseil is not meant to be a competitor to the standard library; we've just found that many of these utilities serve a purpose within our code base, and we now want to provide those resources to the C++ community as a whole."
|
||||
],
|
||||
"homepage": "https://github.com/abseil/abseil-cpp",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
],
|
||||
"features": {
|
||||
"cxx17": {
|
||||
"description": "Enable compiler C++17."
|
||||
}
|
||||
}
|
||||
}
|
||||
33
externals/vcpkg/ports/absent/portfile.cmake
vendored
Executable file
33
externals/vcpkg/ports/absent/portfile.cmake
vendored
Executable file
@@ -0,0 +1,33 @@
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO rvarago/absent
|
||||
REF 0.3.1
|
||||
SHA512 c7b7d29422ef8afc48e3093496e1dd055cfe9969ae037c2b06ea70fe4283e7a7e9129171efaa257e909c535e24df5861b992b24b00ec03f965730e6a22e13015
|
||||
)
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
OPTIONS
|
||||
-DBUILD_TESTS=OFF
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
|
||||
vcpkg_fixup_cmake_targets(
|
||||
CONFIG_PATH lib/cmake/${PORT}
|
||||
)
|
||||
|
||||
file(REMOVE_RECURSE
|
||||
${CURRENT_PACKAGES_DIR}/debug
|
||||
${CURRENT_PACKAGES_DIR}/lib
|
||||
)
|
||||
|
||||
file(INSTALL
|
||||
${SOURCE_PATH}/README.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT}
|
||||
)
|
||||
|
||||
file(INSTALL
|
||||
${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright
|
||||
)
|
||||
|
||||
7
externals/vcpkg/ports/absent/vcpkg.json
vendored
Executable file
7
externals/vcpkg/ports/absent/vcpkg.json
vendored
Executable file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"name": "absent",
|
||||
"version-string": "0.3.1",
|
||||
"port-version": 1,
|
||||
"description": "A small C++17 library meant to simplify the composition of nullable types in a generic, type-safe, and declarative way",
|
||||
"homepage": "https://github.com/rvarago/absent"
|
||||
}
|
||||
437
externals/vcpkg/ports/ace/portfile.cmake
vendored
Executable file
437
externals/vcpkg/ports/ace/portfile.cmake
vendored
Executable file
@@ -0,0 +1,437 @@
|
||||
# Using zip archive under Linux would cause sh/perl to report "No such file or directory" or "bad interpreter"
|
||||
# when invoking `prj_install.pl`.
|
||||
# So far this issue haven't yet be triggered under WSL 1 distributions. Not sure the root cause of it.
|
||||
set(ACE_VERSION 7.0.6)
|
||||
string(REPLACE "." "_" ACE_VERSION_DIRECTORY ${ACE_VERSION})
|
||||
|
||||
if("tao" IN_LIST FEATURES)
|
||||
if(VCPKG_TARGET_IS_WINDOWS)
|
||||
# Don't change to vcpkg_from_github! This points to a release and not an archive
|
||||
vcpkg_download_distfile(ARCHIVE
|
||||
URLS "https://github.com/DOCGroup/ACE_TAO/releases/download/ACE%2BTAO-${ACE_VERSION_DIRECTORY}/ACE%2BTAO-src-${ACE_VERSION}.zip"
|
||||
FILENAME ACE-TAO-${ACE_VERSION}.zip
|
||||
SHA512 faef212f066263f9a87a688d105f15097f6b78fd77baf9e2b7da008027cd9ad0478b1f016892ee2d36fcb5aa6b14cc6fbb8fb906f018db6a1089820d522c65f9
|
||||
)
|
||||
else()
|
||||
vcpkg_download_distfile(ARCHIVE
|
||||
URLS "https://github.com/DOCGroup/ACE_TAO/releases/download/ACE%2BTAO-${ACE_VERSION_DIRECTORY}/ACE%2BTAO-src-${ACE_VERSION}.tar.gz"
|
||||
FILENAME ACE-TAO-${ACE_VERSION}.tar.gz
|
||||
SHA512 5d0bbeb1f729c3304637a15979303ba6efdbe52bb5d4ac73930fe9b86dbb73a5d74325476809863b26e1a3fc39a205d9d3a9909bce7bbdc5869de3e30f1bc317
|
||||
)
|
||||
endif()
|
||||
else()
|
||||
if(VCPKG_TARGET_IS_WINDOWS)
|
||||
# Don't change to vcpkg_from_github! This points to a release and not an archive
|
||||
vcpkg_download_distfile(ARCHIVE
|
||||
URLS "https://github.com/DOCGroup/ACE_TAO/releases/download/ACE%2BTAO-${ACE_VERSION_DIRECTORY}/ACE-src-${ACE_VERSION}.zip"
|
||||
FILENAME ACE-src-${ACE_VERSION}.zip
|
||||
SHA512 91f35727afc652f537ce242eb0a9e10878b51b63f9c10f72bddd6491481f10eec5d9d8469f79da3b95adeab7d6848eb1e8bad4e43f61db63daf796a2cd205d61
|
||||
)
|
||||
else()
|
||||
vcpkg_download_distfile(ARCHIVE
|
||||
URLS "https://github.com/DOCGroup/ACE_TAO/releases/download/ACE%2BTAO-${ACE_VERSION_DIRECTORY}/ACE-src-${ACE_VERSION}.tar.gz"
|
||||
FILENAME ACE-src-${ACE_VERSION}.tar.gz
|
||||
SHA512 9770fab3552835803a93c9a234218c9dd961ecde67227ee92e0972cd2e2ff267147b255ab437453a887bc47b20f70c7a64efeada5dde5d3ea2cade54200e8354
|
||||
)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
vcpkg_extract_source_archive_ex(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
ARCHIVE "${ARCHIVE}"
|
||||
)
|
||||
|
||||
set(ACE_ROOT "${SOURCE_PATH}")
|
||||
set(ENV{ACE_ROOT} "${ACE_ROOT}")
|
||||
set(ACE_SOURCE_PATH "${ACE_ROOT}/ace")
|
||||
if("tao" IN_LIST FEATURES)
|
||||
set(TAO_ROOT "${SOURCE_PATH}/TAO")
|
||||
set(ENV{TAO_ROOT} "${TAO_ROOT}")
|
||||
set(WORKSPACE "${TAO_ROOT}/TAO_ACE")
|
||||
else()
|
||||
set(WORKSPACE "${ACE_ROOT}/ace/ace")
|
||||
endif()
|
||||
if("wchar" IN_LIST FEATURES)
|
||||
list(APPEND ACE_FEATURE_LIST "uses_wchar=1")
|
||||
endif()
|
||||
if("zlib" IN_LIST FEATURES)
|
||||
list(APPEND ACE_FEATURE_LIST "zlib=1")
|
||||
set(ENV{ZLIB_ROOT} "${CURRENT_INSTALLED_DIR}")
|
||||
else()
|
||||
list(APPEND ACE_FEATURE_LIST "zlib=0")
|
||||
endif()
|
||||
if("ssl" IN_LIST FEATURES)
|
||||
list(APPEND ACE_FEATURE_LIST "ssl=1")
|
||||
list(APPEND ACE_FEATURE_LIST "openssl11=1")
|
||||
set(ENV{SSL_ROOT} "${CURRENT_INSTALLED_DIR}")
|
||||
else()
|
||||
list(APPEND ACE_FEATURE_LIST "ssl=0")
|
||||
endif()
|
||||
if("xml-utils" IN_LIST FEATURES)
|
||||
list(APPEND ACE_FEATURE_LIST "xerces3=1")
|
||||
set(ENV{XERCESCROOT} "${CURRENT_INSTALLED_DIR}")
|
||||
else()
|
||||
list(APPEND ACE_FEATURE_LIST "xerces3=0")
|
||||
endif()
|
||||
list(JOIN ACE_FEATURE_LIST "," ACE_FEATURES)
|
||||
|
||||
# Acquire Perl and add it to PATH (for execution of MPC)
|
||||
vcpkg_find_acquire_program(PERL)
|
||||
get_filename_component(PERL_PATH ${PERL} DIRECTORY)
|
||||
vcpkg_add_to_path("${PERL_PATH}")
|
||||
|
||||
if (TRIPLET_SYSTEM_ARCH MATCHES "x86")
|
||||
set(MSBUILD_PLATFORM "Win32")
|
||||
else ()
|
||||
set(MSBUILD_PLATFORM ${TRIPLET_SYSTEM_ARCH})
|
||||
endif()
|
||||
|
||||
# Add ace/config.h file
|
||||
# see https://htmlpreview.github.io/?https://github.com/DOCGroup/ACE_TAO/blob/master/ACE/ACE-INSTALL.html
|
||||
if(VCPKG_TARGET_IS_WINDOWS)
|
||||
if(VCPKG_PLATFORM_TOOLSET MATCHES "v140")
|
||||
set(SOLUTION_TYPE vc14)
|
||||
elseif(VCPKG_PLATFORM_TOOLSET MATCHES "v141")
|
||||
set(SOLUTION_TYPE vs2017)
|
||||
elseif(VCPKG_PLATFORM_TOOLSET MATCHES "v142")
|
||||
set(SOLUTION_TYPE vs2019)
|
||||
else()
|
||||
set(SOLUTION_TYPE vs2022)
|
||||
endif()
|
||||
if (VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
||||
set(MPC_STATIC_FLAG -static)
|
||||
endif()
|
||||
set(config_h_contents "#include \"ace/config-windows.h\"\n")
|
||||
elseif(VCPKG_TARGET_IS_LINUX)
|
||||
set(SOLUTION_TYPE gnuace)
|
||||
set(config_h_contents "#include \"ace/config-linux.h\"\n")
|
||||
file(WRITE "${ACE_ROOT}/include/makeinclude/platform_macros.GNU" "CCFLAGS += -fPIC\ninclude $(ACE_ROOT)/include/makeinclude/platform_linux.GNU")
|
||||
elseif(VCPKG_TARGET_IS_OSX)
|
||||
set(SOLUTION_TYPE gnuace)
|
||||
set(config_h_contents "#include \"ace/config-macosx.h\"\n")
|
||||
file(WRITE "${ACE_ROOT}/include/makeinclude/platform_macros.GNU" "include $(ACE_ROOT)/include/makeinclude/platform_macosx.GNU")
|
||||
endif()
|
||||
|
||||
if("wchar" IN_LIST FEATURES)
|
||||
string(APPEND config_h_contents "#define ACE_USES_WCHAR 1\n")
|
||||
endif()
|
||||
file(WRITE "${ACE_SOURCE_PATH}/config.h" "${config_h_contents}")
|
||||
|
||||
if(VCPKG_TARGET_IS_UWP)
|
||||
set(MPC_VALUE_TEMPLATE -value_template link_options+=/APPCONTAINER)
|
||||
endif()
|
||||
|
||||
# Invoke mwc.pl to generate the necessary solution and project files
|
||||
vcpkg_execute_build_process(
|
||||
COMMAND ${PERL} "${ACE_ROOT}/bin/mwc.pl" -type ${SOLUTION_TYPE} -features "${ACE_FEATURES}" "${WORKSPACE}.mwc" ${MPC_STATIC_FLAG} ${MPC_VALUE_TEMPLATE}
|
||||
WORKING_DIRECTORY "${ACE_ROOT}"
|
||||
LOGNAME mwc-${TARGET_TRIPLET}
|
||||
)
|
||||
|
||||
if("xml" IN_LIST FEATURES)
|
||||
vcpkg_execute_build_process(
|
||||
COMMAND ${PERL} "${ACE_ROOT}/bin/mwc.pl" -type ${SOLUTION_TYPE} -features "${ACE_FEATURES}" "${ACE_ROOT}/ACEXML/ACEXML.mwc" ${MPC_STATIC_FLAG} ${MPC_VALUE_TEMPLATE}
|
||||
WORKING_DIRECTORY "${ACE_ROOT}/ACEXML"
|
||||
LOGNAME mwc-xml-${TARGET_TRIPLET}
|
||||
)
|
||||
endif()
|
||||
|
||||
if(VCPKG_TARGET_IS_WINDOWS)
|
||||
if("tao" IN_LIST FEATURES OR "xml" IN_LIST FEATURES)
|
||||
file(WRITE "${SOURCE_PATH}/Directory.Build.props" "<?xml version=\"1.0\" encoding=\"utf-8\"?>
|
||||
<Project xmlns=\"http://schemas.microsoft.com/developer/msbuild/2003\">
|
||||
<ItemDefinitionGroup>
|
||||
<ClCompile>
|
||||
<AdditionalOptions>/MP</AdditionalOptions>
|
||||
<AdditionalIncludeDirectories>${ACE_ROOT}</AdditionalIncludeDirectories>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalLibraryDirectories>${CURRENT_PACKAGES_DIR}/lib;${CURRENT_PACKAGES_DIR}/debug/lib;${CURRENT_INSTALLED_DIR}/lib;${CURRENT_INSTALLED_DIR}/debug/lib</AdditionalLibraryDirectories>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
</Project>")
|
||||
endif()
|
||||
|
||||
file(RELATIVE_PATH PROJECT_SUBPATH "${SOURCE_PATH}" "${WORKSPACE}.sln")
|
||||
vcpkg_install_msbuild(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
PROJECT_SUBPATH ${PROJECT_SUBPATH}
|
||||
LICENSE_SUBPATH COPYING
|
||||
PLATFORM ${MSBUILD_PLATFORM}
|
||||
SKIP_CLEAN
|
||||
)
|
||||
|
||||
# ACE itself does not define an install target, so it is not clear which
|
||||
# headers are public and which not. For the moment we install everything
|
||||
# that is in the source path and ends in .h, .inl
|
||||
function(install_includes ORIGINAL_PATH RELATIVE_PATHS)
|
||||
foreach(RELATIVE_PATH ${RELATIVE_PATHS})
|
||||
file(
|
||||
GLOB
|
||||
HEADER_FILES
|
||||
"${ORIGINAL_PATH}/${RELATIVE_PATH}/*.h"
|
||||
"${ORIGINAL_PATH}/${RELATIVE_PATH}/*.hpp"
|
||||
"${ORIGINAL_PATH}/${RELATIVE_PATH}/*.inl"
|
||||
"${ORIGINAL_PATH}/${RELATIVE_PATH}/*.cpp"
|
||||
"${ORIGINAL_PATH}/${RELATIVE_PATH}/*.idl"
|
||||
"${ORIGINAL_PATH}/${RELATIVE_PATH}/*.pidl")
|
||||
file(INSTALL ${HEADER_FILES}
|
||||
DESTINATION "${CURRENT_PACKAGES_DIR}/include/${RELATIVE_PATH}")
|
||||
endforeach()
|
||||
endfunction()
|
||||
|
||||
get_filename_component(SOURCE_PATH_SUFFIX "${SOURCE_PATH}" NAME)
|
||||
set(SOURCE_COPY_PATH "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/${SOURCE_PATH_SUFFIX}")
|
||||
|
||||
# Install headers in subdirectory
|
||||
set(ACE_INCLUDE_FOLDERS
|
||||
"ace"
|
||||
"ace/Compression"
|
||||
"ace/Compression/rle"
|
||||
"ace/ETCL"
|
||||
"ace/QoS"
|
||||
"ace/Monitor_Control"
|
||||
"ace/os_include"
|
||||
"ace/os_include/arpa"
|
||||
"ace/os_include/net"
|
||||
"ace/os_include/netinet"
|
||||
"ace/os_include/sys")
|
||||
install_includes("${SOURCE_COPY_PATH}" "${ACE_INCLUDE_FOLDERS}")
|
||||
|
||||
if("ssl" IN_LIST FEATURES)
|
||||
install_includes("${SOURCE_COPY_PATH}" "ace/SSL")
|
||||
endif()
|
||||
|
||||
if("tao" IN_LIST FEATURES)
|
||||
set(ACEXML_INCLUDE_FOLDERS "ACEXML/apps/svcconf" "ACEXML/common"
|
||||
"ACEXML/parser/parser")
|
||||
install_includes("${SOURCE_COPY_PATH}" "${ACEXML_INCLUDE_FOLDERS}")
|
||||
|
||||
set(ACE_PROTOCOLS_INCLUDE_FOLDERS "ace/HTBP" "ace/INet" "ace/RMCast"
|
||||
"ace/TMCast")
|
||||
install_includes("${SOURCE_COPY_PATH}/protocols" "${ACE_PROTOCOLS_INCLUDE_FOLDERS}")
|
||||
|
||||
install_includes("${SOURCE_COPY_PATH}" "Kokyu")
|
||||
|
||||
set(TAO_ORBSVCS_INCLUDE_FOLDERS
|
||||
"orbsvcs"
|
||||
"orbsvcs/AV"
|
||||
"orbsvcs/Concurrency"
|
||||
"orbsvcs/CosEvent"
|
||||
"orbsvcs/Event"
|
||||
"orbsvcs/FaultTolerance"
|
||||
"orbsvcs/FtRtEvent/ClientORB"
|
||||
"orbsvcs/FtRtEvent/EventChannel"
|
||||
"orbsvcs/FtRtEvent/Utils"
|
||||
"orbsvcs/HTIOP"
|
||||
"orbsvcs/IFRService"
|
||||
"orbsvcs/LifeCycle"
|
||||
"orbsvcs/LoadBalancing"
|
||||
"orbsvcs/Log"
|
||||
"orbsvcs/Naming"
|
||||
"orbsvcs/Naming/FaultTolerant"
|
||||
"orbsvcs/Notify"
|
||||
"orbsvcs/Notify/Any"
|
||||
"orbsvcs/Notify/MonitorControl"
|
||||
"orbsvcs/Notify/MonitorControlExt"
|
||||
"orbsvcs/Notify/Sequence"
|
||||
"orbsvcs/Notify/Structured"
|
||||
"orbsvcs/PortableGroup"
|
||||
"orbsvcs/Property"
|
||||
"orbsvcs/Sched"
|
||||
"orbsvcs/Security"
|
||||
"orbsvcs/Time"
|
||||
"orbsvcs/Trader")
|
||||
if("ssl" IN_LIST FEATURES)
|
||||
list(APPEND TAO_ORBSVCS_INCLUDE_FOLDERS "orbsvcs/SSLIOP")
|
||||
endif()
|
||||
install_includes("${SOURCE_COPY_PATH}/TAO/orbsvcs" "${TAO_ORBSVCS_INCLUDE_FOLDERS}")
|
||||
|
||||
set(TAO_ROOT_ORBSVCS_INCLUDE_FOLDERS "orbsvcs/FT_ReplicationManager"
|
||||
"orbsvcs/Notify_Service")
|
||||
install_includes("${SOURCE_COPY_PATH}/TAO" "${TAO_ROOT_ORBSVCS_INCLUDE_FOLDERS}")
|
||||
|
||||
set(TAO_INCLUDE_FOLDERS
|
||||
"tao"
|
||||
"tao/AnyTypeCode"
|
||||
"tao/BiDir_GIOP"
|
||||
"tao/CSD_Framework"
|
||||
"tao/CSD_ThreadPool"
|
||||
"tao/CodecFactory"
|
||||
"tao/Codeset"
|
||||
"tao/Compression"
|
||||
"tao/Compression/rle"
|
||||
"tao/DiffServPolicy"
|
||||
"tao/DynamicAny"
|
||||
"tao/DynamicInterface"
|
||||
"tao/Dynamic_TP"
|
||||
"tao/ETCL"
|
||||
"tao/EndpointPolicy"
|
||||
"tao/IFR_Client"
|
||||
"tao/IORInterceptor"
|
||||
"tao/IORManipulation"
|
||||
"tao/IORTable"
|
||||
"tao/ImR_Client"
|
||||
"tao/Messaging"
|
||||
"tao/Monitor"
|
||||
"tao/ObjRefTemplate"
|
||||
"tao/PI"
|
||||
"tao/PI_Server"
|
||||
"tao/PortableServer"
|
||||
"tao/RTCORBA"
|
||||
"tao/RTPortableServer"
|
||||
"tao/RTScheduling"
|
||||
"tao/SmartProxies"
|
||||
"tao/Strategies"
|
||||
"tao/TransportCurrent"
|
||||
"tao/TypeCodeFactory"
|
||||
"tao/Utils"
|
||||
"tao/Valuetype"
|
||||
"tao/ZIOP")
|
||||
if("zlib" IN_LIST FEATURES)
|
||||
list(APPEND TAO_INCLUDE_FOLDERS "tao/Compression/zlib")
|
||||
endif()
|
||||
install_includes("${SOURCE_COPY_PATH}/TAO" "${TAO_INCLUDE_FOLDERS}")
|
||||
endif()
|
||||
|
||||
if("xml" IN_LIST FEATURES)
|
||||
file(RELATIVE_PATH PROJECT_SUBPATH_XML "${SOURCE_PATH}" "${ACE_ROOT}/ACEXML/ACEXML.sln")
|
||||
vcpkg_install_msbuild(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
PROJECT_SUBPATH ${PROJECT_SUBPATH_XML}
|
||||
LICENSE_SUBPATH COPYING
|
||||
PLATFORM ${MSBUILD_PLATFORM}
|
||||
SKIP_CLEAN
|
||||
)
|
||||
|
||||
set(ACEXML_INCLUDE_FOLDERS "ACEXML/common"
|
||||
"ACEXML/parser/parser")
|
||||
install_includes("${SOURCE_COPY_PATH}" "${ACEXML_INCLUDE_FOLDERS}")
|
||||
endif()
|
||||
|
||||
# Remove dlls without any export
|
||||
if("tao" IN_LIST FEATURES OR "xml" IN_LIST FEATURES)
|
||||
if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
||||
file(REMOVE
|
||||
"${CURRENT_PACKAGES_DIR}/bin/ACEXML_XML_Svc_Conf_Parser.dll"
|
||||
"${CURRENT_PACKAGES_DIR}/bin/ACEXML_XML_Svc_Conf_Parser.pdb"
|
||||
"${CURRENT_PACKAGES_DIR}/debug/bin/ACEXML_XML_Svc_Conf_Parserd.dll"
|
||||
"${CURRENT_PACKAGES_DIR}/debug/bin/ACEXML_XML_Svc_Conf_Parserd_dll.pdb")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
vcpkg_clean_msbuild()
|
||||
elseif(VCPKG_TARGET_IS_LINUX OR VCPKG_TARGET_IS_OSX)
|
||||
FIND_PROGRAM(MAKE make)
|
||||
IF (NOT MAKE)
|
||||
MESSAGE(FATAL_ERROR "MAKE not found")
|
||||
ENDIF ()
|
||||
|
||||
if("ssl" IN_LIST FEATURES)
|
||||
list(APPEND _ace_makefile_macros "ssl=1")
|
||||
endif()
|
||||
|
||||
if (VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
||||
list(APPEND _ace_makefile_macros "static_libs_only=1")
|
||||
endif()
|
||||
|
||||
set(ENV{INSTALL_PREFIX} "${CURRENT_PACKAGES_DIR}")
|
||||
# Set `PWD` environment variable since ACE's `install` make target calculates install dir using this env.
|
||||
set(_prev_env $ENV{PWD})
|
||||
get_filename_component(WORKING_DIR "${WORKSPACE}" DIRECTORY)
|
||||
set(ENV{PWD} "${WORKING_DIR}")
|
||||
|
||||
message(STATUS "Building ${TARGET_TRIPLET}-dbg")
|
||||
vcpkg_execute_build_process(
|
||||
COMMAND make ${_ace_makefile_macros} "debug=1" "optimize=0" "-j${VCPKG_CONCURRENCY}"
|
||||
WORKING_DIRECTORY "${WORKING_DIR}"
|
||||
LOGNAME make-${TARGET_TRIPLET}-dbg
|
||||
)
|
||||
if("xml" IN_LIST FEATURES)
|
||||
vcpkg_execute_build_process(
|
||||
COMMAND make ${_ace_makefile_macros} "debug=1" "optimize=0" "-j${VCPKG_CONCURRENCY}"
|
||||
WORKING_DIRECTORY "${WORKING_DIR}/ACEXML"
|
||||
LOGNAME make-xml-${TARGET_TRIPLET}-dbg
|
||||
)
|
||||
endif()
|
||||
message(STATUS "Building ${TARGET_TRIPLET}-dbg done")
|
||||
message(STATUS "Packaging ${TARGET_TRIPLET}-dbg")
|
||||
vcpkg_execute_build_process(
|
||||
COMMAND make ${_ace_makefile_macros} install
|
||||
WORKING_DIRECTORY "${WORKING_DIR}"
|
||||
LOGNAME install-${TARGET_TRIPLET}-dbg
|
||||
)
|
||||
if("xml" IN_LIST FEATURES)
|
||||
vcpkg_execute_build_process(
|
||||
COMMAND make ${_ace_makefile_macros} install
|
||||
WORKING_DIRECTORY "${WORKING_DIR}/ACEXML"
|
||||
LOGNAME install-xml-${TARGET_TRIPLET}-dbg
|
||||
)
|
||||
endif()
|
||||
|
||||
file(COPY "${CURRENT_PACKAGES_DIR}/lib" DESTINATION "${CURRENT_PACKAGES_DIR}/debug")
|
||||
|
||||
file(GLOB _pkg_components "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/*.pc")
|
||||
foreach(_pkg_comp ${_pkg_components})
|
||||
file(READ ${_pkg_comp} _content)
|
||||
string(REPLACE "libdir=${CURRENT_PACKAGES_DIR}/lib" "libdir=${CURRENT_PACKAGES_DIR}/debug/lib" _content ${_content})
|
||||
file(WRITE ${_pkg_comp} ${_content})
|
||||
endforeach()
|
||||
message(STATUS "Packaging ${TARGET_TRIPLET}-dbg done")
|
||||
|
||||
vcpkg_execute_build_process(
|
||||
COMMAND make ${_ace_makefile_macros} realclean
|
||||
WORKING_DIRECTORY "${WORKING_DIR}"
|
||||
LOGNAME realclean-${TARGET_TRIPLET}-dbg
|
||||
)
|
||||
if("xml" IN_LIST FEATURES)
|
||||
vcpkg_execute_build_process(
|
||||
COMMAND make ${_ace_makefile_macros} realclean
|
||||
WORKING_DIRECTORY "${WORKING_DIR}/ACEXML"
|
||||
LOGNAME realclean-xml-${TARGET_TRIPLET}-dbg
|
||||
)
|
||||
endif()
|
||||
|
||||
message(STATUS "Building ${TARGET_TRIPLET}-rel")
|
||||
vcpkg_execute_build_process(
|
||||
COMMAND make ${_ace_makefile_macros} "-j${VCPKG_CONCURRENCY}"
|
||||
WORKING_DIRECTORY "${WORKING_DIR}"
|
||||
LOGNAME make-${TARGET_TRIPLET}-rel
|
||||
)
|
||||
if("xml" IN_LIST FEATURES)
|
||||
vcpkg_execute_build_process(
|
||||
COMMAND make ${_ace_makefile_macros} "-j${VCPKG_CONCURRENCY}"
|
||||
WORKING_DIRECTORY "${WORKING_DIR}/ACEXML"
|
||||
LOGNAME make-xml-${TARGET_TRIPLET}-rel
|
||||
)
|
||||
endif()
|
||||
message(STATUS "Building ${TARGET_TRIPLET}-rel done")
|
||||
message(STATUS "Packaging ${TARGET_TRIPLET}-rel")
|
||||
vcpkg_execute_build_process(
|
||||
COMMAND make ${_ace_makefile_macros} install
|
||||
WORKING_DIRECTORY "${WORKING_DIR}"
|
||||
LOGNAME install-${TARGET_TRIPLET}-rel
|
||||
)
|
||||
if("xml" IN_LIST FEATURES)
|
||||
vcpkg_execute_build_process(
|
||||
COMMAND make ${_ace_makefile_macros} install
|
||||
WORKING_DIRECTORY "${WORKING_DIR}/ACEXML"
|
||||
LOGNAME install-xml-${TARGET_TRIPLET}-rel
|
||||
)
|
||||
endif()
|
||||
if("tao" IN_LIST FEATURES)
|
||||
file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/tools")
|
||||
file(RENAME "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/tools/${PORT}")
|
||||
endif()
|
||||
message(STATUS "Packaging ${TARGET_TRIPLET}-rel done")
|
||||
# Restore `PWD` environment variable
|
||||
set($ENV{PWD} _prev_env)
|
||||
|
||||
# Handle copyright
|
||||
file(INSTALL "${ACE_ROOT}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
||||
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share/ace/bin/MakeProjectCreator")
|
||||
file(REMOVE "${CURRENT_PACKAGES_DIR}/share/ace/ace-devel.sh")
|
||||
endif()
|
||||
|
||||
vcpkg_fixup_pkgconfig()
|
||||
43
externals/vcpkg/ports/ace/vcpkg.json
vendored
Executable file
43
externals/vcpkg/ports/ace/vcpkg.json
vendored
Executable file
@@ -0,0 +1,43 @@
|
||||
{
|
||||
"name": "ace",
|
||||
"version": "7.0.6",
|
||||
"port-version": 3,
|
||||
"maintainers": "Johnny Willemsen <jwillemsen@remedy.nl>",
|
||||
"description": "The ADAPTIVE Communication Environment",
|
||||
"homepage": "https://www.dre.vanderbilt.edu/~schmidt/ACE.html",
|
||||
"license": "DOC",
|
||||
"features": {
|
||||
"ssl": {
|
||||
"description": "Enable SSL/TLS features in ACE",
|
||||
"dependencies": [
|
||||
"openssl"
|
||||
]
|
||||
},
|
||||
"tao": {
|
||||
"description": "The ACE ORB"
|
||||
},
|
||||
"wchar": {
|
||||
"description": "Enable extra wide char functions in ACE"
|
||||
},
|
||||
"xml": {
|
||||
"description": "Enable XML features in ACE"
|
||||
},
|
||||
"xml-utils": {
|
||||
"description": "Include the ACE_XML_Utils library",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "xerces-c",
|
||||
"features": [
|
||||
"xmlch-wchar"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"zlib": {
|
||||
"description": "Enable zlib support",
|
||||
"dependencies": [
|
||||
"zlib"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
76
externals/vcpkg/ports/activemq-cpp/FunctionLevelLinkingOn.diff
vendored
Executable file
76
externals/vcpkg/ports/activemq-cpp/FunctionLevelLinkingOn.diff
vendored
Executable file
@@ -0,0 +1,76 @@
|
||||
diff --git a/vs2010-build/activemq-cpp.vcxproj b/vs2010-build/activemq-cpp.vcxproj
|
||||
index a43f072..54b4822 100644
|
||||
--- a/vs2010-build/activemq-cpp.vcxproj
|
||||
+++ b/vs2010-build/activemq-cpp.vcxproj
|
||||
@@ -2576,7 +2576,7 @@
|
||||
<AdditionalIncludeDirectories>../src/main;$(APR_DIST)\$(PlatformName)\include;$(OPENSSL_DIST)\$(PlatformName)\include;$(PLATFORM_SDK)\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<MinimalRebuild>false</MinimalRebuild>
|
||||
<BasicRuntimeChecks>Default</BasicRuntimeChecks>
|
||||
- <FunctionLevelLinking>false</FunctionLevelLinking>
|
||||
+ <FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<CreateHotpatchableImage>false</CreateHotpatchableImage>
|
||||
<RuntimeTypeInfo>true</RuntimeTypeInfo>
|
||||
<PrecompiledHeaderFile>
|
||||
@@ -2602,7 +2602,7 @@
|
||||
<AdditionalIncludeDirectories>../src/main;$(APR_DIST)\$(PlatformName)\include;$(OPENSSL_DIST)\$(PlatformName)\include;$(PLATFORM_SDK)\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<MinimalRebuild>false</MinimalRebuild>
|
||||
<BasicRuntimeChecks>Default</BasicRuntimeChecks>
|
||||
- <FunctionLevelLinking>false</FunctionLevelLinking>
|
||||
+ <FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<CreateHotpatchableImage>false</CreateHotpatchableImage>
|
||||
<RuntimeTypeInfo>true</RuntimeTypeInfo>
|
||||
<PrecompiledHeaderFile>
|
||||
@@ -2628,7 +2628,7 @@
|
||||
<AdditionalIncludeDirectories>../src/main;$(APR_DIST)\$(PlatformName)\include;$(OPENSSL_DIST)\$(PlatformName)\include;$(PLATFORM_SDK)\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<MinimalRebuild>false</MinimalRebuild>
|
||||
<BasicRuntimeChecks>Default</BasicRuntimeChecks>
|
||||
- <FunctionLevelLinking>false</FunctionLevelLinking>
|
||||
+ <FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<CreateHotpatchableImage>false</CreateHotpatchableImage>
|
||||
<RuntimeTypeInfo>true</RuntimeTypeInfo>
|
||||
<PrecompiledHeaderFile>
|
||||
@@ -2656,7 +2656,7 @@
|
||||
<AdditionalIncludeDirectories>../src/main;$(APR_DIST)\$(PlatformName)\include;$(OPENSSL_DIST)\$(PlatformName)\include;$(PLATFORM_SDK)\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<MinimalRebuild>false</MinimalRebuild>
|
||||
<BasicRuntimeChecks>Default</BasicRuntimeChecks>
|
||||
- <FunctionLevelLinking>false</FunctionLevelLinking>
|
||||
+ <FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<CreateHotpatchableImage>false</CreateHotpatchableImage>
|
||||
<RuntimeTypeInfo>true</RuntimeTypeInfo>
|
||||
<PrecompiledHeaderFile>
|
||||
@@ -2684,7 +2684,7 @@
|
||||
<AdditionalIncludeDirectories>../src/main;$(APR_DIST)\$(PlatformName)\include;$(OPENSSL_DIST)\$(PlatformName)\include;$(PLATFORM_SDK)\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<MinimalRebuild>false</MinimalRebuild>
|
||||
<BasicRuntimeChecks>Default</BasicRuntimeChecks>
|
||||
- <FunctionLevelLinking>false</FunctionLevelLinking>
|
||||
+ <FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<CreateHotpatchableImage>false</CreateHotpatchableImage>
|
||||
<RuntimeTypeInfo>true</RuntimeTypeInfo>
|
||||
<PrecompiledHeaderFile>
|
||||
@@ -2710,7 +2710,7 @@
|
||||
<AdditionalIncludeDirectories>../src/main;$(APR_DIST)\$(PlatformName)\include;$(OPENSSL_DIST)\$(PlatformName)\include;$(PLATFORM_SDK)\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<MinimalRebuild>false</MinimalRebuild>
|
||||
<BasicRuntimeChecks>Default</BasicRuntimeChecks>
|
||||
- <FunctionLevelLinking>false</FunctionLevelLinking>
|
||||
+ <FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<CreateHotpatchableImage>false</CreateHotpatchableImage>
|
||||
<RuntimeTypeInfo>true</RuntimeTypeInfo>
|
||||
<PrecompiledHeaderFile>
|
||||
@@ -2736,7 +2736,7 @@
|
||||
<AdditionalIncludeDirectories>../src/main;$(APR_DIST)\$(PlatformName)\include;$(OPENSSL_DIST)\$(PlatformName)\include;$(PLATFORM_SDK)\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<MinimalRebuild>false</MinimalRebuild>
|
||||
<BasicRuntimeChecks>Default</BasicRuntimeChecks>
|
||||
- <FunctionLevelLinking>false</FunctionLevelLinking>
|
||||
+ <FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<CreateHotpatchableImage>false</CreateHotpatchableImage>
|
||||
<RuntimeTypeInfo>true</RuntimeTypeInfo>
|
||||
<PrecompiledHeaderFile>
|
||||
@@ -2764,7 +2764,7 @@
|
||||
<AdditionalIncludeDirectories>../src/main;$(APR_DIST)\$(PlatformName)\include;$(OPENSSL_DIST)\$(PlatformName)\include;$(PLATFORM_SDK)\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<MinimalRebuild>false</MinimalRebuild>
|
||||
<BasicRuntimeChecks>Default</BasicRuntimeChecks>
|
||||
- <FunctionLevelLinking>false</FunctionLevelLinking>
|
||||
+ <FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<CreateHotpatchableImage>false</CreateHotpatchableImage>
|
||||
<RuntimeTypeInfo>true</RuntimeTypeInfo>
|
||||
<PrecompiledHeaderFile>
|
||||
319
externals/vcpkg/ports/activemq-cpp/activemq-cppConfig.cmake
vendored
Executable file
319
externals/vcpkg/ports/activemq-cpp/activemq-cppConfig.cmake
vendored
Executable file
@@ -0,0 +1,319 @@
|
||||
set(_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_DIR}")
|
||||
foreach(i RANGE 1 2)
|
||||
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
|
||||
if (_IMPORT_PREFIX STREQUAL "/")
|
||||
set(_IMPORT_PREFIX "")
|
||||
break()
|
||||
endif()
|
||||
endforeach()
|
||||
|
||||
# Macro to find OS dependencies for windows builds.
|
||||
# Sets up for failure find_package() failure if dependencies not found.
|
||||
# On success, creates targets unofficial::activemq-cpp::ws2, unofficial::activemq-cpp::rpcrt4, and unofficial::activemq-cpp::mswsock.
|
||||
# Sets boolean ${CMAKE_FIND_PACKAGE_NAME}_WINDOWS_DEPENDENCIES_FOUND to TRUE or FALSE to indicate success or failure.
|
||||
macro(_activemq_cpp_windows_dependencies)
|
||||
find_library(ACTIVEMQ_CPP_LIBWS2 WS2_32)
|
||||
find_file(ACTIVEMQ_CPP_DLLWS2 WS2_32.dll)
|
||||
find_library(ACTIVEMQ_CPP_LIBRPCRT4 RpcRT4)
|
||||
find_file(ACTIVEMQ_CPP_DLLRPCRT4 RpcRT4.dll)
|
||||
find_library(ACTIVEMQ_CPP_LIBMSWSOCK MsWsock)
|
||||
find_file(ACTIVEMQ_CPP_DLLMSWSOCK MsWsock.dll)
|
||||
if(ACTIVEMQ_CPP_LIBWS2 AND ACTIVEMQ_CPP_DLLWS2 AND ACTIVEMQ_CPP_LIBRPCRT4 AND ACTIVEMQ_CPP_DLLRPCRT4 AND ACTIVEMQ_CPP_LIBMSWSOCK AND ACTIVEMQ_CPP_DLLMSWSOCK)
|
||||
add_library(unofficial::activemq-cpp::ws2 SHARED IMPORTED)
|
||||
set_target_properties(unofficial::activemq-cpp::ws2
|
||||
PROPERTIES
|
||||
IMPORTED_LOCATION "${ACTIVEMQ_CPP_DLLWS2}"
|
||||
IMPORTED_IMPLIB "${ACTIVEMQ_CPP_LIBWS2}"
|
||||
IMPORTED_CONFIGURATIONS "RELEASE;DEBUG"
|
||||
)
|
||||
add_library(unofficial::activemq-cpp::rpcrt4 SHARED IMPORTED)
|
||||
set_target_properties(unofficial::activemq-cpp::rpcrt4
|
||||
PROPERTIES
|
||||
IMPORTED_LOCATION "${ACTIVEMQ_CPP_DLLRPCRT4}"
|
||||
IMPORTED_IMPLIB "${ACTIVEMQ_CPP_LIBRPCRT4}"
|
||||
IMPORTED_CONFIGURATIONS "RELEASE;DEBUG"
|
||||
)
|
||||
add_library(unofficial::activemq-cpp::mswsock SHARED IMPORTED)
|
||||
set_target_properties(unofficial::activemq-cpp::mswsock
|
||||
PROPERTIES
|
||||
IMPORTED_LOCATION "${ACTIVEMQ_CPP_DLLMSWSOCK}"
|
||||
IMPORTED_IMPLIB "${ACTIVEMQ_CPP_LIBMSWSOCK}"
|
||||
IMPORTED_CONFIGURATIONS "RELEASE;DEBUG"
|
||||
)
|
||||
set(${CMAKE_FIND_PACKAGE_NAME}_WINDOWS_DEPENDENCIES_FOUND TRUE)
|
||||
else()
|
||||
if (NOT ACTIVEMQ_CPP_LIBWS2)
|
||||
list(APPEND _ACTIVEMQ_CPP_MISSINGS "WS2_32.lib")
|
||||
endif()
|
||||
if (NOT ACTIVEMQ_CPP_DLLWS2)
|
||||
list(APPEND _ACTIVEMQ_CPP_MISSINGS "WS2_32.dll")
|
||||
endif()
|
||||
if (NOT ACTIVEMQ_CPP_LIBRPCRT4)
|
||||
list(APPEND _ACTIVEMQ_CPP_MISSINGS "RpcRT4.lib")
|
||||
endif()
|
||||
if (NOT ACTIVEMQ_CPP_DLLRPCRT4)
|
||||
list(APPEND _ACTIVEMQ_CPP_MISSINGS "RpcRT4.dll")
|
||||
endif()
|
||||
if (NOT ACTIVEMQ_CPP_LIBMSWSOCK)
|
||||
list(APPEND _ACTIVEMQ_CPP_MISSINGS "MsWsock.lib")
|
||||
endif()
|
||||
if (NOT ACTIVEMQ_CPP_DLLMSWSOCK)
|
||||
list(APPEND _ACTIVEMQ_CPP_MISSINGS "MsWsock.dll")
|
||||
endif()
|
||||
list(JOIN _ACTIVEMQ_CPP_MISSINGS ", " _ACTIVEMQ_CPP_MISSINGS_STR)
|
||||
list(LENGTH _ACTIVEMQ_CPP_MISSINGS _ACTIVEMQ_CPP_MISSINGS_COUNT)
|
||||
if(_ACTIVEMQ_CPP_MISSINGS_COUNT EQUALS 1)
|
||||
set(${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE "Activemq-cpp vcpkg install dependency failure: Did not find windows dependency: ${_ACTIVEMQ_CPP_MISSINGS_STR}")
|
||||
else()
|
||||
set(${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE "Activemq-cpp vcpkg install dependency failure: Did not find windows dependencies: ${_ACTIVEMQ_CPP_MISSINGS_STR}")
|
||||
endif()
|
||||
set(_ACTIVEMQ_CPP_MISSINGS_COUNT)
|
||||
set(_ACTIVEMQ_CPP_MISSINGS_STR)
|
||||
set(_ACTIVEMQ_CPP_MISSINGS)
|
||||
set(${CMAKE_FIND_PACKAGE_NAME}_FOUND FALSE)
|
||||
set(${CMAKE_FIND_PACKAGE_NAME}_WINDOWS_DEPENDENCIES_FOUND FALSE)
|
||||
endif()
|
||||
endmacro()
|
||||
|
||||
# Set the variable named VARNAME to "${FILE}" if the file FILE exists; clears it
|
||||
# otherwise. Opposite for VARNAME_MISSING.
|
||||
function(_set_exists VARNAME VARNAME_MISSING FILE)
|
||||
if (EXISTS "${FILE}")
|
||||
set(${VARNAME} "${FILE}" PARENT_SCOPE)
|
||||
unset(${VARNAME_MISSING} PARENT_SCOPE)
|
||||
else()
|
||||
set(${VARNAME_MISSING} "${FILE}" PARENT_SCOPE)
|
||||
unset(${VARNAME} PARENT_SCOPE)
|
||||
endif()
|
||||
endfunction()
|
||||
|
||||
# Add the unofficial::activemq-cpp::apr and unofficial::activemq-cpp::activemq-cpp targets
|
||||
# Doesn't work for Windows DLL installs because that takes more args...
|
||||
function(_add_apr_and_amq_targets INC_PARENT LIB_TYPE APR_REL APR_DEB AMQ_REL AMQ_DEB DEPS)
|
||||
# the APR port doesn't have a CMake config target so create one
|
||||
add_library(unofficial::activemq-cpp::apr ${LIB_TYPE} IMPORTED)
|
||||
set_target_properties(unofficial::activemq-cpp::apr
|
||||
PROPERTIES
|
||||
MAP_IMPORTED_CONFIG_MINSIZEREL Release
|
||||
MAP_IMPORTED_CONFIG_RELWITHDEBINFO Release
|
||||
IMPORTED_LOCATION_RELEASE "${APR_REL}"
|
||||
IMPORTED_LOCATION_DEBUG "${APR_DEB}"
|
||||
IMPORTED_CONFIGURATIONS "RELEASE;DEBUG"
|
||||
INTERFACE_INCLUDE_DIRECTORIES "${INC_PARENT}/include"
|
||||
)
|
||||
|
||||
# the create the activemq-cpp CMake config target with a dependency on apr
|
||||
add_library(unofficial::activemq-cpp::activemq-cpp ${LIB_TYPE} IMPORTED)
|
||||
set_target_properties(unofficial::activemq-cpp::activemq-cpp
|
||||
PROPERTIES
|
||||
MAP_IMPORTED_CONFIG_MINSIZEREL Release
|
||||
MAP_IMPORTED_CONFIG_RELWITHDEBINFO Release
|
||||
IMPORTED_LOCATION_DEBUG "${AMQ_DEB}"
|
||||
IMPORTED_LOCATION_RELEASE "${AMQ_REL}"
|
||||
IMPORTED_CONFIGURATIONS "RELEASE;DEBUG"
|
||||
INTERFACE_INCLUDE_DIRECTORIES "${INC_PARENT}/include"
|
||||
INTERFACE_LINK_LIBRARIES "${DEPS}"
|
||||
)
|
||||
endfunction()
|
||||
|
||||
#
|
||||
# Since this is a CMake config file for a non-CMake project, and one that is
|
||||
# for vcpkg to as well, the config file has to cover the various products of
|
||||
# the builds on the various platforms.
|
||||
#
|
||||
# Below, Windows and Linux are covered for static and shared libraries.
|
||||
#
|
||||
_set_exists(ACTIVEMQ_CPP_DLL_RELEASE _ACTIVEMQ_CPP_DLL_RELEASE_MISSING "${_IMPORT_PREFIX}/bin/activemq-cpp.dll")
|
||||
_set_exists(ACTIVEMQ_CPP_LIB_RELEASE _ACTIVEMQ_CPP_LIB_RELEASE_MISSING "${_IMPORT_PREFIX}/lib/activemq-cpp.lib")
|
||||
_set_exists(ACTIVEMQ_CPP_DLL_DEBUG _ACTIVEMQ_CPP_DLL_DEBUG_MISSING "${_IMPORT_PREFIX}/debug/bin/activemq-cppd.dll")
|
||||
_set_exists(ACTIVEMQ_CPP_LIB_DEBUG _ACTIVEMQ_CPP_LIB_DEBUG_MISSING "${_IMPORT_PREFIX}/debug/lib/activemq-cppd.lib")
|
||||
if (ACTIVEMQ_CPP_DLL_RELEASE)
|
||||
#
|
||||
# Windows shared install
|
||||
#
|
||||
if (ACTIVEMQ_CPP_LIB_RELEASE AND ACTIVEMQ_CPP_DLL_DEBUG AND ACTIVEMQ_CPP_LIB_DEBUG)
|
||||
_set_exists(ACTIVEMQ_CPP_APR_LIB_RELEASE _ACTIVEMQ_CPP_APR_LIB_RELEASE_MISSING "${_IMPORT_PREFIX}/lib/libapr-1.lib")
|
||||
_set_exists(ACTIVEMQ_CPP_APR_DLL_RELEASE _ACTIVEMQ_CPP_APR_DLL_RELEASE_MISSING "${_IMPORT_PREFIX}/lib/libapr-1.dll")
|
||||
_set_exists(ACTIVEMQ_CPP_APR_LIB_DEBUG _ACTIVEMQ_CPP_APR_LIB_DEBUG_MISSING "${_IMPORT_PREFIX}/debug/lib/libapr-1.lib")
|
||||
_set_exists(ACTIVEMQ_CPP_APR_DLL_DEBUG _ACTIVEMQ_CPP_APR_DLL_DEBUG_MISSING "${_IMPORT_PREFIX}/debug/lib/libapr-1.dll")
|
||||
if (ACTIVEMQ_CPP_APR_LIB_RELEASE AND ACTIVEMQ_CPP_APR_DLL_RELEASE AND ACTIVEMQ_CPP_APR_LIB_DEBUG AND ACTIVEMQ_CPP_APR_DLL_DEBUG)
|
||||
_activemq_cpp_windows_dependencies()
|
||||
if (${CMAKE_FIND_PACKAGE_NAME}_WINDOWS_DEPENDENCIES_FOUND)
|
||||
# the APR port doesn't have a CMake config target so create one
|
||||
add_library(unofficial::activemq-cpp::apr SHARED IMPORTED)
|
||||
set_target_properties(unofficial::activemq-cpp::apr
|
||||
PROPERTIES
|
||||
MAP_IMPORTED_CONFIG_MINSIZEREL Release
|
||||
MAP_IMPORTED_CONFIG_RELWITHDEBINFO Release
|
||||
IMPORTED_LOCATION_RELEASE "${ACTIVEMQ_CPP_APR_DLL_RELEASE}"
|
||||
IMPORTED_IMPLIB_RELEASE "${ACTIVEMQ_CPP_APR_LIB_RELEASE}"
|
||||
IMPORTED_LOCATION_DEBUG "${ACTIVEMQ_CPP_APR_DLL_DEBUG}"
|
||||
IMPORTED_IMPLIB_DEBUG "${ACTIVEMQ_CPP_APR_LIB_DEBUG}"
|
||||
IMPORTED_CONFIGURATIONS "RELEASE;DEBUG"
|
||||
INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include"
|
||||
)
|
||||
|
||||
# the create the activemq-cpp CMake config target with a dependency on apr
|
||||
add_library(unofficial::activemq-cpp::activemq-cpp SHARED IMPORTED)
|
||||
set_target_properties(unofficial::activemq-cpp::activemq-cpp
|
||||
PROPERTIES
|
||||
MAP_IMPORTED_CONFIG_MINSIZEREL Release
|
||||
MAP_IMPORTED_CONFIG_RELWITHDEBINFO Release
|
||||
IMPORTED_LOCATION_RELEASE "${ACTIVEMQ_CPP_DLL_RELEASE}"
|
||||
IMPORTED_IMPLIB_RELEASE "${ACTIVEMQ_CPP_LIB_RELEASE}"
|
||||
IMPORTED_LOCATION_DEBUG "${ACTIVEMQ_CPP_DLL_DEBUG}"
|
||||
IMPORTED_IMPLIB_DEBUG "${ACTIVEMQ_CPP_LIB_DEBUG}"
|
||||
IMPORTED_CONFIGURATIONS "RELEASE;DEBUG"
|
||||
INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include"
|
||||
INTERFACE_LINK_LIBRARIES "unofficial::activemq-cpp::apr;unofficial::activemq-cpp::ws2;unofficial::activemq-cpp::rpcrt4;unofficial::activemq-cpp::mswsock"
|
||||
)
|
||||
set(${CMAKE_FIND_PACKAGE_NAME}_FOUND TRUE)
|
||||
endif()
|
||||
else()
|
||||
set(${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE "Activemq-cpp vcpkg install dependency failure: apr vcpkg port not found in ${_IMPORT_PREFIX}.")
|
||||
foreach(_MISSING
|
||||
${_ACTIVEMQ_CPP_APR_LIB_RELEASE_MISSING}
|
||||
${_ACTIVEMQ_CPP_APR_DLL_RELEASE_MISSING}
|
||||
${_ACTIVEMQ_CPP_APR_LIB_DEBUG_MISSING}
|
||||
${_ACTIVEMQ_CPP_APR_DLL_DEBUG_MISSING}
|
||||
)
|
||||
string(APPEND ${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE " \"${_MISSING}\" not found.")
|
||||
endforeach()
|
||||
set(${CMAKE_FIND_PACKAGE_NAME}_FOUND FALSE)
|
||||
set(activemq-cppConfig_FOUND TRUE)
|
||||
endif()
|
||||
else()
|
||||
set(${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE "Activemq-cpp vcpkg install error: Found ${_IMPORT_PREFIX}debug/bin/activemq-cppd.dll.")
|
||||
foreach(_MISSING
|
||||
${_ACTIVEMQ_CPP_LIB_RELEASE_MISSING}
|
||||
${_ACTIVEMQ_CPP_DLL_DEBUG_MISSING}
|
||||
${_ACTIVEMQ_CPP_LIB_DEBUG_MISSING})
|
||||
string(APPEND ${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE " \"${_MISSING}\" not found.")
|
||||
endforeach()
|
||||
set(${CMAKE_FIND_PACKAGE_NAME}_FOUND FALSE)
|
||||
endif()
|
||||
else()
|
||||
#
|
||||
# not Windows shared install
|
||||
#
|
||||
_set_exists(ACTIVEMQ_CPP_LIB_RELEASE _ACTIVEMQ_CPP_LIB_RELEASE_MISSING "${_IMPORT_PREFIX}/lib/libactivemq-cpp.lib")
|
||||
_set_exists(ACTIVEMQ_CPP_LIB_DEBUG _ACTIVEMQ_CPP_LIB_DEBUG_MISSING "${_IMPORT_PREFIX}/debug/lib/libactivemq-cpp.lib")
|
||||
if (ACTIVEMQ_CPP_LIB_RELEASE)
|
||||
#
|
||||
# Windows static install
|
||||
#
|
||||
if (ACTIVEMQ_CPP_LIB_DEBUG)
|
||||
_set_exists(ACTIVEMQ_CPP_APR_LIB_RELEASE _ACTIVEMQ_CPP_APR_LIB_RELEASE_MISSING "${_IMPORT_PREFIX}/lib/apr-1.lib")
|
||||
_set_exists(ACTIVEMQ_CPP_APR_LIB_DEBUG _ACTIVEMQ_CPP_APR_LIB_DEBUG_MISSING "${_IMPORT_PREFIX}/debug/lib/apr-1.lib")
|
||||
if (ACTIVEMQ_CPP_APR_LIB_RELEASE AND ACTIVEMQ_CPP_APR_LIB_DEBUG)
|
||||
_activemq_cpp_windows_dependencies()
|
||||
if (${CMAKE_FIND_PACKAGE_NAME}_WINDOWS_DEPENDENCIES_FOUND)
|
||||
_add_apr_and_amq_targets("${_IMPORT_PREFIX}"
|
||||
STATIC
|
||||
"${ACTIVEMQ_CPP_APR_LIB_RELEASE}"
|
||||
"${ACTIVEMQ_CPP_APR_LIB_DEBUG}"
|
||||
"${ACTIVEMQ_CPP_LIB_RELEASE}"
|
||||
"${ACTIVEMQ_CPP_LIB_DEBUG}"
|
||||
"unofficial::activemq-cpp::apr;unofficial::activemq-cpp::ws2;unofficial::activemq-cpp::rpcrt4;unofficial::activemq-cpp::mswsock")
|
||||
set(${CMAKE_FIND_PACKAGE_NAME}_FOUND TRUE)
|
||||
endif()
|
||||
else()
|
||||
set(${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE "Activemq-cpp vcpkg install dependency failure: apr vcpkg port not found in ${_IMPORT_PREFIX}.")
|
||||
foreach(_MISSING ${_ACTIVEMQ_CPP_APR_LIB_RELEASE_MISSING} ${_ACTIVEMQ_CPP_APR_LIB_DEBUG_MISSING})
|
||||
string(APPEND ${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE " \"${_MISSING}\" not found.")
|
||||
endforeach()
|
||||
set(${CMAKE_FIND_PACKAGE_NAME}_FOUND FALSE)
|
||||
endif()
|
||||
else()
|
||||
set(${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE "Activemq-cpp vcpkg install error: Found ${ACTIVEMQ_CPP_LIB_RELEASE} but not ${_ACTIVEMQ_CPP_LIB_DEBUG_MISSING}.")
|
||||
set(${CMAKE_FIND_PACKAGE_NAME}_FOUND FALSE)
|
||||
endif()
|
||||
else()
|
||||
#
|
||||
# not Windows shared or static install
|
||||
#
|
||||
_set_exists(ACTIVEMQ_CPP_LIB_RELEASE _ACTIVEMQ_CPP_LIB_RELEASE_MISSING "${_IMPORT_PREFIX}/lib/libactivemq-cpp.so.19.0.5")
|
||||
_set_exists(ACTIVEMQ_CPP_LIB_DEBUG _ACTIVEMQ_CPP_LIB_DEBUG_MISSING "${_IMPORT_PREFIX}/debug/lib/libactivemq-cpp.so.19.0.5")
|
||||
if(ACTIVEMQ_CPP_LIB_RELEASE)
|
||||
#
|
||||
# Linux shared install (this may pick up some other Unix-like installs)
|
||||
#
|
||||
if (ACTIVEMQ_CPP_LIB_DEBUG)
|
||||
_set_exists(ACTIVEMQ_CPP_APR_LIB_RELEASE _ACTIVEMQ_CPP_APR_LIB_RELEASE_MISSING "${_IMPORT_PREFIX}/lib/libapr-1.so")
|
||||
_set_exists(ACTIVEMQ_CPP_APR_LIB_DEBUG _ACTIVEMQ_CPP_APR_LIB_DEBUG_MISSING "${_IMPORT_PREFIX}/debug/lib/libapr-1.so")
|
||||
if (ACTIVEMQ_CPP_APR_LIB_RELEASE AND ACTIVEMQ_CPP_APR_LIB_DEBUG)
|
||||
find_package(Threads)
|
||||
if (Threads_FOUND)
|
||||
_add_apr_and_amq_targets("${_IMPORT_PREFIX}"
|
||||
SHARED
|
||||
"${ACTIVEMQ_CPP_APR_LIB_RELEASE}"
|
||||
"${ACTIVEMQ_CPP_APR_LIB_DEBUG}"
|
||||
"${ACTIVEMQ_CPP_LIB_RELEASE}"
|
||||
"${ACTIVEMQ_CPP_LIB_DEBUG}"
|
||||
"unofficial::activemq-cpp::apr;Threads::Threads")
|
||||
set(${CMAKE_FIND_PACKAGE_NAME}_FOUND TRUE)
|
||||
else()
|
||||
set(${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE "Activemq-cpp vcpkg install dependency failure: threads library not found.")
|
||||
set(${CMAKE_FIND_PACKAGE_NAME}_FOUND FALSE)
|
||||
endif()
|
||||
else()
|
||||
set(${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE "Activemq-cpp vcpkg install dependency failure: apr vcpkg port not found in ${_IMPORT_PREFIX}.")
|
||||
foreach(_MISSING ${_ACTIVEMQ_CPP_APR_LIB_RELEASE_MISSING} ${_ACTIVEMQ_CPP_APR_LIB_DEBUG_MISSING})
|
||||
string(APPEND ${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE " \"${_MISSING}\" not found.")
|
||||
endforeach()
|
||||
set(${CMAKE_FIND_PACKAGE_NAME}_FOUND FALSE)
|
||||
endif()
|
||||
else()
|
||||
set(${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE "Activemq-cpp vcpkg install error: Found ${ACTIVEMQ_CPP_LIB_RELEASE} but not ${_ACTIVEMQ_CPP_LIB_DEBUG_MISSING}")
|
||||
set(${CMAKE_FIND_PACKAGE_NAME}_FOUND FALSE)
|
||||
endif()
|
||||
else()
|
||||
#
|
||||
# not Windows shared or static or Linux shared install
|
||||
#
|
||||
_set_exists(ACTIVEMQ_CPP_LIB_RELEASE _ACTIVEMQ_CPP_LIB_RELEASE_MISSING "${_IMPORT_PREFIX}/lib/libactivemq-cpp.a")
|
||||
_set_exists(ACTIVEMQ_CPP_LIB_DEBUG _ACTIVEMQ_CPP_LIB_DEBUG_MISSING "${_IMPORT_PREFIX}/debug/lib/libactivemq-cpp.a")
|
||||
if (ACTIVEMQ_CPP_LIB_RELEASE)
|
||||
#
|
||||
# Linux static install (this may pick up some other Unix-like installs)
|
||||
#
|
||||
if (ACTIVEMQ_CPP_LIB_DEBUG)
|
||||
_set_exists(ACTIVEMQ_CPP_APR_LIB_RELEASE _ACTIVEMQ_CPP_APR_LIB_RELEASE_MISSING "${_IMPORT_PREFIX}/lib/libapr-1.a")
|
||||
_set_exists(ACTIVEMQ_CPP_APR_LIB_DEBUG _ACTIVEMQ_CPP_APR_LIB_DEBUG_MISSING "${_IMPORT_PREFIX}/debug/lib/libapr-1.a")
|
||||
if (ACTIVEMQ_CPP_APR_LIB_RELEASE AND ACTIVEMQ_CPP_APR_LIB_DEBUG)
|
||||
find_package(Threads)
|
||||
if (Threads_FOUND)
|
||||
_add_apr_and_amq_targets("${_IMPORT_PREFIX}"
|
||||
STATIC
|
||||
"${ACTIVEMQ_CPP_APR_LIB_RELEASE}"
|
||||
"${ACTIVEMQ_CPP_APR_LIB_DEBUG}"
|
||||
"${ACTIVEMQ_CPP_LIB_RELEASE}"
|
||||
"${ACTIVEMQ_CPP_LIB_DEBUG}"
|
||||
"unofficial::activemq-cpp::apr;Threads::Threads")
|
||||
set(${CMAKE_FIND_PACKAGE_NAME}_FOUND TRUE)
|
||||
else()
|
||||
set(${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE "Activemq-cpp vcpkg install dependency failure: threads library not found.")
|
||||
set(${CMAKE_FIND_PACKAGE_NAME}_FOUND FALSE)
|
||||
endif()
|
||||
else()
|
||||
set(${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE "Activemq-cpp vcpkg install dependency failure: apr vcpkg port not found in ${_IMPORT_PREFIX}.")
|
||||
foreach(_MISSING ${_ACTIVEMQ_CPP_APR_LIB_RELEASE_MISSING} ${_ACTIVEMQ_CPP_APR_LIB_DEBUG_MISSING})
|
||||
string(APPEND ${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE " \"${_MISSING}\" not found.")
|
||||
endforeach()
|
||||
set(${CMAKE_FIND_PACKAGE_NAME}_FOUND FALSE)
|
||||
endif()
|
||||
else()
|
||||
set(${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE "Activemq-cpp vcpkg install error: Found ${ACTIVEMQ_CPP_LIB_RELEASE} but not ${_ACTIVEMQ_CPP_LIB_DEBUG_MISSING}")
|
||||
set(${CMAKE_FIND_PACKAGE_NAME}_FOUND FALSE)
|
||||
endif()
|
||||
else()
|
||||
#
|
||||
# Some other configuration...
|
||||
# (not Windows shared or static or Linux shared or static install)
|
||||
#
|
||||
set(${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE "Activemq-cpp vcpkg unexpected install: could not find any expected activemq-cpp libraries under ${_IMPORT_PREFIX}. The CMake configuration file only understands Windows and Linux static and shared installs from vcpkg.")
|
||||
set(${CMAKE_FIND_PACKAGE_NAME}_FOUND FALSE)
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
36
externals/vcpkg/ports/activemq-cpp/fix-crt-linkage-dyn.patch
vendored
Executable file
36
externals/vcpkg/ports/activemq-cpp/fix-crt-linkage-dyn.patch
vendored
Executable file
@@ -0,0 +1,36 @@
|
||||
diff --git a/vs2010-build/activemq-cpp.vcxproj b/vs2010-build/activemq-cpp.vcxproj
|
||||
index 54b4822..6b35511 100644
|
||||
--- a/vs2010-build/activemq-cpp.vcxproj
|
||||
+++ b/vs2010-build/activemq-cpp.vcxproj
|
||||
@@ -2578,6 +2578,7 @@
|
||||
<BasicRuntimeChecks>Default</BasicRuntimeChecks>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<CreateHotpatchableImage>false</CreateHotpatchableImage>
|
||||
+ <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
|
||||
<RuntimeTypeInfo>true</RuntimeTypeInfo>
|
||||
<PrecompiledHeaderFile>
|
||||
</PrecompiledHeaderFile>
|
||||
@@ -2687,6 +2688,7 @@
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<CreateHotpatchableImage>false</CreateHotpatchableImage>
|
||||
<RuntimeTypeInfo>true</RuntimeTypeInfo>
|
||||
+ <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
|
||||
<PrecompiledHeaderFile>
|
||||
</PrecompiledHeaderFile>
|
||||
<PrecompiledHeaderOutputFile>
|
||||
@@ -2794,6 +2796,7 @@
|
||||
<AdditionalIncludeDirectories>../src/main;$(APR_DIST)\$(PlatformName)\include;$(OPENSSL_DIST)\$(PlatformName)\include;$(PLATFORM_SDK)\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<CreateHotpatchableImage>false</CreateHotpatchableImage>
|
||||
<RuntimeTypeInfo>true</RuntimeTypeInfo>
|
||||
+ <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
|
||||
<PrecompiledHeaderFile>
|
||||
</PrecompiledHeaderFile>
|
||||
<PrecompiledHeaderOutputFile>
|
||||
@@ -2906,6 +2909,7 @@
|
||||
<AdditionalIncludeDirectories>../src/main;$(APR_DIST)\$(PlatformName)\include;$(OPENSSL_DIST)\$(PlatformName)\include;$(PLATFORM_SDK)\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<CreateHotpatchableImage>false</CreateHotpatchableImage>
|
||||
<RuntimeTypeInfo>true</RuntimeTypeInfo>
|
||||
+ <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
|
||||
<PrecompiledHeaderFile>
|
||||
</PrecompiledHeaderFile>
|
||||
<PrecompiledHeaderOutputFile>
|
||||
36
externals/vcpkg/ports/activemq-cpp/fix-crt-linkage.patch
vendored
Executable file
36
externals/vcpkg/ports/activemq-cpp/fix-crt-linkage.patch
vendored
Executable file
@@ -0,0 +1,36 @@
|
||||
diff --git a/vs2010-build/activemq-cpp.vcxproj b/vs2010-build/activemq-cpp.vcxproj
|
||||
index 54b4822..6b35511 100644
|
||||
--- a/vs2010-build/activemq-cpp.vcxproj
|
||||
+++ b/vs2010-build/activemq-cpp.vcxproj
|
||||
@@ -2578,6 +2578,7 @@
|
||||
<BasicRuntimeChecks>Default</BasicRuntimeChecks>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<CreateHotpatchableImage>false</CreateHotpatchableImage>
|
||||
+ <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
||||
<RuntimeTypeInfo>true</RuntimeTypeInfo>
|
||||
<PrecompiledHeaderFile>
|
||||
</PrecompiledHeaderFile>
|
||||
@@ -2687,6 +2688,7 @@
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<CreateHotpatchableImage>false</CreateHotpatchableImage>
|
||||
<RuntimeTypeInfo>true</RuntimeTypeInfo>
|
||||
+ <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
||||
<PrecompiledHeaderFile>
|
||||
</PrecompiledHeaderFile>
|
||||
<PrecompiledHeaderOutputFile>
|
||||
@@ -2794,6 +2796,7 @@
|
||||
<AdditionalIncludeDirectories>../src/main;$(APR_DIST)\$(PlatformName)\include;$(OPENSSL_DIST)\$(PlatformName)\include;$(PLATFORM_SDK)\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<CreateHotpatchableImage>false</CreateHotpatchableImage>
|
||||
<RuntimeTypeInfo>true</RuntimeTypeInfo>
|
||||
+ <RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||
<PrecompiledHeaderFile>
|
||||
</PrecompiledHeaderFile>
|
||||
<PrecompiledHeaderOutputFile>
|
||||
@@ -2906,6 +2909,7 @@
|
||||
<AdditionalIncludeDirectories>../src/main;$(APR_DIST)\$(PlatformName)\include;$(OPENSSL_DIST)\$(PlatformName)\include;$(PLATFORM_SDK)\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<CreateHotpatchableImage>false</CreateHotpatchableImage>
|
||||
<RuntimeTypeInfo>true</RuntimeTypeInfo>
|
||||
+ <RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||
<PrecompiledHeaderFile>
|
||||
</PrecompiledHeaderFile>
|
||||
<PrecompiledHeaderOutputFile>
|
||||
138
externals/vcpkg/ports/activemq-cpp/portfile.cmake
vendored
Executable file
138
externals/vcpkg/ports/activemq-cpp/portfile.cmake
vendored
Executable file
@@ -0,0 +1,138 @@
|
||||
set(VERSION 3.9.5)
|
||||
|
||||
set(PATCHES )
|
||||
if (NOT VCPKG_TARGET_IS_LINUX)
|
||||
set(PATCHES FunctionLevelLinkingOn.diff)
|
||||
if(VCPKG_CRT_LINKAGE STREQUAL "static")
|
||||
list(APPEND PATCHES fix-crt-linkage.patch)
|
||||
else()
|
||||
list(APPEND PATCHES fix-crt-linkage-dyn.patch)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
vcpkg_download_distfile(ARCHIVE
|
||||
URLS "https://www.apache.org/dist/activemq/activemq-cpp/${VERSION}/activemq-cpp-library-${VERSION}-src.tar.bz2"
|
||||
FILENAME "activemq-cpp-library-${VERSION}-src.tar.bz2"
|
||||
SHA512 83692d3dfd5ecf557fc88d204a03bf169ce6180bcff27be41b09409b8f7793368ffbeed42d98ef6374c6b6b477d9beb8a4a9ac584df9e56725ec59ceceaa6ae2
|
||||
)
|
||||
vcpkg_extract_source_archive_ex(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
ARCHIVE ${ARCHIVE}
|
||||
PATCHES ${PATCHES}
|
||||
)
|
||||
|
||||
if (VCPKG_TARGET_IS_LINUX)
|
||||
vcpkg_configure_make(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
AUTOCONFIG
|
||||
OPTIONS
|
||||
"--with-openssl=${CURRENT_INSTALLED_DIR}"
|
||||
"--with-apr=${CURRENT_INSTALLED_DIR}/tools/apr"
|
||||
)
|
||||
|
||||
vcpkg_install_make()
|
||||
|
||||
file(RENAME "${CURRENT_PACKAGES_DIR}/include/activemq-cpp-${VERSION}/activemq" "${CURRENT_PACKAGES_DIR}/include/activemq")
|
||||
file(RENAME "${CURRENT_PACKAGES_DIR}/include/activemq-cpp-${VERSION}/cms" "${CURRENT_PACKAGES_DIR}/include/cms")
|
||||
file(RENAME "${CURRENT_PACKAGES_DIR}/include/activemq-cpp-${VERSION}/decaf" "${CURRENT_PACKAGES_DIR}/include/decaf")
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/include/activemq-cpp-${VERSION}")
|
||||
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/tools/${PORT}/bin/activemqcpp-config" "${CURRENT_INSTALLED_DIR}" "`dirname $0`/../../..")
|
||||
if(NOT VCPKG_BUILD_TYPE)
|
||||
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/tools/${PORT}/debug/bin/activemqcpp-config" "${CURRENT_INSTALLED_DIR}/debug" "`dirname $0`/../../../..")
|
||||
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/tools/${PORT}/debug/bin/activemqcpp-config" "${CURRENT_INSTALLED_DIR}" "`dirname $0`/../../..")
|
||||
endif()
|
||||
else()
|
||||
set(ACTIVEMQCPP_MSVC_PROJ "${SOURCE_PATH}/vs2010-build/activemq-cpp.vcxproj")
|
||||
|
||||
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" ACTIVEMQCPP_SHARED_LIB)
|
||||
|
||||
if (ACTIVEMQCPP_SHARED_LIB)
|
||||
set(RELEASE_CONF "ReleaseDLL")
|
||||
set(DEBUG_CONF "DebugDLL")
|
||||
|
||||
set(ACTIVEMQCPP_LIB_PREFFIX )
|
||||
set(ACTIVEMQCPP_LIB_SUFFIX d)
|
||||
vcpkg_replace_string("${ACTIVEMQCPP_MSVC_PROJ}" ";apr-1.lib" ";libapr-1.lib")
|
||||
else()
|
||||
set(RELEASE_CONF "Release")
|
||||
set(DEBUG_CONF "Debug")
|
||||
|
||||
set(ACTIVEMQCPP_LIB_PREFFIX lib)
|
||||
set(ACTIVEMQCPP_LIB_SUFFIX )
|
||||
vcpkg_replace_string("${ACTIVEMQCPP_MSVC_PROJ}" ";libapr-1.lib" ";apr-1.lib")
|
||||
endif()
|
||||
|
||||
if (VCPKG_TARGET_ARCHITECTURE MATCHES "x86")
|
||||
set(BUILD_ARCH "Win32")
|
||||
elseif (VCPKG_TARGET_ARCHITECTURE MATCHES "x64")
|
||||
set(BUILD_ARCH "x64")
|
||||
else()
|
||||
message(FATAL_ERROR "Unsupported architecture: ${VCPKG_TARGET_ARCHITECTURE}")
|
||||
endif()
|
||||
|
||||
string(REPLACE "/" "\\" WIN_SOURCE_PATH "${SOURCE_PATH}")
|
||||
vcpkg_replace_string("${ACTIVEMQCPP_MSVC_PROJ}" "ClCompile Include=\"..\\src" "ClCompile Include=\"${WIN_SOURCE_PATH}\\src")
|
||||
vcpkg_replace_string("${ACTIVEMQCPP_MSVC_PROJ}" "ClInclude Include=\"..\\src" "ClInclude Include=\"${WIN_SOURCE_PATH}\\src")
|
||||
vcpkg_replace_string("${ACTIVEMQCPP_MSVC_PROJ}" "../src/main" "${WIN_SOURCE_PATH}\\src\\main")
|
||||
vcpkg_install_msbuild(
|
||||
SOURCE_PATH "${SOURCE_PATH}/vs2010-build"
|
||||
PROJECT_SUBPATH "activemq-cpp.vcxproj"
|
||||
RELEASE_CONFIGURATION ${RELEASE_CONF}
|
||||
DEBUG_CONFIGURATION ${DEBUG_CONF}
|
||||
PLATFORM ${BUILD_ARCH}
|
||||
USE_VCPKG_INTEGRATION
|
||||
ALLOW_ROOT_INCLUDES
|
||||
SKIP_CLEAN
|
||||
)
|
||||
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
if (NOT VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release")
|
||||
file(COPY
|
||||
"${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/vs2010-build/${BUILD_ARCH}/${RELEASE_CONF}/${ACTIVEMQCPP_LIB_PREFFIX}activemq-cpp.lib"
|
||||
DESTINATION "${CURRENT_PACKAGES_DIR}/lib"
|
||||
)
|
||||
|
||||
if (ACTIVEMQCPP_SHARED_LIB)
|
||||
file(COPY
|
||||
"${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/vs2010-build/${BUILD_ARCH}/${RELEASE_CONF}/activemq-cpp.dll"
|
||||
DESTINATION "${CURRENT_PACKAGES_DIR}/bin"
|
||||
)
|
||||
file(COPY
|
||||
"${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/vs2010-build/${BUILD_ARCH}/${RELEASE_CONF}/activemq-cpp.pdb"
|
||||
DESTINATION "${CURRENT_PACKAGES_DIR}/bin"
|
||||
)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if (NOT VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug")
|
||||
file(COPY
|
||||
"${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/vs2010-build/${BUILD_ARCH}/${DEBUG_CONF}/${ACTIVEMQCPP_LIB_PREFFIX}activemq-cpp${ACTIVEMQCPP_LIB_SUFFIX}.lib"
|
||||
DESTINATION "${CURRENT_PACKAGES_DIR}/debug/lib"
|
||||
)
|
||||
|
||||
if (ACTIVEMQCPP_SHARED_LIB)
|
||||
file(COPY
|
||||
"${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/vs2010-build/${BUILD_ARCH}/${DEBUG_CONF}/activemq-cpp${ACTIVEMQCPP_LIB_SUFFIX}.dll"
|
||||
DESTINATION "${CURRENT_PACKAGES_DIR}/debug/bin"
|
||||
)
|
||||
file(COPY
|
||||
"${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/vs2010-build/${BUILD_ARCH}/${DEBUG_CONF}/activemq-cpp${ACTIVEMQCPP_LIB_SUFFIX}.pdb"
|
||||
DESTINATION "${CURRENT_PACKAGES_DIR}/debug/bin"
|
||||
)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
file(COPY "${SOURCE_PATH}/src/main/activemq" DESTINATION "${CURRENT_PACKAGES_DIR}/include" FILES_MATCHING PATTERN *.h)
|
||||
file(COPY "${SOURCE_PATH}/src/main/cms" DESTINATION "${CURRENT_PACKAGES_DIR}/include" FILES_MATCHING PATTERN *.h)
|
||||
file(COPY "${SOURCE_PATH}/src/main/decaf" DESTINATION "${CURRENT_PACKAGES_DIR}/include" FILES_MATCHING PATTERN *.h)
|
||||
vcpkg_clean_msbuild()
|
||||
endif()
|
||||
|
||||
vcpkg_fixup_pkgconfig()
|
||||
|
||||
file(INSTALL "${CURRENT_PORT_DIR}/activemq-cppConfig.cmake" DESTINATION "${CURRENT_PACKAGES_DIR}/share/activemq-cpp")
|
||||
file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
||||
14
externals/vcpkg/ports/activemq-cpp/vcpkg.json
vendored
Executable file
14
externals/vcpkg/ports/activemq-cpp/vcpkg.json
vendored
Executable file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"name": "activemq-cpp",
|
||||
"version-semver": "3.9.5",
|
||||
"port-version": 9,
|
||||
"description": "Apache ActiveMQ is the most popular and powerful open source messaging and Integration Patterns server.",
|
||||
"supports": "!(uwp | osx)",
|
||||
"dependencies": [
|
||||
"apr",
|
||||
{
|
||||
"name": "libuuid",
|
||||
"platform": "!windows & !osx"
|
||||
}
|
||||
]
|
||||
}
|
||||
24
externals/vcpkg/ports/ade/portfile.cmake
vendored
Executable file
24
externals/vcpkg/ports/ade/portfile.cmake
vendored
Executable file
@@ -0,0 +1,24 @@
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO opencv/ade
|
||||
REF v0.1.1f
|
||||
SHA512 fbdec8f3d5811a573abb81f1ceb6fb8d40274439013f749645db5430c6d9cdc52227c25203f1a68177b263d648bb65197ea7c2bea7871264a06585e59892631c
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
OPTIONS_DEBUG
|
||||
-DCMAKE_DEBUG_POSTFIX=d
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
|
||||
vcpkg_fixup_cmake_targets()
|
||||
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
||||
|
||||
# Handle copyright
|
||||
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/ade RENAME copyright)
|
||||
6
externals/vcpkg/ports/ade/vcpkg.json
vendored
Executable file
6
externals/vcpkg/ports/ade/vcpkg.json
vendored
Executable file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"name": "ade",
|
||||
"version-string": "0.1.1f",
|
||||
"port-version": 2,
|
||||
"description": "ADE Framework is a graph construction, manipulation, and processing framework. ADE Framework is suitable for organizing data flow processing and execution."
|
||||
}
|
||||
14
externals/vcpkg/ports/advobfuscator/portfile.cmake
vendored
Executable file
14
externals/vcpkg/ports/advobfuscator/portfile.cmake
vendored
Executable file
@@ -0,0 +1,14 @@
|
||||
# Download the code from GitHub
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO andrivet/ADVobfuscator
|
||||
REF 1852a0eb75b03ab3139af7f938dfb617c292c600
|
||||
SHA512 1bca72b21a3cbf9d8db21fb21d112dd4ca83cac695abfb8fc3d8065245a0cc84cb9e41eb9ff81481e8e0a9d214ff6f5c9aec5d1ba8a9d4387b08dd895ecf1cd5
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
# Install the header only source files to the right location
|
||||
file(INSTALL ${SOURCE_PATH}/Lib DESTINATION ${CURRENT_PACKAGES_DIR}/include)
|
||||
|
||||
# The README.md conains the LICENSE details
|
||||
file(INSTALL ${SOURCE_PATH}/README.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
||||
8
externals/vcpkg/ports/advobfuscator/vcpkg.json
vendored
Executable file
8
externals/vcpkg/ports/advobfuscator/vcpkg.json
vendored
Executable file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"name": "advobfuscator",
|
||||
"version-date": "2020-06-26",
|
||||
"description": "Obfuscation library based on C++11/14 and metaprogramming",
|
||||
"dependencies": [
|
||||
"boost-msm"
|
||||
]
|
||||
}
|
||||
17
externals/vcpkg/ports/air-ctl/portfile.cmake
vendored
Executable file
17
externals/vcpkg/ports/air-ctl/portfile.cmake
vendored
Executable file
@@ -0,0 +1,17 @@
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO inie0722/CTL
|
||||
REF 58ca0f229aff093ada66955993cada93e01da18c #1.0.0
|
||||
SHA512 6e1fcd70be0750b3e45de80d6fb30471fdbd8bbd23afd7ff9fb8c3b9fe61669cd02773cf2b6573348dd2905a303845627d3f5f3e647f4e1261db4cc570cf5099
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
vcpkg_cmake_config_fixup()
|
||||
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||||
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
||||
18
externals/vcpkg/ports/air-ctl/vcpkg.json
vendored
Executable file
18
externals/vcpkg/ports/air-ctl/vcpkg.json
vendored
Executable file
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"name": "air-ctl",
|
||||
"version": "1.0.0",
|
||||
"port-version": 1,
|
||||
"description": "C template container library",
|
||||
"homepage": "https://github.com/inie0722/CTL",
|
||||
"license": "BSL-1.0",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
}
|
||||
18
externals/vcpkg/ports/aixlog/portfile.cmake
vendored
Executable file
18
externals/vcpkg/ports/aixlog/portfile.cmake
vendored
Executable file
@@ -0,0 +1,18 @@
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO badaix/aixlog
|
||||
REF fd4a341740ee840092963de852584ec8ff811c4f # v1.5.0
|
||||
SHA512 10ab07dcb1e67064c0d69ddcf9289d79d914c70fe6922f32179f9ac38d5c682a4ebe08b686d8160c699a6b966bc7aa2fd7d0268664570a10ce146850e78b292d
|
||||
)
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
OPTIONS
|
||||
-DBUILD_EXAMPLE=OFF
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
|
||||
|
||||
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
||||
14
externals/vcpkg/ports/aixlog/vcpkg.json
vendored
Executable file
14
externals/vcpkg/ports/aixlog/vcpkg.json
vendored
Executable file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"name": "aixlog",
|
||||
"version": "1.5.0",
|
||||
"port-version": 1,
|
||||
"description": "Header-only C++ logging library",
|
||||
"homepage": "https://github.com/badaix/aixlog",
|
||||
"license": "MIT",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
}
|
||||
38
externals/vcpkg/ports/akali/portfile.cmake
vendored
Executable file
38
externals/vcpkg/ports/akali/portfile.cmake
vendored
Executable file
@@ -0,0 +1,38 @@
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO winsoft666/akali
|
||||
REF 2e35164a9a2a48a50af06c8ae59fcad0f4d6584e
|
||||
SHA512 103c4da3d318d7ae7da4821e58eced918c9d64dbc6d97e9e6c15fa69731331cf6160f593437366cb3a844fa292a8d875e3e63a679e7fbdeae22bb4d73e3d3144
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" AKALI_STATIC)
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
DISABLE_PARALLEL_CONFIGURE
|
||||
OPTIONS
|
||||
-DAKALI_STATIC:BOOL=${AKALI_STATIC}
|
||||
-DBUILD_TESTS:BOOL=OFF
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
if(EXISTS "${CURRENT_PACKAGES_DIR}/lib/cmake/akali")
|
||||
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/akali)
|
||||
elseif(EXISTS "${CURRENT_PACKAGES_DIR}/share/akali")
|
||||
vcpkg_cmake_config_fixup(CONFIG_PATH share/akali)
|
||||
endif()
|
||||
|
||||
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
||||
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/akali/akali_export.h" "#ifdef AKALI_STATIC" "#if 1")
|
||||
else()
|
||||
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/akali/akali_export.h" "#ifdef AKALI_STATIC" "#if 0")
|
||||
endif()
|
||||
|
||||
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
||||
|
||||
|
||||
19
externals/vcpkg/ports/akali/vcpkg.json
vendored
Executable file
19
externals/vcpkg/ports/akali/vcpkg.json
vendored
Executable file
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"name": "akali",
|
||||
"version": "1.43",
|
||||
"port-version": 1,
|
||||
"description": "C++ Common Library.",
|
||||
"homepage": "https://github.com/winsoft666/akali",
|
||||
"license": "MIT",
|
||||
"supports": "!(arm | arm64 | uwp)",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
}
|
||||
48
externals/vcpkg/ports/alac-decoder/CMakeLists.txt
vendored
Executable file
48
externals/vcpkg/ports/alac-decoder/CMakeLists.txt
vendored
Executable file
@@ -0,0 +1,48 @@
|
||||
cmake_minimum_required (VERSION 3.9)
|
||||
project (alac_decoder)
|
||||
|
||||
set(HEADERS
|
||||
decomp.h
|
||||
demux.h
|
||||
stream.h
|
||||
wavwriter.h
|
||||
)
|
||||
|
||||
set (SRCS
|
||||
decomp.c
|
||||
alac.c
|
||||
demux.c
|
||||
stream.c
|
||||
wavwriter.c
|
||||
)
|
||||
|
||||
if(MSVC)
|
||||
add_compile_options(/W4 -D_CRT_SECURE_NO_WARNINGS -DTARGET_OS_WIN32)
|
||||
else()
|
||||
add_compile_options(-Wno-error=implicit-function-declaration)
|
||||
endif()
|
||||
|
||||
include_directories(.)
|
||||
|
||||
add_library(libalac_decoder ${SRCS})
|
||||
|
||||
add_executable(alac_decoder main.c)
|
||||
target_link_libraries(alac_decoder libalac_decoder)
|
||||
|
||||
install(
|
||||
TARGETS libalac_decoder
|
||||
RUNTIME DESTINATION bin
|
||||
LIBRARY DESTINATION lib
|
||||
ARCHIVE DESTINATION lib
|
||||
)
|
||||
|
||||
if(NOT DISABLE_INSTALL_TOOLS)
|
||||
install (
|
||||
TARGETS alac_decoder
|
||||
RUNTIME DESTINATION tools/alac-decoder
|
||||
)
|
||||
endif()
|
||||
|
||||
if(NOT DISABLE_INSTALL_HEADERS)
|
||||
install(FILES ${HEADERS} DESTINATION include/alac_decoder)
|
||||
endif()
|
||||
11
externals/vcpkg/ports/alac-decoder/decomp.c
vendored
Executable file
11
externals/vcpkg/ports/alac-decoder/decomp.c
vendored
Executable file
@@ -0,0 +1,11 @@
|
||||
#include "decomp.h"
|
||||
#include <stdint.h>
|
||||
|
||||
int set_endian()
|
||||
{
|
||||
uint32_t integer = 0x000000aa;
|
||||
unsigned char *p = (unsigned char*)&integer;
|
||||
|
||||
if (p[0] == 0xaa) return 0;
|
||||
else return 1;
|
||||
}
|
||||
14
externals/vcpkg/ports/alac-decoder/no-pragma-warning.patch
vendored
Executable file
14
externals/vcpkg/ports/alac-decoder/no-pragma-warning.patch
vendored
Executable file
@@ -0,0 +1,14 @@
|
||||
diff --git a/alac.c b/alac.c
|
||||
index b829e29..8e8805f 100644
|
||||
--- a/alac.c
|
||||
+++ b/alac.c
|
||||
@@ -284,7 +284,9 @@ static int count_leading_zeros(int input)
|
||||
return output;
|
||||
}
|
||||
#else
|
||||
+#if !defined(_MSC_VER)
|
||||
#warning using generic count leading zeroes. You may wish to write one for your CPU / compiler
|
||||
+#endif
|
||||
static int count_leading_zeros(int input)
|
||||
{
|
||||
int output = 0;
|
||||
32
externals/vcpkg/ports/alac-decoder/portfile.cmake
vendored
Executable file
32
externals/vcpkg/ports/alac-decoder/portfile.cmake
vendored
Executable file
@@ -0,0 +1,32 @@
|
||||
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
||||
|
||||
vcpkg_download_distfile(ARCHIVE
|
||||
URLS "https://distfiles.macports.org/alac_decoder/alac_decoder-0.2.0.tgz"
|
||||
FILENAME "alac_decoder-0.2.0.tgz"
|
||||
SHA512 4b37d4fe37681bfccaa4a27fbaf11eb2a1fba5f14e77d219a6d9814ff44d1168534d05eb19443dd2fd11e6fcdf4da3a22e3f3c79314cb7a6767c152351b13e29
|
||||
)
|
||||
|
||||
vcpkg_extract_source_archive_ex(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
ARCHIVE ${ARCHIVE}
|
||||
PATCHES
|
||||
remove_stdint_headers.patch
|
||||
no-pragma-warning.patch
|
||||
)
|
||||
|
||||
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
||||
file(COPY ${CMAKE_CURRENT_LIST_DIR}/decomp.c DESTINATION ${SOURCE_PATH})
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
OPTIONS_DEBUG
|
||||
-DDISABLE_INSTALL_HEADERS=ON
|
||||
-DDISABLE_INSTALL_TOOLS=ON
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
vcpkg_copy_pdbs()
|
||||
vcpkg_copy_tool_dependencies(${CURRENT_PACKAGES_DIR}/tools/${PORT})
|
||||
|
||||
file(INSTALL ${SOURCE_PATH}/README DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
||||
193
externals/vcpkg/ports/alac-decoder/remove_stdint_headers.patch
vendored
Executable file
193
externals/vcpkg/ports/alac-decoder/remove_stdint_headers.patch
vendored
Executable file
@@ -0,0 +1,193 @@
|
||||
diff --git a/alac.c b/alac.c
|
||||
index 469000d..c6fe479 100644
|
||||
--- a/alac.c
|
||||
+++ b/alac.c
|
||||
@@ -33,11 +33,7 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
-#ifdef _WIN32
|
||||
- #include "stdint_win.h"
|
||||
-#else
|
||||
- #include <stdint.h>
|
||||
-#endif
|
||||
+#include <stdint.h>
|
||||
|
||||
#include "decomp.h"
|
||||
|
||||
@@ -54,7 +50,7 @@
|
||||
struct {signed int x:24;} se_struct_24;
|
||||
#define SignExtend24(val) (se_struct_24.x = val)
|
||||
|
||||
-extern int host_bigendian;
|
||||
+#define host_bigendian set_endian()
|
||||
|
||||
struct alac_file
|
||||
{
|
||||
diff --git a/decomp.h b/decomp.h
|
||||
index 23dbc52..679a320 100644
|
||||
--- a/decomp.h
|
||||
+++ b/decomp.h
|
||||
@@ -8,6 +8,7 @@ void decode_frame(alac_file *alac,
|
||||
unsigned char *inbuffer,
|
||||
void *outbuffer, int *outputsize);
|
||||
void alac_set_info(alac_file *alac, char *inputbuffer);
|
||||
+int set_endian();
|
||||
|
||||
#endif /* __ALAC__DECOMP_H */
|
||||
|
||||
diff --git a/demux.c b/demux.c
|
||||
index ae77a9d..9e858a9 100644
|
||||
--- a/demux.c
|
||||
+++ b/demux.c
|
||||
@@ -33,11 +33,7 @@
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
-#ifdef _WIN32
|
||||
- #include "stdint_win.h"
|
||||
-#else
|
||||
- #include <stdint.h>
|
||||
-#endif
|
||||
+#include <stdint.h>
|
||||
|
||||
#include "stream.h"
|
||||
#include "demux.h"
|
||||
diff --git a/demux.h b/demux.h
|
||||
index 8447bf8..8874ba4 100644
|
||||
--- a/demux.h
|
||||
+++ b/demux.h
|
||||
@@ -1,11 +1,8 @@
|
||||
#ifndef DEMUX_H
|
||||
#define DEMUX_H
|
||||
|
||||
-#ifdef _WIN32
|
||||
- #include "stdint_win.h"
|
||||
-#else
|
||||
- #include <stdint.h>
|
||||
-#endif
|
||||
+
|
||||
+#include <stdint.h>
|
||||
|
||||
#include "stream.h"
|
||||
|
||||
diff --git a/main.c b/main.c
|
||||
index 7449ca1..dd58699 100644
|
||||
--- a/main.c
|
||||
+++ b/main.c
|
||||
@@ -37,11 +37,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <errno.h>
|
||||
#include <string.h>
|
||||
-#ifdef _WIN32
|
||||
- #include "stdint_win.h"
|
||||
-#else
|
||||
- #include <stdint.h>
|
||||
-#endif
|
||||
+#include <stdint.h>
|
||||
|
||||
#include "demux.h"
|
||||
#include "decomp.h"
|
||||
@@ -267,19 +263,7 @@ static void setup_environment(int argc, char **argv)
|
||||
}
|
||||
}
|
||||
|
||||
-/* this could quite easily be done at compile time,
|
||||
- * however I don't want to have to bother with all the
|
||||
- * various possible #define's for endianness, worrying about
|
||||
- * different compilers etc. and I'm too lazy to use autoconf.
|
||||
- */
|
||||
-void set_endian()
|
||||
-{
|
||||
- uint32_t integer = 0x000000aa;
|
||||
- unsigned char *p = (unsigned char*)&integer;
|
||||
|
||||
- if (p[0] == 0xaa) host_bigendian = 0;
|
||||
- else host_bigendian = 1;
|
||||
-}
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
@@ -288,7 +272,7 @@ int main(int argc, char **argv)
|
||||
|
||||
memset(&demux_res, 0, sizeof(demux_res));
|
||||
|
||||
- set_endian();
|
||||
+ host_bigendian = set_endian();
|
||||
|
||||
setup_environment(argc, argv);
|
||||
|
||||
diff --git a/stream.c b/stream.c
|
||||
index 565db54..56727a0 100644
|
||||
--- a/stream.c
|
||||
+++ b/stream.c
|
||||
@@ -33,13 +33,10 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <errno.h>
|
||||
-#ifdef _WIN32
|
||||
- #include "stdint_win.h"
|
||||
-#else
|
||||
- #include <stdint.h>
|
||||
-#endif
|
||||
+#include <stdint.h>
|
||||
|
||||
#include "stream.h"
|
||||
+#include "decomp.h"
|
||||
|
||||
#define _Swap32(v) do { \
|
||||
v = (((v) & 0x000000FF) << 0x18) | \
|
||||
@@ -51,7 +48,7 @@
|
||||
v = (((v) & 0x00FF) << 0x08) | \
|
||||
(((v) & 0xFF00) >> 0x08); } while (0)
|
||||
|
||||
-extern int host_bigendian;
|
||||
+#define host_bigendian set_endian()
|
||||
|
||||
struct stream_tTAG {
|
||||
FILE *f;
|
||||
diff --git a/stream.h b/stream.h
|
||||
index 18d6aa0..ff6325e 100644
|
||||
--- a/stream.h
|
||||
+++ b/stream.h
|
||||
@@ -3,11 +3,8 @@
|
||||
|
||||
/* stream.h */
|
||||
|
||||
-#ifdef _WIN32
|
||||
- #include "stdint_win.h"
|
||||
-#else
|
||||
- #include <stdint.h>
|
||||
-#endif
|
||||
+#include <stdint.h>
|
||||
+
|
||||
|
||||
typedef struct stream_tTAG stream_t;
|
||||
|
||||
diff --git a/wavwriter.c b/wavwriter.c
|
||||
index fd19502..ce941c7 100644
|
||||
--- a/wavwriter.c
|
||||
+++ b/wavwriter.c
|
||||
@@ -32,11 +32,8 @@
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
-#ifdef _WIN32
|
||||
- #include "stdint_win.h"
|
||||
-#else
|
||||
- #include <stdint.h>
|
||||
-#endif
|
||||
+#include <stdint.h>
|
||||
+
|
||||
|
||||
#ifndef MAKEFOURCC
|
||||
#define MAKEFOURCC(ch0, ch1, ch2, ch3) ( \
|
||||
@@ -56,7 +53,7 @@
|
||||
v = (((v) & 0x00FF) << 0x08) | \
|
||||
(((v) & 0xFF00) >> 0x08); } while (0)
|
||||
|
||||
-extern int host_bigendian;
|
||||
+#define host_bigendian set_endian()
|
||||
|
||||
static void write_uint32(FILE *f, uint32_t v, int bigendian)
|
||||
{
|
||||
7
externals/vcpkg/ports/alac-decoder/vcpkg.json
vendored
Executable file
7
externals/vcpkg/ports/alac-decoder/vcpkg.json
vendored
Executable file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"name": "alac-decoder",
|
||||
"version-string": "0.2",
|
||||
"port-version": 5,
|
||||
"description": "ALAC C implementation of a decoder, written from reverse engineering the file format",
|
||||
"homepage": "https://distfiles.macports.org/alac_decoder"
|
||||
}
|
||||
61
externals/vcpkg/ports/alac/CMakeLists.txt
vendored
Executable file
61
externals/vcpkg/ports/alac/CMakeLists.txt
vendored
Executable file
@@ -0,0 +1,61 @@
|
||||
cmake_minimum_required (VERSION 3.9)
|
||||
project (alac)
|
||||
|
||||
set(HEADERS
|
||||
codec/EndianPortable.h
|
||||
codec/aglib.h
|
||||
codec/ALACAudioTypes.h
|
||||
codec/ALACBitUtilities.h
|
||||
codec/ALACDecoder.h
|
||||
codec/ALACEncoder.h
|
||||
codec/dplib.h
|
||||
codec/matrixlib.h
|
||||
)
|
||||
|
||||
|
||||
set (SRCS
|
||||
codec/EndianPortable.c
|
||||
codec/ALACBitUtilities.c
|
||||
codec/ALACDecoder.cpp
|
||||
codec/ALACEncoder.cpp
|
||||
codec/ag_dec.c
|
||||
codec/ag_enc.c
|
||||
codec/dp_dec.c
|
||||
codec/dp_enc.c
|
||||
codec/matrix_dec.c
|
||||
codec/matrix_enc.c
|
||||
)
|
||||
|
||||
set(EXE_SRCS
|
||||
convert-utility/main.cpp
|
||||
convert-utility/CAFFileALAC.cpp
|
||||
)
|
||||
|
||||
if(MSVC)
|
||||
add_compile_options(/W4 -D_CRT_SECURE_NO_WARNINGS -DTARGET_OS_WIN32)
|
||||
endif()
|
||||
|
||||
include_directories(. codec convert-utility)
|
||||
|
||||
add_library(libalac ${SRCS})
|
||||
|
||||
add_executable(alacconvert ${EXE_SRCS})
|
||||
target_link_libraries(alacconvert libalac)
|
||||
|
||||
install(
|
||||
TARGETS libalac
|
||||
RUNTIME DESTINATION bin
|
||||
LIBRARY DESTINATION lib
|
||||
ARCHIVE DESTINATION lib
|
||||
)
|
||||
|
||||
if(NOT DISABLE_INSTALL_TOOLS)
|
||||
install (
|
||||
TARGETS alacconvert
|
||||
RUNTIME DESTINATION tools/alac
|
||||
)
|
||||
endif()
|
||||
|
||||
if(NOT DISABLE_INSTALL_HEADERS)
|
||||
install(FILES ${HEADERS} DESTINATION include/alac)
|
||||
endif()
|
||||
26
externals/vcpkg/ports/alac/portfile.cmake
vendored
Executable file
26
externals/vcpkg/ports/alac/portfile.cmake
vendored
Executable file
@@ -0,0 +1,26 @@
|
||||
if(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
|
||||
message(FATAL_ERROR "${PORT} does not currently support UWP")
|
||||
endif()
|
||||
|
||||
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO macosforge/alac
|
||||
REF c38887c5c5e64a4b31108733bd79ca9b2496d987
|
||||
SHA512 8da18df25807e76f9187f7bf30585aace303d55444f0a614ab00d98d11caca3fdc5c6f5b9fd11e5f4c92a2ab1e86fef73deeeada57e9d49951fea8b80ba383cc
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
OPTIONS_DEBUG -DDISABLE_INSTALL_HEADERS=ON -DDISABLE_INSTALL_TOOLS=ON
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
vcpkg_copy_pdbs()
|
||||
vcpkg_copy_tool_dependencies(${CURRENT_PACKAGES_DIR}/tools/alac)
|
||||
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/alac RENAME copyright)
|
||||
8
externals/vcpkg/ports/alac/vcpkg.json
vendored
Executable file
8
externals/vcpkg/ports/alac/vcpkg.json
vendored
Executable file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"name": "alac",
|
||||
"version-string": "2017-11-03-c38887c5",
|
||||
"port-version": 2,
|
||||
"description": "The Apple Lossless Audio Codec (ALAC) is a lossless audio codec developed by Apple and deployed on all of its platforms and devices.",
|
||||
"homepage": "https://github.com/macosforge/alac",
|
||||
"supports": "!uwp"
|
||||
}
|
||||
19
externals/vcpkg/ports/alembic/disable-warnings-as-error.patch
vendored
Executable file
19
externals/vcpkg/ports/alembic/disable-warnings-as-error.patch
vendored
Executable file
@@ -0,0 +1,19 @@
|
||||
Workaround for https://github.com/alembic/alembic/issues/309
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -125,14 +125,6 @@ IF (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
||||
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=hidden")
|
||||
ENDIF()
|
||||
|
||||
-# Set some debug vs opt flags
|
||||
-if ("${CMAKE_BUILD_TYPE}" MATCHES "Debug" AND NOT MSVC)
|
||||
- add_definitions(-Wall -Werror -Wextra -Wno-unused-parameter -Wno-deprecated)
|
||||
- if((CMAKE_CXX_COMPILER_ID MATCHES "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 7.0) OR
|
||||
- CMAKE_CXX_COMPILER_ID MATCHES "CLANG")
|
||||
- add_definitions( -Wno-error=implicit-fallthrough)
|
||||
- endif()
|
||||
-endif()
|
||||
|
||||
IF (NOT ${WINDOWS})
|
||||
SET(EXTERNAL_MATH_LIBS "-lm")
|
||||
31
externals/vcpkg/ports/alembic/fix-runtime-destination.patch
vendored
Executable file
31
externals/vcpkg/ports/alembic/fix-runtime-destination.patch
vendored
Executable file
@@ -0,0 +1,31 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -73,7 +73,7 @@ option(DOCS_PATH
|
||||
|
||||
# Set static/dynamic build options
|
||||
SET(LIB_TYPE STATIC)
|
||||
-SET(RUNTIME_INSTALL_DIR lib)
|
||||
+SET(RUNTIME_INSTALL_DIR bin)
|
||||
SET(LIBRARY_INSTALL_DIR lib)
|
||||
SET(ARCHIVE_INSTALL_DIR lib)
|
||||
IF (ALEMBIC_SHARED_LIBS)
|
||||
diff --git a/lib/Alembic/CMakeLists.txt b/lib/Alembic/CMakeLists.txt
|
||||
--- a/lib/Alembic/CMakeLists.txt
|
||||
+++ b/lib/Alembic/CMakeLists.txt
|
||||
@@ -78,12 +78,11 @@ option(DOCS_PATH
|
||||
${ZLIB_LIBRARY}
|
||||
)
|
||||
|
||||
-SET( ALEMBIC_LIB_INSTALL_DIR lib CACHE PATH "Where to install the Alembic libs")
|
||||
INSTALL(TARGETS Alembic
|
||||
EXPORT AlembicTargets
|
||||
- LIBRARY DESTINATION ${ALEMBIC_LIB_INSTALL_DIR}
|
||||
- ARCHIVE DESTINATION ${ALEMBIC_LIB_INSTALL_DIR}
|
||||
- RUNTIME DESTINATION ${ALEMBIC_LIB_INSTALL_DIR})
|
||||
+ LIBRARY DESTINATION ${LIBRARY_INSTALL_DIR}
|
||||
+ ARCHIVE DESTINATION ${ARCHIVE_INSTALL_DIR}
|
||||
+ RUNTIME DESTINATION ${RUNTIME_INSTALL_DIR})
|
||||
|
||||
#-******************************************************************************
|
||||
# PACKAGE EXPORTS
|
||||
49
externals/vcpkg/ports/alembic/portfile.cmake
vendored
Executable file
49
externals/vcpkg/ports/alembic/portfile.cmake
vendored
Executable file
@@ -0,0 +1,49 @@
|
||||
vcpkg_buildpath_length_warning(37)
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO alembic/alembic
|
||||
REF 1.8.3
|
||||
SHA512 0049c72d93e66e12d704d27e7ba36cd9c718667f2ce4f7baa1bee1613ed88ba53abea98f457e14f7f2144cb353810a4108d26c7dd1a1543ec2af576272f19036
|
||||
HEAD_REF master
|
||||
PATCHES
|
||||
fix-runtime-destination.patch
|
||||
disable-warnings-as-error.patch
|
||||
)
|
||||
|
||||
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" ALEMBIC_SHARED_LIBS)
|
||||
|
||||
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
||||
FEATURES
|
||||
hdf5 USE_HDF5
|
||||
)
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
OPTIONS
|
||||
-DALEMBIC_SHARED_LIBS=${ALEMBIC_SHARED_LIBS}
|
||||
-DUSE_TESTS=OFF
|
||||
${FEATURE_OPTIONS}
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
|
||||
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/Alembic)
|
||||
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
||||
|
||||
set(TOOLS abcdiff abcecho abcechobounds abcls abcstitcher abctree)
|
||||
if(USE_HDF5)
|
||||
list(APPEND TOOLS abcconvert)
|
||||
endif()
|
||||
|
||||
vcpkg_copy_tools(
|
||||
TOOL_NAMES ${TOOLS}
|
||||
AUTO_CLEAN
|
||||
)
|
||||
vcpkg_copy_tool_dependencies("${CURRENT_PACKAGES_DIR}/tools/${PORT}")
|
||||
|
||||
file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
||||
27
externals/vcpkg/ports/alembic/vcpkg.json
vendored
Executable file
27
externals/vcpkg/ports/alembic/vcpkg.json
vendored
Executable file
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"name": "alembic",
|
||||
"version": "1.8.3",
|
||||
"port-version": 1,
|
||||
"description": "Alembic is an open framework for storing and sharing scene data that includes a C++ library, a file format, and client plugins and applications.",
|
||||
"homepage": "https://alembic.io/",
|
||||
"supports": "!(windows & x86) & !uwp",
|
||||
"dependencies": [
|
||||
"imath",
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
],
|
||||
"features": {
|
||||
"hdf5": {
|
||||
"description": "Build with HDF5 support",
|
||||
"dependencies": [
|
||||
"hdf5"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
12
externals/vcpkg/ports/aliyun-oss-c-sdk/patch.patch
vendored
Executable file
12
externals/vcpkg/ports/aliyun-oss-c-sdk/patch.patch
vendored
Executable file
@@ -0,0 +1,12 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 0abcb93..75195a9 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -150,5 +150,5 @@ INSTALL(FILES
|
||||
oss_c_sdk/oss_xml.h
|
||||
DESTINATION include/oss_c_sdk)
|
||||
|
||||
-add_subdirectory(oss_c_sdk_sample)
|
||||
-add_subdirectory(oss_c_sdk_test)
|
||||
+#add_subdirectory(oss_c_sdk_sample)
|
||||
+#add_subdirectory(oss_c_sdk_test)
|
||||
24
externals/vcpkg/ports/aliyun-oss-c-sdk/portfile.cmake
vendored
Executable file
24
externals/vcpkg/ports/aliyun-oss-c-sdk/portfile.cmake
vendored
Executable file
@@ -0,0 +1,24 @@
|
||||
if(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
|
||||
message(FATAL_ERROR "${PORT} does not currently support UWP")
|
||||
endif()
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO aliyun/aliyun-oss-c-sdk
|
||||
REF f9e441137620d712c7d89587c951bed459ebc843 # 3.10.0
|
||||
SHA512 6621d105706fb69b3f1998d7c83c94ff93747946040f0c45ec52986c0e8d8db3d48237d1e3f0959e09536ca43bcbe3bcdb32f90622ce51de6ea7132be6dd7cf7
|
||||
HEAD_REF master
|
||||
PATCHES
|
||||
patch.patch
|
||||
)
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
||||
file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT}/)
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/share/${PORT}/LICENSE ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright)
|
||||
11
externals/vcpkg/ports/aliyun-oss-c-sdk/vcpkg.json
vendored
Executable file
11
externals/vcpkg/ports/aliyun-oss-c-sdk/vcpkg.json
vendored
Executable file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"name": "aliyun-oss-c-sdk",
|
||||
"version-string": "3.10.0",
|
||||
"port-version": 1,
|
||||
"description": "Alibaba Cloud Object Storage Service (OSS) is a cloud storage service provided by Alibaba Cloud, featuring massive capacity, security, a low cost, and high reliability.",
|
||||
"supports": "!(uwp | linux | osx)",
|
||||
"dependencies": [
|
||||
"apr-util",
|
||||
"curl"
|
||||
]
|
||||
}
|
||||
13
externals/vcpkg/ports/allegro5/do-not-copy-pdbs-to-lib.patch
vendored
Executable file
13
externals/vcpkg/ports/allegro5/do-not-copy-pdbs-to-lib.patch
vendored
Executable file
@@ -0,0 +1,13 @@
|
||||
diff --git a/cmake/Common.cmake b/cmake/Common.cmake
|
||||
index 86c194f..74edef8 100644
|
||||
--- a/cmake/Common.cmake
|
||||
+++ b/cmake/Common.cmake
|
||||
@@ -227,7 +227,7 @@ function(install_our_library target filename)
|
||||
# Doesn't work, see below.
|
||||
# PUBLIC_HEADER DESTINATION "include"
|
||||
)
|
||||
- if(MSVC AND BUILD_SHARED_LIBS)
|
||||
+ if(0)
|
||||
install(FILES ${CMAKE_BINARY_DIR}/lib/${filename}.pdb
|
||||
DESTINATION lib
|
||||
CONFIGURATIONS Debug RelWithDebInfo
|
||||
52
externals/vcpkg/ports/allegro5/export-targets.patch
vendored
Executable file
52
externals/vcpkg/ports/allegro5/export-targets.patch
vendored
Executable file
@@ -0,0 +1,52 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 7c5720b..72880c4 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -1156,6 +1156,24 @@ if(INSTALL_PKG_CONFIG_FILES)
|
||||
endforeach(versuffix)
|
||||
endif(INSTALL_PKG_CONFIG_FILES)
|
||||
|
||||
+file(WRITE "${CMAKE_INSTALL_PREFIX}/share/unofficial-allegro5/unofficial-allegro5-config.cmake"
|
||||
+[[
|
||||
+include("${CMAKE_CURRENT_LIST_DIR}/unofficial-allegroTargets.cmake")
|
||||
+include("${CMAKE_CURRENT_LIST_DIR}/unofficial-allegro_audioTargets.cmake")
|
||||
+include("${CMAKE_CURRENT_LIST_DIR}/unofficial-allegro_videoTargets.cmake")
|
||||
+include("${CMAKE_CURRENT_LIST_DIR}/unofficial-allegro_primitivesTargets.cmake")
|
||||
+include("${CMAKE_CURRENT_LIST_DIR}/unofficial-allegro_fontTargets.cmake")
|
||||
+include("${CMAKE_CURRENT_LIST_DIR}/unofficial-allegro_ttfTargets.cmake")
|
||||
+include("${CMAKE_CURRENT_LIST_DIR}/unofficial-allegro_memfileTargets.cmake")
|
||||
+include("${CMAKE_CURRENT_LIST_DIR}/unofficial-allegro_physfsTargets.cmake")
|
||||
+include("${CMAKE_CURRENT_LIST_DIR}/unofficial-allegro_imageTargets.cmake")
|
||||
+include("${CMAKE_CURRENT_LIST_DIR}/unofficial-allegro_mainTargets.cmake")
|
||||
+include("${CMAKE_CURRENT_LIST_DIR}/unofficial-allegro_dialogTargets.cmake")
|
||||
+include("${CMAKE_CURRENT_LIST_DIR}/unofficial-allegro_colorTargets.cmake")
|
||||
+include("${CMAKE_CURRENT_LIST_DIR}/unofficial-allegro_acodecTargets.cmake")
|
||||
+
|
||||
+]])
|
||||
+
|
||||
#-----------------------------------------------------------------------------#
|
||||
#
|
||||
# Documentation
|
||||
diff --git a/cmake/Common.cmake b/cmake/Common.cmake
|
||||
index 74edef8..0cf1edb 100644
|
||||
--- a/cmake/Common.cmake
|
||||
+++ b/cmake/Common.cmake
|
||||
@@ -220,6 +220,7 @@ endfunction(set_our_framework_properties)
|
||||
|
||||
function(install_our_library target filename)
|
||||
install(TARGETS ${target}
|
||||
+ EXPORT unofficial-${target}Targets
|
||||
LIBRARY DESTINATION "lib${LIB_SUFFIX}"
|
||||
ARCHIVE DESTINATION "lib${LIB_SUFFIX}"
|
||||
FRAMEWORK DESTINATION "${FRAMEWORK_INSTALL_PREFIX}"
|
||||
@@ -227,6 +228,10 @@ function(install_our_library target filename)
|
||||
# Doesn't work, see below.
|
||||
# PUBLIC_HEADER DESTINATION "include"
|
||||
)
|
||||
+ install(EXPORT unofficial-${target}Targets
|
||||
+ NAMESPACE unofficial-allegro5::
|
||||
+ DESTINATION share/unofficial-allegro5
|
||||
+ )
|
||||
if(0)
|
||||
install(FILES ${CMAKE_BINARY_DIR}/lib/${filename}.pdb
|
||||
DESTINATION lib
|
||||
34
externals/vcpkg/ports/allegro5/fix-pdb-install.patch
vendored
Executable file
34
externals/vcpkg/ports/allegro5/fix-pdb-install.patch
vendored
Executable file
@@ -0,0 +1,34 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 72348fe..c6fbecb 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -1010,14 +1010,9 @@ else()
|
||||
set(PKG_CONFIG_FILES allegro ${ADDON_PKG_CONFIG_FILES})
|
||||
endif(WANT_MONOLITH)
|
||||
|
||||
-# Install pkg-config files on Unix, and when cross-compiling on Unix.
|
||||
+# Install pkg-config files
|
||||
|
||||
-if(UNIX AND NOT WANT_FRAMEWORKS AND NOT IPHONE)
|
||||
- set(INSTALL_PKG_CONFIG_FILES true)
|
||||
-endif()
|
||||
-if(CMAKE_CROSSCOMPILING AND CMAKE_HOST_UNIX)
|
||||
- set(INSTALL_PKG_CONFIG_FILES true)
|
||||
-endif()
|
||||
+set(INSTALL_PKG_CONFIG_FILES true)
|
||||
|
||||
if(INSTALL_PKG_CONFIG_FILES)
|
||||
append_lib_type_suffix(lib_type)
|
||||
diff --git a/cmake/Common.cmake b/cmake/Common.cmake
|
||||
index 782196f..de29535 100644
|
||||
--- a/cmake/Common.cmake
|
||||
+++ b/cmake/Common.cmake
|
||||
@@ -223,7 +223,7 @@ function(install_our_library target filename)
|
||||
# PUBLIC_HEADER DESTINATION "include"
|
||||
)
|
||||
if(MSVC AND BUILD_SHARED_LIBS)
|
||||
- install(FILES ${CMAKE_BINARY_DIR}/lib/\${CMAKE_INSTALL_CONFIG_NAME}/${filename}.pdb
|
||||
+ install(FILES ${CMAKE_BINARY_DIR}/lib/${filename}.pdb
|
||||
DESTINATION lib
|
||||
CONFIGURATIONS Debug RelWithDebInfo
|
||||
)
|
||||
72
externals/vcpkg/ports/allegro5/portfile.cmake
vendored
Executable file
72
externals/vcpkg/ports/allegro5/portfile.cmake
vendored
Executable file
@@ -0,0 +1,72 @@
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO liballeg/allegro5
|
||||
REF 5.2.6.0
|
||||
SHA512 d590c1a00d1b314c6946e0f6ad3e3a8b6e6309bada2ec38857186f817147ac99dae8a1c4412abe701af88da5dca3dd8f989a1da66630192643d3c08c0146b603
|
||||
HEAD_REF master
|
||||
PATCHES
|
||||
fix-pdb-install.patch
|
||||
do-not-copy-pdbs-to-lib.patch
|
||||
export-targets.patch
|
||||
)
|
||||
|
||||
|
||||
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" VCPKG_BUILD_SHARED_LIBS)
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
OPTIONS
|
||||
-DWANT_DOCS=OFF
|
||||
-DALLEGRO_SDL=OFF
|
||||
-DWANT_DEMO=OFF
|
||||
-DSHARED=${VCPKG_BUILD_SHARED_LIBS}
|
||||
-DWANT_EXAMPLES=OFF
|
||||
-DWANT_CURL_EXAMPLE=OFF
|
||||
-DWANT_TESTS=OFF
|
||||
-DWANT_AUDIO=ON
|
||||
-DWANT_COLOR=ON
|
||||
-DWANT_D3D=ON
|
||||
-DWANT_D3D9EX=OFF # Not available on vcpkg
|
||||
-DWANT_DSOUND=ON
|
||||
-DWANT_FLAC=ON
|
||||
-DWANT_FONT=ON
|
||||
-DWANT_GLES2=ON
|
||||
-DWANT_GLES3=ON
|
||||
-DWANT_IMAGE=ON
|
||||
-DWANT_IMAGE_JPG=ON
|
||||
-DWANT_IMAGE_PNG=ON
|
||||
-DWANT_MEMFILE=ON
|
||||
-DWANT_MODAUDIO=OFF # Not available on vcpkg right now
|
||||
-DWANT_NATIVE_DIALOG=ON
|
||||
-DWANT_NATIVE_IMAGE_LOADER=ON
|
||||
-DWANT_OGG_VIDEO=ON
|
||||
-DWANT_OPENAL=ON
|
||||
-DWANT_OPENGL=ON
|
||||
-DWANT_OPENSL=OFF # Not yet available on vcpkg
|
||||
-DWANT_OPUS=ON
|
||||
-DWANT_PHYSFS=ON
|
||||
-DWANT_POPUP_EXAMPLES=OFF
|
||||
-DWANT_PRIMITIVES=ON
|
||||
-DWANT_RELEASE_LOGGING=OFF
|
||||
-DWANT_SHADERS_D3D=ON
|
||||
-DWANT_SHADERS_GL=ON
|
||||
-DWANT_TREMOR=OFF # Not yet available on vcpkg
|
||||
-DWANT_TTF=ON
|
||||
-DWANT_VIDEO=ON
|
||||
-DWANT_VORBIS=ON
|
||||
-DOPENAL_INCLUDE_DIR=${CURRENT_INSTALLED_DIR}/include/AL
|
||||
-DZLIB_INCLUDE_DIR=${CURRENT_INSTALLED_DIR}/include
|
||||
OPTIONS_RELEASE -DWANT_ALLOW_SSE=ON
|
||||
OPTIONS_DEBUG -DWANT_ALLOW_SSE=OFF
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-allegro5 CONFIG_PATH share/unofficial-allegro5)
|
||||
vcpkg_fixup_pkgconfig()
|
||||
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share" "${CURRENT_PACKAGES_DIR}/debug/include")
|
||||
|
||||
file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
||||
30
externals/vcpkg/ports/allegro5/vcpkg.json
vendored
Executable file
30
externals/vcpkg/ports/allegro5/vcpkg.json
vendored
Executable file
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"name": "allegro5",
|
||||
"version": "5.2.6.0",
|
||||
"port-version": 2,
|
||||
"description": "Allegro is a cross-platform library mainly aimed at video game and multimedia programming. It handles common, low-level tasks such as creating windows, accepting user input, loading data, drawing images, playing sounds, etc. and generally abstracting away the underlying platform. However, Allegro is not a game engine: you are free to design and structure your program as you like.",
|
||||
"homepage": "https://github.com/liballeg/allegro5",
|
||||
"dependencies": [
|
||||
"bzip2",
|
||||
"freetype",
|
||||
"libflac",
|
||||
"libogg",
|
||||
"libpng",
|
||||
"libtheora",
|
||||
"libvorbis",
|
||||
"openal-soft",
|
||||
"opengl",
|
||||
"opus",
|
||||
"opusfile",
|
||||
"physfs",
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
},
|
||||
"zlib"
|
||||
]
|
||||
}
|
||||
40
externals/vcpkg/ports/alsa/portfile.cmake
vendored
Executable file
40
externals/vcpkg/ports/alsa/portfile.cmake
vendored
Executable file
@@ -0,0 +1,40 @@
|
||||
if(NOT VCPKG_CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
||||
message(FATAL_ERROR "Package only supports Linux platform.")
|
||||
endif()
|
||||
|
||||
message(
|
||||
"alsa currently requires the following libraries from the system package manager:
|
||||
autoconf libtool
|
||||
These can be installed on Ubuntu systems via sudo apt install autoconf libtool"
|
||||
)
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO alsa-project/alsa-lib
|
||||
REF v1.2.6.1
|
||||
SHA512 d1de9112ec0d600db6e5a20b558811a7a9f34d00a9b1dfb5332669b73732c1c1b8ddda57368edc199e255eba8bcb8a6767b4d9325c9860ade02d84dcaac6eb47
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
||||
set(BUILD_OPTS --enable-shared=yes --enable-static=no)
|
||||
else()
|
||||
set(BUILD_OPTS --enable-shared=no --enable-static=yes)
|
||||
endif()
|
||||
|
||||
vcpkg_configure_make(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
AUTOCONFIG
|
||||
OPTIONS
|
||||
${BUILD_OPTS}
|
||||
--disable-python
|
||||
)
|
||||
|
||||
vcpkg_install_make()
|
||||
vcpkg_fixup_pkgconfig()
|
||||
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/tools/alsa/debug")
|
||||
|
||||
configure_file("${SOURCE_PATH}/COPYING" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" COPYONLY)
|
||||
8
externals/vcpkg/ports/alsa/vcpkg.json
vendored
Executable file
8
externals/vcpkg/ports/alsa/vcpkg.json
vendored
Executable file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"name": "alsa",
|
||||
"version": "1.2.6.1",
|
||||
"description": "The Advanced Linux Sound Architecture (ALSA) - library",
|
||||
"homepage": "https://www.alsa-project.org/",
|
||||
"license": "LGPL-2.1-or-later",
|
||||
"supports": "linux"
|
||||
}
|
||||
59
externals/vcpkg/ports/ampl-asl/copyright
vendored
Executable file
59
externals/vcpkg/ports/ampl-asl/copyright
vendored
Executable file
@@ -0,0 +1,59 @@
|
||||
Licenses
|
||||
========
|
||||
|
||||
Copyright (C) 1990 - 2001 Lucent Technologies
|
||||
|
||||
Permission to use, copy, modify, and distribute this software and
|
||||
its documentation for any purpose and without fee is hereby
|
||||
granted, provided that the above copyright notice appear in all
|
||||
copies and that both that the copyright notice and this
|
||||
permission notice and warranty disclaimer appear in supporting
|
||||
documentation, and that the name of Lucent or any of its entities
|
||||
not be used in advertising or publicity pertaining to
|
||||
distribution of the software without specific, written prior
|
||||
permission.
|
||||
|
||||
LUCENT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
|
||||
INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS.
|
||||
IN NO EVENT SHALL LUCENT OR ANY OF ITS ENTITIES BE LIABLE FOR ANY
|
||||
SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER
|
||||
IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
|
||||
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
|
||||
THIS SOFTWARE.
|
||||
|
||||
----------------------------------------------------------------------
|
||||
|
||||
Copyright (C) 2007 David M. Gay
|
||||
|
||||
Permission to use, copy, modify, and distribute this software and its
|
||||
documentation for any purpose and without fee is hereby granted,
|
||||
provided that the above copyright notice appear in all copies and that
|
||||
both that the copyright notice and this permission notice and warranty
|
||||
disclaimer appear in supporting documentation.
|
||||
|
||||
The author disclaims all warranties with regard to this software,
|
||||
including all implied warranties of merchantability and fitness.
|
||||
In no event shall the author be liable for any special, indirect or
|
||||
consequential damages or any damages whatsoever resulting from loss of
|
||||
use, data or profits, whether in an action of contract, negligence or
|
||||
other tortious action, arising out of or in connection with the use or
|
||||
performance of this software.
|
||||
|
||||
----------------------------------------------------------------------
|
||||
|
||||
Copyright (C) 2002 - 2014 AMPL Optimization LLC
|
||||
|
||||
Permission to use, copy, modify, and distribute this software and its
|
||||
documentation for any purpose and without fee is hereby granted,
|
||||
provided that the above copyright notice appear in all copies and that
|
||||
both that the copyright notice and this permission notice and warranty
|
||||
disclaimer appear in supporting documentation.
|
||||
|
||||
The author and AMPL Optimization LLC disclaim all warranties with
|
||||
regard to this software, including all implied warranties of
|
||||
merchantability and fitness. In no event shall the author be liable
|
||||
for any special, indirect or consequential damages or any damages
|
||||
whatsoever resulting from loss of use, data or profits, whether in an
|
||||
action of contract, negligence or other tortious action, arising out
|
||||
of or in connection with the use or performance of this software.
|
||||
13
externals/vcpkg/ports/ampl-asl/fix-crt-linkage.patch
vendored
Executable file
13
externals/vcpkg/ports/ampl-asl/fix-crt-linkage.patch
vendored
Executable file
@@ -0,0 +1,13 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 976af78..35d248d 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -256,7 +256,7 @@ macro(createSingleASL name sourcedir sources)
|
||||
endif()
|
||||
if(MSVC)
|
||||
target_compile_options(${name} PRIVATE
|
||||
- /wd4013 /wd4018 /wd4101 /wd4244 /wd4273 /wd4267 /wd4996 /MT$<$<CONFIG:Debug>:d>)
|
||||
+ /wd4013 /wd4018 /wd4101 /wd4244 /wd4273 /wd4267 /wd4996)
|
||||
else()
|
||||
target_compile_options(${name} PRIVATE -Wno-unused-result -Wno-parentheses)
|
||||
endif()
|
||||
12
externals/vcpkg/ports/ampl-asl/install-extra-headers.patch
vendored
Executable file
12
externals/vcpkg/ports/ampl-asl/install-extra-headers.patch
vendored
Executable file
@@ -0,0 +1,12 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 35d248d..8a85aa7 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -317,6 +317,7 @@ if(BUILD_CPP)
|
||||
endif()
|
||||
|
||||
install(FILES ${ASL_HEADERS} ${ASL_SOURCE_DIR}/opcode.hd ${ASL_SOURCE_DIR}/r_opn.hd
|
||||
+ ${GENERATED_INCLUDE_DIR}/stdio1.h ${GENERATED_INCLUDE_DIR}/arith.h
|
||||
DESTINATION include/asl COMPONENT asl)
|
||||
install(FILES ${ASL2_HEADERS} ${ASL2_SOURCE_DIR}/opcode.hd ${ASL2_SOURCE_DIR}/r_opn.hd
|
||||
DESTINATION include/asl2 COMPONENT asl)
|
||||
39
externals/vcpkg/ports/ampl-asl/install-targets.patch
vendored
Executable file
39
externals/vcpkg/ports/ampl-asl/install-targets.patch
vendored
Executable file
@@ -0,0 +1,39 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 8a85aa7..c0619bc 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -247,8 +247,8 @@ endif()
|
||||
|
||||
macro(createSingleASL name sourcedir sources)
|
||||
add_library(${name} STATIC ${${sources}} ${GENERATED_INCLUDE_DIR}/arith.h)
|
||||
- target_include_directories(${name} PUBLIC ${GENERATED_INCLUDE_DIR}
|
||||
- ${sourcedir})
|
||||
+ target_include_directories(${name} PUBLIC $<BUILD_INTERFACE:${GENERATED_INCLUDE_DIR}>
|
||||
+ $<BUILD_INTERFACE:${sourcedir}> $<INSTALL_INTERFACE:include>)
|
||||
target_compile_definitions(${name} PRIVATE ${ASL_COMPILE_DEFINITIONS})
|
||||
target_link_libraries(${name} PUBLIC ${CMAKE_DL_LIBS})
|
||||
if(NOT WIN32)
|
||||
@@ -322,14 +322,16 @@ install(FILES ${ASL_HEADERS} ${ASL_SOURCE_DIR}/opcode.hd ${ASL_SOURCE_DIR}/r_opn
|
||||
install(FILES ${ASL2_HEADERS} ${ASL2_SOURCE_DIR}/opcode.hd ${ASL2_SOURCE_DIR}/r_opn.hd
|
||||
DESTINATION include/asl2 COMPONENT asl)
|
||||
|
||||
-install(TARGETS asl asl2 DESTINATION lib COMPONENT asl)
|
||||
+install(TARGETS asl asl2 EXPORT unofficial-asl-config DESTINATION lib COMPONENT asl)
|
||||
if(BUILD_MT_LIBS)
|
||||
- install(TARGETS asl-mt asl2-mt DESTINATION lib COMPONENT asl)
|
||||
+ install(TARGETS asl-mt asl2-mt EXPORT unofficial-asl-config DESTINATION lib COMPONENT asl)
|
||||
endif()
|
||||
if(MSVC AND BUILD_DYNRT_LIBS)
|
||||
- install(TARGETS asl-dynrt asl2-dynrt DESTINATION lib COMPONENT asl)
|
||||
+ install(TARGETS asl-dynrt asl2-dynrt EXPORT unofficial-asl-config DESTINATION lib COMPONENT asl)
|
||||
endif()
|
||||
if(TARGET aslcpp)
|
||||
install(FILES ${ASL_CPP_HEADERS} DESTINATION include/aslcpp COMPONENT asl)
|
||||
- install(TARGETS aslcpp DESTINATION lib COMPONENT asl)
|
||||
-endif()
|
||||
\ No newline at end of file
|
||||
+ install(TARGETS aslcpp EXPORT unofficial-asl-config DESTINATION lib COMPONENT asl)
|
||||
+endif()
|
||||
+
|
||||
+install(EXPORT unofficial-asl-config DESTINATION share/unofficial-asl)
|
||||
\ No newline at end of file
|
||||
34
externals/vcpkg/ports/ampl-asl/portfile.cmake
vendored
Executable file
34
externals/vcpkg/ports/ampl-asl/portfile.cmake
vendored
Executable file
@@ -0,0 +1,34 @@
|
||||
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO ampl/asl
|
||||
REF 934d34719c8a620fcf16ae5a3c00c326eb22e748
|
||||
SHA512 b6fcb3dcb53a53d975666db1643d7ea518246e8fb6745621ce4b63de4393f7767844e9241baa6fdf1a45c241a9aa0866844c47deec0020313278128cccff6869
|
||||
HEAD_REF master
|
||||
PATCHES
|
||||
workaround-msvc-optimizer-ice.patch
|
||||
fix-crt-linkage.patch # CRT linkage uses C/CXX FLAGS in vcpkg
|
||||
install-extra-headers.patch
|
||||
install-targets.patch
|
||||
)
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
OPTIONS
|
||||
-DBUILD_MCMODELLARGE=OFF
|
||||
-DBUILD_DYNRT_LIBS=OFF # CRT linkage uses C/CXX FLAGS in vcpkg
|
||||
-DBUILD_MT_LIBS=OFF # CRT linkage uses C/CXX FLAGS in vcpkg
|
||||
-DBUILD_CPP=ON
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-asl)
|
||||
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||||
|
||||
# from ampl-mp license
|
||||
file(INSTALL "${CURRENT_PORT_DIR}/copyright" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
||||
19
externals/vcpkg/ports/ampl-asl/vcpkg.json
vendored
Executable file
19
externals/vcpkg/ports/ampl-asl/vcpkg.json
vendored
Executable file
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"name": "ampl-asl",
|
||||
"version-date": "2020-11-11",
|
||||
"port-version": 3,
|
||||
"description": "AMPL Solver Library",
|
||||
"homepage": "https://github.com/ampl/asl",
|
||||
"license": null,
|
||||
"supports": "!uwp & !(osx & arm64)",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
}
|
||||
60
externals/vcpkg/ports/ampl-asl/workaround-msvc-optimizer-ice.patch
vendored
Executable file
60
externals/vcpkg/ports/ampl-asl/workaround-msvc-optimizer-ice.patch
vendored
Executable file
@@ -0,0 +1,60 @@
|
||||
diff --git a/src/solvers/avltree.c b/src/solvers/avltree.c
|
||||
index 7a9adab..a75da90 100644
|
||||
--- a/src/solvers/avltree.c
|
||||
+++ b/src/solvers/avltree.c
|
||||
@@ -54,6 +54,10 @@ AVL_Tree {
|
||||
void (*Free)(void*);
|
||||
};
|
||||
|
||||
+#if defined(_MSC_VER) && _MSC_VER < 1917
|
||||
+#pragma optimize("", off)
|
||||
+#endif
|
||||
+
|
||||
AVL_Tree*
|
||||
AVL_Tree_alloc2(void *v, AVL_Elcomp cmp, void *(*Malloc)(size_t), void (*Free)(void*))
|
||||
{
|
||||
diff --git a/src/solvers/sphes.c b/src/solvers/sphes.c
|
||||
index a50065f..6e6eedc 100644
|
||||
--- a/src/solvers/sphes.c
|
||||
+++ b/src/solvers/sphes.c
|
||||
@@ -461,6 +461,10 @@ compar(const void *a, const void *b)
|
||||
#undef del_mblk
|
||||
#define del_mblk(b,c) Del_mblk_ASL(a,b,(Char*)(c))
|
||||
|
||||
+#if defined(_MSC_VER) && _MSC_VER < 1917
|
||||
+#pragma optimize("", off)
|
||||
+#endif
|
||||
+
|
||||
static void
|
||||
new_Hesoprod(ASL_pfgh *asl, ograd *L, ograd *R, real coef)
|
||||
{
|
||||
diff --git a/src/solvers2/avltree.c b/src/solvers2/avltree.c
|
||||
index 7a9adab..a75da90 100644
|
||||
--- a/src/solvers2/avltree.c
|
||||
+++ b/src/solvers2/avltree.c
|
||||
@@ -54,6 +54,10 @@ AVL_Tree {
|
||||
void (*Free)(void*);
|
||||
};
|
||||
|
||||
+#if defined(_MSC_VER) && _MSC_VER < 1917
|
||||
+#pragma optimize("", off)
|
||||
+#endif
|
||||
+
|
||||
AVL_Tree*
|
||||
AVL_Tree_alloc2(void *v, AVL_Elcomp cmp, void *(*Malloc)(size_t), void (*Free)(void*))
|
||||
{
|
||||
diff --git a/src/solvers2/sphes.c b/src/solvers2/sphes.c
|
||||
index dd2edff..ebdd3af 100644
|
||||
--- a/src/solvers2/sphes.c
|
||||
+++ b/src/solvers2/sphes.c
|
||||
@@ -855,6 +855,10 @@ compar(const void *a, const void *b)
|
||||
#undef del_mblk
|
||||
#define del_mblk(c) Del_mblk_ASL(a,(Char*)(c))
|
||||
|
||||
+#if defined(_MSC_VER) && _MSC_VER < 1917
|
||||
+#pragma optimize("", off)
|
||||
+#endif
|
||||
+
|
||||
static void
|
||||
new_Hesoprod(EvalWorkspace *ew, int nov, int *ov, real *oc, int nR, int *Rov, real *Roc, real coef)
|
||||
{
|
||||
13
externals/vcpkg/ports/ampl-mp/disable-matlab-mex.patch
vendored
Executable file
13
externals/vcpkg/ports/ampl-mp/disable-matlab-mex.patch
vendored
Executable file
@@ -0,0 +1,13 @@
|
||||
diff --git a/src/asl/CMakeLists.txt b/src/asl/CMakeLists.txt
|
||||
index b7d7ecf..c31a032 100644
|
||||
--- a/src/asl/CMakeLists.txt
|
||||
+++ b/src/asl/CMakeLists.txt
|
||||
@@ -59,7 +59,7 @@ endif ()
|
||||
|
||||
target_link_libraries(aslmp ${CMAKE_DL_LIBS})
|
||||
|
||||
-find_package(MATLAB)
|
||||
+set(MATLAB_FOUND)
|
||||
if (MATLAB_FOUND AND MATLAB_BUILD)
|
||||
set(matlab_asl asl)
|
||||
if (MSVC)
|
||||
45
externals/vcpkg/ports/ampl-mp/fix-arm-build.patch
vendored
Executable file
45
externals/vcpkg/ports/ampl-mp/fix-arm-build.patch
vendored
Executable file
@@ -0,0 +1,45 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 92089a3..d4c6762 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -240,4 +240,4 @@
|
||||
set(MP_EXPR_INFO_FILE ${MP_SOURCE_DIR}/src/expr-info.cc)
|
||||
-add_executable(gen-expr-info EXCLUDE_FROM_ALL
|
||||
+add_executable(gen-expr-info
|
||||
src/gen-expr-info.cc $<TARGET_OBJECTS:format>)
|
||||
if (MINGW)
|
||||
@@ -257,9 +257,15 @@ if (CMAKE_CROSSCOMPILING)
|
||||
COMMAND ${CMAKE_COMMAND} -E echo
|
||||
"warning: cannot re-generate ${MP_EXPR_INFO_FILE}")
|
||||
else ()
|
||||
+ if (ARITHCHK_EXEC)
|
||||
+ add_custom_command(OUTPUT ${MP_EXPR_INFO_FILE}
|
||||
+ COMMAND ${WINE} ${ARITHCHK_EXEC} ${MP_EXPR_INFO_FILE}
|
||||
+ DEPENDS gen-expr-info)
|
||||
+ else()
|
||||
add_custom_command(OUTPUT ${MP_EXPR_INFO_FILE}
|
||||
COMMAND ${WINE} $<TARGET_FILE:gen-expr-info> ${MP_EXPR_INFO_FILE}
|
||||
DEPENDS gen-expr-info)
|
||||
+ endif()
|
||||
endif ()
|
||||
|
||||
add_prefix(MP_HEADERS include/mp/
|
||||
@@ -359,3 +365,4 @@ endif()
|
||||
install(DIRECTORY include/mp DESTINATION include)
|
||||
install(TARGETS mp DESTINATION lib RUNTIME DESTINATION bin)
|
||||
install(FILES LICENSE.rst DESTINATION share/mp)
|
||||
+install(TARGETS gen-expr-info RUNTIME DESTINATION bin)
|
||||
\ No newline at end of file
|
||||
diff --git a/src/amplsig/CMakeLists.txt b/src/amplsig/CMakeLists.txt
|
||||
index 81312e9..f44c847 100644
|
||||
--- a/src/amplsig/CMakeLists.txt
|
||||
+++ b/src/amplsig/CMakeLists.txt
|
||||
@@ -14,6 +14,6 @@ find_library(WS2_32_LIBRARY Ws2_32
|
||||
PATHS ${WIN_LIBRARY_DIR} NO_DEFAULT_PATH)
|
||||
if (WS2_32_LIBRARY)
|
||||
add_ampl_library(amplsig amplsig.cc)
|
||||
- message(WS2_32_LIBRARY ${WS2_32_LIBRARY})
|
||||
- target_link_libraries(amplsig mp ${WS2_32_LIBRARY})
|
||||
+ message(WS2_32_LIBRARY ws2_32)
|
||||
+ target_link_libraries(amplsig mp ws2_32)
|
||||
endif ()
|
||||
42
externals/vcpkg/ports/ampl-mp/fix-build.patch
vendored
Executable file
42
externals/vcpkg/ports/ampl-mp/fix-build.patch
vendored
Executable file
@@ -0,0 +1,42 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 904cfb1..13f11cb 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -61,6 +61,8 @@ set_cache(BUILD "" STRING
|
||||
if (BUILD)
|
||||
if (BUILD STREQUAL all)
|
||||
set(MP_MODULES all)
|
||||
+ elseif (BUILD STREQUAL no)
|
||||
+ set(MP_MODULES)
|
||||
else ()
|
||||
string(REGEX MATCHALL "[^,]+" MP_MODULES "${BUILD}")
|
||||
endif ()
|
||||
@@ -200,7 +202,7 @@ function (add_mp_library name)
|
||||
add_dependencies(${name} ${add_mp_library_DEPENDS})
|
||||
endif ()
|
||||
# Add library linked with dynamic runtime.
|
||||
- if (MSVC)
|
||||
+ if (0)
|
||||
add_library(${name}-dynrt ${libtype} EXCLUDE_FROM_ALL
|
||||
${add_mp_library_UNPARSED_ARGUMENTS} ${dynrt-objects})
|
||||
target_compile_options(${name}-dynrt PUBLIC /MD$<$<CONFIG:Debug>:d>)
|
||||
@@ -308,16 +310,17 @@ if (RT_LIBRARY)
|
||||
target_link_libraries(mp ${RT_LIBRARY})
|
||||
endif ()
|
||||
|
||||
+if (MP_VARIADIC_TEMPLATES)
|
||||
# Check if variadic templates are working and not affected by GCC bug 39653:
|
||||
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=39653
|
||||
check_cxx_source_compiles("
|
||||
template <class T, class ...Types>
|
||||
struct S { typedef typename S<Types...>::type type; };
|
||||
int main() {}" MP_VARIADIC_TEMPLATES)
|
||||
-
|
||||
-if (MP_VARIADIC_TEMPLATES)
|
||||
+ if (MP_VARIADIC_TEMPLATES)
|
||||
add_executable(nl-example src/nl-example.cc)
|
||||
target_link_libraries(nl-example mp)
|
||||
+ endif()
|
||||
endif ()
|
||||
|
||||
add_subdirectory(doc)
|
||||
28
externals/vcpkg/ports/ampl-mp/fix-dependency-asl.patch
vendored
Executable file
28
externals/vcpkg/ports/ampl-mp/fix-dependency-asl.patch
vendored
Executable file
@@ -0,0 +1,28 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 13f11cb..92089a3 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -323,9 +323,9 @@ check_cxx_source_compiles("
|
||||
endif()
|
||||
endif ()
|
||||
|
||||
+find_package(unofficial-asl CONFIG REQUIRED)
|
||||
add_subdirectory(doc)
|
||||
add_subdirectory(src/amplsig)
|
||||
-add_subdirectory(src/asl)
|
||||
add_subdirectory(src/cp)
|
||||
add_subdirectory(solvers)
|
||||
|
||||
diff --git a/src/cp/cp.cc b/src/cp/cp.cc
|
||||
index d4adc35..ca8f35b 100644
|
||||
--- a/src/cp/cp.cc
|
||||
+++ b/src/cp/cp.cc
|
||||
@@ -24,7 +24,7 @@
|
||||
#include <cstring>
|
||||
#include <limits>
|
||||
#include "mp/format.h"
|
||||
-#include "funcadd.h"
|
||||
+#include <asl/funcadd.h>
|
||||
|
||||
namespace {
|
||||
void error(arglist *al, const char *message) {
|
||||
23
externals/vcpkg/ports/ampl-mp/install-targets.patch
vendored
Executable file
23
externals/vcpkg/ports/ampl-mp/install-targets.patch
vendored
Executable file
@@ -0,0 +1,23 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index d4c6762..c7b15b6 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -197,7 +197,7 @@ function (add_mp_library name)
|
||||
target_compile_definitions(${name}
|
||||
PUBLIC ${add_mp_library_COMPILE_DEFINITIONS})
|
||||
target_include_directories(${name}
|
||||
- PUBLIC ${add_mp_library_INCLUDE_DIRECTORIES})
|
||||
+ PUBLIC $<BUILD_INTERFACE:${CMAKE_SOURCE_DIR}/${add_mp_library_INCLUDE_DIRECTORIES}> $<INSTALL_INTERFACE:include>)
|
||||
if (add_mp_library_DEPENDS)
|
||||
add_dependencies(${name} ${add_mp_library_DEPENDS})
|
||||
endif ()
|
||||
@@ -363,6 +363,7 @@ if(BUILD_TESTING)
|
||||
endif()
|
||||
|
||||
install(DIRECTORY include/mp DESTINATION include)
|
||||
-install(TARGETS mp DESTINATION lib RUNTIME DESTINATION bin)
|
||||
+install(TARGETS mp EXPORT unofficial-mp-config DESTINATION lib RUNTIME DESTINATION bin)
|
||||
install(FILES LICENSE.rst DESTINATION share/mp)
|
||||
+install(EXPORT unofficial-mp-config DESTINATION share/unofficial-mp)
|
||||
install(TARGETS gen-expr-info RUNTIME DESTINATION bin)
|
||||
\ No newline at end of file
|
||||
50
externals/vcpkg/ports/ampl-mp/portfile.cmake
vendored
Executable file
50
externals/vcpkg/ports/ampl-mp/portfile.cmake
vendored
Executable file
@@ -0,0 +1,50 @@
|
||||
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO ampl/mp
|
||||
REF bb7d616605dd23e4a453a834b0fc8c0a2a71b5aa
|
||||
SHA512 558321f700a2ffe9d13f29f7c034825f5644a49c55da8490160d7ee8303484de5f9a636783387cc108bd238cdc3d2afa6b28cafecce73ee7893d792f5293712a
|
||||
HEAD_REF master
|
||||
PATCHES
|
||||
disable-matlab-mex.patch
|
||||
fix-build.patch
|
||||
fix-dependency-asl.patch
|
||||
fix-arm-build.patch # https://github.com/ampl/mp/issues/115
|
||||
install-targets.patch
|
||||
)
|
||||
|
||||
if (NOT TARGET_TRIPLET STREQUAL HOST_TRIPLET)
|
||||
set(ARITHCHK_EXEC ${CURRENT_HOST_INSTALLED_DIR}/tools/${PORT}/gen-expr-info${VCPKG_HOST_EXECUTABLE_SUFFIX})
|
||||
if (NOT EXISTS "${ARITHCHK_EXEC}")
|
||||
message(FATAL_ERROR "Expected ${ARITHCHK_EXEC} to exist.")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
OPTIONS
|
||||
-DBUILD=no
|
||||
-DBUILD_TESTING=OFF
|
||||
-DMP_VARIADIC_TEMPLATES=OFF
|
||||
-DARITHCHK_EXEC=${ARITHCHK_EXEC}
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
vcpkg_copy_tools(TOOL_NAMES gen-expr-info AUTO_CLEAN)
|
||||
|
||||
vcpkg_fixup_cmake_targets(CONFIG_PATH share/unofficial-mp TARGET_PATH share/unofficial-mp)
|
||||
|
||||
file(REMOVE_RECURSE
|
||||
${CURRENT_PACKAGES_DIR}/debug/include
|
||||
${CURRENT_PACKAGES_DIR}/debug/share
|
||||
# remove amplsig.dll and cp.dll, see https://github.com/ampl/mp/issues/130
|
||||
${CURRENT_PACKAGES_DIR}/debug/bin
|
||||
${CURRENT_PACKAGES_DIR}/bin
|
||||
)
|
||||
|
||||
configure_file(${SOURCE_PATH}/LICENSE.rst ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)
|
||||
15
externals/vcpkg/ports/ampl-mp/vcpkg.json
vendored
Executable file
15
externals/vcpkg/ports/ampl-mp/vcpkg.json
vendored
Executable file
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"name": "ampl-mp",
|
||||
"version-date": "2020-11-11",
|
||||
"port-version": 3,
|
||||
"description": "An open-source library for mathematical programming",
|
||||
"homepage": "https://github.com/ampl/mp",
|
||||
"supports": "!uwp",
|
||||
"dependencies": [
|
||||
"ampl-asl",
|
||||
{
|
||||
"name": "ampl-mp",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
}
|
||||
16
externals/vcpkg/ports/amqpcpp/find-openssl.patch
vendored
Executable file
16
externals/vcpkg/ports/amqpcpp/find-openssl.patch
vendored
Executable file
@@ -0,0 +1,16 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 645bb32..3ef5c4b 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -89,6 +89,11 @@ else()
|
||||
add_library(${PROJECT_NAME} STATIC ${src_MAIN} ${src_LINUX_TCP})
|
||||
endif()
|
||||
|
||||
+if(AMQP-CPP_LINUX_TCP)
|
||||
+ find_path(OPENSSL_INCLUDE_DIR openssl/ssl.h)
|
||||
+ include_directories(${OPENSSL_INCLUDE_DIR})
|
||||
+endif()
|
||||
+
|
||||
# install rules
|
||||
# ------------------------------------------------------------------------------------------------------
|
||||
|
||||
33
externals/vcpkg/ports/amqpcpp/portfile.cmake
vendored
Executable file
33
externals/vcpkg/ports/amqpcpp/portfile.cmake
vendored
Executable file
@@ -0,0 +1,33 @@
|
||||
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO CopernicaMarketingSoftware/AMQP-CPP
|
||||
REF b891cc37a6ff63fcff59a112de281f5964344c91 #v4.3.15
|
||||
SHA512 5c55285e2445752669bfe51a276c3c9cb294eeae74e05124fa7427737e43419493b8a8e199bedba9ab7fba5822a8da530ca442afdbe45d12c2c0c54f9fd59a0c
|
||||
HEAD_REF master
|
||||
PATCHES
|
||||
find-openssl.patch
|
||||
)
|
||||
|
||||
if(VCPKG_TARGET_IS_LINUX)
|
||||
set(LINUX_TCP ON)
|
||||
else()
|
||||
set(LINUX_TCP OFF)
|
||||
endif()
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
OPTIONS
|
||||
-DAMQP-CPP_BUILD_SHARED=OFF
|
||||
-DAMQP-CPP_LINUX_TCP=${LINUX_TCP}
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
vcpkg_cmake_config_fixup(CONFIG_PATH cmake)
|
||||
|
||||
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
||||
|
||||
vcpkg_fixup_pkgconfig()
|
||||
19
externals/vcpkg/ports/amqpcpp/vcpkg.json
vendored
Executable file
19
externals/vcpkg/ports/amqpcpp/vcpkg.json
vendored
Executable file
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"name": "amqpcpp",
|
||||
"version": "4.3.15",
|
||||
"port-version": 1,
|
||||
"description": "AMQP-CPP is a C++ library for communicating with a RabbitMQ message broker",
|
||||
"homepage": "https://github.com/CopernicaMarketingSoftware/AMQP-CPP",
|
||||
"supports": "!uwp",
|
||||
"dependencies": [
|
||||
"openssl",
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
}
|
||||
10
externals/vcpkg/ports/anax/Add-bin-output.patch
vendored
Executable file
10
externals/vcpkg/ports/anax/Add-bin-output.patch
vendored
Executable file
@@ -0,0 +1,10 @@
|
||||
--- a/CMakeLists.txt Tue Oct 13 13:47:40 2015
|
||||
+++ b/CMakeLists.txt Tue Dec 06 11:13:23 2016
|
||||
@@ -161,6 +161,7 @@
|
||||
# Library files
|
||||
install(
|
||||
TARGETS ${ANAX_LIBRARY_NAME}
|
||||
+ RUNTIME DESTINATION bin
|
||||
LIBRARY DESTINATION lib
|
||||
ARCHIVE DESTINATION lib
|
||||
)
|
||||
15
externals/vcpkg/ports/anax/osx-arm.patch
vendored
Executable file
15
externals/vcpkg/ports/anax/osx-arm.patch
vendored
Executable file
@@ -0,0 +1,15 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index d427767..80965bc 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -154,10 +154,6 @@ set_target_properties(${ANAX_LIBRARY_NAME} PROPERTIES
|
||||
SOVERSION ${ANAX_VERSION_MAJOR}
|
||||
)
|
||||
|
||||
-if(APPLE)
|
||||
- set_target_properties(${ANAX_LIBRARY_NAME} PROPERTIES OSX_ARCHITECTURES "i386;x86_64;")
|
||||
-endif()
|
||||
-
|
||||
# Library files
|
||||
install(
|
||||
TARGETS ${ANAX_LIBRARY_NAME}
|
||||
26
externals/vcpkg/ports/anax/portfile.cmake
vendored
Executable file
26
externals/vcpkg/ports/anax/portfile.cmake
vendored
Executable file
@@ -0,0 +1,26 @@
|
||||
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO miguelmartin75/anax
|
||||
REF v2.1.0
|
||||
SHA512 b573733b5f9634bf8cfc5b0715074f9a8ee29ecb48dc981d9371254a1f6ff8afbbb9ba6aa0877d53e518e5486ecc398a6d331fb9b5dbfd17d8707679216e11a3
|
||||
HEAD_REF master
|
||||
PATCHES
|
||||
Add-bin-output.patch
|
||||
osx-arm.patch
|
||||
)
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
DISABLE_PARALLEL_CONFIGURE
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||||
|
||||
# Handle copyright
|
||||
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
||||
|
||||
vcpkg_copy_pdbs()
|
||||
14
externals/vcpkg/ports/anax/vcpkg.json
vendored
Executable file
14
externals/vcpkg/ports/anax/vcpkg.json
vendored
Executable file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"name": "anax",
|
||||
"version": "2.1.0",
|
||||
"port-version": 8,
|
||||
"description": "An open source C++ entity system.",
|
||||
"homepage": "https://github.com/miguelmartin75/anax",
|
||||
"license": "MIT",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
}
|
||||
13
externals/vcpkg/ports/angelscript/mark-threads-private.patch
vendored
Executable file
13
externals/vcpkg/ports/angelscript/mark-threads-private.patch
vendored
Executable file
@@ -0,0 +1,13 @@
|
||||
diff --git a/angelscript/projects/cmake/CMakeLists.txt b/angelscript/projects/cmake/CMakeLists.txt
|
||||
index 7c800c5..982ad8b 100644
|
||||
--- a/angelscript/projects/cmake/CMakeLists.txt
|
||||
+++ b/angelscript/projects/cmake/CMakeLists.txt
|
||||
@@ -145,7 +145,7 @@ endif()
|
||||
|
||||
# Don't override the default library output path to avoid conflicts when building for multiple target platforms
|
||||
#set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/../../lib)
|
||||
-target_link_libraries(${ANGELSCRIPT_LIBRARY_NAME} Threads::Threads)
|
||||
+target_link_libraries(${ANGELSCRIPT_LIBRARY_NAME} PRIVATE Threads::Threads)
|
||||
|
||||
set_target_properties(${ANGELSCRIPT_LIBRARY_NAME} PROPERTIES VERSION ${PROJECT_VERSION})
|
||||
|
||||
29
externals/vcpkg/ports/angelscript/portfile.cmake
vendored
Executable file
29
externals/vcpkg/ports/angelscript/portfile.cmake
vendored
Executable file
@@ -0,0 +1,29 @@
|
||||
vcpkg_download_distfile(ARCHIVE
|
||||
URLS "https://angelcode.com/angelscript/sdk/files/angelscript_2.35.1.zip"
|
||||
FILENAME "angelscript_2.35.1.zip"
|
||||
SHA512 b15083c7a77434c291e72ea82cfbab7734fa79df654d911a822f306d526669ebe9e55a981e8a1914deda0d2a52ebdc0ffb51a4179f307632c8c7d74b1abc69fa
|
||||
)
|
||||
|
||||
vcpkg_extract_source_archive_ex(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
ARCHIVE "${ARCHIVE}"
|
||||
PATCHES
|
||||
mark-threads-private.patch
|
||||
)
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}/angelscript/projects/cmake"
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||||
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/Angelscript)
|
||||
|
||||
# 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()
|
||||
|
||||
file(INSTALL "${SOURCE_PATH}/docs/manual/doc_license.html" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
||||
24
externals/vcpkg/ports/angelscript/vcpkg.json
vendored
Executable file
24
externals/vcpkg/ports/angelscript/vcpkg.json
vendored
Executable file
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"name": "angelscript",
|
||||
"version": "2.35.1",
|
||||
"port-version": 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.",
|
||||
"homepage": "https://angelcode.com/angelscript",
|
||||
"license": "Zlib",
|
||||
"supports": "!arm",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
],
|
||||
"features": {
|
||||
"addons": {
|
||||
"description": "Installs all addons for use in compiling scripts addons"
|
||||
}
|
||||
}
|
||||
}
|
||||
30
externals/vcpkg/ports/angle/001-fix-uwp.patch
vendored
Executable file
30
externals/vcpkg/ports/angle/001-fix-uwp.patch
vendored
Executable file
@@ -0,0 +1,30 @@
|
||||
diff --git a/src/libANGLE/renderer/d3d/d3d11/winrt/CoreWindowNativeWindow.cpp b/src/libANGLE/renderer/d3d/d3d11/winrt/CoreWindowNativeWindow.cpp
|
||||
index 7d3f078d6..fac057dd6 100644
|
||||
--- a/src/libANGLE/renderer/d3d/d3d11/winrt/CoreWindowNativeWindow.cpp
|
||||
+++ b/src/libANGLE/renderer/d3d/d3d11/winrt/CoreWindowNativeWindow.cpp
|
||||
@@ -213,16 +213,20 @@ HRESULT GetCoreWindowSizeInPixels(const ComPtr<ABI::Windows::UI::Core::ICoreWind
|
||||
|
||||
static float GetLogicalDpi()
|
||||
{
|
||||
- ComPtr<ABI::Windows::Graphics::Display::IDisplayPropertiesStatics> displayProperties;
|
||||
+ ComPtr<ABI::Windows::Graphics::Display::IDisplayInformationStatics> displayInformationStatics;
|
||||
+ ComPtr<ABI::Windows::Graphics::Display::IDisplayInformation> displayInformation;
|
||||
|
||||
if (SUCCEEDED(GetActivationFactory(
|
||||
- HStringReference(RuntimeClass_Windows_Graphics_Display_DisplayProperties).Get(),
|
||||
- displayProperties.GetAddressOf())))
|
||||
+ HStringReference(RuntimeClass_Windows_Graphics_Display_DisplayInformation).Get(),
|
||||
+ displayInformationStatics.GetAddressOf())))
|
||||
{
|
||||
float dpi = 96.0f;
|
||||
- if (SUCCEEDED(displayProperties->get_LogicalDpi(&dpi)))
|
||||
+ if (SUCCEEDED(displayInformationStatics->GetForCurrentView(&displayInformation)))
|
||||
{
|
||||
- return dpi;
|
||||
+ if (SUCCEEDED(displayInformation->get_LogicalDpi(&dpi)))
|
||||
+ {
|
||||
+ return dpi;
|
||||
+ }
|
||||
}
|
||||
}
|
||||
|
||||
28
externals/vcpkg/ports/angle/002-fix-builder-error.patch
vendored
Executable file
28
externals/vcpkg/ports/angle/002-fix-builder-error.patch
vendored
Executable file
@@ -0,0 +1,28 @@
|
||||
diff --git a/src/gpu_info_util/SystemInfo_win.cpp b/src/gpu_info_util/SystemInfo_win.cpp
|
||||
index f4bb137f2..86495013b 100644
|
||||
--- a/src/gpu_info_util/SystemInfo_win.cpp
|
||||
+++ b/src/gpu_info_util/SystemInfo_win.cpp
|
||||
@@ -6,11 +6,6 @@
|
||||
|
||||
// SystemInfo_win.cpp: implementation of the Windows-specific parts of SystemInfo.h
|
||||
|
||||
-#include "gpu_info_util/SystemInfo_internal.h"
|
||||
-
|
||||
-#include "common/debug.h"
|
||||
-#include "common/string_utils.h"
|
||||
-
|
||||
// Windows.h needs to be included first
|
||||
#include <windows.h>
|
||||
|
||||
@@ -19,6 +14,11 @@
|
||||
#include <array>
|
||||
#include <sstream>
|
||||
|
||||
+#include "gpu_info_util/SystemInfo_internal.h"
|
||||
+
|
||||
+#include "common/debug.h"
|
||||
+#include "common/string_utils.h"
|
||||
+
|
||||
namespace angle
|
||||
{
|
||||
|
||||
22
externals/vcpkg/ports/angle/003-fix-mingw.patch
vendored
Executable file
22
externals/vcpkg/ports/angle/003-fix-mingw.patch
vendored
Executable file
@@ -0,0 +1,22 @@
|
||||
diff --git a/src/common/mathutil.h b/src/common/mathutil.h
|
||||
index 1d73bbf..c5b9cc8 100644
|
||||
--- a/src/common/mathutil.h
|
||||
+++ b/src/common/mathutil.h
|
||||
@@ -1073,7 +1073,7 @@ inline int BitCount(uint64_t bits)
|
||||
# endif // defined(_M_IX86) || defined(_M_X64)
|
||||
#endif // defined(_MSC_VER) && !defined(__clang__)
|
||||
|
||||
-#if defined(ANGLE_PLATFORM_POSIX) || defined(__clang__)
|
||||
+#if defined(ANGLE_PLATFORM_POSIX) || defined(__clang__) || defined(__MINGW32__)
|
||||
inline int BitCount(uint32_t bits)
|
||||
{
|
||||
return __builtin_popcount(bits);
|
||||
@@ -1083,7 +1083,7 @@ inline int BitCount(uint64_t bits)
|
||||
{
|
||||
return __builtin_popcountll(bits);
|
||||
}
|
||||
-#endif // defined(ANGLE_PLATFORM_POSIX) || defined(__clang__)
|
||||
+#endif // defined(ANGLE_PLATFORM_POSIX) || defined(__clang__) || defined(__MINGW32__)
|
||||
|
||||
inline int BitCount(uint8_t bits)
|
||||
{
|
||||
754
externals/vcpkg/ports/angle/CMakeLists.txt
vendored
Executable file
754
externals/vcpkg/ports/angle/CMakeLists.txt
vendored
Executable file
@@ -0,0 +1,754 @@
|
||||
cmake_minimum_required(VERSION 3.8)
|
||||
project(angle CXX C)
|
||||
|
||||
if(WIN32 AND NOT WINDOWS_STORE)
|
||||
set(WINDOWS_DESKTOP 1)
|
||||
else()
|
||||
set(WINDOWS_DESKTOP 0)
|
||||
endif()
|
||||
|
||||
if(UNIX AND NOT APPLE)
|
||||
set(LINUX 1)
|
||||
else()
|
||||
set(LINUX 0)
|
||||
endif()
|
||||
|
||||
if(MSVC)
|
||||
add_compile_options(/d2guard4 /Wv:18 /guard:cf /permissive /bigobj)
|
||||
else()
|
||||
set(CMAKE_CXX_STANDARD 17)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
|
||||
endif()
|
||||
|
||||
if (APPLE)
|
||||
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -framework Cocoa -framework OpenGL -framework IOKit -framework CoreFoundation -framework IOSurface -framework QuartzCore -framework CoreGraphics")
|
||||
endif()
|
||||
set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS}")
|
||||
set(CMAKE_STATIC_LIBRARY_PREFIX "")
|
||||
|
||||
if (WINDOWS_STORE)
|
||||
set(WINRT_DEFINES -DANGLE_ENABLE_WINDOWS_UWP -DWINAPI_FAMILY=WINAPI_FAMILY_PC_APP)
|
||||
else()
|
||||
set(WINRT_DEFINES)
|
||||
endif()
|
||||
add_definitions(
|
||||
-D_CRT_SECURE_NO_DEPRECATE
|
||||
-D_SCL_SECURE_NO_WARNINGS
|
||||
-DGL_SILENCE_DEPRECATION
|
||||
-D_HAS_EXCEPTIONS=0
|
||||
-DNOMINMAX
|
||||
-DANGLE_STANDALONE_BUILD
|
||||
${WINRT_DEFINES}
|
||||
)
|
||||
add_compile_options("$<$<CONFIG:DEBUG>:-DANGLE_ENABLE_DEBUG_ANNOTATIONS>")
|
||||
if(WIN32)
|
||||
add_definitions(-DANGLE_IS_WIN)
|
||||
endif()
|
||||
if(LINUX)
|
||||
add_definitions(-DANGLE_IS_LINUX)
|
||||
endif()
|
||||
if(ANGLE_IS_64_BIT_CPU)
|
||||
add_definitions(-DANGLE_IS_64_BIT_CPU)
|
||||
elseif(ANGLE_IS_32_BIT_CPU)
|
||||
add_definitions(-DANGLE_IS_32_BIT_CPU)
|
||||
endif()
|
||||
|
||||
configure_file(angle_commit.h include/id/commit.h COPYONLY)
|
||||
#include_directories(include src ${CMAKE_CURRENT_BINARY_DIR}/include)
|
||||
include_directories("$<INSTALL_INTERFACE:include>" "$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>" "$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src>" "$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/include>")
|
||||
##########
|
||||
# angle::common
|
||||
if(WINDOWS_DESKTOP)
|
||||
set(ANGLE_COMMON_PLATFORM_FILTER "_linux|_apple|_mac|_ios|_posix|_winuwp")
|
||||
elseif(WINDOWS_STORE)
|
||||
set(ANGLE_COMMON_PLATFORM_FILTER "_linux|_apple|_mac|_ios|_posix|_win32")
|
||||
elseif(LINUX)
|
||||
set(ANGLE_COMMON_PLATFORM_FILTER "_win|_apple|_mac|_ios")
|
||||
elseif(APPLE)
|
||||
if(CMAKE_SYSTEM_NAME MATCHES "Darwin") # macOS
|
||||
set(ANGLE_COMMON_PLATFORM_FILTER "_linux|_win|_ios")
|
||||
else() # other Apple platforms (iOS, etc)
|
||||
set(ANGLE_COMMON_PLATFORM_FILTER "_linux|_win|_mac")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(APPLE)
|
||||
set(ANGLE_COMMON_PLATFORM_SOURCES
|
||||
"src/common/apple/*.h"
|
||||
"src/common/apple/*.cpp"
|
||||
"src/common/apple/*.mm"
|
||||
"src/common/gl/cgl/*.h"
|
||||
"src/common/gl/cgl/*.cpp"
|
||||
"src/common/gl/cgl/*.mm")
|
||||
else()
|
||||
set(ANGLE_COMMON_PLATFORM_SOURCES )
|
||||
endif()
|
||||
|
||||
file(GLOB ANGLE_COMMON_SOURCES
|
||||
${ANGLE_COMMON_PLATFORM_SOURCES}
|
||||
"src/common/*.h"
|
||||
"src/common/*.inc"
|
||||
"src/common/*.cpp"
|
||||
"src/common/third_party/base/anglebase/*.h"
|
||||
"src/common/third_party/base/anglebase/*.cc"
|
||||
"src/common/third_party/base/anglebase/containers/*.h"
|
||||
"src/common/third_party/base/anglebase/numerics/*.h"
|
||||
"src/common/third_party/base/anglebase/numerics/*.cc"
|
||||
"src/common/third_party/xxhash/*.h"
|
||||
"src/common/third_party/xxhash/*.c"
|
||||
"src/common/third_party/smhasher/src/*.h"
|
||||
"src/common/third_party/smhasher/src/*.cpp")
|
||||
list(FILTER ANGLE_COMMON_SOURCES EXCLUDE REGEX "_unittest|event_tracer|${ANGLE_COMMON_PLATFORM_FILTER}")
|
||||
add_library(angle_common OBJECT ${ANGLE_COMMON_SOURCES})
|
||||
target_include_directories(angle_common PUBLIC "$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src/common/third_party/base>")
|
||||
add_library(angle::common ALIAS angle_common)
|
||||
|
||||
##########
|
||||
# angle::compression
|
||||
file(GLOB ANGLE_COMPRESSION_UTILS_SOURCES "third_party/zlib/google/compression_utils_portable.*")
|
||||
find_package(ZLIB REQUIRED)
|
||||
add_library(angle_compression_utils OBJECT ${ANGLE_COMPRESSION_UTILS_SOURCES})
|
||||
target_link_libraries(angle_compression_utils PUBLIC ZLIB::ZLIB)
|
||||
target_compile_definitions(angle_compression_utils PRIVATE
|
||||
-DUSE_SYSTEM_ZLIB
|
||||
)
|
||||
target_include_directories(angle_compression_utils INTERFACE "$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/third_party/zlib/google>")
|
||||
add_library(angle::compression ALIAS angle_compression_utils)
|
||||
|
||||
##########
|
||||
# angle::image_util
|
||||
file(GLOB ANGLE_IMAGE_UTIL_SOURCES "src/image_util/*.h" "src/image_util/*.inc" "src/image_util/*.cpp")
|
||||
add_library(angle_image_util OBJECT ${ANGLE_IMAGE_UTIL_SOURCES})
|
||||
target_link_libraries(angle_image_util PRIVATE angle::common)
|
||||
add_library(angle::image_util ALIAS angle_image_util)
|
||||
|
||||
##########
|
||||
# angle::translator
|
||||
file(GLOB TRANSLATOR_SOURCES
|
||||
"src/compiler/translator/BaseTypes.h"
|
||||
"src/compiler/translator/BuiltInFunctionEmulator.cpp"
|
||||
"src/compiler/translator/BuiltInFunctionEmulator.h"
|
||||
"src/compiler/translator/CallDAG.cpp"
|
||||
"src/compiler/translator/CallDAG.h"
|
||||
"src/compiler/translator/CodeGen.cpp"
|
||||
"src/compiler/translator/CollectVariables.cpp"
|
||||
"src/compiler/translator/CollectVariables.h"
|
||||
"src/compiler/translator/Common.h"
|
||||
"src/compiler/translator/Compiler.cpp"
|
||||
"src/compiler/translator/Compiler.h"
|
||||
"src/compiler/translator/ConstantUnion.cpp"
|
||||
"src/compiler/translator/ConstantUnion.h"
|
||||
"src/compiler/translator/Declarator.cpp"
|
||||
"src/compiler/translator/Declarator.h"
|
||||
"src/compiler/translator/Diagnostics.cpp"
|
||||
"src/compiler/translator/Diagnostics.h"
|
||||
"src/compiler/translator/DirectiveHandler.cpp"
|
||||
"src/compiler/translator/DirectiveHandler.h"
|
||||
"src/compiler/translator/ExtensionBehavior.cpp"
|
||||
"src/compiler/translator/ExtensionBehavior.h"
|
||||
"src/compiler/translator/FlagStd140Structs.cpp"
|
||||
"src/compiler/translator/FlagStd140Structs.h"
|
||||
"src/compiler/translator/FunctionLookup.cpp"
|
||||
"src/compiler/translator/FunctionLookup.h"
|
||||
"src/compiler/translator/HashNames.cpp"
|
||||
"src/compiler/translator/HashNames.h"
|
||||
"src/compiler/translator/ImmutableString.h"
|
||||
"src/compiler/translator/ImmutableStringBuilder.cpp"
|
||||
"src/compiler/translator/ImmutableStringBuilder.h"
|
||||
"src/compiler/translator/InfoSink.cpp"
|
||||
"src/compiler/translator/InfoSink.h"
|
||||
"src/compiler/translator/Initialize.cpp"
|
||||
"src/compiler/translator/Initialize.h"
|
||||
"src/compiler/translator/InitializeDll.cpp"
|
||||
"src/compiler/translator/InitializeDll.h"
|
||||
"src/compiler/translator/InitializeGlobals.h"
|
||||
"src/compiler/translator/IntermNode.cpp"
|
||||
"src/compiler/translator/IntermNode.h"
|
||||
"src/compiler/translator/IsASTDepthBelowLimit.cpp"
|
||||
"src/compiler/translator/IsASTDepthBelowLimit.h"
|
||||
"src/compiler/translator/Operator.cpp"
|
||||
"src/compiler/translator/Operator.h"
|
||||
"src/compiler/translator/OutputTree.cpp"
|
||||
"src/compiler/translator/OutputTree.h"
|
||||
"src/compiler/translator/ParseContext.cpp"
|
||||
"src/compiler/translator/ParseContext.h"
|
||||
"src/compiler/translator/ParseContext_ESSL_autogen.h"
|
||||
"src/compiler/translator/ParseContext_complete_autogen.h"
|
||||
"src/compiler/translator/ParseContext_interm.h"
|
||||
"src/compiler/translator/PoolAlloc.cpp"
|
||||
"src/compiler/translator/PoolAlloc.h"
|
||||
"src/compiler/translator/Pragma.h"
|
||||
"src/compiler/translator/QualifierTypes.cpp"
|
||||
"src/compiler/translator/QualifierTypes.h"
|
||||
"src/compiler/translator/Severity.h"
|
||||
"src/compiler/translator/ShaderLang.cpp"
|
||||
"src/compiler/translator/ShaderVars.cpp"
|
||||
"src/compiler/translator/StaticType.h"
|
||||
"src/compiler/translator/Symbol.cpp"
|
||||
"src/compiler/translator/Symbol.h"
|
||||
"src/compiler/translator/SymbolTable.cpp"
|
||||
"src/compiler/translator/SymbolTable.h"
|
||||
"src/compiler/translator/SymbolTable_autogen.h"
|
||||
"src/compiler/translator/SymbolUniqueId.cpp"
|
||||
"src/compiler/translator/SymbolUniqueId.h"
|
||||
"src/compiler/translator/TranslatorESSL.h"
|
||||
"src/compiler/translator/TranslatorGLSL.h"
|
||||
"src/compiler/translator/TranslatorHLSL.h"
|
||||
"src/compiler/translator/TranslatorMetal.h"
|
||||
"src/compiler/translator/TranslatorVulkan.h"
|
||||
"src/compiler/translator/Types.cpp"
|
||||
"src/compiler/translator/Types.h"
|
||||
"src/compiler/translator/ValidateAST.cpp"
|
||||
"src/compiler/translator/ValidateAST.h"
|
||||
"src/compiler/translator/ValidateBarrierFunctionCall.cpp"
|
||||
"src/compiler/translator/ValidateBarrierFunctionCall.h"
|
||||
"src/compiler/translator/ValidateClipCullDistance.cpp"
|
||||
"src/compiler/translator/ValidateClipCullDistance.h"
|
||||
"src/compiler/translator/ValidateGlobalInitializer.cpp"
|
||||
"src/compiler/translator/ValidateGlobalInitializer.h"
|
||||
"src/compiler/translator/ValidateLimitations.cpp"
|
||||
"src/compiler/translator/ValidateLimitations.h"
|
||||
"src/compiler/translator/ValidateMaxParameters.cpp"
|
||||
"src/compiler/translator/ValidateMaxParameters.h"
|
||||
"src/compiler/translator/ValidateOutputs.cpp"
|
||||
"src/compiler/translator/ValidateOutputs.h"
|
||||
"src/compiler/translator/ValidateSwitch.cpp"
|
||||
"src/compiler/translator/ValidateSwitch.h"
|
||||
"src/compiler/translator/ValidateVaryingLocations.cpp"
|
||||
"src/compiler/translator/ValidateVaryingLocations.h"
|
||||
"src/compiler/translator/VariablePacker.cpp"
|
||||
"src/compiler/translator/VariablePacker.h"
|
||||
"src/compiler/translator/blocklayout.cpp"
|
||||
"src/compiler/translator/glslang.h"
|
||||
"src/compiler/translator/glslang_lex_autogen.cpp"
|
||||
"src/compiler/translator/glslang_tab_autogen.cpp"
|
||||
"src/compiler/translator/glslang_tab_autogen.h"
|
||||
"src/compiler/translator/glslang_wrapper.h"
|
||||
"src/compiler/translator/length_limits.h"
|
||||
"src/compiler/translator/tree_ops/*.cpp"
|
||||
"src/compiler/translator/tree_ops/*.h"
|
||||
"src/compiler/translator/tree_ops/gl/ClampFragDepth.h"
|
||||
"src/compiler/translator/tree_ops/gl/RegenerateStructNames.h"
|
||||
"src/compiler/translator/tree_ops/gl/RewriteRepeatedAssignToSwizzled.h"
|
||||
"src/compiler/translator/tree_ops/gl/UseInterfaceBlockFields.h"
|
||||
"src/compiler/translator/tree_ops/gl/VectorizeVectorScalarArithmetic.h"
|
||||
"src/compiler/translator/tree_ops/gl/mac/AddAndTrueToLoopCondition.h"
|
||||
"src/compiler/translator/tree_ops/gl/mac/RewriteDoWhile.h"
|
||||
"src/compiler/translator/tree_ops/gl/mac/UnfoldShortCircuitAST.h"
|
||||
"src/compiler/translator/tree_ops/vulkan/EarlyFragmentTestsOptimization.h"
|
||||
"src/compiler/translator/tree_util/*.h"
|
||||
"src/compiler/translator/tree_util/*.cpp"
|
||||
"src/compiler/translator/util.cpp"
|
||||
"src/compiler/translator/util.h"
|
||||
"src/third_party/compiler/ArrayBoundsClamper.cpp"
|
||||
"src/third_party/compiler/ArrayBoundsClamper.h"
|
||||
)
|
||||
list(FILTER TRANSLATOR_SOURCES EXCLUDE REGEX "_unittest")
|
||||
file(GLOB TRANSLATOR_GLSL_BASE_SOURCES
|
||||
"src/compiler/translator/OutputGLSLBase.cpp"
|
||||
"src/compiler/translator/OutputGLSLBase.h"
|
||||
)
|
||||
file(GLOB TRANSLATOR_GLSL_AND_VULKAN_BASE_SOURCES
|
||||
"src/compiler/translator/BuiltinsWorkaroundGLSL.cpp"
|
||||
"src/compiler/translator/BuiltinsWorkaroundGLSL.h"
|
||||
"src/compiler/translator/OutputGLSL.cpp"
|
||||
"src/compiler/translator/OutputGLSL.h"
|
||||
)
|
||||
file(GLOB TRANSLATOR_ESSL_SOURCES
|
||||
"src/compiler/translator/OutputESSL.cpp"
|
||||
"src/compiler/translator/OutputESSL.h"
|
||||
"src/compiler/translator/TranslatorESSL.cpp"
|
||||
"src/compiler/translator/tree_ops/gl/RecordConstantPrecision.cpp"
|
||||
"src/compiler/translator/tree_ops/gl/RecordConstantPrecision.h"
|
||||
)
|
||||
file(GLOB TRANSLATOR_GLSL_SOURCES
|
||||
"src/compiler/translator/BuiltInFunctionEmulatorGLSL.cpp"
|
||||
"src/compiler/translator/BuiltInFunctionEmulatorGLSL.h"
|
||||
"src/compiler/translator/ExtensionGLSL.cpp"
|
||||
"src/compiler/translator/ExtensionGLSL.h"
|
||||
"src/compiler/translator/TranslatorGLSL.cpp"
|
||||
"src/compiler/translator/VersionGLSL.cpp"
|
||||
"src/compiler/translator/VersionGLSL.h"
|
||||
"src/compiler/translator/tree_ops/gl/ClampFragDepth.cpp"
|
||||
"src/compiler/translator/tree_ops/gl/RegenerateStructNames.cpp"
|
||||
"src/compiler/translator/tree_ops/gl/RewriteRepeatedAssignToSwizzled.cpp"
|
||||
"src/compiler/translator/tree_ops/gl/UseInterfaceBlockFields.cpp"
|
||||
"src/compiler/translator/tree_ops/gl/VectorizeVectorScalarArithmetic.cpp"
|
||||
"src/compiler/translator/tree_ops/gl/mac/RewriteRowMajorMatrices.h"
|
||||
"src/compiler/translator/tree_ops/gl/mac/RewriteUnaryMinusOperatorFloat.h"
|
||||
)
|
||||
file(GLOB TRANSLATOR_GLSL_MAC_SOURCES
|
||||
"src/compiler/translator/tree_ops/gl/mac/AddAndTrueToLoopCondition.cpp"
|
||||
"src/compiler/translator/tree_ops/gl/mac/RewriteDoWhile.cpp"
|
||||
"src/compiler/translator/tree_ops/gl/mac/RewriteRowMajorMatrices.cpp"
|
||||
"src/compiler/translator/tree_ops/gl/mac/RewriteUnaryMinusOperatorFloat.cpp"
|
||||
"src/compiler/translator/tree_ops/gl/mac/UnfoldShortCircuitAST.cpp"
|
||||
)
|
||||
file(GLOB TRANSLATOR_HLSL_SOURCES
|
||||
"src/compiler/translator/*HLSL.h"
|
||||
"src/compiler/translator/*HLSL.cpp"
|
||||
"src/compiler/translator/emulated_builtin_functions_hlsl_autogen.cpp"
|
||||
"src/compiler/translator/tree_ops/d3d/*.cpp"
|
||||
"src/compiler/translator/tree_ops/d3d/*.h"
|
||||
)
|
||||
if(ANDROID)
|
||||
list(APPEND TRANSLATOR_SOURCES "src/compiler/translator/ImmutableString_ESSL_autogen.cpp" "src/compiler/translator/SymbolTable_ESSL_autogen.cpp")
|
||||
else()
|
||||
list(APPEND TRANSLATOR_SOURCES "src/compiler/translator/ImmutableString_autogen.cpp" "src/compiler/translator/SymbolTable_autogen.cpp")
|
||||
endif()
|
||||
set(ANGLE_ENABLE_ESSL TRUE)
|
||||
set(ANGLE_ENABLE_GLSL TRUE)
|
||||
set(ANGLE_ENABLE_HLSL TRUE)
|
||||
set(_needs_glsl_base FALSE)
|
||||
set(_needs_glsl_and_vulkan_base FALSE)
|
||||
add_library(angle_translator OBJECT ${TRANSLATOR_SOURCES})
|
||||
if(ANGLE_ENABLE_ESSL)
|
||||
set(_needs_glsl_base TRUE)
|
||||
target_sources(angle_translator PRIVATE ${TRANSLATOR_ESSL_SOURCES})
|
||||
target_compile_definitions(angle_translator PUBLIC -DANGLE_ENABLE_ESSL)
|
||||
endif()
|
||||
if(ANGLE_ENABLE_GLSL)
|
||||
set(_needs_glsl_base TRUE)
|
||||
set(_needs_glsl_and_vulkan_base TRUE)
|
||||
target_sources(angle_translator PRIVATE ${TRANSLATOR_GLSL_SOURCES})
|
||||
if(APPLE)
|
||||
target_sources(angle_translator PRIVATE ${TRANSLATOR_GLSL_MAC_SOURCES})
|
||||
endif()
|
||||
target_compile_definitions(angle_translator PUBLIC -DANGLE_ENABLE_GLSL)
|
||||
endif()
|
||||
if(ANGLE_ENABLE_HLSL)
|
||||
target_sources(angle_translator PRIVATE ${TRANSLATOR_HLSL_SOURCES})
|
||||
target_compile_definitions(angle_translator PUBLIC -DANGLE_ENABLE_HLSL)
|
||||
endif()
|
||||
if(_needs_glsl_base)
|
||||
target_sources(angle_translator PRIVATE ${TRANSLATOR_GLSL_BASE_SOURCES})
|
||||
endif()
|
||||
if(_needs_glsl_and_vulkan_base)
|
||||
target_sources(angle_translator PRIVATE ${TRANSLATOR_GLSL_AND_VULKAN_BASE_SOURCES})
|
||||
endif()
|
||||
target_link_libraries(angle_translator PRIVATE angle::common)
|
||||
add_library(angle::translator ALIAS angle_translator)
|
||||
|
||||
##########
|
||||
# angle::preprocessor
|
||||
file(GLOB PREPROCESSOR_SOURCES
|
||||
"src/compiler/preprocessor/*.h"
|
||||
"src/compiler/preprocessor/*.cpp"
|
||||
)
|
||||
add_library(angle_preprocessor OBJECT ${PREPROCESSOR_SOURCES})
|
||||
target_link_libraries(angle_preprocessor PRIVATE angle::common)
|
||||
add_library(angle::preprocessor ALIAS angle_preprocessor)
|
||||
|
||||
##########
|
||||
# libANGLE
|
||||
|
||||
## OpenGL Renderer
|
||||
if(WINDOWS_DESKTOP OR LINUX OR APPLE)
|
||||
if(WINDOWS_DESKTOP)
|
||||
set(ANGLE_RENDERER_OPENGL_PLATFORM
|
||||
"src/libANGLE/renderer/gl/wgl/*.cpp"
|
||||
"src/libANGLE/renderer/gl/wgl/*.h"
|
||||
)
|
||||
elseif(APPLE)
|
||||
set(ANGLE_RENDERER_OPENGL_PLATFORM
|
||||
"src/libANGLE/renderer/gl/cgl/*.mm"
|
||||
"src/libANGLE/renderer/gl/cgl/*.cpp"
|
||||
"src/libANGLE/renderer/gl/cgl/*.h"
|
||||
"src/libANGLE/renderer/gl/apple/*.mm"
|
||||
"src/libANGLE/renderer/gl/apple/*.cpp"
|
||||
"src/libANGLE/renderer/gl/apple/*.h"
|
||||
"gpu_info_util/SystemInfo_macos.mm"
|
||||
)
|
||||
elseif(LINUX)
|
||||
set(ANGLE_RENDERER_OPENGL_PLATFORM
|
||||
"src/libANGLE/renderer/gl/glx/*.cpp"
|
||||
"src/libANGLE/renderer/gl/glx/*.h"
|
||||
"src/libANGLE/renderer/gl/egl/*.cpp"
|
||||
"src/libANGLE/renderer/gl/egl/*.h"
|
||||
)
|
||||
endif()
|
||||
|
||||
file(GLOB LIBANGLE_GL_SOURCES
|
||||
"src/libANGLE/renderer/gl/*.cpp"
|
||||
"src/libANGLE/renderer/gl/*.inc"
|
||||
"src/libANGLE/renderer/gl/*.h"
|
||||
|
||||
${ANGLE_RENDERER_OPENGL_PLATFORM}
|
||||
)
|
||||
list(FILTER LIBANGLE_GL_SOURCES EXCLUDE REGEX "_unittest")
|
||||
add_library(angle_renderer_opengl INTERFACE)
|
||||
target_sources(angle_renderer_opengl INTERFACE "$<BUILD_INTERFACE:${LIBANGLE_GL_SOURCES}>")
|
||||
target_compile_definitions(angle_renderer_opengl INTERFACE -DANGLE_ENABLE_OPENGL -DANGLE_ENABLE_OPENGL_DESKTOP)
|
||||
add_library(angle::renderer::opengl ALIAS angle_renderer_opengl)
|
||||
endif()
|
||||
|
||||
# D3D Renderers
|
||||
if(WIN32)
|
||||
## All D3D Sources
|
||||
file(GLOB_RECURSE LIBANGLE_D3D_SOURCES
|
||||
"src/libANGLE/renderer/d3d/*.cpp"
|
||||
"src/libANGLE/renderer/d3d/*.inc"
|
||||
"src/libANGLE/renderer/d3d/*.h"
|
||||
)
|
||||
list(FILTER LIBANGLE_D3D_SOURCES EXCLUDE REGEX "_unittest")
|
||||
if(MINGW)
|
||||
list(FILTER LIBANGLE_D3D_SOURCES EXCLUDE REGEX "CompositorNativeWindow11")
|
||||
endif()
|
||||
|
||||
## WinRT D3D Renderer
|
||||
if(WINDOWS_STORE)
|
||||
set(LIBANGLE_D3D_WINRT_SOURCES ${LIBANGLE_D3D_SOURCES})
|
||||
list(FILTER LIBANGLE_D3D_WINRT_SOURCES INCLUDE REGEX "winrt")
|
||||
add_library(angle_renderer_winrt INTERFACE)
|
||||
target_sources(angle_renderer_winrt INTERFACE "$<BUILD_INTERFACE:${LIBANGLE_D3D_WINRT_SOURCES}>")
|
||||
add_library(angle::renderer::winrt ALIAS angle_renderer_winrt)
|
||||
endif()
|
||||
|
||||
## Win32/d3d9 D3D Renderer
|
||||
if(WINDOWS_DESKTOP)
|
||||
set(LIBANGLE_D3D_DESKTOP_SOURCES ${LIBANGLE_D3D_SOURCES})
|
||||
list(FILTER LIBANGLE_D3D_DESKTOP_SOURCES INCLUDE REGEX "d3d9|win32")
|
||||
find_library(D3D9_LIB NAMES d3d9)
|
||||
add_library(angle_renderer_win32 INTERFACE)
|
||||
target_sources(angle_renderer_win32 INTERFACE "$<BUILD_INTERFACE:${LIBANGLE_D3D_DESKTOP_SOURCES}>")
|
||||
target_compile_definitions(angle_renderer_win32 INTERFACE -DANGLE_ENABLE_D3D9)
|
||||
target_link_libraries(angle_renderer_win32 INTERFACE d3d9)
|
||||
add_library(angle::renderer::win32 ALIAS angle_renderer_win32)
|
||||
endif()
|
||||
|
||||
## D3D11 Base renderer
|
||||
list(FILTER LIBANGLE_D3D_SOURCES EXCLUDE REGEX "winrt|d3d9|win32")
|
||||
find_library(DXGUID_LIB NAMES dxguid)
|
||||
find_library(D3D11_LIB NAMES d3d11)
|
||||
add_library(angle_renderer_d3d INTERFACE)
|
||||
target_sources(angle_renderer_d3d INTERFACE "$<BUILD_INTERFACE:${LIBANGLE_D3D_SOURCES}>")
|
||||
target_compile_definitions(angle_renderer_d3d INTERFACE
|
||||
-DANGLE_ENABLE_D3D11
|
||||
"-DANGLE_PRELOADED_D3DCOMPILER_MODULE_NAMES={ \"d3dcompiler_47.dll\", \"d3dcompiler_46.dll\", \"d3dcompiler_43.dll\" }"
|
||||
)
|
||||
if(NOT MINGW)
|
||||
target_compile_definitions(angle_renderer_d3d INTERFACE
|
||||
-DANGLE_ENABLE_D3D11_COMPOSITOR_NATIVE_WINDOW
|
||||
)
|
||||
endif()
|
||||
target_link_libraries(angle_renderer_d3d INTERFACE d3d11 dxguid)
|
||||
add_library(angle::renderer::d3d ALIAS angle_renderer_d3d)
|
||||
endif()
|
||||
|
||||
## angle::gpu_info_util
|
||||
file(GLOB ANGLE_GPU_INFO_UTIL_SOURCES
|
||||
"src/gpu_info_util/SystemInfo.h"
|
||||
"src/gpu_info_util/SystemInfo_internal.h"
|
||||
"src/gpu_info_util/SystemInfo.cpp"
|
||||
)
|
||||
add_library(angle_gpu_info_util OBJECT ${ANGLE_GPU_INFO_UTIL_SOURCES})
|
||||
if(WIN32)
|
||||
target_sources(angle_gpu_info_util PRIVATE "src/gpu_info_util/SystemInfo_win.cpp")
|
||||
target_link_libraries(angle_gpu_info_util PRIVATE setupapi.lib dxgi.lib)
|
||||
elseif(APPLE)
|
||||
target_sources(angle_gpu_info_util PRIVATE "src/gpu_info_util/SystemInfo_apple.mm")
|
||||
if(CMAKE_SYSTEM_NAME MATCHES "Darwin") # macOS
|
||||
target_sources(angle_gpu_info_util PRIVATE "src/gpu_info_util/SystemInfo_macos.mm")
|
||||
endif()
|
||||
find_library(IOKit IOKit)
|
||||
find_library(CoreFoundation CoreFoundation)
|
||||
find_library(CoreGraphics CoreGraphics)
|
||||
target_link_libraries(angle_gpu_info_util PRIVATE ${IOKit} ${CoreFoundation} ${CoreGraphics})
|
||||
elseif(LINUX)
|
||||
target_sources(angle_gpu_info_util PRIVATE "src/gpu_info_util/SystemInfo_linux.cpp" "src/gpu_info_util/SystemInfo_x11.cpp")
|
||||
target_compile_definitions(angle_gpu_info_util PRIVATE GPU_INFO_USE_X11)
|
||||
target_link_libraries(angle_gpu_info_util PRIVATE X11 Xi Xext)
|
||||
elseif(ANDROID)
|
||||
target_sources(angle_gpu_info_util PRIVATE "src/gpu_info_util/SystemInfo_android.cpp")
|
||||
endif()
|
||||
target_link_libraries(angle_gpu_info_util PRIVATE angle::common)
|
||||
add_library(angle::gpu_info_util ALIAS angle_gpu_info_util)
|
||||
|
||||
## Core libANGLE library
|
||||
if(WIN32)
|
||||
if(NOT WINDOWS_STORE)
|
||||
set(LIBANGLE_SOURCES_PLATFORM
|
||||
"src/third_party/systeminfo/SystemInfo.cpp"
|
||||
)
|
||||
endif()
|
||||
elseif(APPLE)
|
||||
file(GLOB LIBANGLE_SOURCES_PLATFORM
|
||||
"src/libANGLE/renderer/*.mm"
|
||||
)
|
||||
else()
|
||||
set(LIBANGLE_SOURCES_PLATFORM)
|
||||
endif()
|
||||
|
||||
file(GLOB LIBANGLE_SOURCES
|
||||
"src/common/third_party/murmurhash/MurmurHash3.cpp"
|
||||
"src/common/event_tracer.cpp"
|
||||
|
||||
"src/libANGLE/*.cpp"
|
||||
"src/libANGLE/*.inc"
|
||||
"src/libANGLE/*.h"
|
||||
|
||||
"src/libANGLE/renderer/*.cpp"
|
||||
"src/libANGLE/renderer/*.h"
|
||||
|
||||
"src/libANGLE/renderer/null/*.cpp"
|
||||
"src/libANGLE/renderer/null/*.h"
|
||||
|
||||
# The frame capture headers are always visible to libANGLE.
|
||||
"src/libANGLE/capture/*.h"
|
||||
|
||||
# angle_frame_capture_disabled
|
||||
"src/libANGLE/capture/FrameCapture_mock.cpp"
|
||||
"src/libANGLE/capture/frame_capture_utils_mock.cpp"
|
||||
|
||||
# angle_gl_enum_utils
|
||||
"src/libANGLE/capture/gl_enum_utils.cpp"
|
||||
"src/libANGLE/capture/gl_enum_utils_autogen.cpp"
|
||||
|
||||
${LIBANGLE_SOURCES_PLATFORM}
|
||||
)
|
||||
list(FILTER LIBANGLE_SOURCES EXCLUDE REGEX "_unittest|glslang_wrapper|dxgi_|d3d_format")
|
||||
if(WIN32)
|
||||
set(LIBANGLE_D3D_FORMAT_TABLES_SOURCES_PLATFORM)
|
||||
if(NOT WINDOWS_STORE)
|
||||
list(APPEND LIBANGLE_D3D_FORMAT_TABLES_SOURCES_PLATFORM
|
||||
"src/libANGLE/renderer/d3d_format.cpp"
|
||||
"src/libANGLE/renderer/d3d_format.h"
|
||||
)
|
||||
endif()
|
||||
file(GLOB LIBANGLE_D3D_FORMAT_TABLES_SOURCES
|
||||
"src/libANGLE/renderer/dxgi_format_map.h"
|
||||
"src/libANGLE/renderer/dxgi_format_map_autogen.cpp"
|
||||
"src/libANGLE/renderer/dxgi_support_table.h"
|
||||
"src/libANGLE/renderer/dxgi_support_table_autogen.cpp"
|
||||
|
||||
${LIBANGLE_D3D_FORMAT_TABLES_SOURCES_PLATFORM}
|
||||
)
|
||||
list(APPEND LIBANGLE_SOURCES "${LIBANGLE_D3D_FORMAT_TABLES_SOURCES}")
|
||||
endif()
|
||||
|
||||
if(LINUX OR APPLE)
|
||||
set(LIBANGLE_RENDERER_PLATFORM
|
||||
angle::renderer::opengl
|
||||
)
|
||||
elseif(WINDOWS_STORE)
|
||||
set(LIBANGLE_RENDERER_PLATFORM
|
||||
angle::renderer::d3d
|
||||
angle::renderer::winrt
|
||||
)
|
||||
elseif(WINDOWS_DESKTOP)
|
||||
set(LIBANGLE_RENDERER_PLATFORM
|
||||
angle::renderer::d3d
|
||||
angle::renderer::win32
|
||||
angle::renderer::opengl
|
||||
gdi32
|
||||
)
|
||||
else()
|
||||
set(LIBANGLE_RENDERER_PLATFORM )
|
||||
endif()
|
||||
|
||||
if(LINUX)
|
||||
find_package(X11)
|
||||
include_directories(${X11_INCLUDE_DIR})
|
||||
list(APPEND LIBANGLE_RENDERER_PLATFORM ${X11_LIBRARIES})
|
||||
set(LIBANGLE_RENDERER_COMPILEDEF
|
||||
-DANGLE_USE_X11
|
||||
)
|
||||
else()
|
||||
set(LIBANGLE_RENDERER_COMPILEDEF )
|
||||
endif()
|
||||
|
||||
add_library(libANGLE STATIC ${LIBANGLE_SOURCES})
|
||||
target_link_libraries(libANGLE PRIVATE
|
||||
angle::common
|
||||
angle::compression
|
||||
angle::image_util
|
||||
angle::gpu_info_util
|
||||
angle::translator
|
||||
angle::preprocessor
|
||||
${LIBANGLE_RENDERER_PLATFORM}
|
||||
)
|
||||
target_include_directories(libANGLE PRIVATE "$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src/third_party/khronos>")
|
||||
target_compile_definitions(libANGLE
|
||||
PRIVATE -DANGLE_ENABLE_NULL
|
||||
PUBLIC
|
||||
-DLIBANGLE_IMPLEMENTATION
|
||||
${LIBANGLE_RENDERER_COMPILEDEF}
|
||||
-DANGLE_EXPORT=
|
||||
-DANGLE_UTIL_EXPORT=
|
||||
-DEGLAPI=
|
||||
-DGL_APICALL=
|
||||
-DGL_API=
|
||||
-DANGLE_CAPTURE_ENABLED=0
|
||||
)
|
||||
add_library(angle::libANGLE ALIAS libANGLE)
|
||||
if(BUILD_SHARED_LIBS)
|
||||
target_compile_definitions(libANGLE
|
||||
PRIVATE -DLIBANGLE_UTIL_IMPLEMENTATION
|
||||
)
|
||||
endif()
|
||||
|
||||
##########
|
||||
# libGLESv2
|
||||
# Modified according to the file src/libGLESv2.gni
|
||||
list(APPEND LIBGLESV2_SOURCES
|
||||
"src/libGLESv2/egl_ext_stubs.cpp"
|
||||
"src/libGLESv2/egl_ext_stubs_autogen.h"
|
||||
"src/libGLESv2/egl_stubs.cpp"
|
||||
"src/libGLESv2/egl_stubs_autogen.h"
|
||||
"src/libGLESv2/entry_points_egl_autogen.cpp"
|
||||
"src/libGLESv2/entry_points_egl_autogen.h"
|
||||
"src/libGLESv2/entry_points_egl_ext_autogen.cpp"
|
||||
"src/libGLESv2/entry_points_egl_ext_autogen.h"
|
||||
"src/libGLESv2/entry_points_gles_1_0_autogen.cpp"
|
||||
"src/libGLESv2/entry_points_gles_1_0_autogen.h"
|
||||
"src/libGLESv2/entry_points_gles_2_0_autogen.cpp"
|
||||
"src/libGLESv2/entry_points_gles_2_0_autogen.h"
|
||||
"src/libGLESv2/entry_points_gles_3_0_autogen.cpp"
|
||||
"src/libGLESv2/entry_points_gles_3_0_autogen.h"
|
||||
"src/libGLESv2/entry_points_gles_3_1_autogen.cpp"
|
||||
"src/libGLESv2/entry_points_gles_3_1_autogen.h"
|
||||
"src/libGLESv2/entry_points_gles_3_2_autogen.cpp"
|
||||
"src/libGLESv2/entry_points_gles_3_2_autogen.h"
|
||||
"src/libGLESv2/entry_points_gles_ext_autogen.cpp"
|
||||
"src/libGLESv2/entry_points_gles_ext_autogen.h"
|
||||
"src/libGLESv2/global_state.cpp"
|
||||
"src/libGLESv2/global_state.h"
|
||||
"src/libGLESv2/libGLESv2_autogen.cpp"
|
||||
"src/libGLESv2/proc_table_egl.h"
|
||||
"src/libGLESv2/proc_table_egl_autogen.cpp"
|
||||
"src/libGLESv2/resource.h"
|
||||
"src/libGLESv2/libGLESv2_autogen.def"
|
||||
)
|
||||
add_library(libGLESv2 ${LIBGLESV2_SOURCES})
|
||||
target_link_libraries(libGLESv2 PRIVATE angle::common angle::libANGLE)
|
||||
target_compile_definitions(libGLESv2
|
||||
PRIVATE -DLIBGLESV2_IMPLEMENTATION
|
||||
PUBLIC
|
||||
"-DGL_GLES_PROTOTYPES=1"
|
||||
"-DGL_GLEXT_PROTOTYPES"
|
||||
"-DEGL_EGL_PROTOTYPES=1"
|
||||
"-DEGL_EGLEXT_PROTOTYPES"
|
||||
)
|
||||
if(BUILD_SHARED_LIBS)
|
||||
else()
|
||||
if(WIN32)
|
||||
target_compile_definitions(libGLESv2 PRIVATE
|
||||
"-DGL_API="
|
||||
"-DGL_APICALL="
|
||||
"-DEGLAPI="
|
||||
)
|
||||
else()
|
||||
target_compile_definitions(libGLESv2 PRIVATE
|
||||
"-DGL_API=__attribute__((visibility(\"default\")))"
|
||||
"-DGL_APICALL=__attribute__((visibility(\"default\")))"
|
||||
"-DEGLAPI=__attribute__((visibility(\"default\")))"
|
||||
)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
target_include_directories(libGLESv2 PUBLIC "$<INSTALL_INTERFACE:include>")
|
||||
|
||||
##########
|
||||
# libEGL
|
||||
if(WIN32)
|
||||
set(libEGL_def
|
||||
"src/libEGL/libEGL_autogen.def"
|
||||
)
|
||||
endif()
|
||||
add_library(libEGL
|
||||
"src/libEGL/egl_loader_autogen.h"
|
||||
"src/libEGL/libEGL_autogen.cpp"
|
||||
"src/libEGL/resource.h"
|
||||
"src/libGLESv2/entry_points_egl_autogen.h"
|
||||
"src/libGLESv2/entry_points_egl_ext_autogen.h"
|
||||
${libEGL_def}
|
||||
)
|
||||
|
||||
target_link_libraries(libEGL PRIVATE angle::common angle::libANGLE libGLESv2)
|
||||
target_include_directories(libEGL PUBLIC "$<INSTALL_INTERFACE:include>" "$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>")
|
||||
target_compile_definitions(libEGL
|
||||
PRIVATE
|
||||
"-DLIBEGL_IMPLEMENTATION"
|
||||
PUBLIC
|
||||
"-DGL_GLES_PROTOTYPES=1"
|
||||
"-DGL_GLEXT_PROTOTYPES"
|
||||
"-DEGL_EGL_PROTOTYPES=1"
|
||||
"-DEGL_EGLEXT_PROTOTYPES"
|
||||
)
|
||||
add_library(GL_VISIBILITY INTERFACE)
|
||||
if(WIN32)
|
||||
target_compile_definitions(GL_VISIBILITY INTERFACE
|
||||
"-DGL_API="
|
||||
"-DGL_APICALL=")
|
||||
else()
|
||||
target_compile_definitions(GL_VISIBILITY INTERFACE
|
||||
"-DGL_API=__attribute__((visibility(\"default\")))"
|
||||
"-DGL_APICALL=__attribute__((visibility(\"default\")))")
|
||||
endif()
|
||||
target_link_libraries(libEGL PRIVATE GL_VISIBILITY)
|
||||
target_link_libraries(libGLESv2 PRIVATE GL_VISIBILITY)
|
||||
|
||||
if(WIN32)
|
||||
target_compile_definitions(libEGL PRIVATE
|
||||
"-DEGLAPI="
|
||||
)
|
||||
else()
|
||||
target_compile_definitions(libEGL PRIVATE
|
||||
"-DEGLAPI=__attribute__((visibility(\"default\")))"
|
||||
)
|
||||
endif()
|
||||
|
||||
if(NOT BUILD_SHARED_LIBS)
|
||||
add_definitions("-DANGLE_EXPORT=" "-DANGLE_UTIL_EXPORT=" "-DEGLAPI=" "-DGL_APICALL=" "-DGL_API=")
|
||||
endif()
|
||||
|
||||
set_target_properties(libANGLE PROPERTIES PREFIX "")
|
||||
set_target_properties(libGLESv2 PROPERTIES PREFIX "" IMPORT_PREFIX "")
|
||||
set_target_properties(libEGL PROPERTIES PREFIX "" IMPORT_PREFIX "")
|
||||
|
||||
install(TARGETS libEGL libGLESv2 libANGLE angle_common angle_compression_utils angle_image_util angle_gpu_info_util angle_translator angle_preprocessor GL_VISIBILITY EXPORT ANGLEExport
|
||||
RUNTIME DESTINATION bin
|
||||
LIBRARY DESTINATION lib
|
||||
ARCHIVE DESTINATION lib
|
||||
)
|
||||
|
||||
if(WINDOWS_DESKTOP)
|
||||
install(TARGETS angle_renderer_d3d angle_renderer_win32 angle_renderer_opengl EXPORT ANGLEExport
|
||||
RUNTIME DESTINATION bin
|
||||
LIBRARY DESTINATION lib
|
||||
ARCHIVE DESTINATION lib
|
||||
)
|
||||
elseif(WINDOWS_STORE)
|
||||
install(TARGETS angle_renderer_d3d angle_renderer_winrt EXPORT ANGLEExport
|
||||
RUNTIME DESTINATION bin
|
||||
LIBRARY DESTINATION lib
|
||||
ARCHIVE DESTINATION lib
|
||||
)
|
||||
else()
|
||||
install(TARGETS angle_renderer_opengl EXPORT ANGLEExport
|
||||
RUNTIME DESTINATION bin
|
||||
LIBRARY DESTINATION lib
|
||||
ARCHIVE DESTINATION lib
|
||||
)
|
||||
endif()
|
||||
|
||||
install(EXPORT ANGLEExport FILE unofficial-angle-config.cmake NAMESPACE unofficial::angle:: DESTINATION share/unofficial-angle)
|
||||
|
||||
if(NOT DISABLE_INSTALL_HEADERS)
|
||||
install(
|
||||
DIRECTORY include/
|
||||
DESTINATION include
|
||||
FILES_MATCHING
|
||||
PATTERN "*.h"
|
||||
PATTERN "*.inc"
|
||||
PATTERN "CL" EXCLUDE
|
||||
PATTERN "GLSLANG" EXCLUDE
|
||||
PATTERN "egl.h" EXCLUDE
|
||||
PATTERN "eglext.h" EXCLUDE
|
||||
PATTERN "eglplatform.h" EXCLUDE
|
||||
PATTERN "KHR" EXCLUDE
|
||||
PATTERN "WGL" EXCLUDE
|
||||
PATTERN "export.h" EXCLUDE
|
||||
)
|
||||
endif()
|
||||
3
externals/vcpkg/ports/angle/angle_commit.h
vendored
Executable file
3
externals/vcpkg/ports/angle/angle_commit.h
vendored
Executable file
@@ -0,0 +1,3 @@
|
||||
#define ANGLE_COMMIT_HASH "invalid-hash"
|
||||
#define ANGLE_COMMIT_HASH_SIZE 12
|
||||
#define ANGLE_COMMIT_DATE "invalid-date"
|
||||
99
externals/vcpkg/ports/angle/portfile.cmake
vendored
Executable file
99
externals/vcpkg/ports/angle/portfile.cmake
vendored
Executable file
@@ -0,0 +1,99 @@
|
||||
if (VCPKG_TARGET_IS_LINUX)
|
||||
message(WARNING "Building with a gcc version less than 6.1 is not supported.")
|
||||
message(WARNING "${PORT} currently requires the following libraries from the system package manager:\n libx11-dev\n libmesa-dev\n libxi-dev\n libxext-dev\n\nThese can be installed on Ubuntu systems via apt-get install libx11-dev libmesa-dev libxi-dev libxext-dev.")
|
||||
endif()
|
||||
|
||||
if (VCPKG_TARGET_ARCHITECTURE STREQUAL "x86")
|
||||
set(ANGLE_CPU_BITNESS ANGLE_IS_32_BIT_CPU)
|
||||
elseif (VCPKG_TARGET_ARCHITECTURE STREQUAL "x64")
|
||||
set(ANGLE_CPU_BITNESS ANGLE_IS_64_BIT_CPU)
|
||||
elseif (VCPKG_TARGET_ARCHITECTURE STREQUAL "arm")
|
||||
set(ANGLE_CPU_BITNESS ANGLE_IS_32_BIT_CPU)
|
||||
elseif (VCPKG_TARGET_ARCHITECTURE STREQUAL "arm64")
|
||||
set(ANGLE_CPU_BITNESS ANGLE_IS_64_BIT_CPU)
|
||||
else()
|
||||
message(FATAL_ERROR "Unsupported architecture: ${VCPKG_TARGET_ARCHITECTURE}")
|
||||
endif()
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO google/angle
|
||||
REF d15be77864e18f407c317be6f6bc06ee2b7d070a # chromium/4472
|
||||
SHA512 aad8563ee65458a7865ec7c668d1f90ac2891583c569a22dcd2c557263b72b26386f56b74a7294398be2cf5c548df513159e4be53f3f096f19819ca06227d9ac
|
||||
# On update check headers against opengl-registry
|
||||
PATCHES
|
||||
001-fix-uwp.patch
|
||||
002-fix-builder-error.patch
|
||||
003-fix-mingw.patch
|
||||
)
|
||||
|
||||
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
||||
file(COPY ${CMAKE_CURRENT_LIST_DIR}/angle_commit.h DESTINATION ${SOURCE_PATH})
|
||||
file(COPY ${CMAKE_CURRENT_LIST_DIR}/angle_commit.h DESTINATION ${SOURCE_PATH}/src/common)
|
||||
|
||||
function(checkout_in_path_with_patches PATH URL REF PATCHES)
|
||||
if(EXISTS "${PATH}")
|
||||
return()
|
||||
endif()
|
||||
|
||||
vcpkg_from_git(
|
||||
OUT_SOURCE_PATH DEP_SOURCE_PATH
|
||||
URL "${URL}"
|
||||
REF "${REF}"
|
||||
PATCHES ${PATCHES}
|
||||
)
|
||||
file(RENAME "${DEP_SOURCE_PATH}" "${PATH}")
|
||||
file(REMOVE_RECURSE "${DEP_SOURCE_PATH}")
|
||||
endfunction()
|
||||
|
||||
checkout_in_path_with_patches(
|
||||
"${SOURCE_PATH}/third_party/zlib"
|
||||
"https://chromium.googlesource.com/chromium/src/third_party/zlib"
|
||||
"09490503d0f201b81e03f5ca0ab8ba8ee76d4a8e"
|
||||
"third-party-zlib-far-undef.patch"
|
||||
)
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
OPTIONS_DEBUG -DDISABLE_INSTALL_HEADERS=1
|
||||
OPTIONS
|
||||
-D${ANGLE_CPU_BITNESS}=1
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
|
||||
vcpkg_fixup_cmake_targets(CONFIG_PATH share/unofficial-angle TARGET_PATH share/unofficial-angle)
|
||||
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
||||
|
||||
# File conflict with opengl-registry! Make sure headers are similar on Update!
|
||||
# angle defines some additional entrypoints.
|
||||
# opengl-registry probably needs an upstream update to account for those
|
||||
# Due to that all angle headers get moved to include/angle.
|
||||
# If you want to use those instead of the onces provided by opengl-registry make sure
|
||||
# VCPKG_INSTALLED_DIR/include/angle is before VCPKG_INSTALLED_DIR/include
|
||||
file(GLOB_RECURSE angle_includes "${CURRENT_PACKAGES_DIR}/include")
|
||||
file(COPY ${angle_includes} DESTINATION "${CURRENT_PACKAGES_DIR}/include/angle")
|
||||
|
||||
set(_double_files
|
||||
include/GLES/egl.h
|
||||
include/GLES/gl.h
|
||||
include/GLES/glext.h
|
||||
include/GLES/glplatform.h
|
||||
include/GLES2/gl2.h
|
||||
include/GLES2/gl2ext.h
|
||||
include/GLES2/gl2platform.h
|
||||
include/GLES3/gl3.h
|
||||
include/GLES3/gl31.h
|
||||
include/GLES3/gl32.h
|
||||
include/GLES3/gl3platform.h)
|
||||
foreach(_file ${_double_files})
|
||||
if(EXISTS "${CURRENT_PACKAGES_DIR}/${_file}")
|
||||
file(REMOVE "${CURRENT_PACKAGES_DIR}/${_file}")
|
||||
endif()
|
||||
endforeach()
|
||||
|
||||
|
||||
13
externals/vcpkg/ports/angle/third-party-zlib-far-undef.patch
vendored
Executable file
13
externals/vcpkg/ports/angle/third-party-zlib-far-undef.patch
vendored
Executable file
@@ -0,0 +1,13 @@
|
||||
diff --git a/google/compression_utils_portable.h b/google/compression_utils_portable.h
|
||||
--- a/google/compression_utils_portable.h
|
||||
+++ b/google/compression_utils_portable.h
|
||||
@@ -13,6 +13,9 @@
|
||||
* zlib.
|
||||
*/
|
||||
#if defined(USE_SYSTEM_ZLIB)
|
||||
+# if defined(WIN32) && defined(FAR)
|
||||
+# undef FAR
|
||||
+# endif
|
||||
#include <zlib.h>
|
||||
/* AOSP build requires relative paths. */
|
||||
#else
|
||||
15
externals/vcpkg/ports/angle/vcpkg.json
vendored
Executable file
15
externals/vcpkg/ports/angle/vcpkg.json
vendored
Executable file
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"name": "angle",
|
||||
"version-string": "chromium_4472",
|
||||
"port-version": 3,
|
||||
"description": [
|
||||
"A conformant OpenGL ES implementation for Windows, Mac and Linux.",
|
||||
"The goal of ANGLE is to allow users of multiple operating systems to seamlessly run WebGL and other OpenGL ES content by translating OpenGL ES API calls to one of the hardware-supported APIs available for that platform. ANGLE currently provides translation from OpenGL ES 2.0 and 3.0 to desktop OpenGL, OpenGL ES, Direct3D 9, and Direct3D 11. Support for translation from OpenGL ES to Vulkan is underway, and future plans include compute shader support (ES 3.1) and MacOS support."
|
||||
],
|
||||
"homepage": "https://github.com/google/angle",
|
||||
"dependencies": [
|
||||
"egl-registry",
|
||||
"opengl-registry",
|
||||
"zlib"
|
||||
]
|
||||
}
|
||||
22
externals/vcpkg/ports/antlr4/export_guid.patch
vendored
Executable file
22
externals/vcpkg/ports/antlr4/export_guid.patch
vendored
Executable file
@@ -0,0 +1,22 @@
|
||||
diff -urN a/runtime/src/support/Guid.h b/runtime/src/support/Guid.h
|
||||
--- a/runtime/src/support/Guid.h
|
||||
+++ b/runtime/src/support/Guid.h
|
||||
@@ -42,7 +42,7 @@ namespace antlrcpp {
|
||||
// 16 byte value that can be passed around by value. It also supports
|
||||
// conversion to string (via the stream operator <<) and conversion from a
|
||||
// string via constructor.
|
||||
-class Guid final {
|
||||
+class ANTLR4CPP_PUBLIC Guid final {
|
||||
public:
|
||||
using size_type = typename std::array<uint8_t, 16>::size_type;
|
||||
using pointer = typename std::array<uint8_t, 16>::pointer;
|
||||
@@ -131,7 +131,7 @@ private:
|
||||
// function would no longer be cross-platform if we parameterized the android
|
||||
// version. Instead, construction of the GuidGenerator may be different on
|
||||
// each platform, but the use of newGuid is uniform.
|
||||
-class GuidGenerator final {
|
||||
+class ANTLR4CPP_PUBLIC GuidGenerator final {
|
||||
public:
|
||||
#ifdef GUID_ANDROID
|
||||
GuidGenerator(JNIEnv *env);
|
||||
|
||||
115
externals/vcpkg/ports/antlr4/fixed_build.patch
vendored
Executable file
115
externals/vcpkg/ports/antlr4/fixed_build.patch
vendored
Executable file
@@ -0,0 +1,115 @@
|
||||
diff --git a/runtime/CMakeLists.txt b/runtime/CMakeLists.txt
|
||||
index c8b16c6..53b47dd 100644
|
||||
--- a/runtime/CMakeLists.txt
|
||||
+++ b/runtime/CMakeLists.txt
|
||||
@@ -21,10 +21,13 @@ file(GLOB libantlrcpp_SRC
|
||||
"${PROJECT_SOURCE_DIR}/runtime/src/tree/xpath/*.cpp"
|
||||
)
|
||||
|
||||
+if(BUILD_SHARED_LIBS)
|
||||
add_library(antlr4_shared SHARED ${libantlrcpp_SRC})
|
||||
+else()
|
||||
add_library(antlr4_static STATIC ${libantlrcpp_SRC})
|
||||
+endif()
|
||||
|
||||
-set(LIB_OUTPUT_DIR "${CMAKE_HOME_DIRECTORY}/dist") # put generated libraries here.
|
||||
+#set(LIB_OUTPUT_DIR "${CMAKE_HOME_DIRECTORY}/dist") # put generated libraries here.
|
||||
message(STATUS "Output libraries to ${LIB_OUTPUT_DIR}")
|
||||
|
||||
# make sure 'make' works fine even if ${LIB_OUTPUT_DIR} is deleted.
|
||||
@@ -32,16 +35,22 @@ add_custom_target(make_lib_output_dir ALL
|
||||
COMMAND ${CMAKE_COMMAND} -E make_directory ${LIB_OUTPUT_DIR}
|
||||
)
|
||||
|
||||
+if(BUILD_SHARED_LIBS)
|
||||
add_dependencies(antlr4_shared make_lib_output_dir)
|
||||
+else()
|
||||
add_dependencies(antlr4_static make_lib_output_dir)
|
||||
+endif()
|
||||
|
||||
find_package(utf8cpp QUIET)
|
||||
|
||||
set(INSTALL_utf8cpp FALSE)
|
||||
|
||||
if (utf8cpp_FOUND)
|
||||
+ if(BUILD_SHARED_LIBS)
|
||||
target_link_libraries(antlr4_shared utf8cpp)
|
||||
+ else()
|
||||
target_link_libraries(antlr4_static utf8cpp)
|
||||
+ endif()
|
||||
else()
|
||||
|
||||
# older utf8cpp doesn't define the package above
|
||||
@@ -51,7 +60,7 @@ else()
|
||||
|
||||
if (utf8cpp_HEADER)
|
||||
include_directories(${utf8cpp_HEADER})
|
||||
- else()
|
||||
+ elseif(0)
|
||||
include(${CMAKE_ROOT}/Modules/ExternalProject.cmake)
|
||||
set(THIRDPARTY_DIR ${CMAKE_BINARY_DIR}/runtime/thirdparty)
|
||||
set(UTFCPP_DIR ${THIRDPARTY_DIR}/utfcpp)
|
||||
@@ -76,11 +85,17 @@ else()
|
||||
endif()
|
||||
|
||||
if(CMAKE_SYSTEM_NAME MATCHES "Linux")
|
||||
+ if(BUILD_SHARED_LIBS)
|
||||
target_link_libraries(antlr4_shared ${UUID_LIBRARIES})
|
||||
+ else()
|
||||
target_link_libraries(antlr4_static ${UUID_LIBRARIES})
|
||||
+ endif()
|
||||
elseif(APPLE)
|
||||
+ if(BUILD_SHARED_LIBS)
|
||||
target_link_libraries(antlr4_shared ${COREFOUNDATION_LIBRARY})
|
||||
+ else()
|
||||
target_link_libraries(antlr4_static ${COREFOUNDATION_LIBRARY})
|
||||
+ endif()
|
||||
endif()
|
||||
|
||||
if(CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
|
||||
@@ -102,7 +117,7 @@ if(WIN32)
|
||||
set(extra_share_compile_flags "-DANTLR4CPP_EXPORTS")
|
||||
set(extra_static_compile_flags "-DANTLR4CPP_STATIC")
|
||||
endif(WIN32)
|
||||
-if(CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
|
||||
+if(0)
|
||||
if(WITH_STATIC_CRT)
|
||||
target_compile_options(antlr4_shared PRIVATE "/MT$<$<CONFIG:Debug>:d>")
|
||||
target_compile_options(antlr4_static PRIVATE "/MT$<$<CONFIG:Debug>:d>")
|
||||
@@ -122,6 +137,7 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
|
||||
set(extra_static_compile_flags "-DANTLR4CPP_STATIC -MP")
|
||||
endif()
|
||||
|
||||
+if(BUILD_SHARED_LIBS)
|
||||
set_target_properties(antlr4_shared
|
||||
PROPERTIES VERSION ${ANTLR_VERSION}
|
||||
SOVERSION ${ANTLR_VERSION}
|
||||
@@ -132,20 +148,25 @@ set_target_properties(antlr4_shared
|
||||
RUNTIME_OUTPUT_DIRECTORY ${LIB_OUTPUT_DIR}
|
||||
ARCHIVE_OUTPUT_DIRECTORY ${LIB_OUTPUT_DIR}
|
||||
COMPILE_FLAGS "${disabled_compile_warnings} ${extra_share_compile_flags}")
|
||||
-
|
||||
+else()
|
||||
set_target_properties(antlr4_static
|
||||
PROPERTIES VERSION ${ANTLR_VERSION}
|
||||
SOVERSION ${ANTLR_VERSION}
|
||||
OUTPUT_NAME "antlr4-runtime${static_lib_suffix}"
|
||||
ARCHIVE_OUTPUT_DIRECTORY ${LIB_OUTPUT_DIR}
|
||||
COMPILE_FLAGS "${disabled_compile_warnings} ${extra_static_compile_flags}")
|
||||
+endif()
|
||||
|
||||
-install(TARGETS antlr4_shared
|
||||
+if(BUILD_SHARED_LIBS)
|
||||
+install(TARGETS antlr4_shared EXPORT antlr4-targets
|
||||
DESTINATION lib
|
||||
- EXPORT antlr4-targets)
|
||||
+ RUNTIME DESTINATION bin
|
||||
+ )
|
||||
+else()
|
||||
install(TARGETS antlr4_static
|
||||
DESTINATION lib
|
||||
EXPORT antlr4-targets)
|
||||
+endif()
|
||||
|
||||
install(DIRECTORY "${PROJECT_SOURCE_DIR}/runtime/src/"
|
||||
DESTINATION "include/antlr4-runtime"
|
||||
43
externals/vcpkg/ports/antlr4/portfile.cmake
vendored
Executable file
43
externals/vcpkg/ports/antlr4/portfile.cmake
vendored
Executable file
@@ -0,0 +1,43 @@
|
||||
set(VERSION 4.9.3)
|
||||
|
||||
vcpkg_download_distfile(ARCHIVE
|
||||
URLS "https://www.antlr.org/download/antlr4-cpp-runtime-${VERSION}-source.zip"
|
||||
FILENAME "antlr4-cpp-runtime-${VERSION}-source.zip"
|
||||
SHA512 23995a6fa661ff038142fa7220a195db3a9a26744d516011dedc3192f152b06a8e31f6cc8f969f8927b86392a960d03e89572e753f033f950839a5bd38d4c722
|
||||
)
|
||||
|
||||
# license not exist in antlr folder.
|
||||
vcpkg_download_distfile(LICENSE
|
||||
URLS https://raw.githubusercontent.com/antlr/antlr4/${VERSION}/LICENSE.txt
|
||||
FILENAME "antlr4-copyright-${VERSION}"
|
||||
SHA512 1e8414de5fdc211e3188a8ec3276c6b3c55235f5edaf48522045ae18fa79fd9049719cb8924d25145016f223ac9a178defada1eeb983ccff598a08b0c0f67a3b
|
||||
)
|
||||
|
||||
vcpkg_extract_source_archive_ex(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
ARCHIVE ${ARCHIVE}
|
||||
NO_REMOVE_ONE_LEVEL
|
||||
REF ${VERSION}
|
||||
PATCHES
|
||||
fixed_build.patch
|
||||
uuid_discovery_fix.patch
|
||||
export_guid.patch
|
||||
)
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
OPTIONS
|
||||
-DANTLR4_INSTALL=ON
|
||||
OPTIONS_DEBUG -DLIB_OUTPUT_DIR=${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/dist
|
||||
OPTIONS_RELEASE -DLIB_OUTPUT_DIR=${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/dist
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
vcpkg_cmake_config_fixup(PACKAGE_NAME antlr4-generator CONFIG_PATH lib/cmake/antlr4-generator DO_NOT_DELETE_PARENT_CONFIG_PATH)
|
||||
vcpkg_cmake_config_fixup(PACKAGE_NAME antlr4-runtime CONFIG_PATH lib/cmake/antlr4-runtime)
|
||||
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
|
||||
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
file(INSTALL "${LICENSE}" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
||||
35
externals/vcpkg/ports/antlr4/uuid_discovery_fix.patch
vendored
Executable file
35
externals/vcpkg/ports/antlr4/uuid_discovery_fix.patch
vendored
Executable file
@@ -0,0 +1,35 @@
|
||||
diff -urN a/CMakeLists.txt b/CMakeLists.txt
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -42,8 +42,10 @@ if(CMAKE_VERSION VERSION_EQUAL "3.3.0" OR
|
||||
endif()
|
||||
|
||||
if(CMAKE_SYSTEM_NAME MATCHES "Linux")
|
||||
- find_package(PkgConfig REQUIRED)
|
||||
- pkg_check_modules(UUID REQUIRED uuid)
|
||||
+ find_path(UUID_INCLUDE_DIR uuid/uuid.h)
|
||||
+ find_library(UUID_LIBRARY NAMES uuid)
|
||||
+ include_directories(${UUID_INCLUDE_DIR})
|
||||
+ link_libraries(${UUID_LIBRARY})
|
||||
endif()
|
||||
if(APPLE)
|
||||
find_library(COREFOUNDATION_LIBRARY CoreFoundation)
|
||||
diff --git a/runtime/src/support/Guid.cpp b/runtime/src/support/Guid.cpp
|
||||
--- a/runtime/src/support/Guid.cpp
|
||||
+++ b/runtime/src/support/Guid.cpp
|
||||
@@ -24,6 +24,7 @@
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
+#include "antlr4-common.h"
|
||||
#include "Guid.h"
|
||||
|
||||
#ifdef GUID_LIBUUID
|
||||
@@ -35,6 +36,7 @@
|
||||
#endif
|
||||
|
||||
#ifdef GUID_WINDOWS
|
||||
+#define NOMINMAX
|
||||
#include <objbase.h>
|
||||
#endif
|
||||
|
||||
23
externals/vcpkg/ports/antlr4/vcpkg.json
vendored
Executable file
23
externals/vcpkg/ports/antlr4/vcpkg.json
vendored
Executable file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"name": "antlr4",
|
||||
"version": "4.9.3",
|
||||
"port-version": 2,
|
||||
"description": "ANother Tool for Language Recognition",
|
||||
"homepage": "https://www.antlr.org",
|
||||
"license": "BSD-3-Clause",
|
||||
"supports": "!uwp",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "libuuid",
|
||||
"platform": "!uwp & !windows & !osx"
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
}
|
||||
21
externals/vcpkg/ports/any-lite/portfile.cmake
vendored
Executable file
21
externals/vcpkg/ports/any-lite/portfile.cmake
vendored
Executable file
@@ -0,0 +1,21 @@
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO martinmoene/any-lite
|
||||
REF d45a83b8e49d09ff5e5b66c10a56c997946436d9 #v0.4.0
|
||||
SHA512 b73fe2d1e6de24e143337ef72f71949bf2ae4157a58a5c7e45dd0e9412dd798da6ef929fa09d104305483e769a603b37babd7ba65ab854a33483ab3ec8a921ec
|
||||
)
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
OPTIONS
|
||||
-DANY_LITE_OPT_BUILD_TESTS=OFF
|
||||
-DANY_LITE_OPT_BUILD_EXAMPLES=OFF
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
|
||||
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
|
||||
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib")
|
||||
|
||||
file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
||||
15
externals/vcpkg/ports/any-lite/vcpkg.json
vendored
Executable file
15
externals/vcpkg/ports/any-lite/vcpkg.json
vendored
Executable file
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"name": "any-lite",
|
||||
"version-semver": "0.4.0",
|
||||
"description": "A C++17-like any, a type-safe container for single values of any type for C++98, C++11 and later in a single-file header-only library",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
}
|
||||
28
externals/vcpkg/ports/anyrpc/portfile.cmake
vendored
Executable file
28
externals/vcpkg/ports/anyrpc/portfile.cmake
vendored
Executable file
@@ -0,0 +1,28 @@
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO sgieseking/anyrpc
|
||||
REF b1949b3d40849229055ae75cf5334b9d08579502
|
||||
SHA512 8c674d29e80ec2522d6c1ec959663958ab4e1bf1135727c3c2aaa19e62a81ddbbd1e6a46f3e4679ee02894ad2ab26e70ca7e1e6c8750f3289994311069221b53
|
||||
HEAD_REF master
|
||||
FILE_DISAMBIGUATOR 1
|
||||
)
|
||||
|
||||
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" ANYRPC_LIB_BUILD_SHARED)
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
PREFER_NINJA
|
||||
DISABLE_PARALLEL_CONFIGURE
|
||||
OPTIONS
|
||||
-DBUILD_EXAMPLES=OFF
|
||||
-DBUILD_TESTS=OFF
|
||||
-DBUILD_WITH_LOG4CPLUS=OFF
|
||||
-DANYRPC_LIB_BUILD_SHARED=${ANYRPC_LIB_BUILD_SHARED}
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
|
||||
file(INSTALL "${SOURCE_PATH}/license" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||||
|
||||
vcpkg_copy_pdbs()
|
||||
6
externals/vcpkg/ports/anyrpc/vcpkg.json
vendored
Executable file
6
externals/vcpkg/ports/anyrpc/vcpkg.json
vendored
Executable file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"name": "anyrpc",
|
||||
"version-date": "2021-08-24",
|
||||
"description": "A multiprotocol remote procedure call system for C++.",
|
||||
"homepage": "https://github.com/sgieseking/anyrpc"
|
||||
}
|
||||
75
externals/vcpkg/ports/aom/aom-install.diff
vendored
Executable file
75
externals/vcpkg/ports/aom/aom-install.diff
vendored
Executable file
@@ -0,0 +1,75 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 18190f647..f4b1b359d 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -23,6 +23,9 @@ endif()
|
||||
|
||||
project(AOM C CXX)
|
||||
|
||||
+include(GNUInstallDirs)
|
||||
+include(CMakePackageConfigHelpers)
|
||||
+
|
||||
# GENERATED source property global visibility.
|
||||
if(POLICY CMP0118)
|
||||
cmake_policy(SET CMP0118 NEW)
|
||||
@@ -302,6 +305,52 @@ if(BUILD_SHARED_LIBS)
|
||||
set(AOM_LIB_TARGETS ${AOM_LIB_TARGETS} aom_static)
|
||||
endif()
|
||||
|
||||
+set(PUBLIC_HEADERS
|
||||
+ aom/aom.h
|
||||
+ aom/aom_codec.h
|
||||
+ aom/aom_decoder.h
|
||||
+ aom/aom_encoder.h
|
||||
+ aom/aom_frame_buffer.h
|
||||
+ aom/aom_image.h
|
||||
+ aom/aom_integer.h
|
||||
+ aom/aomcx.h
|
||||
+ aom/aomdx.h
|
||||
+)
|
||||
+
|
||||
+set_target_properties(aom PROPERTIES
|
||||
+ PUBLIC_HEADER "${PUBLIC_HEADERS}")
|
||||
+
|
||||
+
|
||||
+target_include_directories(aom
|
||||
+ PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
|
||||
+ $<INSTALL_INTERFACE:include>)
|
||||
+
|
||||
+install(TARGETS aom
|
||||
+ EXPORT unofficial-aom-targets
|
||||
+ ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}"
|
||||
+ LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"
|
||||
+ RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
|
||||
+ PUBLIC_HEADER DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/aom")
|
||||
+
|
||||
+install(EXPORT unofficial-aom-targets
|
||||
+ FILE unofficial-aom-targets.cmake
|
||||
+ NAMESPACE unofficial::
|
||||
+ DESTINATION lib/cmake/aom)
|
||||
+
|
||||
+configure_package_config_file(cmake/aom-config.cmake.in
|
||||
+ ${CMAKE_CURRENT_BINARY_DIR}/aom-config.cmake
|
||||
+ INSTALL_DESTINATION lib/cmake/aom
|
||||
+ NO_SET_AND_CHECK_MACRO
|
||||
+ NO_CHECK_REQUIRED_COMPONENTS_MACRO)
|
||||
+
|
||||
+write_basic_package_version_file(${CMAKE_CURRENT_BINARY_DIR}/aom-config-version.cmake
|
||||
+ VERSION ${SO_FILE_VERSION}
|
||||
+ COMPATIBILITY SameMajorVersion)
|
||||
+
|
||||
+install(FILES ${CMAKE_CURRENT_BINARY_DIR}/aom-config.cmake
|
||||
+ ${CMAKE_CURRENT_BINARY_DIR}/aom-config-version.cmake
|
||||
+ DESTINATION lib/cmake/aom)
|
||||
+
|
||||
# Setup dependencies.
|
||||
if(CONFIG_THREE_PASS)
|
||||
setup_ivf_dec_targets()
|
||||
diff --git a/cmake/aom-config.cmake.in b/cmake/aom-config.cmake.in
|
||||
new file mode 100644
|
||||
index 000000000..91cac3b5b
|
||||
--- /dev/null
|
||||
+++ b/cmake/aom-config.cmake.in
|
||||
@@ -0,0 +1,2 @@
|
||||
+@PACKAGE_INIT@
|
||||
+include(${CMAKE_CURRENT_LIST_DIR}/unofficial-aom-targets.cmake)
|
||||
12
externals/vcpkg/ports/aom/aom-rename-static.diff
vendored
Executable file
12
externals/vcpkg/ports/aom/aom-rename-static.diff
vendored
Executable file
@@ -0,0 +1,12 @@
|
||||
diff -pruN aom-3.0.0.o/CMakeLists.txt aom-3.0.0/CMakeLists.txt
|
||||
--- aom-3.0.0.o/CMakeLists.txt 2021-04-15 20:05:52.695181200 +0300
|
||||
+++ aom-3.0.0/CMakeLists.txt 2021-04-15 22:34:16.147522600 +0300
|
||||
@@ -249,7 +249,7 @@ endif()
|
||||
add_library(aom ${AOM_SOURCES} $<TARGET_OBJECTS:aom_rtcd>)
|
||||
if(BUILD_SHARED_LIBS)
|
||||
add_library(aom_static STATIC ${AOM_SOURCES} $<TARGET_OBJECTS:aom_rtcd>)
|
||||
- set_target_properties(aom_static PROPERTIES OUTPUT_NAME aom)
|
||||
+ set_target_properties(aom_static PROPERTIES OUTPUT_NAME aom_static)
|
||||
|
||||
if(NOT MSVC)
|
||||
# Extract version string and set VERSION/SOVERSION for the aom target.
|
||||
13
externals/vcpkg/ports/aom/aom-uninitialized-pointer.diff
vendored
Executable file
13
externals/vcpkg/ports/aom/aom-uninitialized-pointer.diff
vendored
Executable file
@@ -0,0 +1,13 @@
|
||||
diff --git a/build/cmake/aom_configure.cmake b/build/cmake/aom_configure.cmake
|
||||
index 43d60ae..35c510b 100644
|
||||
--- a/build/cmake/aom_configure.cmake
|
||||
+++ b/build/cmake/aom_configure.cmake
|
||||
@@ -265,6 +265,8 @@ if(MSVC)
|
||||
|
||||
# Disable MSVC warnings that suggest making code non-portable.
|
||||
add_compiler_flag_if_supported("/wd4996")
|
||||
+ # Disable MSVC warnings for potentially uninitialized local pointer variable.
|
||||
+ add_compiler_flag_if_supported("/wd4703")
|
||||
if(ENABLE_WERROR)
|
||||
add_compiler_flag_if_supported("/WX")
|
||||
endif()
|
||||
56
externals/vcpkg/ports/aom/portfile.cmake
vendored
Executable file
56
externals/vcpkg/ports/aom/portfile.cmake
vendored
Executable file
@@ -0,0 +1,56 @@
|
||||
# NASM is required to build AOM
|
||||
vcpkg_find_acquire_program(NASM)
|
||||
get_filename_component(NASM_EXE_PATH ${NASM} DIRECTORY)
|
||||
vcpkg_add_to_path(${NASM_EXE_PATH})
|
||||
|
||||
# Perl is required to build AOM
|
||||
vcpkg_find_acquire_program(PERL)
|
||||
get_filename_component(PERL_PATH ${PERL} DIRECTORY)
|
||||
vcpkg_add_to_path(${PERL_PATH})
|
||||
|
||||
vcpkg_from_git(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
URL "https://aomedia.googlesource.com/aom"
|
||||
REF 6bbe6ae701d65bdf36bb72053db9b71f9739a083
|
||||
FETCH_REF v3.2.0
|
||||
PATCHES
|
||||
aom-rename-static.diff
|
||||
# Can be dropped when https://bugs.chromium.org/p/aomedia/issues/detail?id=3029 is merged into the upstream
|
||||
aom-install.diff
|
||||
aom-uninitialized-pointer.diff
|
||||
)
|
||||
|
||||
set(aom_target_cpu "")
|
||||
if(VCPKG_TARGET_IS_UWP)
|
||||
# UWP + aom's assembler files result in weirdness and build failures
|
||||
set(aom_target_cpu "-DAOM_TARGET_CPU=generic")
|
||||
endif()
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
OPTIONS
|
||||
${aom_target_cpu}
|
||||
-DENABLE_DOCS=OFF
|
||||
-DENABLE_EXAMPLES=OFF
|
||||
-DENABLE_TESTDATA=OFF
|
||||
-DENABLE_TESTS=OFF
|
||||
-DENABLE_TOOLS=OFF
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
vcpkg_fixup_pkgconfig()
|
||||
|
||||
# Move cmake configs
|
||||
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
|
||||
|
||||
# Remove duplicate files
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include
|
||||
${CURRENT_PACKAGES_DIR}/debug/share)
|
||||
|
||||
# Handle copyright
|
||||
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
||||
|
||||
vcpkg_fixup_pkgconfig()
|
||||
18
externals/vcpkg/ports/aom/vcpkg.json
vendored
Executable file
18
externals/vcpkg/ports/aom/vcpkg.json
vendored
Executable file
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"name": "aom",
|
||||
"version-semver": "3.2.0",
|
||||
"port-version": 3,
|
||||
"description": "AV1 codec library",
|
||||
"homepage": "https://aomedia.googlesource.com/aom",
|
||||
"supports": "!(windows & arm & !uwp)",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user