Kumo

A hand-rolled game engine.

git clone https://git.sentomk.me/Kumo.git

kumo.toml (2157B) · raw


      1 # Project configuration, read by the builder (kumoko).
      2 #
      3 # Paths are relative to the project root. Only the keys below exist; the
      4 # builder rejects anything else, so that a typo is not silently ignored.
      5 
      6 name = "kumo"          # executable name; ".exe" is added on Windows
      7 compiler = "clang++"
      8 src = "src"            # source tree, searched recursively for .cpp and .mm
      9 out = "build"          # all build output; `kumoko clean` deletes it
     10 entry = "src/main.cpp" # the file with main(); `kumoko test` leaves it out
     11 tests = "tests"        # test programs: tests/**/*_test.cpp, run by `kumoko test`
     12 
     13 # Flags for every compile command.
     14 flags = [
     15     "-std=c++20",
     16     "-Wall",
     17     "-Wextra",
     18     "-fno-exceptions",
     19     "-fno-rtti",
     20     "-Isrc",           # allows includes relative to src/, e.g. #include "core/math.h"
     21 ]
     22 
     23 # Extra flags for Objective-C++ (.mm) files only. ARC makes the compiler insert
     24 # retain/release calls for Objective-C objects.
     25 objcxx_flags = ["-fobjc-arc"]
     26 
     27 # Flags for the link command.
     28 link = []
     29 
     30 # Per-platform additions: `flags` and `link` here are appended to the lists
     31 # above, on that platform only. Linux will need "-lX11" once the window code
     32 # for it exists.
     33 
     34 [mac]
     35 compiler = "/usr/bin/clang++"
     36 link = [
     37     "-framework",
     38     "Cocoa",
     39     "-framework",
     40     "Metal",
     41     "-framework",
     42     "QuartzCore",
     43 ]
     44 
     45 [windows]
     46 # The MSVC standard library must be told explicitly that exceptions are off,
     47 # otherwise its headers still contain `try` blocks.
     48 flags = ["-D_HAS_EXCEPTIONS=0", "-D_CRT_SECURE_NO_WARNINGS"]
     49 link = ["-luser32", "-lgdi32", "-ldwmapi"]
     50 
     51 [debug]
     52 flags = ["-g", "-O0"]
     53 
     54 [release]
     55 flags = ["-O2", "-DNDEBUG"]
     56 
     57 [asan]
     58 flags = ["-g", "-O1", "-fsanitize=address,undefined", "-fno-omit-frame-pointer"]
     59 link = ["-fsanitize=address,undefined"]
     60 
     61 # Header-only Git dependencies are fetched on the first build that needs them.
     62 # Cached tags stay at the commit they first resolved to. Use a full commit ID
     63 # for reproducible checkouts if an upstream tag might move.
     64 # Include paths are relative to the dependency checkout.
     65 #
     66 [deps.patternia]
     67 git = "https://github.com/sentomk/patternia.git"
     68 rev = "v0.9.7"
     69 include = ["include"]