Kaydet (Commit) 4f4344b5 authored tarafından David Tardon's avatar David Tardon Kaydeden (comit) Fridrich Strba

chip more files off the odkcommon.zip block

Change-Id: I3d5d841d094f397130e37799a2f26e4d85f7c136
Reviewed-on: https://gerrit.libreoffice.org/3533Reviewed-by: 's avatarFridrich Strba <fridrich@documentfoundation.org>
Tested-by: 's avatarFridrich Strba <fridrich@documentfoundation.org>
üst 0d752247
......@@ -29,8 +29,15 @@ $(call gb_CustomTarget_get_workdir,odk/check)/checkbin : \
$(SRCDIR)/odk/util/check.pl \
$(call gb_Package_get_target,odk_bin) \
$(if $(filter WNT,$(OS)),$(call gb_Package_get_target,odk_cli)) \
$(if $(filter MACOSX,$(OS)),$(call gb_Package_get_target,odk_macosx)) \
$(call gb_Package_get_target,odk_config) \
$(if $(filter WNT,$(OS)),\
$(call gb_Package_get_target,odk_config_win),\
$(call gb_Package_get_target,odk_config_notwin) \
) \
$(call gb_Package_get_target,odk_docs) \
$(call gb_Package_get_target,odk_html) \
$(call gb_Package_get_target,odk_lib) \
$(if $(filter MACOSX,$(OS)),$(call gb_Package_get_target,odk_macosx)) \
$(if $(SOLAR_JAVA),$(call gb_Package_get_target,odk_unowinreg)) \
$(call gb_CustomTarget_get_target,odk/odkcommon)
$(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),CHK,1)
......
# -*- 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/config))
$(eval $(call gb_CustomTarget_register_targets,odk/config,\
setsdkenv_windows.bat \
))
$(call gb_CustomTarget_get_workdir,odk/config)/setsdkenv_windows.bat : $(SRCDIR)/odk/config/setsdkenv_windows.bat
sed $< -e 's#__SDKNAME__#libreoffice$(PRODUCTVERSION)_sdk#' > $@
# 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/html))
$(eval $(call gb_CustomTarget_register_targets,odk/html,\
docs/install.html \
docs/notsupported.html \
docs/tools.html \
examples/DevelopersGuide/examples.html \
examples/examples.html \
index.html \
))
$(call gb_CustomTarget_get_workdir,odk/html)/%.html : $(SRCDIR)/odk/%.html
$(call gb_Output_announce,$*.html,$(true),SED,1)
cat $< | tr -d "\015" | sed -e 's/%PRODUCT_RELEASE%/$(PRODUCTVERSION)/g' > $@
# vim: set noet sw=4 ts=4:
......@@ -22,96 +22,4 @@ $(call gb_CustomTarget_get_target,odk/odkcommon): \
$(call gb_CustomTarget_get_target,odk/odkcommon/idl) \
$(call gb_CustomTarget_get_target,odk/odkcommon/include)
ifeq ($(OS),WNT)
odk_CONFIGLIST := cfgWin.js \
setsdkenv_windows.template \
setsdkname.bat
else
odk_CONFIGLIST := configure.pl \
setsdkenv_unix \
setsdkenv_unix.sh.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:
......@@ -14,14 +14,29 @@ $(eval $(call gb_Module_add_targets,odk,\
$(if $(filter WNT,$(OS)),Package_cli) \
$(if $(DOXYGEN),CustomTarget_doxygen) \
CustomTarget_check \
CustomTarget_html \
CustomTarget_settings \
CustomTarget_autodoc \
Executable_unoapploader \
Package_bin \
Package_config \
Package_docs \
Package_html \
Package_examples \
Package_lib \
))
ifeq ($(OS),WNT)
$(eval $(call gb_Module_add_targets,odk,\
CustomTarget_config_win \
Package_config_win \
))
else
$(eval $(call gb_Module_add_targets,odk,\
Package_config_notwin \
))
endif
ifeq ($(OS),MACOSX)
$(eval $(call gb_Module_add_targets,odk,\
Package_macosx \
......
# -*- 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_Package_Package,odk_config,$(SRCDIR)/odk/config))
$(eval $(call gb_Package_set_outdir,odk_config,$(INSTDIR)))
ifeq ($(OS),WNT)
$(eval $(call gb_Package_add_files,odk_config,$(gb_Package_SDKDIRNAME),\
cfgWin.js \
setsdkenv_windows.template \
setsdkname.bat \
))
else
$(eval $(call gb_Package_add_files,odk_config,$(gb_Package_SDKDIRNAME),\
configure.pl \
setsdkenv_unix \
setsdkenv_unix.sh.in \
))
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_Package_Package,odk_config_notwin,$(SRCDIR)))
$(eval $(call gb_Package_set_outdir,odk_config_notwin,$(INSTDIR)))
$(eval $(call gb_Package_add_files,odk_config_notwin,$(gb_Package_SDKDIRNAME),\
config.guess \
config.sub \
))
# 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_Package_Package,odk_config_win,$(call gb_CustomTarget_get_workdir,odk/config)))
$(eval $(call gb_Package_set_outdir,odk_config_win,$(INSTDIR)))
$(eval $(call gb_Package_add_file,odk_config_win,$(gb_Package_SDKDIRNAME)/setsdkenv_windows.bat,setsdkenv_windows.bat))
# 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_Package_Package,odk_docs,$(SRCDIR)/odk))
$(eval $(call gb_Package_set_outdir,odk_docs,$(INSTDIR)))
$(eval $(call gb_Package_add_files_with_dir,odk_docs,$(gb_Package_SDKDIRNAME),\
docs/images/arrow-1.gif \
docs/images/arrow-2.gif \
docs/images/arrow-3.gif \
docs/images/bg_table.png \
docs/images/bg_table2.png \
docs/images/bg_table3.png \
docs/images/bluball.gif \
docs/images/nada.gif \
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/odk-footer-logo.gif \
docs/images/ooo-main-app_32.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 \
docs/sdk_styles.css \
))
# This is installed by CustomTarget_autodoc for now
# docs/common/ref/idl.css \
# 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_Package_Package,odk_html,$(call gb_CustomTarget_get_workdir,odk/html)))
$(eval $(call gb_Package_set_outdir,odk_html,$(INSTDIR)))
$(eval $(call gb_Package_add_files_with_dir,odk_html,$(gb_Package_SDKDIRNAME),\
docs/install.html \
docs/notsupported.html \
docs/tools.html \
examples/DevelopersGuide/examples.html \
examples/examples.html \
index.html \
))
# vim: set noet sw=4 ts=4:
......@@ -36,6 +36,11 @@ Module gid_Module_Optional_Sdkoo
Files = (
gid_File_Package_odk_bin,
gid_File_Package_odk_cli,
gid_File_Package_odk_config,
gid_File_Package_odk_config_win,
gid_File_Package_odk_config_notwin,
gid_File_Package_odk_docs,
gid_File_Package_odk_html,
gid_File_Package_odk_lib,
gid_File_Package_odk_macosx,
gid_File_Package_odk_unowinreg,
......
......@@ -132,6 +132,43 @@ File gid_File_Package_odk_cli
End
#endif
File gid_File_Package_odk_config
TXT_FILE_BODY;
Dir = FILELIST_SDK_DIR;
Name = "odk_config.filelist";
Styles = (FILELIST,USE_INTERNAL_RIGHTS);
End
#if defined(WNT)
File gid_File_Package_odk_config_win
TXT_FILE_BODY;
Dir = FILELIST_SDK_DIR;
Name = "odk_config_win.filelist";
Styles = (FILELIST,USE_INTERNAL_RIGHTS);
End
#else
File gid_File_Package_odk_config_notwin
TXT_FILE_BODY;
Dir = FILELIST_SDK_DIR;
Name = "odk_config_notwin.filelist";
Styles = (FILELIST,USE_INTERNAL_RIGHTS);
End
#endif
File gid_File_Package_odk_docs
TXT_FILE_BODY;
Dir = FILELIST_SDK_DIR;
Name = "odk_docs.filelist";
Styles = (FILELIST,USE_INTERNAL_RIGHTS);
End
File gid_File_Package_odk_html
TXT_FILE_BODY;
Dir = FILELIST_SDK_DIR;
Name = "odk_html.filelist";
Styles = (FILELIST,USE_INTERNAL_RIGHTS);
End
File gid_File_Package_odk_lib
TXT_FILE_BODY;
Dir = FILELIST_SDK_DIR;
......
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