package An official xmake package repository
https://xrepo.xmake.io/
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.
38 lines
935 B
38 lines
935 B
add_rules("mode.debug", "mode.releasedbg", "mode.release") |
|
add_requires("cpuinfo") |
|
|
|
option("profiler", { default = false, description = "Enable ruy's built-in profiler (harms performance)" }) |
|
|
|
set_languages("cxx14") |
|
|
|
target("ruy") |
|
set_kind("$(kind)") |
|
|
|
add_files("ruy/**.cc") |
|
remove_files("ruy/test*.cc", "ruy/*test.cc") |
|
remove_files("ruy/profiler/test*.cc") |
|
remove_files("ruy/benchmark.cc") |
|
|
|
remove_files("ruy/profiler/test*.cc") |
|
remove_files("ruy/profiler/test.cc") |
|
|
|
add_headerfiles("(ruy/**.h)") |
|
remove_headerfiles("ruy/gtest_wrapper.h") |
|
remove_headerfiles("ruy/profiler/test*.h") |
|
|
|
add_includedirs(".") |
|
set_optimize("fastest") |
|
|
|
add_packages("cpuinfo") |
|
|
|
if is_arch("arm.*") then |
|
add_vectorexts("neon") |
|
end |
|
|
|
if not is_plat("windows") then |
|
set_warnings("all", "extra") |
|
end |
|
|
|
if has_config("profiler") then |
|
add_defines("RUY_PROFILE") |
|
end |