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,\