emake icon indicating copy to clipboard operation
emake copied to clipboard

您好,请问通配符匹配目录下所有.c文件,但是排除其中几个.c文件该怎么写?

Open fengyikil opened this issue 1 year ago • 2 comments

//! src:../test/*!(ko1|ko2).c 这样写貌似无效。

fengyikil avatar Sep 26 '24 09:09 fengyikil

不是这样的,通配符使用的路径通配符,不是正则,python glob 的通配符

//! src: ../test/abc*.c
//! src: ../test/def*.c

skywind3000 avatar Sep 26 '24 14:09 skywind3000

那么能支持排除其中几个文件吗?类似cmake 的 file(GLOB SOURCES ../test/*.c) list(REMOVE_ITEM SOURCES ../test/abc.c) list(REMOVE_ITEM SOURCES ../test/def.c)

fengyikil avatar Sep 27 '24 00:09 fengyikil