🛠️🐜 Antkeeper superbuild with dependencies included https://antkeeper.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
867 B

  1. exe = "tester.exe"
  2. toolchain = "msvc"
  3. # optional
  4. link_pool_depth = 1
  5. # optional
  6. builddir = {
  7. "gnu" : "build"
  8. , "msvc" : "build"
  9. , "clang" : "build"
  10. }
  11. includes = {
  12. "gnu" : [ "-I." ]
  13. , "msvc" : [ "/I." ]
  14. , "clang" : [ "-I." ]
  15. }
  16. defines = {
  17. "gnu" : [ "-DEXAMPLE=1" ]
  18. , "msvc" : [ "/DEXAMPLE=1" ]
  19. , "clang" : [ "-DEXAMPLE=1" ]
  20. }
  21. cflags = {
  22. "gnu" : [ "-O2", "-g" ]
  23. , "msvc" : [ "/O2" ]
  24. , "clang" : [ "-O2", "-g" ]
  25. }
  26. cxxflags = {
  27. "gnu" : [ "-O2", "-g" ]
  28. , "msvc" : [ "/O2", "/W4", "/EHsc"]
  29. , "clang" : [ "-O2", "-g", "-fsanitize=address" ]
  30. }
  31. ldflags = {
  32. "gnu" : [ ]
  33. , "msvc" : [ ]
  34. , "clang" : [ "-fsanitize=address" ]
  35. }
  36. # optionsl
  37. cxx_files = [ "tester.cc" ]
  38. c_files = [ ]
  39. # You can register your own toolchain through register_toolchain function
  40. def register_toolchain(ninja):
  41. pass