diff options
-rw-r--r-- | RepositoryExternal.mk | 15 | ||||
-rw-r--r-- | extensions/Library_scn.mk | 7 |
2 files changed, 19 insertions, 3 deletions
diff --git a/RepositoryExternal.mk b/RepositoryExternal.mk index e22d2197a18a..a982882844a2 100644 --- a/RepositoryExternal.mk +++ b/RepositoryExternal.mk @@ -126,6 +126,21 @@ endef endif +ifeq (SANEUNX,$(filter SANE,$(BUILD_TYPE))$(GUI)) + +define gb_LinkTarget__use_sane_headers +$(call gb_Library_use_packages,$(1),\ + sane_inc \ +) + +endef + +else + +gb_LinkTarget__use_sane_headers := + +endif + # External libraries ifeq ($(SYSTEM_CPPUNIT),YES) diff --git a/extensions/Library_scn.mk b/extensions/Library_scn.mk index df976e6aa026..ac173bf1d8d5 100644 --- a/extensions/Library_scn.mk +++ b/extensions/Library_scn.mk @@ -28,6 +28,10 @@ $(eval $(call gb_Library_Library,scn)) +$(eval $(call gb_Library_use_externals,scn,\ + sane_headers \ +)) + $(eval $(call gb_Library_set_componentfile,scn,extensions/source/scanner/scn)) $(eval $(call gb_Library_use_sdk_api,scn)) @@ -56,9 +60,6 @@ $(eval $(call gb_Library_add_exception_objects,scn,\ )) else ifeq ($(GUI),UNX) -ifneq (,$(filter SANE,$(BUILD_TYPE))) -$(eval $(call gb_Library_use_packages,scn,sane_inc)) -endif $(eval $(call gb_Library_add_exception_objects,scn,\ extensions/source/scanner/grid \ |