mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-27 12:28:59 +08:00
bc5a1bf1a0
* quickfix * simplify patch and add _CRT_SECURE_NO_WARNINGS * fix replace and add more _CRT_SECURE_NO_WARNINGS * add _CRT_NONSTDC_NO_DEPRECATE * win GetCurrentProcessId instead of getpid * add _WINSOCK_DEPRECATED_NO_WARNINGS * DOUBLE_CONVERSION_CORRECT_DOUBLE_OPERATIONS for _M_ARM and _M_ARM64
51 lines
1.5 KiB
CMake
51 lines
1.5 KiB
CMake
include(vcpkg_common_functions)
|
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO quickfix/quickfix
|
|
REF v1.15.1
|
|
SHA512 6c3dc53f25932c9b7516ab9228f634511ae0f399719f87f0ec2b38c380c0a7d1c808f0f9a14a70a063e1956118550d1121222283a9139f23cd4f8f038f595f70
|
|
HEAD_REF master
|
|
PATCHES 00001-fix-build.patch
|
|
)
|
|
|
|
file(GLOB_RECURSE SRC_FILES RELATIVE ${SOURCE_PATH}
|
|
"${SOURCE_PATH}/src/*.cpp"
|
|
"${SOURCE_PATH}/src/*.h"
|
|
)
|
|
|
|
list(REMOVE_ITEM SRC_FILES "src/C++/Utility.h")
|
|
list(REMOVE_ITEM SRC_FILES "src/C++/pugixml.cpp")
|
|
|
|
foreach(SRC_FILE IN LISTS SRC_FILES)
|
|
file(READ "${SOURCE_PATH}/${SRC_FILE}" _contents)
|
|
string(REPLACE "throw(" "QUICKFIX_THROW(" _contents "${_contents}")
|
|
string(REPLACE "throw (" "QUICKFIX_THROW(" _contents "${_contents}")
|
|
file(WRITE "${SOURCE_PATH}/${SRC_FILE}" "${_contents}")
|
|
endforeach()
|
|
|
|
vcpkg_configure_cmake(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
OPTIONS
|
|
-DHAVE_EMX=OFF
|
|
-DHAVE_MYSQL=OFF
|
|
-DHAVE_POSTGRESQL=OFF
|
|
-DHAVE_PYTHON=OFF
|
|
-DHAVE_PYTHON2=OFF
|
|
-DHAVE_PYTHON3=OFF
|
|
-DHAVE_SSL=ON
|
|
PREFER_NINJA
|
|
)
|
|
|
|
vcpkg_install_cmake()
|
|
vcpkg_copy_pdbs()
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH share/cmake/quickfix)
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
|
|
|
configure_file(${SOURCE_PATH}/LICENSE ${CURRENT_PACKAGES_DIR}/share/quickfix/copyright COPYONLY)
|
|
file(COPY ${CMAKE_CURRENT_LIST_DIR}/usage DESTINATION ${CURRENT_PACKAGES_DIR}/share/quickfix)
|