Kaydet (Commit) 7a56eef9 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Clean up optional online update module

* The updatecheckui lib is part of that module; should its scp entry also be
marked ComponentCondition="ISCHECKFORPRODUCTUPDATES=1"?

* unpack_update (and other scripts as well?) need only be generated if
ENABLE_ONLINE_UPDATE.

* It is inconsistent that there is a distinct onlineupdate.xcd not merged into
main.xcd, while the updchk and updatecheckui component files are merged into
the global services.rdb.

* The updchk res file should also go into (a resource sub-module of) the
optional online update module.
üst 0de1b33b
......@@ -51,11 +51,15 @@ $(eval $(call gb_Module_add_targets,extensions,\
endif
ifneq (,$(filter DESKTOP,$(BUILD_TYPE)))
$(eval $(call gb_Module_add_targets,extensions,\
Library_updatefeed \
))
ifeq ($(ENABLE_ONLINE_UPDATE),TRUE)
$(eval $(call gb_Module_add_targets,extensions,\
AllLangResTarget_updchk \
Configuration_updchk \
Library_updatecheckui \
Library_updatefeed \
Library_updchk \
))
......@@ -63,6 +67,7 @@ $(eval $(call gb_Module_add_check_targets,extensions,\
CppunitTest_extensions_test_update \
))
endif
endif
ifeq ($(OS),WNT)
......
......@@ -167,9 +167,7 @@ my_components += \
component/extensions/source/propctrlr/pcr \
component/extensions/source/resource/res \
component/extensions/source/scanner/scn \
component/extensions/source/update/check/updchk.uno \
component/extensions/source/update/feed/updatefeed \
component/extensions/source/update/ui/updchk \
component/fpicker/source/generic/fpicker \
component/fpicker/source/office/fps_office \
syssh \
......@@ -262,6 +260,12 @@ my_components += kdebe1
my_components += kde4be1
.END
.IF "$(ENABLE_ONLINE_UPDATE)" == "TRUE"
my_components += \
component/extensions/source/update/check/updchk.uno \
component/extensions/source/update/ui/updchk
.END
.IF "$(ENABLE_OPENGL)" == "TRUE"
my_components += component/slideshow/source/engine/OGLTrans/ogltrans
.END
......
......@@ -46,7 +46,6 @@ MY_XCDS = \
$(MISC)/lingucomponent.xcd \
$(MISC)/main.xcd \
$(MISC)/math.xcd \
$(MISC)/onlineupdate.xcd \
$(MISC)/palm.xcd \
$(MISC)/pocketexcel.xcd \
$(MISC)/pocketword.xcd \
......@@ -362,13 +361,6 @@ MY_FILES_math = \
$(MY_MOD)/org/openoffice/Office/Embedding-math.xcu \
$(MY_MOD)/org/openoffice/Setup-math.xcu
.IF "$(BUILD_TYPE)" != "$(BUILD_TYPE:s/DESKTOP//)"
MY_DEPS_onlineupdate = main
MY_FILES_onlineupdate = \
$(MY_MOD)/org/openoffice/Office/Addons-onlineupdate.xcu \
$(MY_MOD)/org/openoffice/Office/Jobs-onlineupdate.xcu
.ENDIF
MY_DEPS_palm = main
MY_FILES_palm = \
$(MY_MOD)/fcfg_palm_filters.xcu \
......@@ -465,6 +457,14 @@ MY_FILES_gnome += \
.END
.END
.IF "$(ENABLE_ONLINE_UPDATE)" == "TRUE"
MY_XCDS += $(MISC)/onlineupdate.xcd \
MY_DEPS_onlineupdate = main
MY_FILES_onlineupdate = \
$(MY_MOD)/org/openoffice/Office/Addons-onlineupdate.xcu \
$(MY_MOD)/org/openoffice/Office/Jobs-onlineupdate.xcu
.ENDIF
.IF "$(ENABLE_OPENGL)" == "TRUE"
MY_XCDS += $(MISC)/ogltrans.xcd
MY_DEPS_ogltrans = main
......
......@@ -35,6 +35,8 @@ File gid_File_Lib_Updchk
ComponentCondition="ISCHECKFORPRODUCTUPDATES=1";
End
STD_LIB_FILE(gid_File_Lib_Updchkui, updatecheckui)
File gid_File_Share_Registry_Onlineupdate_Xcd
TXT_FILE_BODY;
Styles = (PACKED);
......
......@@ -34,5 +34,8 @@ Module gid_Module_Optional_Onlineupdate
ParentID = gid_Module_Optional;
Default = YES;
Styles = (DONTSHOWINUSERINSTALL);
Files = (gid_File_Lib_Updchk, gid_File_Share_Registry_Onlineupdate_Xcd, gid_File_Bin_UnpackUpdate);
Files = (gid_File_Bin_UnpackUpdate,
gid_File_Lib_Updchk,
gid_File_Lib_Updchkui,
gid_File_Share_Registry_Onlineupdate_Xcd);
End
......@@ -1498,8 +1498,6 @@ End
STD_LIB_FILE( gid_File_Lib_Guesslang, guesslang )
STD_LIB_FILE( gid_File_Lib_Updchkui , updatecheckui )
SPECIAL_COMPONENT_LIB_FILE( gid_File_Lib_Updatefeed , updatefeed.uno )
#ifndef SYSTEM_OPENSSL
......
......@@ -115,7 +115,9 @@ STD_RES_FILE( gid_File_Res_AVMedia, avmedia )
STD_RES_FILE( gid_File_Res_XMLSecurity, xmlsec )
#if defined ENABLE_ONLINE_UPDATE
STD_RES_FILE( gid_File_Res_UpdChk, updchk )
#endif
STD_RES_FILE( gid_File_Res_Upd, upd )
......
......@@ -478,7 +478,6 @@ Module gid_Module_Root_Files_5
gid_File_Lib_Hatchwindowfactory,
gid_File_Lib_Passwordcontainer,
gid_File_Lib_Svtmisc,
gid_File_Lib_Updchkui,
gid_File_Lib_Updatefeed,
gid_File_Lib_Cli_Oootypes_Assembly,
gid_File_Lib_Policy_Cli_Oootypes_Assembly,
......
......@@ -42,10 +42,13 @@ UNIXTEXT= \
$(BIN)$/javaloader.sh \
$(BIN)$/register_extensions \
$(BIN)$/deregister_extensions \
$(BIN)$/unpack_update.sh \
$(BIN)$/update.sh \
$(BIN)$/downloadscript.sh
.IF "$(ENABLE_ONLINE_UPDATE)" == "TRUE"
UNIXTEXT += $(BIN)$/unpack_update.sh
.END
NOARCH=$(BIN)$/noarch
FAKEDB=$(NOARCH)/fake-db-1.0-0.noarch.rpm
FAKEDBROOT=$(COMMONMISC)/$(TARGET)/fake-db-root
......
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