# Project configuration, read by the builder (kumoko). # # Paths are relative to the project root. Only the keys below exist; the # builder rejects anything else, so that a typo is not silently ignored. name = "kumo" # executable name; ".exe" is added on Windows compiler = "clang++" src = "src" # source tree, searched recursively for .cpp and .mm out = "build" # all build output; `kumoko clean` deletes it entry = "src/main.cpp" # the file with main(); `kumoko test` leaves it out tests = "tests" # test programs: tests/**/*_test.cpp, run by `kumoko test` # Flags for every compile command. flags = [ "-std=c++20", "-Wall", "-Wextra", "-fno-exceptions", "-fno-rtti", "-Isrc", # allows includes relative to src/, e.g. #include "core/math.h" ] # Extra flags for Objective-C++ (.mm) files only. ARC makes the compiler insert # retain/release calls for Objective-C objects. objcxx_flags = ["-fobjc-arc"] # Flags for the link command. link = [] # Per-platform additions: `flags` and `link` here are appended to the lists # above, on that platform only. Linux will need "-lX11" once the window code # for it exists. [mac] compiler = "/usr/bin/clang++" link = [ "-framework", "Cocoa", "-framework", "Metal", "-framework", "QuartzCore", ] [windows] # The MSVC standard library must be told explicitly that exceptions are off, # otherwise its headers still contain `try` blocks. flags = ["-D_HAS_EXCEPTIONS=0", "-D_CRT_SECURE_NO_WARNINGS"] link = ["-luser32", "-lgdi32", "-ldwmapi"] [debug] flags = ["-g", "-O0"] [release] flags = ["-O2", "-DNDEBUG"] [asan] flags = ["-g", "-O1", "-fsanitize=address,undefined", "-fno-omit-frame-pointer"] link = ["-fsanitize=address,undefined"] # Header-only Git dependencies are fetched on the first build that needs them. # Cached tags stay at the commit they first resolved to. Use a full commit ID # for reproducible checkouts if an upstream tag might move. # Include paths are relative to the dependency checkout. # [deps.patternia] git = "https://github.com/sentomk/patternia.git" rev = "v0.9.7" include = ["include"]