DLL_PROXY_LIBRARY for mapsmobi
@@ -660,7 +660,7 @@ module _BASE_UNIT {
.CMD=TOUCH_UNIT
.NODE_TYPE=Bundle
.PEERDIR_POLICY=as_include
- .RESTRICTED=GRPC INDUCED_DEPS FUZZ_DICTS FUZZ_OPTS PACK DOCS_DIR DOCS_CONFIG DOCS_VARS YT_SPEC USE_CXX USE_UTIL WHOLE_ARCHIVE
+ .RESTRICTED=GRPC INDUCED_DEPS FUZZ_DICTS FUZZ_OPTS PACK DOCS_DIR DOCS_CONFIG DOCS_VARS YT_SPEC USE_CXX USE_UTIL WHOLE_ARCHIVE PRIMARY_OUTPUT SECONDARY_OUTPUT
.FINAL_TARGET=no
PEERDIR_TAGS=CPP_PROTO CPP_IDL PY2 PY2_NATIVE YQL_UDF_STATIC __EMPTY__
@@ -5381,18 +5381,11 @@ module AAR: _BASE_UNIT {
SET(BIN_GRADLE_USER_HOME_DIR $BINDIR/gradle)
}
-_SECONDARY_OUTPUT_VALUE=
-### @usage: SECONDARY_OUTPUT(filename) # internal
-macro SECONDARY_OUTPUT(OUTPUT) {
- SET(_SECONDARY_OUTPUT_VALUE $OUTPUT)
-}
-
-AAR_PROXY_LIBRARY_CMD=$LINK_LIB && $COPY_CMD $_SECONDARY_OUTPUT_VALUE ${input;hide:_SECONDARY_OUTPUT_VALUE} ${output:REALPRJNAME.aar}
-
### @usage: AAR_PROXY_LIBRARY() # internal
-module AAR_PROXY_LIBRARY: LIBRARY {
+###
+### The use of this module is strictly prohibited!!!
+module _PROXY_LIBRARY: LIBRARY {
.EXTS=.a .lib
- .CMD=AAR_PROXY_LIBRARY_CMD
.PEERDIR_POLICY=as_build_from
.PROXY=yes
.FINAL_TARGET=yes
@@ -5402,6 +5395,44 @@ module AAR_PROXY_LIBRARY: LIBRARY {
NO_RUNTIME()
}
+_SECONDARY_OUTPUT_VALUE=
+
+### @usage: SECONDARY_OUTPUT(filename) # internal
+###
+### The use of this macro is strictly prohibited!!!
+macro SECONDARY_OUTPUT(OUTPUT) {
+ SET(_SECONDARY_OUTPUT_VALUE $OUTPUT)
+}
+
+_AAR_PROXY_LIBRARY_CMD=$LINK_LIB && $COPY_CMD $_SECONDARY_OUTPUT_VALUE ${input;hide:_SECONDARY_OUTPUT_VALUE} ${output:REALPRJNAME.aar}
+
+### @usage: AAR_PROXY_LIBRARY() # internal
+###
+### The use of this module is strictly prohibited!!!
+module AAR_PROXY_LIBRARY: _PROXY_LIBRARY {
+ .ALLOWED=SECONDARY_OUTPUT
+ .CMD=_AAR_PROXY_LIBRARY_CMD
+}
+
+_PRIMARY_OUTPUT_VALUE=
+
+### @usage: PRIMARY_OUTPUT_VALUE(Output) # internal
+###
+### The use of this module is strictly prohibited!!!
+macro PRIMARY_OUTPUT(OUTPUT) {
+ SET(_PRIMARY_OUTPUT_VALUE $OUTPUT)
+}
+
+_DLL_PROXY_LIBRARY_CMD=$GENERATE_MF && $COPY_CMD $_PRIMARY_OUTPUT_VALUE ${input;hide:_PRIMARY_OUTPUT_VALUE} ${TARGET}
+
+### @usage: DLL_PROXY_LIBRARY() # internal
+###
+### The use of this module is strictly prohibited!!!
+module DLL_PROXY_LIBRARY: _PROXY_LIBRARY {
+ .ALLOWED=PRIMARY_OUTPUT
+ .CMD=_DLL_PROXY_LIBRARY_CMD
+}
+
# This macro MAPSMOBI_GLOB() is strictly prohibited to use outside of mapsmobi project
### @usage: MAPSMOBI_GLOB(varname dir regexp) # internal
macro MAPSMOBI_GLOB(VAR, DIR, REGEXP) {
