mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-24 05:17:56 +08:00
01d51b7207
* Maybe fixing jolt * Trying to fix exports * mend * Trying to fix patch * Trying to fix patch * Another attempt to fix this * More correct exports * Trying to fix includes * Fixing last error * Attempting to supply a config file * Trying to bring back relwithdebinfo * Nuclear option * Trying to properly export * Reordering export operations * Actually fixing install again * Installing correct file * Trying to fix includes again * Maybe correctly fixing install * Fixing syntax error * Updating usage * Reworking after feedback * Updating usage * Another diff change to avoid CXX_FLAGS from being adjusted * Fixing portfile install dir * Disabling IPO * Fixing port name * Fixing dumb issue * Disabling debug symbols in release and trying to make sure the port only appends CXX_FLAGS * Deciding not to mess with dynamic linking for now * Fixing debug build * Making sure config gets fixed up
45 lines
1.5 KiB
CMake
45 lines
1.5 KiB
CMake
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO jrouwe/JoltPhysics
|
|
REF "v${VERSION}"
|
|
SHA512 367e5b945e8f91a0c0c9eb699db6f49351aa39b0af9b8fd0be5f474d65b28a7244880eedad10cbd2db0e031daa28bbabb5f9fb8bf9af653dd1f86904bfde44a2
|
|
HEAD_REF master
|
|
PATCHES
|
|
fix-export.diff
|
|
)
|
|
|
|
# Need to provide this library a config
|
|
# The fix-export.diff should install this
|
|
file(COPY "${CMAKE_CURRENT_LIST_DIR}/unofficial-joltphysics-config.cmake" DESTINATION "${SOURCE_PATH}/Build")
|
|
|
|
string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "static" USE_STATIC_CRT)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}/Build"
|
|
OPTIONS
|
|
-DTARGET_UNIT_TESTS=OFF
|
|
-DTARGET_HELLO_WORLD=OFF
|
|
-DTARGET_PERFORMANCE_TEST=OFF
|
|
-DTARGET_SAMPLES=OFF
|
|
-DTARGET_VIEWER=OFF
|
|
-DCROSS_PLATFORM_DETERMINISTIC=OFF
|
|
-DINTERPROCEDURAL_OPTIMIZATION=OFF
|
|
-DUSE_STATIC_MSVC_RUNTIME_LIBRARY=${USE_STATIC_CRT}
|
|
-DENABLE_ALL_WARNINGS=OFF
|
|
OPTIONS_RELEASE
|
|
-DGENERATE_DEBUG_SYMBOLS=OFF
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
vcpkg_copy_pdbs()
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH share/unofficial-${PORT} PACKAGE_NAME unofficial-${PORT})
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
|
|
|
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|