2024-05-09 15:37:37 +02: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 14:05:01 +02:00
|
|
|
when defined(windows):
|
2024-05-09 15:37:37 +02:00
|
|
|
{.compile: envWindows.}
|
2024-05-09 14:05:01 +02:00
|
|
|
{.passc: "-DLEVELDB_PLATFORM_POSIX".}
|
|
|
|
|
|
|
|
when defined(posix):
|
2024-05-09 15:37:37 +02:00
|
|
|
{.compile: envPosix.}
|
2024-05-09 14:05:01 +02:00
|
|
|
{.passc: "-DLEVELDB_PLATFORM_WINDOWS".}
|
2024-05-10 13:58:25 +02:00
|
|
|
|
|
|
|
{.passC: "-I" & root/"vendor".}
|
|
|
|
{.passC: "-I" & root/"vendor"/"helpers".}
|
|
|
|
{.passC: "-I" & root/"vendor"/"helpers"/"memenv".}
|
|
|
|
{.passC: "-I" & root/"vendor"/"port".}
|
|
|
|
{.passC: "-I" & root/"vendor"/"include".}
|
|
|
|
{.passC: "-I" & root/"build"/"include".}
|
|
|
|
|