26 lines
612 B
Nim
26 lines
612 B
Nim
import os
|
|
|
|
const root = currentSourcePath.parentDir.parentDir
|
|
const envWindows = root/"vendor"/"util"/"env_windows.cc"
|
|
const envPosix = root/"vendor"/"util"/"env_posix.cc"
|
|
|
|
when defined(windows):
|
|
{.compile: envWindows.}
|
|
{.passc: "-DLEVELDB_PLATFORM_WINDOWS".}
|
|
{.passc: "-D_UNICODE".}
|
|
{.passc: "-DUNICODE".}
|
|
|
|
when defined(posix):
|
|
{.compile: envPosix.}
|
|
{.passc: "-DLEVELDB_PLATFORM_POSIX".}
|
|
|
|
|
|
{.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".}
|
|
|