nim-leveldb/leveldbstatic/prelude.nim

26 lines
612 B
Nim
Raw Normal View History

2024-05-09 13:37:37 +00:00
import os
const root = currentSourcePath.parentDir.parentDir
const envWindows = root/"vendor"/"util"/"env_windows.cc"
const envPosix = root/"vendor"/"util"/"env_posix.cc"
2024-05-09 12:05:01 +00:00
when defined(windows):
2024-05-09 13:37:37 +00:00
{.compile: envWindows.}
2024-05-13 09:38:49 +00:00
{.passc: "-DLEVELDB_PLATFORM_WINDOWS".}
{.passc: "-D_UNICODE".}
{.passc: "-DUNICODE".}
2024-05-09 12:05:01 +00:00
when defined(posix):
2024-05-09 13:37:37 +00:00
{.compile: envPosix.}
2024-05-13 09:38:49 +00:00
{.passc: "-DLEVELDB_PLATFORM_POSIX".}
2024-05-13 10:01:50 +00:00
{.passc: "-DHAVE_FDATASYNC=0".}
{.passc: "-DHAVE_FULLFSYNC=0".}
{.passc: "-DHAVE_O_CLOEXEC=0".}
{.passc: "-DHAVE_CRC32C=0".}
{.passc: "-DHAVE_SNAPPY=0".}
{.passc: "-DHAVE_ZSTD=0".}
{.passc: "-DHAVE_Zstd=0".}