xmake.lua 558 B

12345678910111213141516171819
  1. add_rules("mode.debug", "mode.release")
  2. option("simd", {default = true, description = "Build with simd"})
  3. target("pffft")
  4. set_kind("$(kind)")
  5. if not has_config("simd") then
  6. add_defines("PFFFT_SIMD_DISABLE")
  7. end
  8. if is_kind("shared") and is_plat("windows") then
  9. add_rules("utils.symbols.export_all")
  10. end
  11. add_files("fftpack.c", "pffft.c")
  12. add_headerfiles("fftpack.h", "pffft.h")
  13. if not is_plat("windows") then
  14. add_syslinks("m")
  15. else
  16. add_defines("_USE_MATH_DEFINES", {public = true})
  17. end