summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cppu/CppunitTest_cppu_checkapi.mk5
-rw-r--r--cppu/CustomTarget_cppu_allheaders.mk18
-rw-r--r--cppuhelper/CppunitTest_cppuhelper_checkapi.mk5
-rw-r--r--cppuhelper/CustomTarget_cppuhelper_allheaders.mk18
-rw-r--r--sal/CppunitTest_sal_checkapi.mk5
-rw-r--r--sal/CustomTarget_sal_allheaders.mk27
-rw-r--r--salhelper/CppunitTest_salhelper_checkapi.mk5
-rw-r--r--salhelper/CustomTarget_salhelper_allheaders.mk18
8 files changed, 26 insertions, 75 deletions
diff --git a/cppu/CppunitTest_cppu_checkapi.mk b/cppu/CppunitTest_cppu_checkapi.mk
index c47643aea6c5..bfd4dad5e47a 100644
--- a/cppu/CppunitTest_cppu_checkapi.mk
+++ b/cppu/CppunitTest_cppu_checkapi.mk
@@ -31,11 +31,6 @@ $(eval $(call gb_CppunitTest_add_exception_objects,cppu_checkapi,\
cppu/qa/checkapi/strings \
))
-$(eval $(call gb_CppunitTest_set_include,cppu_checkapi,\
- $$(INCLUDE) \
- -I$(SRCDIR)/cppu/inc \
-))
-
$(eval $(call gb_CppunitTest_use_internal_comprehensive_api,cppu_checkapi, \
cppu \
udkapi \
diff --git a/cppu/CustomTarget_cppu_allheaders.mk b/cppu/CustomTarget_cppu_allheaders.mk
index f7573f7e7c38..6959f5f5b104 100644
--- a/cppu/CustomTarget_cppu_allheaders.mk
+++ b/cppu/CustomTarget_cppu_allheaders.mk
@@ -32,21 +32,13 @@ cppu_allheaders_DIR := $(call gb_CustomTarget_get_workdir,cppu/allheaders)
$(call gb_CustomTarget_get_target,cppu/allheaders) : \
$(cppu_allheaders_DIR)/cppu_allheaders.hxx
-# dependency on Package_cppu_odk_headers.mk should ensure this is
-# updated whenever a new public header is added
$(cppu_allheaders_DIR)/cppu_allheaders.hxx : \
- $(SRCDIR)/cppu/CustomTarget_cppu_allheaders.mk \
- $(SRCDIR)/cppu/Package_cppu_odk_headers.mk \
+ $(call gb_Package_get_target,cppu_odk_headers) \
| $(cppu_allheaders_DIR)/.dir
$(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),ECH,1)
- printf '// Generated list of all cppu/ includes\n' > $@
- $(foreach file, $(wildcard $(SRCDIR)/cppu/inc/*.h) $(wildcard $(SRCDIR)/cppu/inc/*.hxx) \
- $(wildcard $(SRCDIR)/cppu/inc/*/*.h) $(wildcard $(SRCDIR)/cppu/inc/*/*.hxx) \
- $(wildcard $(SRCDIR)/cppu/inc/*/*/*.h) $(wildcard $(SRCDIR)/cppu/inc/*/*/*.hxx) \
- $(wildcard $(SRCDIR)/cppu/inc/*/*/*/*.h) $(wildcard $(SRCDIR)/cppu/inc/*/*/*/*.hxx), \
- $(if $(findstring /win32/, $(file)), printf '#ifdef WNT\n' >> $@ &&) \
- printf '#include <%s>\n' $(subst $(SRCDIR)/cppu/inc/,,$(file)) >> $@ && \
- $(if $(findstring /win32/, $(file)), printf '#endif // WNT\n' >> $@ &&) \
- ) :
+ printf '// Generated list of cppu includes\n' > $@ \
+ $(foreach file,$(shell cat $<),\
+ && printf '#include <%s>\n' $(subst $(INSTDIR)/$(gb_Package_SDKDIRNAME)/include/,,$(file)) >> $@ \
+ )
# vim: set noet sw=4 ts=4:
diff --git a/cppuhelper/CppunitTest_cppuhelper_checkapi.mk b/cppuhelper/CppunitTest_cppuhelper_checkapi.mk
index 68fd0ec4bc1f..5e933d3fbe34 100644
--- a/cppuhelper/CppunitTest_cppuhelper_checkapi.mk
+++ b/cppuhelper/CppunitTest_cppuhelper_checkapi.mk
@@ -31,11 +31,6 @@ $(eval $(call gb_CppunitTest_add_exception_objects,cppuhelper_checkapi,\
cppuhelper/qa/checkapi/strings \
))
-$(eval $(call gb_CppunitTest_set_include,cppuhelper_checkapi,\
- $$(INCLUDE) \
- -I$(SRCDIR)/cppuhelper/inc \
-))
-
$(eval $(call gb_CppunitTest_use_internal_comprehensive_api,cppuhelper_checkapi, \
cppu \
udkapi \
diff --git a/cppuhelper/CustomTarget_cppuhelper_allheaders.mk b/cppuhelper/CustomTarget_cppuhelper_allheaders.mk
index a6d83d4069c7..08c8ee34a7c3 100644
--- a/cppuhelper/CustomTarget_cppuhelper_allheaders.mk
+++ b/cppuhelper/CustomTarget_cppuhelper_allheaders.mk
@@ -32,21 +32,13 @@ cppuhelper_allheaders_DIR := $(call gb_CustomTarget_get_workdir,cppuhelper/allhe
$(call gb_CustomTarget_get_target,cppuhelper/allheaders) : \
$(cppuhelper_allheaders_DIR)/cppuhelper_allheaders.hxx
-# dependency on Package_cppuheaders_odk_headers.mk should ensure this is
-# updated whenever a new public header is added
$(cppuhelper_allheaders_DIR)/cppuhelper_allheaders.hxx : \
- $(SRCDIR)/cppuhelper/CustomTarget_cppuhelper_allheaders.mk \
- $(SRCDIR)/cppuhelper/Package_cppuhelper_odk_headers.mk \
+ $(call gb_Package_get_target,cppuhelper_odk_headers) \
| $(cppuhelper_allheaders_DIR)/.dir
$(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),ECH,1)
- printf '// Generated list of all cppuhelper/ includes\n' > $@
- $(foreach file, $(wildcard $(SRCDIR)/cppuhelper/inc/*.h) $(wildcard $(SRCDIR)/cppuhelper/inc/*.hxx) \
- $(wildcard $(SRCDIR)/cppuhelper/inc/*/*.h) $(wildcard $(SRCDIR)/cppuhelper/inc/*/*.hxx) \
- $(wildcard $(SRCDIR)/cppuhelper/inc/*/*/*.h) $(wildcard $(SRCDIR)/cppuhelper/inc/*/*/*.hxx) \
- $(wildcard $(SRCDIR)/cppuhelper/inc/*/*/*/*.h) $(wildcard $(SRCDIR)/cppuhelper/inc/*/*/*/*.hxx), \
- $(if $(findstring /win32/, $(file)), printf '#ifdef WNT\n' >> $@ &&) \
- printf '#include <%s>\n' $(subst $(SRCDIR)/cppuhelper/inc/,,$(file)) >> $@ && \
- $(if $(findstring /win32/, $(file)), printf '#endif // WNT\n' >> $@ &&) \
- ) :
+ printf '// Generated list of cppuhelper includes\n' > $@ \
+ $(foreach file,$(shell cat $<),\
+ && printf '#include <%s>\n' $(subst $(INSTDIR)/$(gb_Package_SDKDIRNAME)/include/,,$(file)) >> $@ \
+ )
# vim: set noet sw=4 ts=4:
diff --git a/sal/CppunitTest_sal_checkapi.mk b/sal/CppunitTest_sal_checkapi.mk
index b21f1ecbd974..4feec9b2911d 100644
--- a/sal/CppunitTest_sal_checkapi.mk
+++ b/sal/CppunitTest_sal_checkapi.mk
@@ -31,11 +31,6 @@ $(eval $(call gb_CppunitTest_add_exception_objects,sal_checkapi,\
sal/qa/checkapi/strings \
))
-$(eval $(call gb_CppunitTest_set_include,sal_checkapi,\
- $$(INCLUDE) \
- -I$(SRCDIR)/sal/inc \
-))
-
$(eval $(call gb_CppunitTest_use_external,sal_checkapi,boost_headers))
# strings.cxx includes generated strings.hxx
diff --git a/sal/CustomTarget_sal_allheaders.mk b/sal/CustomTarget_sal_allheaders.mk
index 3beeb299093a..808f54feee3f 100644
--- a/sal/CustomTarget_sal_allheaders.mk
+++ b/sal/CustomTarget_sal_allheaders.mk
@@ -32,23 +32,18 @@ sal_allheaders_DIR := $(call gb_CustomTarget_get_workdir,sal/allheaders)
$(call gb_CustomTarget_get_target,sal/allheaders) : \
$(sal_allheaders_DIR)/sal_allheaders.hxx
-# dependency on Package_inc.mk should ensure this is updated whenever a new public header is added
-$(sal_allheaders_DIR)/sal_allheaders.hxx : $(SRCDIR)/sal/CustomTarget_sal_allheaders.mk \
- $(SRCDIR)/sal/Package_sal_odk_headers.mk \
- $(SRCDIR)/sal/Package_inc.mk \
+$(sal_allheaders_DIR)/sal_allheaders.hxx : \
+ $(call gb_Package_get_target,sal_odk_headers) \
| $(sal_allheaders_DIR)/.dir
$(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),ECH,1)
- printf '// Generated list of all sal/ includes\n' > $@
- printf '#ifdef WNT\n' >> $@
- printf '#include <windows.h>\n' >> $@
- printf '#endif\n' >> $@
- $(foreach file, $(wildcard $(SRCDIR)/sal/inc/*.h) $(wildcard $(SRCDIR)/sal/inc/*.hxx) \
- $(wildcard $(SRCDIR)/sal/inc/*/*.h) $(wildcard $(SRCDIR)/sal/inc/*/*.hxx) \
- $(wildcard $(SRCDIR)/sal/inc/*/*/*.h) $(wildcard $(SRCDIR)/sal/inc/*/*/*.hxx) \
- $(wildcard $(SRCDIR)/sal/inc/*/*/*/*.h) $(wildcard $(SRCDIR)/sal/inc/*/*/*/*.hxx), \
- $(if $(findstring /win32/, $(file)), printf '#ifdef WNT\n' >> $@ &&) \
- printf '#include <%s>\n' $(subst $(SRCDIR)/sal/inc/,,$(file)) >> $@ && \
- $(if $(findstring /win32/, $(file)), printf '#endif // WNT\n' >> $@ &&) \
- ) :
+ printf '// Generated list of sal includes\n' > $@ && \
+ printf '#ifdef WNT\n' >> $@ && \
+ printf '#include <windows.h>\n' >> $@ && \
+ printf '#endif\n' >> $@ \
+ $(foreach file,$(shell cat $^),\
+ $(if $(findstring /win32/,$(file)),&& printf '#ifdef WNT\n' >> $@) \
+ && printf '#include <%s>\n' $(subst $(INSTDIR)/$(gb_Package_SDKDIRNAME)/include/,,$(file)) >> $@ \
+ $(if $(findstring /win32/,$(file)),&& printf '#endif // WNT\n' >> $@) \
+ )
# vim: set noet sw=4 ts=4:
diff --git a/salhelper/CppunitTest_salhelper_checkapi.mk b/salhelper/CppunitTest_salhelper_checkapi.mk
index dd5a08e357d7..3fd31787da7a 100644
--- a/salhelper/CppunitTest_salhelper_checkapi.mk
+++ b/salhelper/CppunitTest_salhelper_checkapi.mk
@@ -33,11 +33,6 @@ $(eval $(call gb_CppunitTest_add_exception_objects,salhelper_checkapi,\
salhelper/qa/checkapi/strings \
))
-$(eval $(call gb_CppunitTest_set_include,salhelper_checkapi,\
- $$(INCLUDE) \
- -I$(SRCDIR)/salhelper/inc \
-))
-
# strings.cxx includes generated strings.hxx
$(call gb_CxxObject_get_target,salhelper/qa/checkapi/strings) : \
INCLUDE += -I$(call gb_CustomTarget_get_workdir,salhelper/allheaders)
diff --git a/salhelper/CustomTarget_salhelper_allheaders.mk b/salhelper/CustomTarget_salhelper_allheaders.mk
index fd2e8d076904..0415ccfd4022 100644
--- a/salhelper/CustomTarget_salhelper_allheaders.mk
+++ b/salhelper/CustomTarget_salhelper_allheaders.mk
@@ -32,21 +32,13 @@ salhelper_allheaders_DIR := $(call gb_CustomTarget_get_workdir,salhelper/allhead
$(call gb_CustomTarget_get_target,salhelper/allheaders) : \
$(salhelper_allheaders_DIR)/salhelper_allheaders.hxx
-# dependency on Package_salhelper_odk_headers.mk should ensure this is
-# updated whenever a new public header is added
$(salhelper_allheaders_DIR)/salhelper_allheaders.hxx : \
- $(SRCDIR)/salhelper/CustomTarget_salhelper_allheaders.mk \
- $(SRCDIR)/salhelper/Package_salhelper_odk_headers.mk \
+ $(call gb_Package_get_target,salhelper_odk_headers) \
| $(salhelper_allheaders_DIR)/.dir
$(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),ECH,1)
- printf '// Generated list of all salhelper/ includes\n' > $@
- $(foreach file, $(wildcard $(SRCDIR)/salhelper/inc/*.h) $(wildcard $(SRCDIR)/salhelper/inc/*.hxx) \
- $(wildcard $(SRCDIR)/salhelper/inc/*/*.h) $(wildcard $(SRCDIR)/salhelper/inc/*/*.hxx) \
- $(wildcard $(SRCDIR)/salhelper/inc/*/*/*.h) $(wildcard $(SRCDIR)/salhelper/inc/*/*/*.hxx) \
- $(wildcard $(SRCDIR)/salhelper/inc/*/*/*/*.h) $(wildcard $(SRCDIR)/salhelper/inc/*/*/*/*.hxx), \
- $(if $(findstring /win32/, $(file)), printf '#ifdef _WIN32\n' >> $@ &&) \
- printf '#include <%s>\n' $(subst $(SRCDIR)/salhelper/inc/,,$(file)) >> $@ && \
- $(if $(findstring /win32/, $(file)), printf '#endif // _WIN32\n' >> $@ &&) \
- ) :
+ printf '// Generated list of salhelper includes\n' > $@ \
+ $(foreach file,$(shell cat $<),\
+ && printf '#include <%s>\n' $(subst $(INSTDIR)/$(gb_Package_SDKDIRNAME)/include/,,$(file)) >> $@ \
+ )
# vim: set noet sw=4 ts=4: