diff options
author | Michael Stahl <mstahl@redhat.com> | 2013-02-26 23:25:41 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2013-02-27 01:33:18 +0100 |
commit | 308cac3f2328b6284f0d071ad21497a0db38aed0 (patch) | |
tree | b23ee31ad0795492802a1aab955f42b379679452 /sal | |
parent | 5e85d8406bbd069c022975ca4e1b7d74914062b5 (diff) |
sal: new ZipPackage_sal_odk_headers for public ODK headers
Change-Id: I76cb00121d7b4c21137be70ab7a5bd5389037302
Diffstat (limited to 'sal')
-rw-r--r-- | sal/CustomTarget_sal_allheaders.mk | 4 | ||||
-rw-r--r-- | sal/Library_sal.mk | 1 | ||||
-rw-r--r-- | sal/Module_sal.mk | 3 | ||||
-rw-r--r-- | sal/Package_inc.mk | 78 | ||||
-rw-r--r-- | sal/StaticLibrary_salcpprt.mk | 2 | ||||
-rw-r--r-- | sal/ZipPackage_sal_generated.mk (renamed from sal/Package_generated.mk) | 6 | ||||
-rw-r--r-- | sal/ZipPackage_sal_odk_headers.mk | 102 |
7 files changed, 112 insertions, 84 deletions
diff --git a/sal/CustomTarget_sal_allheaders.mk b/sal/CustomTarget_sal_allheaders.mk index dfef1eadb010..337456844d5e 100644 --- a/sal/CustomTarget_sal_allheaders.mk +++ b/sal/CustomTarget_sal_allheaders.mk @@ -34,7 +34,9 @@ $(call gb_CustomTarget_get_target,sal/allheaders) : \ # 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 \ - | $(sal_allheaders_DIR)/.dir $(SRCDIR)/sal/Package_inc.mk + $(SRCDIR)/sal/ZipPackage_sal_odk_headers.mk \ + $(SRCDIR)/sal/Package_inc.mk \ + | $(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' >> $@ diff --git a/sal/Library_sal.mk b/sal/Library_sal.mk index 62f9ce3f3a11..0d19b3f70182 100644 --- a/sal/Library_sal.mk +++ b/sal/Library_sal.mk @@ -33,6 +33,7 @@ $(eval $(call gb_Library_set_precompiled_header,sal,$(SRCDIR)/sal/inc/pch/precom $(eval $(call gb_Library_use_packages,sal,\ sal_generated \ + sal_odk_headers \ sal_inc \ )) diff --git a/sal/Module_sal.mk b/sal/Module_sal.mk index 7d20fa388992..b683275eb06b 100644 --- a/sal/Module_sal.mk +++ b/sal/Module_sal.mk @@ -41,8 +41,9 @@ $(eval $(call gb_Module_add_targets,sal,\ $(if $(filter $(OS),WNT), \ Library_uwinapi) \ Package_inc \ - Package_generated \ StaticLibrary_salcpprt \ + ZipPackage_sal_generated \ + ZipPackage_sal_odk_headers \ )) ifneq (,$(filter DESKTOP,$(BUILD_TYPE))) diff --git a/sal/Package_inc.mk b/sal/Package_inc.mk index 15fb47717d35..613cf261d847 100644 --- a/sal/Package_inc.mk +++ b/sal/Package_inc.mk @@ -28,89 +28,11 @@ $(eval $(call gb_Package_Package,sal_inc,$(SRCDIR)/sal/inc)) $(eval $(call gb_Package_add_file,sal_inc,inc/protectorfactory.hxx,cppunittester/protectorfactory.hxx)) -$(eval $(call gb_Package_add_file,sal_inc,inc/osl/conditn.h,osl/conditn.h)) -$(eval $(call gb_Package_add_file,sal_inc,inc/osl/conditn.hxx,osl/conditn.hxx)) -$(eval $(call gb_Package_add_file,sal_inc,inc/osl/diagnose.h,osl/diagnose.h)) -$(eval $(call gb_Package_add_file,sal_inc,inc/osl/diagnose.hxx,osl/diagnose.hxx)) -$(eval $(call gb_Package_add_file,sal_inc,inc/osl/doublecheckedlocking.h,osl/doublecheckedlocking.h)) -$(eval $(call gb_Package_add_file,sal_inc,inc/osl/endian.h,osl/endian.h)) -$(eval $(call gb_Package_add_file,sal_inc,inc/osl/file.h,osl/file.h)) -$(eval $(call gb_Package_add_file,sal_inc,inc/osl/file.hxx,osl/file.hxx)) -$(eval $(call gb_Package_add_file,sal_inc,inc/osl/getglobalmutex.hxx,osl/getglobalmutex.hxx)) -$(eval $(call gb_Package_add_file,sal_inc,inc/osl/interlck.h,osl/interlck.h)) -$(eval $(call gb_Package_add_file,sal_inc,inc/osl/module.h,osl/module.h)) -$(eval $(call gb_Package_add_file,sal_inc,inc/osl/module.hxx,osl/module.hxx)) -$(eval $(call gb_Package_add_file,sal_inc,inc/osl/mutex.h,osl/mutex.h)) -$(eval $(call gb_Package_add_file,sal_inc,inc/osl/mutex.hxx,osl/mutex.hxx)) -$(eval $(call gb_Package_add_file,sal_inc,inc/osl/nlsupport.h,osl/nlsupport.h)) -$(eval $(call gb_Package_add_file,sal_inc,inc/osl/pipe_decl.hxx,osl/pipe_decl.hxx)) -$(eval $(call gb_Package_add_file,sal_inc,inc/osl/pipe.h,osl/pipe.h)) -$(eval $(call gb_Package_add_file,sal_inc,inc/osl/pipe.hxx,osl/pipe.hxx)) -$(eval $(call gb_Package_add_file,sal_inc,inc/osl/process.h,osl/process.h)) -$(eval $(call gb_Package_add_file,sal_inc,inc/osl/profile.h,osl/profile.h)) -$(eval $(call gb_Package_add_file,sal_inc,inc/osl/profile.hxx,osl/profile.hxx)) -$(eval $(call gb_Package_add_file,sal_inc,inc/osl/security_decl.hxx,osl/security_decl.hxx)) -$(eval $(call gb_Package_add_file,sal_inc,inc/osl/security.h,osl/security.h)) -$(eval $(call gb_Package_add_file,sal_inc,inc/osl/security.hxx,osl/security.hxx)) -$(eval $(call gb_Package_add_file,sal_inc,inc/osl/signal.h,osl/signal.h)) -$(eval $(call gb_Package_add_file,sal_inc,inc/osl/socket_decl.hxx,osl/socket_decl.hxx)) -$(eval $(call gb_Package_add_file,sal_inc,inc/osl/socket.h,osl/socket.h)) -$(eval $(call gb_Package_add_file,sal_inc,inc/osl/socket.hxx,osl/socket.hxx)) -$(eval $(call gb_Package_add_file,sal_inc,inc/osl/thread.h,osl/thread.h)) -$(eval $(call gb_Package_add_file,sal_inc,inc/osl/thread.hxx,osl/thread.hxx)) -$(eval $(call gb_Package_add_file,sal_inc,inc/osl/time.h,osl/time.h)) -$(eval $(call gb_Package_add_file,sal_inc,inc/osl/util.h,osl/util.h)) $(eval $(call gb_Package_add_file,sal_inc,inc/osl/detail/file.h,osl/detail/file.h)) $(eval $(call gb_Package_add_file,sal_inc,inc/osl/detail/android-bootstrap.h,osl/detail/android-bootstrap.h)) $(eval $(call gb_Package_add_file,sal_inc,inc/osl/detail/ios-bootstrap.h,osl/detail/ios-bootstrap.h)) $(eval $(call gb_Package_add_file,sal_inc,inc/osl/detail/component-mapping.h,osl/detail/component-mapping.h)) -$(eval $(call gb_Package_add_file,sal_inc,inc/rtl/allocator.hxx,rtl/allocator.hxx)) -$(eval $(call gb_Package_add_file,sal_inc,inc/rtl/alloc.h,rtl/alloc.h)) -$(eval $(call gb_Package_add_file,sal_inc,inc/rtl/bootstrap.h,rtl/bootstrap.h)) -$(eval $(call gb_Package_add_file,sal_inc,inc/rtl/bootstrap.hxx,rtl/bootstrap.hxx)) -$(eval $(call gb_Package_add_file,sal_inc,inc/rtl/byteseq.h,rtl/byteseq.h)) -$(eval $(call gb_Package_add_file,sal_inc,inc/rtl/byteseq.hxx,rtl/byteseq.hxx)) -$(eval $(call gb_Package_add_file,sal_inc,inc/rtl/cipher.h,rtl/cipher.h)) -$(eval $(call gb_Package_add_file,sal_inc,inc/rtl/crc.h,rtl/crc.h)) -$(eval $(call gb_Package_add_file,sal_inc,inc/rtl/digest.h,rtl/digest.h)) -$(eval $(call gb_Package_add_file,sal_inc,inc/rtl/instance.hxx,rtl/instance.hxx)) -$(eval $(call gb_Package_add_file,sal_inc,inc/rtl/locale.h,rtl/locale.h)) -$(eval $(call gb_Package_add_file,sal_inc,inc/rtl/logfile.h,rtl/logfile.h)) -$(eval $(call gb_Package_add_file,sal_inc,inc/rtl/logfile.hxx,rtl/logfile.hxx)) -$(eval $(call gb_Package_add_file,sal_inc,inc/rtl/malformeduriexception.hxx,rtl/malformeduriexception.hxx)) -$(eval $(call gb_Package_add_file,sal_inc,inc/rtl/math.h,rtl/math.h)) -$(eval $(call gb_Package_add_file,sal_inc,inc/rtl/math.hxx,rtl/math.hxx)) -$(eval $(call gb_Package_add_file,sal_inc,inc/rtl/process.h,rtl/process.h)) -$(eval $(call gb_Package_add_file,sal_inc,inc/rtl/random.h,rtl/random.h)) -$(eval $(call gb_Package_add_file,sal_inc,inc/rtl/ref.hxx,rtl/ref.hxx)) -$(eval $(call gb_Package_add_file,sal_inc,inc/rtl/strbuf.h,rtl/strbuf.h)) -$(eval $(call gb_Package_add_file,sal_inc,inc/rtl/strbuf.hxx,rtl/strbuf.hxx)) -$(eval $(call gb_Package_add_file,sal_inc,inc/rtl/string.h,rtl/string.h)) -$(eval $(call gb_Package_add_file,sal_inc,inc/rtl/string.hxx,rtl/string.hxx)) -$(eval $(call gb_Package_add_file,sal_inc,inc/rtl/stringconcat.hxx,rtl/stringconcat.hxx)) -$(eval $(call gb_Package_add_file,sal_inc,inc/rtl/stringutils.hxx,rtl/stringutils.hxx)) -$(eval $(call gb_Package_add_file,sal_inc,inc/rtl/tencinfo.h,rtl/tencinfo.h)) -$(eval $(call gb_Package_add_file,sal_inc,inc/rtl/textcvt.h,rtl/textcvt.h)) -$(eval $(call gb_Package_add_file,sal_inc,inc/rtl/textenc.h,rtl/textenc.h)) -$(eval $(call gb_Package_add_file,sal_inc,inc/rtl/unload.h,rtl/unload.h)) -$(eval $(call gb_Package_add_file,sal_inc,inc/rtl/uri.h,rtl/uri.h)) -$(eval $(call gb_Package_add_file,sal_inc,inc/rtl/uri.hxx,rtl/uri.hxx)) -$(eval $(call gb_Package_add_file,sal_inc,inc/rtl/ustrbuf.h,rtl/ustrbuf.h)) -$(eval $(call gb_Package_add_file,sal_inc,inc/rtl/ustrbuf.hxx,rtl/ustrbuf.hxx)) -$(eval $(call gb_Package_add_file,sal_inc,inc/rtl/ustring.h,rtl/ustring.h)) -$(eval $(call gb_Package_add_file,sal_inc,inc/rtl/ustring.hxx,rtl/ustring.hxx)) -$(eval $(call gb_Package_add_file,sal_inc,inc/rtl/uuid.h,rtl/uuid.h)) -$(eval $(call gb_Package_add_file,sal_inc,inc/sal/alloca.h,sal/alloca.h)) -$(eval $(call gb_Package_add_file,sal_inc,inc/sal/ByteBufferWrapper.hxx,sal/ByteBufferWrapper.hxx)) -$(eval $(call gb_Package_add_file,sal_inc,inc/sal/config.h,sal/config.h)) $(eval $(call gb_Package_add_file,sal_inc,inc/sal/log-areas.dox,sal/log-areas.dox)) -$(eval $(call gb_Package_add_file,sal_inc,inc/sal/log.hxx,sal/log.hxx)) -$(eval $(call gb_Package_add_file,sal_inc,inc/sal/macros.h,sal/macros.h)) -$(eval $(call gb_Package_add_file,sal_inc,inc/sal/main.h,sal/main.h)) -$(eval $(call gb_Package_add_file,sal_inc,inc/sal/mathconf.h,sal/mathconf.h)) -$(eval $(call gb_Package_add_file,sal_inc,inc/sal/saldllapi.h,sal/saldllapi.h)) -$(eval $(call gb_Package_add_file,sal_inc,inc/sal/types.h,sal/types.h)) -$(eval $(call gb_Package_add_file,sal_inc,inc/sal/detail/log.h,sal/detail/log.h)) $(eval $(call gb_Package_add_file,sal_inc,inc/systools/win32/comptr.hxx,systools/win32/comptr.hxx)) $(eval $(call gb_Package_add_file,sal_inc,inc/systools/win32/comtools.hxx,systools/win32/comtools.hxx)) $(eval $(call gb_Package_add_file,sal_inc,inc/systools/win32/qswin32.h,systools/win32/qswin32.h)) diff --git a/sal/StaticLibrary_salcpprt.mk b/sal/StaticLibrary_salcpprt.mk index f86043de65a2..51e76b29c8f0 100644 --- a/sal/StaticLibrary_salcpprt.mk +++ b/sal/StaticLibrary_salcpprt.mk @@ -29,7 +29,7 @@ $(eval $(call gb_StaticLibrary_StaticLibrary,salcpprt)) $(eval $(call gb_StaticLibrary_use_packages,salcpprt,\ sal_generated \ - sal_inc \ + sal_odk_headers \ )) $(eval $(call gb_StaticLibrary_add_defs,salcpprt, \ diff --git a/sal/Package_generated.mk b/sal/ZipPackage_sal_generated.mk index 5bc43dc5412d..dd9af97e6b84 100644 --- a/sal/Package_generated.mk +++ b/sal/ZipPackage_sal_generated.mk @@ -25,12 +25,12 @@ # in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable # instead of those above. -$(eval $(call gb_Package_Package,sal_generated,$(call gb_CustomTarget_get_workdir,sal/generated))) +$(eval $(call gb_ZipPackage_ZipPackage,sal_generated,$(call gb_CustomTarget_get_workdir,sal/generated))) -$(eval $(call gb_Package_add_file,sal_generated,inc/sal/udkversion.h,sal/udkversion.h)) +$(eval $(call gb_ZipPackage_add_files,sal_generated,inc/sal,include/sal,sal/udkversion.h)) ifneq ($(COM),MSC) -$(eval $(call gb_Package_add_file,sal_generated,inc/sal/typesizes.h,sal/typesizes.h)) +$(eval $(call gb_ZipPackage_add_files,sal_generated,inc/sal,include/sal,sal/typesizes.h)) endif # vim: set noet sw=4 ts=4: diff --git a/sal/ZipPackage_sal_odk_headers.mk b/sal/ZipPackage_sal_odk_headers.mk new file mode 100644 index 000000000000..56c9d881e216 --- /dev/null +++ b/sal/ZipPackage_sal_odk_headers.mk @@ -0,0 +1,102 @@ +# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*- +# +# This file is part of the LibreOffice project. +# +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. +# + +$(eval $(call gb_ZipPackage_ZipPackage,sal_odk_headers,$(SRCDIR)/sal/inc)) + +$(eval $(call gb_ZipPackage_add_files,sal_odk_headers,inc/sal,include/sal,\ + sal/alloca.h \ + sal/ByteBufferWrapper.hxx \ + sal/config.h \ + sal/log.hxx \ + sal/macros.h \ + sal/main.h \ + sal/mathconf.h \ + sal/saldllapi.h \ + sal/types.h \ +)) + +$(eval $(call gb_ZipPackage_add_files,sal_odk_headers,inc/sal/detail,include/sal/detail,\ + sal/detail/log.h \ +)) + +$(eval $(call gb_ZipPackage_add_files,sal_odk_headers,inc/rtl,include/rtl,\ + rtl/allocator.hxx \ + rtl/alloc.h \ + rtl/bootstrap.h \ + rtl/bootstrap.hxx \ + rtl/byteseq.h \ + rtl/byteseq.hxx \ + rtl/cipher.h \ + rtl/crc.h \ + rtl/digest.h \ + rtl/instance.hxx \ + rtl/locale.h \ + rtl/logfile.h \ + rtl/logfile.hxx \ + rtl/malformeduriexception.hxx \ + rtl/math.h \ + rtl/math.hxx \ + rtl/process.h \ + rtl/random.h \ + rtl/ref.hxx \ + rtl/strbuf.h \ + rtl/strbuf.hxx \ + rtl/string.h \ + rtl/string.hxx \ + rtl/stringconcat.hxx \ + rtl/stringutils.hxx \ + rtl/tencinfo.h \ + rtl/textcvt.h \ + rtl/textenc.h \ + rtl/unload.h \ + rtl/uri.h \ + rtl/uri.hxx \ + rtl/ustrbuf.h \ + rtl/ustrbuf.hxx \ + rtl/ustring.h \ + rtl/ustring.hxx \ + rtl/uuid.h \ +)) + +$(eval $(call gb_ZipPackage_add_files,sal_odk_headers,inc/osl,include/osl,\ + osl/conditn.h \ + osl/conditn.hxx \ + osl/diagnose.h \ + osl/diagnose.hxx \ + osl/doublecheckedlocking.h \ + osl/endian.h \ + osl/file.h \ + osl/file.hxx \ + osl/getglobalmutex.hxx \ + osl/interlck.h \ + osl/module.h \ + osl/module.hxx \ + osl/mutex.h \ + osl/mutex.hxx \ + osl/nlsupport.h \ + osl/pipe_decl.hxx \ + osl/pipe.h \ + osl/pipe.hxx \ + osl/process.h \ + osl/profile.h \ + osl/profile.hxx \ + osl/security_decl.hxx \ + osl/security.h \ + osl/security.hxx \ + osl/signal.h \ + osl/socket_decl.hxx \ + osl/socket.h \ + osl/socket.hxx \ + osl/thread.h \ + osl/thread.hxx \ + osl/time.h \ + osl/util.h \ +)) + +# vim: set noet sw=4 ts=4: |