make/lib/Lib-java.desktop.gmk
changeset 47336 6694369ed3f9
parent 47217 72e3ae9a25eb
child 49252 6628683fde28
--- a/make/lib/Lib-java.desktop.gmk	Fri Oct 13 14:17:10 2017 +0100
+++ b/make/lib/Lib-java.desktop.gmk	Fri Oct 13 15:22:02 2017 +0200
@@ -25,9 +25,13 @@
 
 include LibCommon.gmk
 
+# Hook to include the corresponding custom file, if present.
+$(eval $(call IncludeCustomExtension, lib/Lib-java.desktop.gmk))
+
 # Prepare the find cache.
-$(eval $(call FillCacheFind, $(wildcard $(TOPDIR)/src/java.desktop/*/native \
-    $(TOPDIR)/src/*/java.desktop/*/native)))
+LIB_java.desktop_SRC_DIRS += $(TOPDIR)/src/java.desktop/*/native
+
+$(eval $(call FillCacheFind, $(wildcard $(LIB_java.desktop_SRC_DIRS))))
 
 include LibosxLibraries.gmk
 include PlatformLibraries.gmk