add_files("src/test_*.c") add_files("src/xxx/**.cpp") add_files("src/asm/*.S", "src/objc/**/hello.m")
--Recursively add all c files under src, but not all c files under src/impl/ add_files("src/**.c|impl/*.c") --Add all cpp files under src, but not src/test.cpp, src/hello.cpp, and all cpp files with xx_ prefix under src add_files("src/*.cpp|test.cpp|hello.cpp|xx_*.cpp")
add_files("*.c") add_files("asio/aioo.c") add_files("asio/aiop.c") add_files("math/**.c") --Here libc/string/impl/* *. c is filtered add_files("libc/**.c|string/impl/**.c") add_files("utils/*.c|option.c") add_files("prefix/**.c") add_files("memory/**.c") add_files("string/**.c") --Here stream/* */charset. c is filtered, stream/**/zip.c,stream/**async_**.c,stream/transfer_pool.c add_files("stream/**.c|**/charset.c|**/zip.c|**async_**.c|transfer_pool.c") --All c files under network/impl/ssl are filtered here add_files("network/**.c|impl/ssl/*.c") add_files("algorithm/**.c") add_files("container/**.c") add_files("libm/libm.c") add_files("libm/idivi8.c") add_files("libm/ilog2i.c") add_files("libm/isqrti.c") add_files("libm/isqrti64.c") add_files("libm/idivi8.c") add_files("platform/*.c|aicp.c") --If the current architecture is arm, add the asm optimization code related to arm if archs("arm.*") then add_files("utils/impl/crc_arm.S") end --If the charset module is currently enabled, add the corresponding c file (the files here are filtered out) --The options interface will be explained in detail later if options("charset") then add_files("charset/**.c") add_files("stream/impl/filter/charset.c") end