Kaydet (Commit) 613221bd authored tarafından Peter Foley's avatar Peter Foley

convert odk to gbuild and add to tail_build

Change-Id: I8e8de7f2bb87cce7916c7c2df24c1b0ddaea55c0
Reviewed-on: https://gerrit.libreoffice.org/2288Reviewed-by: 's avatarPeter Foley <pefoley2@verizon.net>
Tested-by: 's avatarPeter Foley <pefoley2@verizon.net>
üst 5003ab57
......@@ -132,6 +132,7 @@ $(eval $(call gb_Module_add_moduledirs,tail_build,\
$(call gb_Helper_optional,NLPSOLVER,nlpsolver) \
np_sdk \
o3tl \
$(call gb_Helper_optional,ODK,odk) \
offapi \
officecfg \
oovbaapi \
......
......@@ -73,6 +73,7 @@ $(eval $(call gb_Helper_register_executables,NONE, \
uiex \
ulfconv \
ulfex \
$(call gb_Helper_optional,ODK,unoapploader) \
xpdfimport \
xrmex \
))
......@@ -542,6 +543,7 @@ $(eval $(call gb_Helper_register_libraries,PLAINLIBS_OOO, \
so_activex_x64 \
sysdtrans \
thidxmsi \
unowinreg \
))
endif
......
......@@ -140,6 +140,7 @@ $(eval $(call gb_Module_add_moduledirs,ooo,\
$(call gb_Helper_optional,NLPSOLVER,nlpsolver) \
np_sdk \
o3tl \
$(call gb_Helper_optional,ODK,odk) \
offapi \
officecfg \
oovbaapi \
......
# -*- 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_CustomTarget_CustomTarget,odk/odkcommon/docs/common/ref))
odkcommon_ZIPLIST += docs/common/ref
$(eval $(call gb_CustomTarget_register_target,odk/odkcommon/docs/common/ref,module-ix.html))
$(odk_WORKDIR)/docs/common/ref/module-ix.html: $(SRCDIR)/odk/pack/copying/idl_chapter_refs.txt \
$(SRCDIR)/odk/docs/common/ref/idl.css $(call gb_UnoApi_get_target,offapi) \
$(call gb_Executable_get_target,autodoc)
$(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),AUD,1)
$(call gb_Executable_get_target,autodoc) -html $(dir $@) \
-dvgroot "http://wiki.services.openoffice.org/wiki" \
-name "LibreOffice $(PRODUCTVERSION) API" \
-lg idl -dvgfile $< -t $(OUTDIR)/idl
# vim: set noet sw=4 ts=4:
# -*- 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_CustomTarget_CustomTarget,odk/odkcommon/bin))
odk_EXELIST := cppumaker \
regcompare \
idlc \
javamaker \
autodoc \
unoapploader \
uno-skeletonmaker \
$(if $(SYSTEM_UCPP),,ucpp) \
$(if $(filter WNT,$(OS)),climaker)
define odk_exe
odkcommon_ZIPLIST += bin/$(1)$(gb_Executable_EXT)
$(call gb_CustomTarget_get_target,odk/odkcommon/bin): $(odk_WORKDIR)/bin/$(1)$(gb_Executable_EXT)
$(odk_WORKDIR)/bin/$(1)$(gb_Executable_EXT): $(call gb_Executable_get_target,$(1))
mkdir -p $$(dir $$@)
$$(call gb_Output_announce,$$(subst $$(WORKDIR)/,,$$@),build,CPY,1)
cp $$< $$@
endef
$(foreach exe,$(odk_EXELIST),$(eval $(call odk_exe,$(exe))))
ifeq ($(OS),MACOSX)
odkcommon_ZIPLIST += bin/addsym-macosx.sh
$(eval $(call gb_CustomTarget_register_target,odk/odkcommon/bin,addsym-macosx.sh))
$(odk_WORKDIR)/bin/addsym-macosx.sh: $(SRCDIR)/odk/pack/copying/addsym-macosx.sh
$(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),build,CPY,1)
cp $< $@
chmod 755 $@
endif
# vim: set noet sw=4 ts=4:
# -*- 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_CustomTarget_CustomTarget,odk/check))
$(eval $(call gb_CustomTarget_register_targets,odk/check,\
checkbin \
checkinc \
checkidl \
))
odk_PLATFORM := $(if $(filter WNT,$(OS)),\
$(if $(filter GCC,$(COM)),mingw,windows),\
$(if $(filter SOLARIS,$(OS)),\
$(if $(filter SPARC,$(CPUNAME)),solsparc,\
$(if $(filter U,$(CPU)),solsparc64,solintel)),\
$(if $(filter LINUX,$(OS)),linux,\
$(if $(filter NETBSD,$(OS)),netbsd,\
$(if $(filter FREEBSD,$(OS)),freebsd,\
$(if $(filter DRAGONFLY,$(OS)),dragonfly,\
$(if $(filter MACOSX,$(OS)),macosx,\
$(if $(filter AIX,$(OS)),aix))))))))
$(call gb_CustomTarget_get_workdir,odk/check)/checkbin: $(SRCDIR)/odk/util/check.pl $(call gb_CustomTarget_get_target,odk/odkcommon)
$(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),CHK,1)
touch $@
$(PERL) $< $(call gb_CustomTarget_get_workdir,odk/odkcommon) \
$(odk_PLATFORM) "$(gb_Exectable_EXT)" $@
cat $@
$(call gb_CustomTarget_get_workdir,odk/check)/checkidl: $(SRCDIR)/odk/util/checkdiff.pl $(call gb_CustomTarget_get_target,odk/odkcommon)
$(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),CHK,1)
touch $@
diff -br $(call gb_CustomTarget_get_workdir,odk/odkcommon) $(OUTDIR)/idl \
2>&1 | $(PERL) $< $@
cat $@
$(call gb_CustomTarget_get_workdir,odk/check)/checkinc: $(SRCDIR)/odk/util/checkdiff.pl $(call gb_CustomTarget_get_target,odk/odkcommon)
$(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),CHK,1)
touch $@
diff -br $(call gb_CustomTarget_get_workdir,odk/odkcommon)/include/osl \ $(OUTDIR)/inc/osl 2>&1 | $(PERL) $< $@
diff -br $(call gb_CustomTarget_get_workdir,odk/odkcommon)/include/sal \ $(OUTDIR)/inc/sal 2>&1 | $(PERL) $< $@
diff -br $(call gb_CustomTarget_get_workdir,odk/odkcommon)/include/store \ $(OUTDIR)/inc/store 2>&1 | $(PERL) $< $@
diff -br $(call gb_CustomTarget_get_workdir,odk/odkcommon)/include/typelib \ $(OUTDIR)/inc/typelib 2>&1 | $(PERL) $< $@
diff -br $(call gb_CustomTarget_get_workdir,odk/odkcommon)/include/uno \ $(OUTDIR)/inc/uno 2>&1 | $(PERL) $< $@
diff -br $(call gb_CustomTarget_get_workdir,odk/odkcommon)/include/bridges \ $(OUTDIR)/inc/bridges 2>&1 | $(PERL) $< $@
diff -br $(call gb_CustomTarget_get_workdir,odk/odkcommon)/include/cppu \ $(OUTDIR)/inc/cppu 2>&1 | $(PERL) $< $@
diff -br $(call gb_CustomTarget_get_workdir,odk/odkcommon)/include/com/sun/star/uno \ $(OUTDIR)/inc/com/sun/star/uno 2>&1 | $(PERL) $< $@
diff -br $(call gb_CustomTarget_get_workdir,odk/odkcommon)/include/cppuhelper \ $(OUTDIR)/inc/cppuhelper 2>&1 | $(PERL) $< $@
diff -br $(call gb_CustomTarget_get_workdir,odk/odkcommon)/include/osl \ $(OUTDIR)/inc/osl 2>&1 | $(PERL) $< $@
cat $@
# vim: set noet sw=4 ts=4:
# -*- 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_CustomTarget_CustomTarget,odk/odkcommon/classes))
$(eval $(call gb_JavaClassSet_JavaClassSet,loader))
$(eval $(call gb_JavaClassSet_add_sourcefiles,loader,\
odk/source/com/sun/star/lib/loader/Loader \
odk/source/com/sun/star/lib/loader/InstallationFinder \
odk/source/com/sun/star/lib/loader/WinRegKey \
odk/source/com/sun/star/lib/loader/WinRegKeyException \
))
odkcommon_ZIPLIST += classes/com/sun/star/lib/loader
$(call gb_CustomTarget_get_target,odk/odkcommon/classes): $(odk_WORKDIR)/classes/java.done
$(odk_WORKDIR)/classes/java.done: $(call gb_JavaClassSet_get_target,loader)
mkdir -p $(dir $@)
$(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),build,CPY,1)
cp -a $(call gb_JavaClassSet_get_classdir,loader)/com $(dir $@)
touch $@
odkcommon_ZIPLIST += classes/win/unowinreg.dll
$(eval $(call gb_CustomTarget_register_target,odk/odkcommon/classes,win/unowinreg.dll))
$(odk_WORKDIR)/classes/win/unowinreg.dll: $(call gb_CustomTarget_get_workdir,odk/unowinreg)/unowinreg.dll
mkdir -p $(dir $@)
$(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),build,CPY,1)
cp $< $@
# vim: set noet sw=4 ts=4:
# -*- 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_CustomTarget_CustomTarget,odk/odkcommon/cli))
odk_CLILIST := cli_basetypes.dll \
cli_uretypes.dll \
cli_oootypes.dll \
cli_ure.dll \
cli_cppuhelper.dll
define odk_cli
odkcommon_ZIPLIST += cli/$(1)
$(call gb_CustomTarget_get_target,odk/odkcommon/cli): $(odk_WORKDIR)/cli/$(1)
$(odk_WORKDIR)/cli/$(1): $(call gb_CliAssembly_get_target,$(1))
mkdir -p $$(dir $$@)
$$(call gb_Output_announce,$$(subst $$(WORKDIR)/,,$$@),build,CPY,1)
cp $$< $$@
endef
$(foreach cli,$(odk_CLILIST),$(eval $(call odk_cli,$(cli))))
# vim: set noet sw=4 ts=4:
# -*- 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_CustomTarget_CustomTarget,odk/odkcommon/docs/cpp/ref))
odkcommon_ZIPLIST += docs/cpp/ref
CPPDOCREFNAME := "UDK $(UDK_MAJOR).$(UDK_MINOR).$(UDK_MICRO) C/C++ API Reference"
# Cygwin Doxygen needs unix paths
DOXY_INPUT := $(docu_SRCDIR)/main.dox $(addprefix $(OUTDIR)/inc/,$(odk_INCDIRLIST) $(odk_INCFILELIST))
DOXY_INPUT := $(if $(filter WNT,$(OS)),$(shell cygpath -u $(DOXY_INPUT)),$(DOXY_INPUT))
DOXY_WORKDIR := $(if $(filter WNT,$(OS)),$(shell cygpath -u $(odk_WORKDIR)/docs/cpp/ref),$(odk_WORKDIR)/docs/cpp/ref)
DOXY_STRIP_PATH := $(if $(filter WNT,$(OS)),$(shell cygpath -u $(OUTDIR)/inc),$(OUTDIR)/inc)
DOXY_DEPS := $(SRCDIR)/odk/pack/gendocu/Doxyfile \
$(SRCDIR)/odk/pack/gendocu/main.dox \
$(call gb_Package_get_target,sal_inc) \
$(call gb_Package_get_target,salhelper_inc) \
$(call gb_Package_get_target,cppu_inc) \
$(call gb_Package_get_target,cppuhelper_inc) \
$(call gb_Package_get_target,store_inc) \
$(call gb_Package_get_target,registry_inc)
$(eval $(call gb_CustomTarget_register_target,odk/odkcommon/docs/cpp/ref,index.html))
$(odk_WORKDIR)/docs/cpp/ref/index.html: $(DOXY_DEPS)
$(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),GEN,1)
sed -e 's!^INPUT = %$$!INPUT = $(DOXY_INPUT)!' \
-e 's!^OUTPUT_DIRECTORY = %$$!OUTPUT_DIRECTORY = $(DOXY_WORKDIR)!' \
-e 's!^PROJECT_BRIEF = %$$!PROJECT_BRIEF = $(CPPDOCREFNAME)!' \
-e 's!^QUIET = %$$!QUIET = $(if $(VERBOSE),YES,NO)!' \
-e 's!^STRIP_FROM_PATH = %$$!STRIP_FROM_PATH = $(DOXY_STRIP_PATH)!' \
$< > $(odk_WORKDIR)/Doxyfile
$(DOXYGEN) $(odk_WORKDIR)/Doxyfile
# vim: set noet sw=4 ts=4:
# -*- 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_CustomTarget_CustomTarget,odk/odkcommon/idl))
# FIXME: should be pulled in from offapi/udkapi
odk_IDLLIST := $(subst $(OUTDIR)/idl/,,$(shell find $(OUTDIR)/idl/com -type f))
define odk_idl
odkcommon_ZIPLIST += idl/$(1)
$(call gb_CustomTarget_get_target,odk/odkcommon/idl): $(odk_WORKDIR)/idl/$(1)
$(odk_WORKDIR)/idl/$(1): $(OUTDIR)/idl/$(1)
mkdir -p $$(dir $$@)
$$(call gb_Output_announce,$$(subst $$(WORKDIR)/,,$$@),build,CPY,1)
cp $$< $$@
endef
$(foreach idl,$(odk_IDLLIST),$(eval $(call odk_idl,$(idl))))
# vim: set noet sw=4 ts=4:
# -*- 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/.
#
include $(SRCDIR)/solenv/inc/udkversion.mk
odk_INCDIRLIST := sal salhelper rtl osl store typelib uno cppu cppuhelper \
registry $(if $(filter WNT,$(OS)),systools)
odk_INCFILELIST := com/sun/star/uno/Any.h \
com/sun/star/uno/Any.hxx \
com/sun/star/uno/genfunc.h \
com/sun/star/uno/genfunc.hxx \
com/sun/star/uno/Reference.h \
com/sun/star/uno/Reference.hxx \
com/sun/star/uno/Sequence.h \
com/sun/star/uno/Sequence.hxx \
com/sun/star/uno/Type.h \
com/sun/star/uno/Type.hxx
odk_INCLIST := $(subst $(OUTDIR)/inc/,,$(shell find \
$(foreach dir,$(odk_INCDIRLIST),$(OUTDIR)/inc/$(dir)) -type f)) \
$(odk_INCFILELIST)
define odk_inc
odkcommon_ZIPLIST += include/$(1)
$(call gb_CustomTarget_get_target,odk/odkcommon): $(odk_WORKDIR)/include/$(1)
$(odk_WORKDIR)/include/$(1): $(foreach dir,$(odk_INCDIRLIST),$(call gb_Package_get_target,$(dir)_inc))
mkdir -p $$(dir $$@)
$$(call gb_Output_announce,$$(subst $$(WORKDIR)/,,$$@),build,CPY,1)
cp $$< $$@
endef
$(foreach inc,$(odk_INCLIST),$(eval $(call odk_inc,$(inc))))
odkcommon_ZIPLIST += include/udkversion.mk
$(eval $(call gb_CustomTarget_register_target,odk/odkcommon,include/udkversion.mk))
$(odk_WORKDIR)/include/udkversion.mk:
$(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),ECH,1)
echo "#UDK version number" > $@
echo "#major" >>$@
echo "UDK_MAJOR=$(UDK_MAJOR)" >> $@
echo "#minor" >>$@
echo "UDK_MINOR=$(UDK_MINOR)" >> $@
echo "#micro" >>$@
echo "UDK_MICRO=$(UDK_MICRO)" >> $@
# vim: set noet sw=4 ts=4:
# -*- 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_CustomTarget_CustomTarget,odk/odkcommon/docs/java/ref))
odkcommon_ZIPLIST += docs/java/ref
JAVADOCREFNAME := "UDK $(UDK_MAJOR).$(UDK_MINOR).$(UDK_MICRO) Java API Reference"
odk_JAVAPACKAGES := com.sun.star.comp.helper \
com.sun.star.lib.uno.helper \
com.sun.star.lib.unoloader \
com.sun.star.uno \
$(odk_WORKDIR)/java_src/com/sun/star/lib/util/UrlToFileMapper.java
$(eval $(call gb_CustomTarget_register_target,odk/odkcommon/docs/java/ref,index.html))
$(odk_WORKDIR)/docs/java/ref/index.html: $(call gb_Jar_get_target,ridl)
$(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),JDC,1)
$(JAVADOC) -J-Xmx120m -use -splitindex \
-windowtitle "Java UNO Runtime Reference" \
-header $(JAVADOCREFNAME) -d $(dir $@) \
-sourcepath $(odk_WORKDIR)/java_src \
-classpath $(OUTDIR)/bin/ridl.jar \
-linkoffline ../../common/reg ./uno \
-linkoffline http://java.sun.com/j2se/1.5/docs/api ./java \
$(odk_JAVAPACKAGES) \
$(if $(JAVADOCISGJDOC),,-notimestamp) \
> $(odk_WORKDIR)/javadoc_log.txt
odk_JAVASRCLIST := juh_src \
jurt_src \
ridl_src \
unoloader_src
define odk_jsrc
$(odk_WORKDIR)/docs/java/ref/index.html: $(odk_WORKDIR)/java_src/$(1).done
$(odk_WORKDIR)/java_src/$(1).done: $(call gb_Zip_get_target,$(1))
$$(call gb_Output_announce,$$(subst $(WORKDIR)/,,$$@),build,UNZ,1)
unzip -quo $$< -d $$(dir $$@)
touch $$@
endef
$(foreach src,$(odk_JAVASRCLIST),$(eval $(call odk_jsrc,$(src))))
# vim: set noet sw=4 ts=4:
# -*- 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_CustomTarget_CustomTarget,odk/odkcommon/lib))
define odk_lib
odkcommon_ZIPLIST += lib/$(1)
$(call gb_CustomTarget_get_target,odk/odkcommon/lib): $(odk_WORKDIR)/lib/$(1)
$(odk_WORKDIR)/lib/$(1): $(call gb_Library_get_target,$(1))
mkdir -p $$(dir $$@)
$$(call gb_Output_announce,$$(subst $$(WORKDIR)/,,$$@),build,CPY,1)
cp $$< $$@
endef
ifeq ($(COM),MSC)
odk_LIBLIST := store \
reg \
sal \
salhelper \
cppu \
cppuhelper \
purpenvhelper
$(foreach lib,$(odk_LIBLIST),$(eval $(call odk_lib,$(lib))))
else ifeq ($(OS),LINUX)
odkcommon_ZIPLIST += lib/libsalcpprt.a
$(eval $(call gb_CustomTarget_register_target,odk/odkcommon/lib,libsalcpprt.a))
$(odk_WORKDIR)/lib/libsalcpprt.a: $(call gb_StaticLibrary_get_target,salcpprt)
mkdir -p $(dir $@)
$(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),build,CPY,1)
cp $< $@
endif
# vim: set noet sw=4 ts=4:
# -*- 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/.
#
odk_WORKDIR := $(call gb_CustomTarget_get_workdir,odk/odkcommon)
odkcommon_ZIPLIST :=
$(eval $(call gb_CustomTarget_CustomTarget,odk/odkcommon))
$(call gb_CustomTarget_get_target,odk/odkcommon): \
$(if $(DOXYGEN),$(call gb_CustomTarget_get_target,odk/odkcommon/docs/cpp/ref)) \
$(if $(SOLAR_JAVA),$(call gb_CustomTarget_get_target,odk/odkcommon/docs/java/ref)) \
$(call gb_CustomTarget_get_target,odk/odkcommon/docs/common/ref) \
$(call gb_CustomTarget_get_target,odk/odkcommon/settings) \
$(call gb_CustomTarget_get_target,odk/odkcommon/classes) \
$(call gb_CustomTarget_get_target,odk/odkcommon/bin) \
$(call gb_CustomTarget_get_target,odk/odkcommon/lib) \
$(call gb_CustomTarget_get_target,odk/odkcommon/idl) \
$(if $(filter MSC,$(COM)),$(call gb_CustomTarget_get_target,odk/odkcommon/cli))
ifeq ($(OS),WNT)
odk_CONFIGLIST := cfgWin.js \
setsdkenv_windows.template \
setsdkname.bat
else
odk_CONFIGLIST := configure.pl \
setsdkenv_unix \
setsdkenv_unix.sh.in \
setsdkenv_unix.csh.in
endif
define odk_config
odkcommon_ZIPLIST += $(1)
$(call gb_CustomTarget_get_target,odk/odkcommon): $(odk_WORKDIR)/$(1)
$(odk_WORKDIR)/$(1): $(SRCDIR)/odk/config/$(1)
mkdir -p $$(dir $$@)
$$(call gb_Output_announce,$$(subst $$(WORKDIR)/,,$$@),build,CPY,1)
cp $$< $$@
endef
$(foreach config,$(odk_CONFIGLIST),$(eval $(call odk_config,$(config))))
ifeq ($(OS),WNT)
odkcommon_ZIPLIST += setsdkenv_windows.bat
$(eval $(call gb_CustomTarget_register_targets,odk/odkcommon,\
setsdkenv_windows.bat \
))
$(odk_WORKDIR)/setsdkenv_windows.bat: $(SRCDIR)/odk/config/setsdkenv_windows.bat
$(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),build,SED,1)
sed $< -e 's#__SDKNAME__#libreoffice$(PRODUCTVERSION)_sdk#' > $@
else
odkcommon_ZIPLIST += config.guess config.sub
$(eval $(call gb_CustomTarget_register_targets,odk/odkcommon,\
config.guess \
config.sub \
))
$(odk_WORKDIR)/config.%: $(SRCDIR)/config.%
$(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),build,CPY,1)
cp $< $@
endif
odk_HTMLLIST := index.html \
docs/tools.html \
docs/notsupported.html \
docs/install.html \
examples/examples.html \
examples/DevelopersGuide/examples.html
odk_DOCULIST := docs/sdk_styles.css \
docs/common/ref/idl.css \
docs/images/nada.gif \
docs/images/arrow-1.gif \
docs/images/arrow-2.gif \
docs/images/arrow-3.gif \
docs/images/bluball.gif \
docs/images/ooo-main-app_32.png \
docs/images/odk-footer-logo.gif \
docs/images/bg_table.png \
docs/images/bg_table2.png \
docs/images/bg_table3.png \
docs/images/nav_down.png \
docs/images/nav_home.png \
docs/images/nav_left.png \
docs/images/nav_right.png \
docs/images/nav_up.png \
docs/images/sdk_head-1.png \
docs/images/sdk_head-2.png \
docs/images/sdk_line-1.gif \
docs/images/sdk_line-2.gif
define odk_html
odkcommon_ZIPLIST += $(1)
$(call gb_CustomTarget_get_target,odk/odkcommon): $(odk_WORKDIR)/$(1)
$(odk_WORKDIR)/$(1): $(SRCDIR)/odk/$(1)
mkdir -p $$(dir $$@)
$$(call gb_Output_announce,$$(subst $$(WORKDIR)/,,$$@),build,SED,1)
cat $$< | tr -d "\015" | \
sed -e 's/%PRODUCT_RELEASE%/$(PRODUCTVERSION)/g' > $$@
endef
define odk_docu
odkcommon_ZIPLIST += $(1)
$(call gb_CustomTarget_get_target,odk/odkcommon): $(odk_WORKDIR)/$(1)
$(odk_WORKDIR)/$(1): $(SRCDIR)/odk/$(1)
mkdir -p $$(dir $$@)
$$(call gb_Output_announce,$$(subst $$(WORKDIR)/,,$$@),build,CPY,1)
cp $$< $$@
endef
$(foreach html,$(odk_HTMLLIST),$(eval $(call odk_html,$(html))))
$(foreach doc,$(odk_DOCULIST),$(eval $(call odk_docu,$(doc))))
# vim: set noet sw=4 ts=4:
# -*- 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_CustomTarget_CustomTarget,odk/odkcommon/settings))
odk_SETTINGSLIST := settings.mk \
std.mk \
stdtarget.mk \
$(if $(filter WNT,$(OS)),component.uno.def)
define odk_settings
odkcommon_ZIPLIST += settings/$(1)
$(call gb_CustomTarget_get_target,odk/odkcommon/settings): $(odk_WORKDIR)/settings/$(1)
$(odk_WORKDIR)/settings/$(1): $(SRCDIR)/odk/settings/$(1)
mkdir -p $$(dir $$@)
$$(call gb_Output_announce,$$(subst $$(WORKDIR)/,,$$@),build,CPY,1)
cp $$< $$@
endef
$(foreach setting,$(odk_SETTINGSLIST),$(eval $(call odk_settings,$(setting))))
odkcommon_ZIPLIST += settings/dk.mk
$(eval $(call gb_CustomTarget_register_target,odk/odkcommon/settings,dk.mk))
$(odk_WORKDIR)/settings/dk.mk: $(SRCDIR)/odk/pack/copying/dk.mk
$(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),build,SED,1)
tr -d "\015" < $< | sed -e 's/@@RELEASE@@/$(PRODUCTVERSION)/' \
-e 's/@@BUILDID@@/$(LIBO_VERSION_MAJOR).$(LIBO_VERSION_MINOR).$(LIBO_VERSION_MICRO).$(LIBO_VERSION_PATCH)/' > $@
ifneq ($(OS),WNT)
odkcommon_ZIPLIST += settings/component.uno.map
$(eval $(call gb_CustomTarget_register_target,odk/odkcommon/settings,component.uno.map))
$(odk_WORKDIR)/settings/component.uno.map: $(SRCDIR)/solenv/bin/addsym.awk $(SRCDIR)/solenv/src/component.map
$(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),build,GEN,1)
tr -d "\015" < $(SRCDIR)/solenv/src/component.map | \
$(if $(filter MACOSX,$(OS)),\
tail -n +3 | head -3 | sed -e 's/.*component/_component/g' \
-e 's/;[ ]*//',\
awk -f $<) > $@
chmod 664 $@
endif
# vim: set noet sw=4 ts=4:
# -*- 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_CustomTarget_CustomTarget,odk/unowinreg))
$(eval $(call gb_CustomTarget_register_target,odk/unowinreg,unowinreg.dll))
ifeq ($(BUILD_UNOWINREG),YES)
ifeq ($(COM),MSC)
$(call gb_CustomTarget_get_workdir,odk/unowinreg)/unowinreg.dll: $(call gb_Library_get_target,unowinreg)
cp $< $@
else # COM=GCC
$(call gb_CustomTarget_get_workdir,odk/unowinreg)/unowinreg.dll: $(SRCDIR)/odk/sourcd/unowinreg/win/unowinreg.cxx
$(MINGWCXX) -Wall -D_JNI_IMPLEMENTATION_ \
-I$(JAVA_HOME)/include \
$(if $(filter LINUX,$(OS)),-I$(JAVA_HOME)/include/linux,\
$(if $(filter FREEBSD,$(OS)),-I$(JAVA_HOME)/include/freebsd \
-I$(JAVA_HOME)/include/bsd -I$(JAVA_HOME)/include/linux,\
$(if $(filter NETBSD,$(OS)),-I$(JAVA_HOME)/include/netbsd))) \
-shared -o $@ $< \
-Wl,--kill-at -lkernel32 -ladvapi32
$(MINGWSTRIP) $@
endif
else # BUILD_UNOWINREG=NO
$(call gb_CustomTarget_get_workdir,odk/unowinreg)/unowinreg.dll: $(TARFILE_LOCATION)/$(UNOWINREG_DLL)
cp $< $@
endif
# vim: set noet sw=4 ts=4:
# -*- 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_Executable_Executable,unoapploader))
$(eval $(call gb_Executable_use_static_libraries,unoapploader,\
findsofficepath \
))
ifeq ($(OS),WNT)
$(eval $(call gb_Executable_set_targettype_gui,unoapploader,YES))
$(eval $(call gb_Executable_add_cobjects,unoapploader,\
odk/source/unoapploader/win/unoapploader \
))
$(eval $(call gb_Executable_use_system_win32_libs,unoapploader,\
advapi32 \
))
else
$(eval $(call gb_Executable_add_cobjects,unoapploader,\
odk/source/unoapploader/unx/unoapploader \
))
$(eval $(call gb_Executable_add_libs,unoapploader,\
$(if $(filter-out FREEBSD NETBSD DRAGONFLY,$(OS)),-ldl) \
))
endif
# vim: set ts=4 sw=4 et:
# -*- 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_Library_Library,unowinreg))
ifeq ($(COM),GCC)
$(eval $(call gb_Library_add_libs,unowinreg,\
-lstdc++ \
-lgcc_eh \
-lgcc \
-lmingw32 \
-lmoldname \
-lmsvcrt \
))
else
$(eval $(call gb_Library_add_ldflags,unowinreg,\
/DEF:$(SRCDIR)/odk/source/unowinreg/win/unowinreg.def \
/MANIFEST:NO \
))
endif
$(eval $(call gb_Library_add_exception_objects,unowinreg,\
odk/source/unowinreg/win/unowinreg \
))
$(eval $(call gb_Library_use_system_win32_libs,unowinreg,\
kernel32 \
advapi32 \
))
# vim: set noet sw=4 ts=4:
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
module_directory:=$(dir $(realpath $(firstword $(MAKEFILE_LIST))))
include $(module_directory)/../solenv/gbuild/partial_build.mk
# vim: set noet sw=4 ts=4:
# -*- 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_Module_Module,odk))
$(eval $(call gb_Module_add_targets,odk,\
CustomTarget_odkcommon \
$(if $(filter WNT,$(OS)),CustomTarget_cli) \
$(if $(DOXYGEN),CustomTarget_doxygen) \
CustomTarget_check \
CustomTarget_bin \
CustomTarget_lib \
CustomTarget_settings \
CustomTarget_autodoc \
CustomTarget_idl \
Executable_unoapploader \
Zip_odkexamples \
))
ifneq ($(SOLAR_JAVA),)
$(eval $(call gb_Module_add_targets,odk,\
CustomTarget_unowinreg \
CustomTarget_classes \
CustomTarget_javadoc \
$(if $(filter WNT,$(OS)),Library_unowinreg) \
Zip_uno_loader_classes \
))
endif
$(eval $(call gb_Module_add_targets,odk,\
Zip_odkcommon \
))
# vim: set noet sw=4 ts=4:
# -*- 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_Zip_Zip,odkcommon,$(call gb_CustomTarget_get_workdir,odk/odkcommon)))
$(eval $(call gb_Zip_add_files,odkcommon,\
$(odkcommon_ZIPLIST) \
))
$(eval $(call gb_Zip_add_commandoptions,odkcommon,-r))
#FIXME: scp2 seems to require the zip to be in bin
$(call gb_Zip_get_final_target,odkcommon) : $(OUTDIR)/bin/odkcommon.zip
$(call gb_Zip_get_clean_target,odkcommon) : clean_odkcommon_zip
$(OUTDIR)/bin/odkcommon.zip : $(call gb_Zip_get_target,odkcommon)
$(call gb_Deliver_deliver,$<,$@)
.PHONY : clean_odkcommon_zip
clean_odkcommon_zip:
rm -f $(OUTDIR)/bin/odkcommon.zip
# vim: set noet sw=4 ts=4:
# -*- 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_Zip_Zip,odkexamples,$(SRCDIR)/odk))
$(eval $(call gb_Zip_add_commandoptions,odkexamples,\
-r \
-x "*makefile.mk" \
-x "*Container1*" \
-x "*Storage*" \
-x "*register_component*" \
-x "*examples.html" \
-x "*ConverterServlet*" \
-x "*NotesAccess*" \
-x "*delphi*" \
))
$(eval $(call gb_Zip_add_files,odkexamples,\
examples \
))
#FIXME: scp2 seems to require the zip to be in bin
$(call gb_Zip_get_final_target,odkexamples) : $(OUTDIR)/bin/odkexamples.zip
$(call gb_Zip_get_clean_target,odkexamples) : clean_odkexamples_zip
$(OUTDIR)/bin/odkexamples.zip : $(call gb_Zip_get_target,odkexamples)
$(call gb_Deliver_deliver,$<,$@)
.PHONY : clean_odkexamples_zip
clean_odkexamples_zip:
rm -f $(OUTDIR)/bin/odkexamples.zip
# vim: set noet sw=4 ts=4:
# -*- 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_Zip_Zip,uno_loader_classes,$(call gb_CustomTarget_get_workdir,odk/odkcommon/classes)))
$(eval $(call gb_Zip_add_commandoptions,uno_loader_classes,-r))
$(eval $(call gb_Zip_add_files,uno_loader_classes,\
com/sun/star/lib/loader \
win/unowinreg.dll \
))
# vim: set noet sw=4 ts=4:
......@@ -906,6 +906,3 @@ function writeBatFile(fdir, file)
);
newFile.Close();
}
......@@ -309,4 +309,3 @@ echo " *"
echo " ************************************************************************"
echo "]2;Shell prepared with the SDK environment"
#
# 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/.
#
# This file incorporates work covered by the following license notice:
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed
# with this work for additional information regarding copyright
# ownership. The ASF licenses this file to you under the Apache
# License, Version 2.0 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.apache.org/licenses/LICENSE-2.0 .
#
PRJ=..
PRJNAME=odk
TARGET=inc
# --- Settings -----------------------------------------------------
.INCLUDE : settings.mk
# --- Files --------------------------------------------------------
# --- Targets -------------------------------------------------------
.INCLUDE : target.mk
#
# 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/.
#
# This file incorporates work covered by the following license notice:
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed
# with this work for additional information regarding copyright
# ownership. The ASF licenses this file to you under the Apache
# License, Version 2.0 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.apache.org/licenses/LICENSE-2.0 .
#
PRJ=..$/..
PRJNAME=odk
TARGET=checkbin
#----------------------------------------------------------------
.INCLUDE: settings.mk
.INCLUDE: $(PRJ)$/util$/makefile.pmk
#----------------------------------------------------------------
.IF "$(L10N_framework)"==""
ODKCHECKFILE=$(MISC)$/$(TARGET).txt
all: $(ODKCHECKFILE)
$(ODKCHECKFILE) : $(SDK_CONTENT_CHECK_FILES)
@echo "" > $(ODKCHECKFILE)
# THE PERL SCRIPT DELETES THE CHECK FILE, WHEN AN ERROR OCCURS
$(PERL) $(PRJ)$/util$/check.pl $(DESTDIR) $(DESTPLATFROM) "$(EXEPOSTFIX)" $(ODKCHECKFILE)
# RAISE AN ERROR WHEN TAG FILE IS NOT THERE ANYMORE
cat $(ODKCHECKFILE)
.ELSE
pseudo:
.ENDIF
#
# 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/.
#
# This file incorporates work covered by the following license notice:
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed
# with this work for additional information regarding copyright
# ownership. The ASF licenses this file to you under the Apache
# License, Version 2.0 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.apache.org/licenses/LICENSE-2.0 .
#
PRJ=..$/..
PRJNAME=odk
TARGET=checkidl
#----------------------------------------------------------------
.INCLUDE: settings.mk
.INCLUDE: $(PRJ)$/util$/makefile.pmk
#----------------------------------------------------------------
.IF "$(L10N_framework)"==""
ODKCHECKFILE=$(MISC)$/$(TARGET).txt
all : $(ODKCHECKFILE)
$(ODKCHECKFILE) : $(SDK_CONTENT_CHECK_FILES)
@echo "" > $(ODKCHECKFILE)
# THE PERL SCRIPT DELETES THE CHECK FILE, WHEN AN ERROR OCCURS
-diff -br $(DESTDIRIDL) $(SOLARIDLDIR) $(PIPEERROR) $(PERL) $(PRJ)$/util$/checkdiff.pl $(ODKCHECKFILE)
# RAISE AN ERROR WHEN TAG FILE IS NOT THERE ANYMORE
cat $(ODKCHECKFILE)
.ELSE
pseudo:
.ENDIF
#
# 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/.
#
# This file incorporates work covered by the following license notice:
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed
# with this work for additional information regarding copyright
# ownership. The ASF licenses this file to you under the Apache
# License, Version 2.0 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.apache.org/licenses/LICENSE-2.0 .
#
PRJ=..$/..
PRJNAME=odk
TARGET=checkinc
#----------------------------------------------------------------
.INCLUDE: settings.mk
.INCLUDE: $(PRJ)$/util$/makefile.pmk
#----------------------------------------------------------------
.IF "$(L10N_framework)"==""
ODKCHECKFILE=$(MISC)$/$(TARGET).txt
all : $(ODKCHECKFILE)
$(ODKCHECKFILE) : $(SDK_CONTENT_CHECK_FILES)
@echo "" > $(ODKCHECKFILE)
# THE PERL SCRIPT DELETES THE CHECK FILE, WHEN AN ERROR OCCURS
-diff -br $(DESTDIRINC)$/osl $(SOLARINCDIR)$/osl $(PIPEERROR) $(PERL) $(PRJ)$/util$/checkdiff.pl $(ODKCHECKFILE)
-diff -br $(DESTDIRINC)$/rtl $(SOLARINCDIR)$/rtl $(PIPEERROR) $(PERL) $(PRJ)$/util$/checkdiff.pl $(ODKCHECKFILE)
-diff -br $(DESTDIRINC)$/sal $(SOLARINCDIR)$/sal $(PIPEERROR) $(PERL) $(PRJ)$/util$/checkdiff.pl $(ODKCHECKFILE)
-diff -br $(DESTDIRINC)$/store $(SOLARINCDIR)$/store $(PIPEERROR) $(PERL) $(PRJ)$/util$/checkdiff.pl $(ODKCHECKFILE)
# RAISE AN ERROR WHEN TAG FILE IS NOT THERE ANYMORE
cat $(ODKCHECKFILE)
.ELSE
pseudo:
.ENDIF
#
# 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/.
#
# This file incorporates work covered by the following license notice:
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed
# with this work for additional information regarding copyright
# ownership. The ASF licenses this file to you under the Apache
# License, Version 2.0 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.apache.org/licenses/LICENSE-2.0 .
#
PRJ=..$/..
PRJNAME=odk
TARGET=checkinc2
#----------------------------------------------------------------
.INCLUDE: settings.mk
.INCLUDE: $(PRJ)$/util$/makefile.pmk
#----------------------------------------------------------------
.IF "$(L10N_framework)"==""
ODKCHECKFILE=$(MISC)$/$(TARGET).txt
all : $(ODKCHECKFILE)
$(ODKCHECKFILE) : $(SDK_CONTENT_CHECK_FILES)
@echo "" > $(ODKCHECKFILE)
# THE PERL SCRIPT DELETES THE CHECK FILE, WHEN AN ERROR OCCURS
-diff -br $(DESTDIRINC)$/typelib $(SOLARINCDIR)$/typelib $(PIPEERROR) $(PERL) $(PRJ)$/util$/checkdiff.pl $(ODKCHECKFILE)
-diff -br $(DESTDIRINC)$/uno $(SOLARINCDIR)$/uno $(PIPEERROR) $(PERL) $(PRJ)$/util$/checkdiff.pl $(ODKCHECKFILE)
-diff -br $(DESTDIRINC)$/bridges $(SOLARINCDIR)$/bridges $(PIPEERROR) $(PERL) $(PRJ)$/util$/checkdiff.pl $(ODKCHECKFILE)
-diff -br $(DESTDIRINC)$/cppu $(SOLARINCDIR)$/cppu $(PIPEERROR) $(PERL) $(PRJ)$/util$/checkdiff.pl $(ODKCHECKFILE)
-diff -br $(DESTDIRINC)$/com$/sun$/star$/uno $(SOLARINCDIR)$/com$/sun$/star$/uno $(PIPEERROR) $(PERL) $(PRJ)$/util$/checkdiff.pl $(ODKCHECKFILE)
-diff -br $(DESTDIRINC)$/cppuhelper $(SOLARINCDIR)$/cppuhelper $(PIPEERROR) $(PERL) $(PRJ)$/util$/checkdiff.pl $(ODKCHECKFILE)
# RAISE AN ERROR WHEN TAG FILE IS NOT THERE ANYMORE
cat $(ODKCHECKFILE)
.ELSE
pseudo:
.ENDIF
#
# 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/.
#
# This file incorporates work covered by the following license notice:
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed
# with this work for additional information regarding copyright
# ownership. The ASF licenses this file to you under the Apache
# License, Version 2.0 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.apache.org/licenses/LICENSE-2.0 .
#
PRJ=../..
PRJNAME=odk
TARGET=copying
#----------------------------------------------------------------
.INCLUDE: settings.mk
.INCLUDE: $(PRJ)/util/makefile.pmk
#----------------------------------------------------------------
IDLLIST:={$(subst,/,/ $(shell @$(FIND) $(IDLOUT)/com -type f))}
DESTIDLLIST={$(subst,$(IDLOUT),$(DESTDIRIDL) $(IDLLIST))}
DESTINCLUDELIST={$(subst,$(SOLARINCDIR),$(DESTDIRINC) $(INCLUDELIST))}
DESTINCLUDELIST+=$(DESTDIRINC)/udkversion.mk
DESTINCDIRLIST={$(subst,$(INCOUT),$(DESTDIRINC) $(INCLUDEDIRLIST))}
IDL_DOCU_INDEX_FILE = $(DESTDIRGENIDLREF)/module-ix.html
IDL_DOCU_CLEANUP_FLAG = $(MISC)/idl_docu_cleanup.flag
IDL_CHAPTER_REFS=idl_chapter_refs.txt
EXELIST = \
$(DESTDIRBIN)/cppumaker$(EXEPOSTFIX) \
$(DESTDIRBIN)/regcompare$(EXEPOSTFIX) \
$(DESTDIRBIN)/idlc$(EXEPOSTFIX) \
$(DESTDIRBIN)/javamaker$(EXEPOSTFIX) \
$(DESTDIRBIN)/autodoc$(EXEPOSTFIX) \
$(DESTDIRBIN)/unoapploader$(EXEPOSTFIX) \
$(DESTDIRBIN)/uno-skeletonmaker$(EXEPOSTFIX)
.IF "$(SYSTEM_UCPP)" == ""
EXELIST += \
$(DESTDIRBIN)/ucpp$(EXEPOSTFIX)
.ENDIF
.IF "$(OS)"=="WNT"
EXELIST += \
$(DESTDIRBIN)/climaker$(EXEPOSTFIX)
.ENDIF
.IF "$(OS)"=="WNT"
CLILIST = \
$(DESTDIRCLI)/cli_basetypes.dll \
$(DESTDIRCLI)/cli_uretypes.dll \
$(DESTDIRCLI)/cli_oootypes.dll \
$(DESTDIRCLI)/cli_ure.dll \
$(DESTDIRCLI)/cli_cppuhelper.dll
.ENDIF
.IF "$(OS)"=="WNT"
LIBLIST = \
$(DESTDIRLIB)/istore.lib \
$(DESTDIRLIB)/ireg.lib \
$(DESTDIRLIB)/isal.lib \
$(DESTDIRLIB)/isalhelper.lib \
$(DESTDIRLIB)/icppu.lib \
$(DESTDIRLIB)/icppuhelper.lib \
$(DESTDIRLIB)/irmcxt.lib \
$(DESTDIRLIB)/ipurpenvhelper3MSC.lib
.ENDIF
.IF "$(OS)"=="LINUX"
LIBLIST = $(DESTDIRLIB)/libsalcpprt.a
.ENDIF
# note, that inner class files are copied implicitly
DESTCLASSESLIST= \
$(DESTDIRJAR)/com/sun/star/lib/loader/Loader.class \
$(DESTDIRJAR)/com/sun/star/lib/loader/InstallationFinder.class \
$(DESTDIRJAR)/com/sun/star/lib/loader/WinRegKey.class \
$(DESTDIRJAR)/com/sun/star/lib/loader/WinRegKeyException.class
# $(DESTDIRJAR)/com/sun/star/lib/loader/Loader$$CustomURLClassLoader.class \
# $(DESTDIRJAR)/com/sun/star/lib/loader/InstallationFinder$$StreamGobbler.class \
SETTINGSLIST= \
$(DESTDIRSETTINGS)/settings.mk \
$(DESTDIRSETTINGS)/std.mk \
$(DESTDIRSETTINGS)/stdtarget.mk \
$(DESTDIRSETTINGS)/dk.mk
.IF "$(OS)"=="WNT"
SETTINGSLIST+=$(DESTDIRSETTINGS)/component.uno.def
.ENDIF
.IF "$(OS)"!="WNT"
SETTINGSLIST+=$(DESTDIRSETTINGS)/component.uno.map
.ENDIF
DOCUHTMLFILES+= \
$(DESTDIR)/index.html \
$(DESTDIRDOCU)/tools.html \
$(DESTDIRDOCU)/notsupported.html \
$(DESTDIRDOCU)/install.html \
$(DESTDIREXAMPLES)/examples.html \
$(DESTDIREXAMPLES)/DevelopersGuide/examples.html
DOCUFILES= \
$(DOCUHTMLFILES) \
$(DESTDIRDOCU)/sdk_styles.css \
$(DESTDIRGENIDLREF)/idl.css \
$(DESTDIRDOCUIMAGES)/nada.gif \
$(DESTDIRDOCUIMAGES)/arrow-2.gif \
$(DESTDIRDOCUIMAGES)/bluball.gif \
$(DESTDIRDOCUIMAGES)/ooo-main-app_32.png \
$(DESTDIRDOCUIMAGES)/odk-footer-logo.gif \
$(DESTDIRDOCUIMAGES)/arrow-1.gif \
$(DESTDIRDOCUIMAGES)/arrow-3.gif \
$(DESTDIRDOCUIMAGES)/bg_table.png \
$(DESTDIRDOCUIMAGES)/bg_table2.png \
$(DESTDIRDOCUIMAGES)/bg_table3.png \
$(DESTDIRDOCUIMAGES)/nav_down.png \
$(DESTDIRDOCUIMAGES)/nav_home.png \
$(DESTDIRDOCUIMAGES)/nav_left.png \
$(DESTDIRDOCUIMAGES)/nav_right.png \
$(DESTDIRDOCUIMAGES)/nav_up.png \
$(DESTDIRDOCUIMAGES)/sdk_head-1.png \
$(DESTDIRDOCUIMAGES)/sdk_head-2.png \
$(DESTDIRDOCUIMAGES)/sdk_line-1.gif \
$(DESTDIRDOCUIMAGES)/sdk_line-2.gif
.IF "$(OS)"!="WNT"
INSTALLSCRIPT= \
$(DESTDIR)/config.guess \
$(DESTDIR)/config.sub \
$(DESTDIR)/configure.pl \
$(DESTDIR)/setsdkenv_unix \
$(DESTDIR)/setsdkenv_unix.sh.in \
$(DESTDIR)/setsdkenv_unix.csh.in
.ELSE
INSTALLSCRIPT= \
$(DESTDIR)/setsdkenv_windows.bat \
$(DESTDIR)/setsdkenv_windows.template \
$(DESTDIR)/setsdkname.bat \
$(DESTDIR)/cfgWin.js
.ENDIF
DIR_FILE_LIST=\
$(EXELIST) \
$(CLILIST) \
$(LIBLIST) \
$(SETTINGSLIST) \
$(DOCUFILES) \
$(INSTALLSCRIPT) \
$(DESTIDLLIST) \
$(DESTINCLUDELIST) \
$(DESTCLASSESLIST) \
$(IDL_DOCU_INDEX_FILE) \
$(CONVERTTAGFLAG)
.IF "$(OS)"=="MACOSX"
DIR_FILE_LIST += $(DESTDIRBIN)/addsym-macosx.sh
.ENDIF
.IF "$(SOLAR_JAVA)" != ""
DIR_FILE_LIST += $(DESTDIRJAR)/win/unowinreg.dll
.ENDIF
DIR_DIRECTORY_LIST:=$(uniq $(DIR_FILE_LIST:d))
DIR_CREATE_FLAG:=$(MISC)/copying_dirs_created.txt
DIR_FILE_FLAG:=$(MISC)/copying_files.txt
.IF "$(SOLAR_JAVA)" != ""
# Special work for simple uno bootstrap mechanism
# zip uno loader class files and winreg helper library for later
# use in the build process (e.g. helper tools)
MYZIPTARGET=$(BIN)/uno_loader_classes.zip
MYZIPFLAGS=-u -r
MYZIPDIR=$(DESTDIRJAR)
MYZIPLIST=com/* win/*
.ENDIF
#--------------------------------------------------
# TARGETS
#--------------------------------------------------
.IF "$(L10N_framework)"==""
all : CLEAN_DKVERSION_CHECK \
$(DIR_FILE_LIST) \
$(DIR_FILE_FLAG) \
.ENDIF
#--------------------------------------------------
# use global rules
#--------------------------------------------------
.INCLUDE: $(PRJ)/util/odk_rules.pmk
CLEANUP_DKVERSION_FILE=$(DESTDIRSETTINGS)/dk.mk
CLEAN_DKVERSION_CHECK:
@@-rm -f $(CLEANUP_DKVERSION_FILE)
$(DESTDIRBIN)/addsym-macosx.sh : addsym-macosx.sh
@@-rm -f $@
$(MY_TEXTCOPY) $(MY_TEXTCOPY_SOURCEPRE) $< $(MY_TEXTCOPY_TARGETPRE) $@
-chmod 755 $@
$(DESTDIRSETTINGS)/dk.mk : dk.mk
@@-rm -f $@
-$(MKDIRHIER) $(@:d)
tr -d "\015" < dk.mk | sed -e 's/@@RELEASE@@/$(PRODUCT_RELEASE)/' -e 's/@@BUILDID@@/$(LIBO_VERSION_MAJOR).$(LIBO_VERSION_MINOR).$(LIBO_VERSION_MICRO).$(LIBO_VERSION_PATCH)/'> $@
$(IDL_DOCU_CLEANUP_FLAG) : $(IDL_CHAPTER_REFS) $(PRJ)/docs/common/ref/idl.css $(DESTIDLLIST)
@@-$(MY_DELETE_RECURSIVE) $(DESTDIRGENIDLREF)
$(TOUCH) $@
$(IDL_DOCU_INDEX_FILE) : $(IDL_DOCU_CLEANUP_FLAG)
-$(MKDIRHIER) $(@:d)
$(MY_AUTODOC) -html $(DESTDIRGENIDLREF) -dvgroot "http://wiki.services.openoffice.org/wiki" \
-name $(IDLDOCREFNAME) -lg idl -dvgfile $(IDL_CHAPTER_REFS) -t $(DESTDIRIDL)
-rm $(@:d)/idl.css
$(MY_TEXTCOPY) $(MY_TEXTCOPY_SOURCEPRE) $(PRJ)/docs/common/ref/idl.css $(MY_TEXTCOPY_TARGETPRE) $(@:d:d)/idl.css
.IF "$(SOLAR_JAVA)" != ""
$(MYZIPTARGET) : $(BIN)/unowinreg.dll $(DESTCLASSESLIST)
cd $(MYZIPDIR) && zip $(MYZIPFLAGS) ../../../bin/$(MYZIPTARGET:b) $(MYZIPLIST)
.ENDIF
#
# 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/.
#
# This file incorporates work covered by the following license notice:
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed
# with this work for additional information regarding copyright
# ownership. The ASF licenses this file to you under the Apache
# License, Version 2.0 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.apache.org/licenses/LICENSE-2.0 .
#
PRJ=..$/..
PRJNAME=odk
TARGET=gendocu
#----------------------------------------------------------------
.INCLUDE: settings.mk
.INCLUDE: $(PRJ)$/util$/makefile.pmk
#----------------------------------------------------------------
.IF "$(L10N_framework)"==""
CPPDOCREFNAME="UDK $(UDK_MAJOR).$(UDK_MINOR).$(UDK_MICRO) C/C++ API Reference"
JAVADOCREFNAME="UDK $(UDK_MAJOR).$(UDK_MINOR).$(UDK_MICRO) Java API Reference"
CPP_DOCU_INDEX_FILE = $(DESTDIRGENCPPREF)$/index.html
JAVA_DOCU_INDEX_FILE = $(DESTDIRGENJAVAREF)$/index.html
CPP_DOCU_CLEANUP_FLAG = $(MISC)$/cpp_docu_cleanup.flag
JAVA_SRC_DIR=$(MISC)$/java_src
JAVA_PACKAGES=\
com.sun.star.comp.helper \
com.sun.star.lib.uno.helper \
com.sun.star.lib.unoloader \
com.sun.star.uno \
$(JAVA_SRC_DIR)$/com$/sun$/star$/lib$/util$/UrlToFileMapper.java
# com.sun.star.beans \
JAVA_SRC_FILES=\
$(JAVA_SRC_DIR)$/juh_src.zip \
$(JAVA_SRC_DIR)$/jurt_src.zip \
$(JAVA_SRC_DIR)$/ridl_src.zip \
$(JAVA_SRC_DIR)$/unoloader_src.zip
JAVA_BEAN_SRC_FILES=\
$(JAVA_SRC_DIR)$/com$/sun$/star$/beans$/ContainerFactory.java \
$(JAVA_SRC_DIR)$/com$/sun$/star$/beans$/JavaWindowPeerFake.java \
$(JAVA_SRC_DIR)$/com$/sun$/star$/beans$/LocalOfficeConnection.java \
$(JAVA_SRC_DIR)$/com$/sun$/star$/beans$/LocalOfficeWindow.java \
$(JAVA_SRC_DIR)$/com$/sun$/star$/beans$/NativeConnection.java \
$(JAVA_SRC_DIR)$/com$/sun$/star$/beans$/NativeService.java \
$(JAVA_SRC_DIR)$/com$/sun$/star$/beans$/OfficeConnection.java \
$(JAVA_SRC_DIR)$/com$/sun$/star$/beans$/OfficeWindow.java
JAVADOCPARAMS= -use -splitindex -windowtitle "Java UNO Runtime Reference" -header $(JAVADOCREFNAME) -d $(DESTDIRGENJAVAREF) -sourcepath $(JAVA_SRC_DIR) -classpath $(SOLARBINDIR)$/ridl.jar -linkoffline ../../common/ref ./uno -linkoffline http://java.sun.com/j2se/1.5/docs/api ./java $(JAVA_PACKAGES)
.IF "$(JAVADOCISGJDOC)" != "yes"
JAVADOCPARAMS+= -notimestamp
.ENDIF
JAVADOCLOG = $(MISC)$/javadoc_log.txt
all :
.IF "$(DOXYGEN)" != ""
all : $(CPP_DOCU_INDEX_FILE)
.END
.IF "$(SOLAR_JAVA)" != ""
all : $(JAVA_DOCU_INDEX_FILE)
.END
$(CPP_DOCU_CLEANUP_FLAG) : $(INCLUDELIST) Doxyfile main.dox
@@-$(MY_DELETE_RECURSIVE) $(DESTDIRGENCPPREF)
$(TOUCH) $@
.IF "$(VERBOSE)" == "TRUE"
MY_QUIET = NO
.ELSE
MY_QUIET = YES
.END
$(CPP_DOCU_INDEX_FILE) .ERRREMOVE : $(CPP_DOCU_CLEANUP_FLAG)
-$(MKDIRHIER) $(@:d)
$(SED) \
-e 's!^INPUT = %$$!INPUT = main.dox $(INCLUDETOPDIRLIST) $(INCLUDEFILELIST)!' \
-e 's!^OUTPUT_DIRECTORY = %$$!OUTPUT_DIRECTORY = $(DESTDIRGENCPPREF)!' \
-e 's!^PROJECT_BRIEF = %$$!PROJECT_BRIEF = $(CPPDOCREFNAME)!' \
-e 's!^QUIET = %$$!QUIET = $(MY_QUIET)!' \
-e 's!^STRIP_FROM_PATH = %$$!STRIP_FROM_PATH = $(SOLARINCDIR)!' \
Doxyfile > $(MISC)/Doxyfile
$(DOXYGEN) $(MISC)/Doxyfile
$(JAVA_SRC_FILES) : $(SOLARCOMMONPCKDIR)$/$$(@:f)
-$(MKDIRHIER) $(@:d)
$(MY_COPY) $< $@
cd $(JAVA_SRC_DIR) && unzip -quo $(@:f)
#$(JAVA_SRC_DIR)$/com$/sun$/star$/beans$/%.java : $(PRJ)$/source$/bean$/com$/sun$/star$/beans$/%.java
# -$(MKDIRHIER) $(@:d)
# $(MY_COPY) $< $@
#$(JAVA_DOCU_INDEX_FILE) .SEQUENTIAL : $(JAVA_SRC_FILES) $(JAVA_BEAN_SRC_FILES)
.IF "$(SOLAR_JAVA)"!=""
$(JAVA_DOCU_INDEX_FILE) .SEQUENTIAL : $(JAVA_SRC_FILES)
-$(MKDIRHIER) $(@:d)
$(JAVADOC) -J-Xmx120m $(JAVADOCPARAMS) > $(JAVADOCLOG)
.ENDIF
.ELSE
pseudo:
.ENDIF
#
# 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/.
#
# This file incorporates work covered by the following license notice:
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed
# with this work for additional information regarding copyright
# ownership. The ASF licenses this file to you under the Apache
# License, Version 2.0 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.apache.org/licenses/LICENSE-2.0 .
#
PRJ=..$/..
PRJNAME=odk
TARGET=unzip_udk
#----------------------------------------------------------------
.INCLUDE: settings.mk
.INCLUDE: $(PRJ)$/util$/makefile.pmk
#----------------------------------------------------------------
all: ..$/misc$/deltree.txt
..$/misc$/deltree.txt .SETDIR=$(OUT)$/bin : $(PRJ)$/pack$/unzip_udk$/deltree.txt
@@-$(MY_DELETE_RECURSIVE) $(PRODUCT_NAME)
@@-rm -f $(PRODUCT_NAME).zip
@@-$(MY_DELETE_RECURSIVE) $(PRODUCT_NAME2)
@@-rm -f odkidl.zip
@@-rm -f odk_ooidl.zip
@echo "" > ..$/misc$/deltree.txt
od odk :: cppuhelper jurt javaunohelper udkapi ridljar offapi autodoc DESKTOP:unodevtools external NULL
od odk usr1 - all od_mkout NULL
od odk\inc nmake - all od_inc NULL
od odk\source\com\sun\star\lib\loader nmake - all od_loader od_inc NULL
od odk\source\unoapploader\win nmake - n od_unoapploaderwin od_inc NULL
od odk\source\unoapploader\unx nmake - u od_unoapploaderunx od_inc NULL
od odk\source\unowinreg\win nmake - all od_unowinreg od_inc NULL
od odk\pack\unzip_udk nmake - all od_unzip_udk NULL
od odk\pack\copying nmake - all od_copying od_unzip_udk od_loader od_unoapploaderwin.n od_unoapploaderunx.u od_unowinreg NULL
od odk\pack\checkinc nmake - all od_checkinc od_copying NULL
od odk\pack\checkinc2 nmake - all od_checkinc2 od_copying NULL
od odk\pack\checkidl nmake - all od_checkidl od_copying NULL
od odk\pack\gendocu nmake - all od_gendocu od_copying NULL
od odk\pack\checkbin nmake - all od_checkbin od_copying od_gendocu NULL
od odk\util nmake - all od_util od_checkbin od_checkinc od_checkinc2 od_checkidl NULL
od odk\prj nmake - all od_util NULL
..\%__SRC%\bin\odkcommon.zip %_DEST%\bin\odkcommon.zip
..\%__SRC%\bin\uno_loader_classes.zip %_DEST%\bin\uno_loader_classes.zip
..\%__SRC%\bin\odkexamples.zip %COMMON_DEST%\bin\odkexamples.zip
#
# 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/.
#
# This file incorporates work covered by the following license notice:
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed
# with this work for additional information regarding copyright
# ownership. The ASF licenses this file to you under the Apache
# License, Version 2.0 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.apache.org/licenses/LICENSE-2.0 .
#
PRJ=..$/..$/..$/..$/..$/..
PRJNAME = odk
PACKAGE = com$/sun$/star$/lib$/loader
TARGET = com_sun_star_lib_loader
# --- Settings -----------------------------------------------------
.INCLUDE : settings.mk
.IF "$(SOLAR_JAVA)"==""
nojava:
@echo "Not building javaunohelper because Java is disabled"
.ENDIF
# Files --------------------------------------------------------
JAVAFILES= \
Loader.java\
InstallationFinder.java\
WinRegKey.java\
WinRegKeyException.java
JAVACLASSFILES= $(foreach,i,$(JAVAFILES) $(CLASSDIR)$/$(PACKAGE)$/$(i:b).class)
# --- Targets ------------------------------------------------------
.INCLUDE : target.mk
#
# 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/.
#
# This file incorporates work covered by the following license notice:
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed
# with this work for additional information regarding copyright
# ownership. The ASF licenses this file to you under the Apache
# License, Version 2.0 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.apache.org/licenses/LICENSE-2.0 .
#
PRJ=..$/..$/..
PRJNAME=odk
TARGET=unoapploader
LIBTARGET=NO
LIBSALCPPRT=
# --- Settings -----------------------------------------------------
.INCLUDE : settings.mk
# --- Files --------------------------------------------------------
.IF "$(COM)"=="GCC"
LINK=$(CC)
.ENDIF
.IF "$(OS)"!="FREEBSD" && "$(OS)"!="NETBSD" && "$(OS)"!="DRAGONFLY"
STDLIB= -ldl
.ENDIF
APP1NOSAL=TRUE
APP1RPATH=NONE
APP1TARGET= $(TARGET)
APP1OBJS= $(OBJ)$/unoapploader.obj
APP1STDLIBS=-lfindsofficepath
# --- Targets ------------------------------------------------------
.INCLUDE : target.mk
#
# 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/.
#
# This file incorporates work covered by the following license notice:
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed
# with this work for additional information regarding copyright
# ownership. The ASF licenses this file to you under the Apache
# License, Version 2.0 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.apache.org/licenses/LICENSE-2.0 .
#
PRJ=..$/..$/..
PRJNAME=odk
TARGET=unoapploader
TARGETTYPE=GUI
LIBTARGET=NO
DYNAMIC_CRT=
UWINAPILIB=
NO_DEFAULT_STL=true
# --- Settings -----------------------------------------------------
.INCLUDE : settings.mk
# --- Files --------------------------------------------------------
APP1NOSAL=TRUE
APP1RPATH=NONE
APP1TARGET= $(TARGET)
APP1OBJS= $(OBJ)$/unoapploader.obj
APP1STDLIBS=findsofficepath.lib
APP1STDLIBS+=\
$(ADVAPI32LIB)
# --- Targets ------------------------------------------------------
.INCLUDE : target.mk
#
# 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/.
#
# This file incorporates work covered by the following license notice:
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed
# with this work for additional information regarding copyright
# ownership. The ASF licenses this file to you under the Apache
# License, Version 2.0 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.apache.org/licenses/LICENSE-2.0 .
#
PRJ=..$/..$/..
PRJNAME=odk
TARGET=unowinreg
ENABLE_EXCEPTIONS=TRUE
NO_DEFAULT_STL=TRUE
USE_DEFFILE=TRUE
# --- Settings -----------------------------------------------------
.INCLUDE : settings.mk
JAVA_INCLUDES:= -I$(JAVA_HOME)/include
.IF "$(OS)" == "LINUX"
JAVA_INCLUDES+= -I$(JAVA_HOME)/include/linux
.ELIF "$(OS)" == "FREEBSD"
JAVA_INCLUDES+= -I$(JAVA_HOME)/include/freebsd
JAVA_INCLUDES+= -I$(JAVA_HOME)/include/bsd
JAVA_INCLUDES+= -I$(JAVA_HOME)/include/linux
.ELIF "$(OS)" == "NETBSD"
JAVA_INCLUDES+= -I$(JAVA_HOME)/include/netbsd
.ENDIF
.IF "$(SOLAR_JAVA)"==""
nojava:
@echo "Not building javaunohelper because Java is disabled"
.ENDIF
.IF "$(OS)" != "WNT"
.IF "$(BUILD_UNOWINREG)" == "YES"
$(BIN)$/unowinreg.dll : unowinreg.cxx
$(MINGWCXX) -Wall -D_JNI_IMPLEMENTATION_ $(JAVA_INCLUDES) \
-shared -o $(BIN)$/unowinreg.dll unowinreg.cxx \
-Wl,--kill-at -lkernel32 -ladvapi32
$(MINGWSTRIP) $(BIN)$/unowinreg.dll
.ELSE
$(BIN)$/unowinreg.dll : $(TARFILE_LOCATION)/$(UNOWINREG_DLL)
@@-rm -f $@
$(GNUCOPY) $< $@
.ENDIF
.ELSE # "$(OS)" != "WNT"
# Always build unowinreg.dll on windows
# --- Files --------------------------------------------------------
SLOFILES = \
$(SLO)$/unowinreg.obj
SHL1TARGET=$(TARGET)
SHL1LIBS=$(SLB)$/$(TARGET).lib
#No default libraries
STDSHL=
.IF "$(COM)"=="GCC"
SHL1STDLIBS += -lstdc++
.IF "$(MINGW_GCCLIB_EH)"=="YES"
SHL1STDLIBS += -lgcc_eh
.ENDIF
SHL1STDLIBS += -lgcc -lmingw32 -lmoldname -lmsvcrt
.ELSE
LINKFLAGS+=-MANIFEST:NO
.ENDIF
SHL1STDLIBS +=\
$(KERNEL32LIB)\
$(ADVAPI32LIB)
SHL1DEF=$(MISC)$/$(SHL1TARGET).def
DEF1NAME=$(SHL1TARGET)
DEF1EXPORTFILE=$(TARGET).dxp
DEF1DES=unowinreg
.ENDIF # "$(OS)" != "WNT"
# --- Targets ------------------------------------------------------
.INCLUDE : target.mk
LIBRARY "unowinreg.dll"
EXPORTS
Java_com_sun_star_lib_loader_WinRegKey_winreg_1RegOpenClassesRoot
Java_com_sun_star_lib_loader_WinRegKey_winreg_1RegOpenCurrentConfig
Java_com_sun_star_lib_loader_WinRegKey_winreg_1RegOpenCurrentUser
Java_com_sun_star_lib_loader_WinRegKey_winreg_1RegOpenLocalMachine
Java_com_sun_star_lib_loader_WinRegKey_winreg_1RegOpenUsers
Java_com_sun_star_lib_loader_WinRegKey_winreg_1RegOpenKeyEx
Java_com_sun_star_lib_loader_WinRegKey_winreg_1RegCloseKey
Java_com_sun_star_lib_loader_WinRegKey_winreg_1RegQueryValueEx
Java_com_sun_star_lib_loader_WinRegKey_winreg_1RegQueryInfoKey
Java_com_sun_star_lib_loader_WinRegKey_winreg_1RegOpenClassesRoot
Java_com_sun_star_lib_loader_WinRegKey_winreg_1RegOpenCurrentConfig
Java_com_sun_star_lib_loader_WinRegKey_winreg_1RegOpenCurrentUser
Java_com_sun_star_lib_loader_WinRegKey_winreg_1RegOpenLocalMachine
Java_com_sun_star_lib_loader_WinRegKey_winreg_1RegOpenUsers
Java_com_sun_star_lib_loader_WinRegKey_winreg_1RegOpenKeyEx
Java_com_sun_star_lib_loader_WinRegKey_winreg_1RegCloseKey
Java_com_sun_star_lib_loader_WinRegKey_winreg_1RegQueryValueEx
Java_com_sun_star_lib_loader_WinRegKey_winreg_1RegQueryInfoKey
#
# 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/.
#
# This file incorporates work covered by the following license notice:
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed
# with this work for additional information regarding copyright
# ownership. The ASF licenses this file to you under the Apache
# License, Version 2.0 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.apache.org/licenses/LICENSE-2.0 .
#
PRJ=..
PRJNAME=odk
TARGET=odk
# ------------------------------------------------------------------
.INCLUDE: settings.mk
.INCLUDE: makefile.pmk
# ------------------------------------------------------------------
.IF "$(L10N_framework)"==""
ZIP1TARGET=odkexamples
ZIP1FLAGS=-u -r
ZIP1DIR=$(PRJ)
ZIP1LIST=examples -x "*.svn*" -x "*CVS*" -x "*makefile.mk" -x "*Inspector*" -x "*Container1*" -x "*Storage*" -x "*register_component*" -x "*examples.html" -x "*ConverterServlet*" -x "*NotesAccess*" -x "*delphi*"
.ENDIF
.INCLUDE : target.mk
.IF "$(L10N_framework)"==""
ALLTAR:\
$(BIN)$/$(PRODUCTZIPFILE)
# $(BIN)$/odk_oo.zip
.ENDIF
$(BIN)$/$(PRODUCTZIPFILE) : $(SDK_CONTENT_CHECK_FILES) $(SDK_CHECK_FLAGS)
cd $(BIN)$/$(PRODUCT_NAME) && zip -urq ..$/$(PRODUCTZIPFILE) . $(CHECKZIPRESULT)
# cd $(BIN)$/$(PRODUCT_NAME) && zip -urq ..$/$(PRODUCTZIPFILE) . -x "idl/*" $(CHECKZIPRESULT)
# cd $(BIN)$/$(PRODUCT_NAME) && zip -urq ..$/odkidl.zip idl/* $(CHECKZIPRESULT)
ODK_OO_FILES=\
$(PRJ)$/index.html \
$(PRJ)$/docs$/tools.html \
$(PRJ)$/docs$/notsupported.html \
$(PRJ)$/docs$/install.html \
$(PRJ)$/docs$/sdk_styles.css \
$(PRJ)$/docs$/images$/arrow-1.gif \
$(PRJ)$/docs$/images$/arrow-3.gif \
$(PRJ)$/docs$/images$/bg_table.gif \
$(PRJ)$/docs$/images$/bg_table2.gif \
$(PRJ)$/docs$/images$/bg_table3.gif \
$(PRJ)$/docs$/images$/nav_down.png \
$(PRJ)$/docs$/images$/nav_home.png \
$(PRJ)$/docs$/images$/nav_left.png \
$(PRJ)$/docs$/images$/nav_right.png \
$(PRJ)$/docs$/images$/nav_up.png \
$(PRJ)$/docs$/images$/sdk_head-1.gif \
$(PRJ)$/docs$/images$/sdk_head-2.gif \
$(PRJ)$/docs$/images$/sdk_head-3.gif \
$(PRJ)$/docs$/images$/sdk_line-1.gif \
$(PRJ)$/docs$/images$/sdk_line-2.gif \
$(PRJ)$/examples$/examples.html \
$(PRJ)$/examples$/DevelopersGuide$/examples.html
$(BIN)$/odk_oo.zip : $(ODK_OO_FILES)
cd $(PRJ) && zip -urq $(subst,$(PRJ)$/, $(BIN)$/odk_oo.zip) $(subst,$(PRJ)$/, $<) $(CHECKZIPRESULT)
#
# 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/.
#
# This file incorporates work covered by the following license notice:
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed
# with this work for additional information regarding copyright
# ownership. The ASF licenses this file to you under the Apache
# License, Version 2.0 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.apache.org/licenses/LICENSE-2.0 .
#
# used for sdk common files
PRODUCT_RELEASE=$(PRODUCTVERSION)
OFFICENAME=LibreOffice
SDKDIRNAME=libreoffice$(PRODUCT_RELEASE)_sdk
OFFICEPRODUCTNAME=$(OFFICENAME) $(PRODUCT_RELEASE)
TITLE=$(OFFICENAME) $(PRODUCT_RELEASE) SDK
IDLDOCREFNAME="$(OFFICENAME) $(PRODUCT_RELEASE) API"
PRODUCT_NAME=odkcommon
PRODUCTZIPFILE=$(PRODUCT_NAME).zip
DESTDIR=$(OUT)/bin/$(PRODUCT_NAME)
DESTDIRBIN=$(DESTDIR)/bin
DESTDIRLIB=$(DESTDIR)/lib
DESTDIRDLL=$(DESTDIRLIB)
DESTDIRIDL=$(DESTDIR)/idl
DESTDIRINC=$(DESTDIR)/include
DESTDIRJAR=$(DESTDIR)/classes
DESTDIRSETTINGS=$(DESTDIR)/settings
DESTDIREXAMPLES=$(DESTDIR)/examples
DESTDIRCLASSES=$(DESTDIR)/classes
DESTDIRDOCU=$(DESTDIR)/docs
DESTDIRCOMMONDOCU=$(DESTDIRDOCU)/common
DESTDIRGENIDLREF=$(DESTDIRCOMMONDOCU)/ref
DESTDIRDOCUIMAGES=$(DESTDIRDOCU)/images
DESTDIRCPPDOCU=$(DESTDIRDOCU)/cpp
DESTDIRGENCPPREF=$(DESTDIRDOCU)/cpp/ref
DESTDIRJAVADOCU=$(DESTDIRDOCU)/java
DESTDIRGENJAVAREF=$(DESTDIRDOCU)/java/ref
.IF "$(CROSS_COMPILING)" == "YES"
BINOUT=$(SOLARVERSION)/$(INPATH)/bin
.ELSE
BINOUT=$(SOLARBINDIR)
.ENDIF
INCOUT=$(SOLARINCDIR)
IDLOUT=$(SOLARIDLDIR)
XMLOUT=$(SOLARXMLDIR)
LIBOUT=$(SOLARLIBDIR)
MY_AUTODOC=$(AUGMENT_LIBRARY_PATH) $(WRAPCMD) $(SOLARBINDIR)/autodoc
.IF "$(OS)"=="FREEBSD" || "$(OS)"=="NETBSD" || "$(OS)"=="MACOSX" || \
"$(OS)"=="AIX" || "$(OS)"=="DRAGONFLY"
MY_COPY=$(GNUCOPY)
MY_COPY_RECURSIVE=$(GNUCOPY) -R
.ELSE
MY_COPY=$(GNUCOPY) -u
MY_COPY_RECURSIVE=$(GNUCOPY) -urf
.ENDIF
MY_DELETE_RECURSIVE=rm -rf
MY_TEXTCOPY=@cp
.IF "$(OS)"=="WNT"
#--------------------
# WNT ONLY
#--------------------
MY_DLLPREFIX=
MY_DLLPOSTFIX=.dll
MY_DLLOUT=$(OUT)/bin
EXEPOSTFIX=.exe
DLLOUT=$(SOLARBINDIR)
DESTDIRCPPEXAMPLES=$(DESTDIR)/examples/cpp
.IF "$(COM)"=="GCC"
DESTPLATFROM=mingw
.ELSE
DESTPLATFROM=windows
.ENDIF
DESTDIRDLL=$(DESTDIRBIN)
DESTDIRCLI=$(DESTDIR)/cli
.ELSE
#--------------------
MY_DLLPREFIX=lib
.IF "$(OS)"=="MACOSX"
MY_DLLPOSTFIX=.dylib
.ELSE
MY_DLLPOSTFIX=.so
.ENDIF
MY_DLLOUT=$(OUT)/lib
DLLOUT=$(SOLARLIBDIR)
.IF "$(OS)$(CPUNAME)"=="SOLARISSPARC"
# SOLARIS SPARC
DESTPLATFROM=solsparc
.ELIF "$(OS)$(CPU)"=="SOLARISU"
# SOLARIS SPARC 64
DESTPLATFROM=solsparc64
.ELIF "$(OS)$(CPUNAME)"=="SOLARISINTEL"
# SOLARIS INTEL
DESTPLATFROM=solintel
.ELIF "$(OS)"=="LINUX"
# LINUX
DESTPLATFROM=linux
.ELIF "$(OS)"=="NETBSD"
# NETBSD
DESTPLATFROM=netbsd
.ELIF "$(OS)"=="FREEBSD"
# FREEBSD
DESTPLATFROM=freebsd
.ELIF "$(OS)"=="DRAGONFLY"
DESTPLATFROM=dragonfly
.ELIF "$(OS)"=="MACOSX"
# MACOSX
DESTPLATFROM=macosx
.ELIF "$(OS)"=="AIX"
# MACOSX
DESTPLATFROM=aix
.ENDIF
.ENDIF
INCLUDETOPDIRLIST= \
$(INCOUT)/sal \
$(INCOUT)/salhelper \
$(INCOUT)/rtl \
$(INCOUT)/osl \
$(INCOUT)/store \
$(INCOUT)/typelib \
$(INCOUT)/uno \
$(INCOUT)/cppu \
$(INCOUT)/cppuhelper \
$(INCOUT)/registry
.IF "$(OS)"=="WNT"
INCLUDETOPDIRLIST += $(INCOUT)/systools
.ENDIF
INCLUDEDIRLIST:={$(subst,/,/ $(shell @$(FIND) $(INCLUDETOPDIRLIST) -type d -print))}
INCLUDEFILELIST=\
$(INCOUT)/com/sun/star/uno/Any.h \
$(INCOUT)/com/sun/star/uno/Any.hxx \
$(INCOUT)/com/sun/star/uno/genfunc.h \
$(INCOUT)/com/sun/star/uno/genfunc.hxx \
$(INCOUT)/com/sun/star/uno/Reference.h \
$(INCOUT)/com/sun/star/uno/Reference.hxx \
$(INCOUT)/com/sun/star/uno/Sequence.h \
$(INCOUT)/com/sun/star/uno/Sequence.hxx \
$(INCOUT)/com/sun/star/uno/Type.h \
$(INCOUT)/com/sun/star/uno/Type.hxx
INCLUDELIST:=\
{$(shell @$(FIND) $(INCLUDETOPDIRLIST) -type f ! \( -name "*~" -o -name "*build.lst" -o -name "*deliver.log" \) -print)} \
$(INCLUDEFILELIST)
SDK_CONTENT_CHECK_FILES= \
$(MISC)/copying_files.txt
SDK_CHECK_FLAGS= \
$(MISC)/checkbin.txt \
$(MISC)/checkidl.txt \
$(MISC)/checkinc.txt \
$(MISC)/checkinc2.txt
#
# 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/.
#
# This file incorporates work covered by the following license notice:
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed
# with this work for additional information regarding copyright
# ownership. The ASF licenses this file to you under the Apache
# License, Version 2.0 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.apache.org/licenses/LICENSE-2.0 .
#
$(DESTDIRDOCU)/%.html : $(PRJ)/docs/%.html
@@-rm -f $@
tr -d "\015" < $< | sed -e 's/%PRODUCT_RELEASE%/$(PRODUCT_RELEASE)/g' > $@
$(DESTDIREXAMPLES)/%.html : $(PRJ)/examples/%.html
@@-rm -f $@
tr -d "\015" < $< | sed -e 's/%PRODUCT_RELEASE%/$(PRODUCT_RELEASE)/g' > $@
$(DESTDIR)/index.html : $(PRJ)/index.html
@@-rm -f $@
tr -d "\015" < $< | sed -e 's/%PRODUCT_RELEASE%/$(PRODUCT_RELEASE)/g' > $@
$(DESTDIRDOCU)/%.css : $(PRJ)/docs/%.css
@@-rm -f $@
$(MY_TEXTCOPY) $< $@
$(DESTDIRDOCUIMAGES)/% : $(PRJ)/docs/images/%
@@-rm -f $@
$(MY_COPY) $< $@
$(DESTDIR)/configure : $(PRJ)/configure
@@-rm -f $@
$(MY_TEXTCOPY) $(PRJ)/configure $@
$(DESTDIR)/configure.pl : $(PRJ)/configure.pl
@@-rm -f $@
$(MY_TEXTCOPY) $(PRJ)/configure.pl $@
$(DESTDIR)/config.guess : $(SRC_ROOT)/config.guess
@@-rm -f $@
$(MY_TEXTCOPY) $(SRC_ROOT)/config.guess $@
$(DESTDIR)/config.sub : $(SRC_ROOT)/config.sub
@@-rm -f $@
$(MY_TEXTCOPY) $(SRC_ROOT)/config.sub $@
$(DESTDIR)/setsdkenv_unix : $(PRJ)/setsdkenv_unix
@@-rm -f $@
$(MY_TEXTCOPY) $< $@
$(DESTDIR)/setsdkenv_unix.%.in : $(PRJ)/setsdkenv_unix.%.in
@@-rm -f $@
$(MY_TEXTCOPY) $< $@
$(DESTDIR)/setsdkenv_windows.bat : $(PRJ)/setsdkenv_windows.bat
@@-rm -f $@
$(TYPE) $< | $(SED) 's#__SDKNAME__#$(SDKDIRNAME)#' > $@
$(DESTDIR)/%.bat : $(PRJ)/%.bat
@@-rm -f $@
$(MY_TEXTCOPY) $< $@
$(DESTDIR)/setsdkenv_windows.template : $(PRJ)/setsdkenv_windows.template
@@-rm -f $@
$(MY_TEXTCOPY) $< $@
$(DESTDIR)/cfgWin.js : $(PRJ)/cfgWin.js
@@-rm -f $@
$(MY_TEXTCOPY) $(PRJ)/cfgWin.js $@
$(DESTDIRSETTINGS)/%.mk : $(PRJ)/settings/%.mk
@@-rm -f $@
$(MY_TEXTCOPY) $< $@
$(DESTDIRBIN)/%$(EXEPOSTFIX) : $(BINOUT)/%$(EXEPOSTFIX)
@@-rm -f $@
$(GNUCOPY) $(BINOUT)/$(@:f) $@
$(DESTDIRBIN)/%.bin : $(BINOUT)/%.bin
@@-rm -f $@
$(GNUCOPY) $(BINOUT)/$(@:f) $@
$(DESTDIRBIN)/unoapploader$(EXEPOSTFIX) : $(BIN)/unoapploader$(EXEPOSTFIX)
@@-rm -f $@
$(GNUCOPY) $(BIN)/$(@:f) $@
# special rule for special Java UNO native library
# (used for all platforms but built only under windows;
# otherwise provided in external)
$(DESTDIRJAR)/win/unowinreg.dll : $(BIN)/unowinreg.dll
@@-rm -f $@
$(GNUCOPY) $< $@
$(DESTDIRCLI)/%.dll : $(BINOUT)/%.dll
@@-rm -f $@
$(GNUCOPY) $< $@
$(DESTDIRDLL)/%$(MY_DLLPOSTFIX) : $(DLLOUT)/%$(MY_DLLPOSTFIX)
@@-rm -f $@
$(GNUCOPY) $(DLLOUT)/$(@:f) $@
$(DESTDIRJAR)/com/sun/star/lib/loader/%.class : $(CLASSDIR)/com/sun/star/lib/loader/%.class
@@-$(RM) $(@:db).class
$(COPY) $(<:db).class $(@:d)
# deal with subclasses
@@-$(RM) $(@:db)$(EMQ)$$*.class
-$(COPY) $(<:db)$(EMQ)$$*.class $(@:d)
$(DESTDIRIDL)/% : $(IDLOUT)/%
$(MY_TEXTCOPY) $< $@
$(DESTDIRINC)/udkversion.mk :
@@-rm -f $@
@echo #UDK version number > $@
@echo #major >> $@
@echo UDK_MAJOR=$(UDK_MAJOR) >> $@
@echo #minor >> $@
@echo UDK_MINOR=$(UDK_MINOR) >> $@
@echo #micro >> $@
@echo UDK_MICRO=$(UDK_MICRO) >> $@
$(DESTDIRINC)/% : $(INCOUT)/%
$(MY_TEXTCOPY) $< $@
$(DESTDIRLIB)/%.lib : $(LIBOUT)/%.lib
@@-rm -f $@
$(GNUCOPY) $(LIBOUT)/$(@:f) $@
$(DESTDIRLIB)/%.a : $(LIBOUT)/%.a
@@-rm -f $@
$(GNUCOPY) $(LIBOUT)/$(@:f) $@
$(DIR_CREATE_FLAG) :
$(TYPE) $(mktmp $(DIR_DIRECTORY_LIST)) | xargs -n 20 $(MKDIRHIER) && echo "dirs created" > $@ && touch $@
$(DELAY) 2
$(DESTDIRSETTINGS)/component.uno.def : $(PRJ)/settings/component.uno.def
@@-rm -f $@
$(MY_TEXTCOPY) $< $@
$(DESTDIRSETTINGS)/component.uno.map : $(SOLARENV)/bin/addsym.awk $(SOLARENV)/src/component.map
@@-$(RM) -f $@
.IF "$(COMID)"=="gcc3"
tr -d "\015" < $(SOLARENV)/src/component.map | $(AWK) -f $(SOLARENV)/bin/addsym.awk > $@
.IF "$(OS)"=="MACOSX"
tr -d "\015" < $(SOLARENV)/src/component.map | tail -n +3 | head -3 | sed -e 's/.*component/_component/g' -e 's/;[ ]*//' > $@
.ENDIF
.ELSE # "$(COMID)"=="gcc3"
tr -d "\015" < $(SOLARENV)/src/component.map > $@
.ENDIF # "$(COMID)"=="gcc3"
@chmod 664 $@
$(DIR_FILE_LIST) : $(DIR_CREATE_FLAG)
$(DIR_FILE_FLAG) : $(DIR_FILE_LIST)
@echo "must be zipped" > $@
po postprocess :: HELP:helpcontent2 ODK:odk tail_build NULL
po postprocess :: HELP:helpcontent2 tail_build NULL
po postprocess\prj nmake - all po_prj NULL
......@@ -47,8 +47,11 @@ $(call gb_Zip_get_clean_target,%) :
$(call gb_Zip_get_target,%) :
$(call gb_Output_announce,$*,$(true),ZIP,3)
$(call gb_Helper_abbreviate_dirs,\
RESPONSEFILE=$(call var2file,$(shell $(gb_MKTEMP)),500,\
$(FILES)) && \
mkdir -p $(dir $(call gb_Zip_get_target,$*)) && \
cd $(LOCATION) && $(gb_Zip_ZIPCOMMAND) -rX --filesync $(call gb_Zip_get_target,$*) $(FILES) )
cd $(LOCATION) && cat $${RESPONSEFILE} | tr "[:space:]" "\n" | $(gb_Zip_ZIPCOMMAND) -@rX --filesync $(call gb_Zip_get_target,$*) && \
rm -f $${RESPONSEFILE} )
# the final target is a touch target; we use it as registered targets should be in workdir, not in outdir
# the outdir target depends on the workdir target and is built by delivering the latter
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment