aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryurybura <yurybura@gmail.com>2018-03-12 19:16:43 +0300
committeryurybura <yurybura@gmail.com>2018-03-12 19:16:43 +0300
commitcc3d12b16b84377368e5e5b001aeb75877d85ce5 (patch)
tree38a1f4f2c55db52cc9729efe655e37b68959bcb4
parent148cb369d8934d32e37ef8e15c95476ec8e5968a (diff)
downloadvcpkg-cc3d12b16b84377368e5e5b001aeb75877d85ce5.tar.gz
vcpkg-cc3d12b16b84377368e5e5b001aeb75877d85ce5.zip
[rocksdb] Fix build and use debug suffix 'd'
[gtest] Fix issue #2373
-rw-r--r--ports/benchmark/portfile.cmake1
-rw-r--r--ports/gflags/portfile.cmake1
-rw-r--r--ports/lz4/portfile.cmake3
-rw-r--r--ports/rocksdb/0001-third-party.patch8
-rw-r--r--ports/rocksdb/CONTROL2
-rw-r--r--ports/rocksdb/portfile.cmake8
-rw-r--r--ports/snappy/portfile.cmake3
7 files changed, 14 insertions, 12 deletions
diff --git a/ports/benchmark/portfile.cmake b/ports/benchmark/portfile.cmake
index 1832174fe..e76bce6ff 100644
--- a/ports/benchmark/portfile.cmake
+++ b/ports/benchmark/portfile.cmake
@@ -26,6 +26,7 @@ vcpkg_configure_cmake(
PREFER_NINJA
OPTIONS
-DBENCHMARK_ENABLE_TESTING=OFF
+ -DCMAKE_DEBUG_POSTFIX=d
)
vcpkg_install_cmake()
diff --git a/ports/gflags/portfile.cmake b/ports/gflags/portfile.cmake
index ee730d442..31ffeafa5 100644
--- a/ports/gflags/portfile.cmake
+++ b/ports/gflags/portfile.cmake
@@ -25,6 +25,7 @@ vcpkg_configure_cmake(
-DGFLAGS_REGISTER_BUILD_DIR:BOOL=OFF
-DGFLAGS_REGISTER_INSTALL_PREFIX:BOOL=OFF
-DBUILD_gflags_nothreads_LIB:BOOL=OFF
+ -DCMAKE_DEBUG_POSTFIX=d
)
vcpkg_install_cmake()
diff --git a/ports/lz4/portfile.cmake b/ports/lz4/portfile.cmake
index 1928d7e70..6150a35e6 100644
--- a/ports/lz4/portfile.cmake
+++ b/ports/lz4/portfile.cmake
@@ -12,7 +12,8 @@ vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS_DEBUG
- -DLZ4_SKIP_INCLUDES=ON)
+ -DLZ4_SKIP_INCLUDES=ON
+ -DCMAKE_DEBUG_POSTFIX=d)
vcpkg_install_cmake()
vcpkg_copy_pdbs()
diff --git a/ports/rocksdb/0001-third-party.patch b/ports/rocksdb/0001-third-party.patch
index c28181623..0b0e3fa8c 100644
--- a/ports/rocksdb/0001-third-party.patch
+++ b/ports/rocksdb/0001-third-party.patch
@@ -21,8 +21,8 @@ index a364d1d..1d85d50 100644
-set(GFLAGS_LIB_RELEASE ${GFLAGS_HOME}/bin/retail/amd64/gflags.lib)
+set(GFLAGS_HOME ${CURRENT_INSTALLED_DIR})
+set(GFLAGS_INCLUDE ${GFLAGS_HOME}/include)
-+find_library(GFLAGS_LIB_DEBUG NAMES gflags gflags_static)
-+set(GFLAGS_LIB_RELEASE ${GFLAGS_LIB_DEBUG})
++set(GFLAGS_LIB_DEBUG ${GFLAGS_HOME}/debug/lib/gflagsd.lib)
++set(GFLAGS_LIB_RELEASE ${GFLAGS_HOME}/lib/gflags.lib)
# ================================================== GFLAGS ==================================================
#
@@ -36,7 +36,7 @@ index a364d1d..1d85d50 100644
-set(SNAPPY_LIB_RELEASE ${SNAPPY_HOME}/bin/retail/amd64/snappy.lib)
+set(SNAPPY_HOME ${CURRENT_INSTALLED_DIR})
+set(SNAPPY_INCLUDE ${SNAPPY_HOME}/include)
-+set(SNAPPY_LIB_DEBUG ${SNAPPY_HOME}/debug/lib/snappy.lib)
++set(SNAPPY_LIB_DEBUG ${SNAPPY_HOME}/debug/lib/snappyd.lib)
+set(SNAPPY_LIB_RELEASE ${SNAPPY_HOME}/lib/snappy.lib)
#
@@ -51,7 +51,7 @@ index a364d1d..1d85d50 100644
-set(LZ4_LIB_RELEASE ${LZ4_HOME}/bin/retail/amd64/lz4.lib)
+set(LZ4_HOME ${CURRENT_INSTALLED_DIR})
+set(LZ4_INCLUDE ${LZ4_HOME}/include)
-+set(LZ4_LIB_DEBUG ${LZ4_HOME}/debug/lib/lz4.lib)
++set(LZ4_LIB_DEBUG ${LZ4_HOME}/debug/lib/lz4d.lib)
+set(LZ4_LIB_RELEASE ${LZ4_HOME}/lib/lz4.lib)
#
diff --git a/ports/rocksdb/CONTROL b/ports/rocksdb/CONTROL
index 19383f54a..f317433b5 100644
--- a/ports/rocksdb/CONTROL
+++ b/ports/rocksdb/CONTROL
@@ -1,4 +1,4 @@
Source: rocksdb
Version: 5.10.4-1
Description: A library that provides an embeddable, persistent key-value store for fast storage
-Build-Depends: snappy, lz4, zlib, gtest
+Build-Depends: snappy, gflags, lz4, zlib
diff --git a/ports/rocksdb/portfile.cmake b/ports/rocksdb/portfile.cmake
index 740c40114..ae60e824e 100644
--- a/ports/rocksdb/portfile.cmake
+++ b/ports/rocksdb/portfile.cmake
@@ -1,9 +1,5 @@
include(vcpkg_common_functions)
-if(NOT VCPKG_TARGET_ARCHITECTURE STREQUAL "x64")
- message(FATAL_ERROR "Rocksdb only supports x64")
-endif()
-
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO facebook/rocksdb
@@ -41,9 +37,11 @@ vcpkg_configure_cmake(
-DROCKSDB_INSTALL_ON_WINDOWS=ON
-DFAIL_ON_WARNINGS=OFF
-DWITH_MD_LIBRARY=${WITH_MD_LIBRARY}
+ -DPORTABLE=ON
+ -DCMAKE_DEBUG_POSTFIX=d
-DROCKSDB_DISABLE_INSTALL_SHARED_LIB=${ROCKSDB_DISABLE_INSTALL_SHARED_LIB}
-DROCKSDB_DISABLE_INSTALL_STATIC_LIB=${ROCKSDB_DISABLE_INSTALL_STATIC_LIB}
- -DROCKSDB_VERSION=5.10.3
+ -DROCKSDB_VERSION=5.10.4
-DCURRENT_INSTALLED_DIR=${CURRENT_INSTALLED_DIR}
-DCMAKE_DISABLE_FIND_PACKAGE_TBB=TRUE
-DCMAKE_DISABLE_FIND_PACKAGE_NUMA=TRUE
diff --git a/ports/snappy/portfile.cmake b/ports/snappy/portfile.cmake
index f0169c8f2..c88ff60eb 100644
--- a/ports/snappy/portfile.cmake
+++ b/ports/snappy/portfile.cmake
@@ -12,7 +12,8 @@ vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS
- -DSNAPPY_BUILD_TESTS=OFF)
+ -DSNAPPY_BUILD_TESTS=OFF
+ -DCMAKE_DEBUG_POSTFIX=d)
vcpkg_install_cmake()
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/Snappy)