DLL_PROXY module and MAPSMOBI_SRCS macro
@@ -716,6 +716,7 @@ module BASE_UNIT {
module LINK_UNIT: BASE_UNIT {
.EXTS=.o .obj
.CMD=LINK_EXE
+ .ALLOWED=EXTRALIBS OBJADDE_GLOBAL
.NODE_TYPE=Program
.PEERDIR_POLICY=as_build_from
.FINAL_TARGET=yes
@@ -1307,7 +1308,6 @@ module DLL_UNIT: LINK_UNIT {
.CMD=LINK_DYN_LIB
.NODE_TYPE=Library
.SYMLINK_POLICY=SO
- .ALLOWED=EXTRALIBS OBJADDE_GLOBAL
.GLOBAL=USER_CFLAGS USER_CXXFLAGS LDFLAGS
ALLOCATOR(FAKE)
@@ -1455,6 +1455,31 @@ module DLL: DLL_UNIT {
###}
}
+DLL_PROXY_CMD_MF=$GENERATE_MF && $COPY_CMD $AUTO_INPUT $TARGET
+
+### @usage DEV_DLL_PROXY() # deprecated
+### Module declaration must be finished with the macro END()
+###
+### The use of this module is strictly prohibited!!!
+### This is a temporary and project-specific solution.
+module DEV_DLL_PROXY: BASE_UNIT {
+ .NODE_TYPE=Library
+ .EXTS=.so .dll .mf
+ .CMD=DLL_PROXY_CMD_MF
+
+ when ($MSVC == "yes" || $CYGWIN == "yes") {
+ MODULE_SUFFIX=.dll
+ }
+ elsewhen ($DARWIN == "yes" || $OS_IOS == "yes") {
+ MODULE_PREFIX=lib
+ MODULE_SUFFIX=.dylib$MODULE_VERSION
+ }
+ otherwise {
+ MODULE_PREFIX=lib
+ MODULE_SUFFIX=.so$MODULE_VERSION
+ }
+}
+
### In SRCS have indicated DLL_JAVA swig sources.
### Obtained from DLL_JAVA dynamic library is treated the same as in the case of PEERDIR to DLL.
### Obtained from DLL_JAVA jar goes on the classpath. Example.
@@ -3642,6 +3667,20 @@ macro MAPKIT_ADDINCL(Dirs...) {
SET_APPEND(MAPKIT_IDL_INCLUDES $Dirs)
}
+### @usage: MAPSMOBI_SRCS(filenames...)
+###
+### Make all source files listed as GLOBAL or not (depending on the value of
+### MAPSMOBI_USE_SRCS_GLOBAL). Be careful since the value of
+### MAPSMOBI_USE_SRCS_GLOBAL matters! If the value of this variable is equal to
+### GLOBAL then call to MAPSMOBI_SRCS() macro behaves like call to
+### GLOBAL_SRCS() macro otherwise the value of MAPSMOBI_USE_SRCS_GLOBAL is
+### treated as a file name and a call to MAPSMOBI_SRCS() macro behaves like a
+### call to SRCS() macro with additional iargument which is the value of
+### MAPSMOBI_USE_SRCS_GLOBAL variable
+macro MAPSMOBI_SRCS(FILES...) {
+ ALL_SRCS(${MAPSMOBI_USE_SRCS_GLOBAL} $FILES)
+}
+
### @usage: EXPORT_MAPKIT_PROTO()
### This macro is a temporary one and should be changed to EXPORT_YMAPS_PROTO
### when transition of mapsmobi to arcadia is finished
