Add special library for external resources.
@@ -815,6 +815,19 @@ module LIBRARY: _LIBRARY {
SET(MODULE_TYPE LIBRARY)
}
+# XXX: dirty hack for correct LDFLAGS passing
+RESOURCES_LIBRARY_LINK=$LINK_LIB ${hide:LINK_EXE}
+
+module RESOURCES_LIBRARY: _LIBRARY {
+ .CMD=RESOURCES_LIBRARY_LINK
+ .ALLOWED=DECLARE_EXTERNAL_RESOURCE
+ .RESTRICTED=ALLOCATOR SIZE TAG DATA TEST_DATA DEPENDS FORK_TESTS FORK_SUBTESTS SPLIT_FACTOR TEST_CWD RUN TIMEOUT SRCS PEERDIR
+
+ NO_PLATFORM()
+ NO_RUNTIME()
+ NO_UTIL()
+}
+
module FAT_OBJECT: LIBRARY {
.CMD=LINK_FAT_OBJECT
.PEERDIR_POLICY=as_build_from
