xmake.lua 251 B

12345678
  1. add_rules("mode.release", "mode.debug")
  2. add_requires("python 3.x")
  3. target("example")
  4. add_rules("swig.cpp", {moduletype = "python"})
  5. add_files("src/example.i", {scriptdir = "share"})
  6. add_files("src/example.cpp")
  7. add_packages("python")