mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-22 12:30:37 +08:00
4d2e253e42
* Fix the `vcpkg_install_msbuild` docs to reflect handling of x86==Win32. See: * https://github.com/microsoft/vcpkg/pull/28119#issuecomment-1336270264 * https://github.com/microsoft/vcpkg/issues/28076 * Remove overriding-with-the-default discovered in https://github.com/microsoft/vcpkg/pull/28119#issuecomment-1336270264 hunspell and mp3lame are left alone because they do other things with the resulting variable. * Remove nonexistent reference to `MSBUILD_PLATFORM` variable. * Simplify getting to x86, as discovered in https://github.com/microsoft/vcpkg/pull/28119#issuecomment-1336270264 * Version DB * Whoops patches shouldn't be quoted. * Delete vcpkg_install_msbuild.md Docs changes have been migrated in microsoft/vcpkg-docs#21 * Update ocilib.json * Update ocilib.json --------- Co-authored-by: Lily Wang <94091114+LilyWangLL@users.noreply.github.com>
47 lines
1.7 KiB
CMake
47 lines
1.7 KiB
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO vrogier/ocilib
|
|
REF "v${VERSION}"
|
|
SHA512 310c25fbe47ab59570103afdc6f4517b979d4077c77665c931592d95e8c706dcf34d5c2f10309a9971534499b2c4367efd05b25cdf8ebd4de15cb2c104059760
|
|
HEAD_REF master
|
|
PATCHES fix-DisableWC4191.patch
|
|
)
|
|
|
|
|
|
if(VCPKG_TARGET_IS_WINDOWS)
|
|
# There is no debug configuration
|
|
# As it is a C library, build the release configuration and copy its output to the debug folder
|
|
set(VCPKG_BUILD_TYPE release)
|
|
vcpkg_install_msbuild(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
PROJECT_SUBPATH proj/dll/ocilib_dll.sln
|
|
INCLUDES_SUBPATH include
|
|
LICENSE_SUBPATH LICENSE
|
|
RELEASE_CONFIGURATION "Release - ANSI"
|
|
PLATFORM "${VCPKG_TARGET_ARCHITECTURE}"
|
|
USE_VCPKG_INTEGRATION
|
|
ALLOW_ROOT_INCLUDES)
|
|
|
|
file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/debug")
|
|
file(COPY "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/lib" DESTINATION "${CURRENT_PACKAGES_DIR}/debug")
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/bin")
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin")
|
|
endif()
|
|
else()
|
|
vcpkg_configure_make(
|
|
COPY_SOURCE
|
|
AUTOCONFIG
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
--with-oracle-import=runtime
|
|
)
|
|
|
|
vcpkg_install_make()
|
|
vcpkg_fixup_pkgconfig()
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
|
file(RENAME "${CURRENT_PACKAGES_DIR}/share/doc/${PORT}" "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share/doc")
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
|
endif()
|