aboutsummaryrefslogtreecommitdiff
path: root/src/leveldb/build_detect_platform
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2012-12-13 02:23:05 +0100
committerGavin Andresen <gavinandresen@gmail.com>2013-01-23 10:41:44 -0500
commit8aef119f43ee3b4e75e0f3bd7ea28cf7b29bb582 (patch)
treeaf0e0dcf54dac2613d32708d25f899b3c78a5164 /src/leveldb/build_detect_platform
parent960797a0de24454ce0c8c15cbb26cb6fc7683e47 (diff)
Mingw support for Windows LevelDB port
Diffstat (limited to 'src/leveldb/build_detect_platform')
-rwxr-xr-xsrc/leveldb/build_detect_platform10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/leveldb/build_detect_platform b/src/leveldb/build_detect_platform
index 5307c9a4fc..caf2352f93 100755
--- a/src/leveldb/build_detect_platform
+++ b/src/leveldb/build_detect_platform
@@ -127,6 +127,16 @@ case "$TARGET_OS" in
# man ld: +h internal_name
PLATFORM_SHARED_LDFLAGS="-shared -Wl,+h -Wl,"
;;
+ OS_WINDOWS_CROSSCOMPILE | NATIVE_WINDOWS)
+ PLATFORM=OS_WINDOWS
+ COMMON_FLAGS="-fno-builtin-memcmp -D_REENTRANT -DOS_WINDOWS -DLEVELDB_PLATFORM_WINDOWS"
+ PLATFORM_SHARED_CFLAGS=""
+ PLATFORM_SOURCES="util/env_win.cc"
+ PLATFORM_CXXFLAGS="-std=c++0x"
+ PLATFORM_LIBS="-lshlwapi -ldbghelp"
+ PORT_FILE=port/port_win.cc
+ CROSS_COMPILE=true
+ ;;
*)
echo "Unknown platform!" >&2
exit 1