nim-leveldb/leveldb/prelude.nim

17 lines
402 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".}