Shorten generated file name to _provides.cpp to support Windows.
@@ -6,6 +6,7 @@ SRCDIR=
YMAKE=ymake
ECHO=echo
INCLUDE_EXTS=.h .hh .hpp .rli .cuh .inc .i
+CPP_EXT=.cpp
OBJ_SUF=
CFLAGS=
@@ -2128,8 +2129,8 @@ macro FLAT_JOIN_SRCS_GLOBAL(Out, Src...) {
### Specifies provided features. The names must be C identifiers. Different
### libraries providing the same features can not be linked into one program.
macro PROVIDES(Name...) {
- .CMD=$YMAKE_PYTHON ${input:"build/scripts/provides.py"} ${output;noauto;pre=provides-;suf=.cpp:REALPRJNAME} $Name ${kv;hide:"p PS"} ${kv;hide:"pc cyan"}
- SRCS(GLOBAL ${pre=provides-;suf=.cpp:REALPRJNAME})
+ .CMD=$YMAKE_PYTHON ${input:"build/scripts/provides.py"} ${output;noauto;pre=_provides:CPP_EXT} $Name ${kv;hide:"p PS"} ${kv;hide:"pc cyan"}
+ SRCS(GLOBAL ${pre=_provides:CPP_EXT})
}
SSE2_CFLAGS=
