[Libreoffice-commits] core.git: scp2/AutoInstall.mk scp2/inc solenv/gbuild
Michael Stahl
mstahl at redhat.com
Mon Jun 22 12:09:00 PDT 2015
scp2/AutoInstall.mk | 2 +-
scp2/inc/macros.inc | 9 +++++++++
solenv/gbuild/AutoInstall.mk | 2 +-
3 files changed, 11 insertions(+), 2 deletions(-)
New commits:
commit 70cba374f6862bb6b3568927267fc9e1fe3c0922
Author: Michael Stahl <mstahl at redhat.com>
Date: Mon Jun 22 21:02:05 2015 +0200
scp2: add AutoInstall support for executables with COMPONENTCONDITION
Change-Id: I36f14d9ba08ab2473a555681b934b8b35cfa06b2
diff --git a/scp2/AutoInstall.mk b/scp2/AutoInstall.mk
index 5a7c4f9..7d2a347 100644
--- a/scp2/AutoInstall.mk
+++ b/scp2/AutoInstall.mk
@@ -31,7 +31,7 @@ $(eval $(call gb_AutoInstall_add_module,kde,LIBO_LIB_FILE,LIBO_EXECUTABLE))
$(eval $(call gb_AutoInstall_add_module,math,LIBO_LIB_FILE))
$(eval $(call gb_AutoInstall_add_module,math_brand,,LIBO_EXECUTABLE))
$(eval $(call gb_AutoInstall_add_module,ogltrans,LIBO_LIB_FILE))
-$(eval $(call gb_AutoInstall_add_module,onlineupdate,LIBO_LIB_FILE_COMPONENTCONDITION,,,"ISCHECKFORPRODUCTUPDATES=1"))
+$(eval $(call gb_AutoInstall_add_module,onlineupdate,LIBO_LIB_FILE_COMPONENTCONDITION,LIBO_EXECUTABLE_COMPONENTCONDITION,,"ISCHECKFORPRODUCTUPDATES=1"))
$(eval $(call gb_AutoInstall_add_module,ooo,LIBO_LIB_FILE,LIBO_EXECUTABLE,LIBO_JAR_FILE))
$(eval $(call gb_AutoInstall_add_module,ooobinarytable,LIBO_LIB_FILE_BINARYTABLE))
$(eval $(call gb_AutoInstall_add_module,python,LIBO_LIB_FILE,LIBO_EXECUTABLE))
diff --git a/scp2/inc/macros.inc b/scp2/inc/macros.inc
index 6f8e6ab..47f59f1 100644
--- a/scp2/inc/macros.inc
+++ b/scp2/inc/macros.inc
@@ -538,6 +538,15 @@ End
Styles = (PACKED); \
End
+#define LIBO_EXECUTABLE_COMPONENTCONDITION(id,name,cond) \
+ File id \
+ BIN_FILE_BODY; \
+ Dir = gid_Brand_Dir_Program; \
+ Name = name; \
+ Styles = (PACKED); \
+ ComponentCondition = cond; \
+ End
+
#define SDK_EXECUTABLE(id,name) \
File id \
BIN_FILE_BODY; \
diff --git a/solenv/gbuild/AutoInstall.mk b/solenv/gbuild/AutoInstall.mk
index 282b02a..11ff644 100644
--- a/solenv/gbuild/AutoInstall.mk
+++ b/solenv/gbuild/AutoInstall.mk
@@ -60,7 +60,7 @@ endif
$(foreach lib,$(gb_SdkLinkLibrary_MODULE_$*),\
echo 'SDK_LIBRARY_LINK(auto_$*_link_$(lib),$(notdir $(call gb_Library_get_sdk_link_lib,$(lib))),../../program/$(call gb_Library_get_runtime_filename,$(lib)))' >> $@;)
$(foreach exe,$(gb_Executable_MODULE_$*),\
- echo "$(SCP2EXETEMPLATE)(auto_$*_exe_$(subst .,_,$(subst -,_,$(exe))),$(call gb_Executable_get_filename,$(exe)))" >> $@;)
+ echo "$(SCP2EXETEMPLATE)(auto_$*_exe_$(subst .,_,$(subst -,_,$(exe))),$(call gb_Executable_get_filename,$(exe))$(if $(SCP2COMPONENTCONDITION),$(COMMA)$(SCP2COMPONENTCONDITION)))" >> $@;)
$(foreach jar,$(gb_Jar_MODULE_$*),\
echo '$(SCP2JARTEMPLATE)(auto_$*_jar_$(subst .,_,$(subst -,_,$(jar))),$(jar).jar)' >> $@;)
$(foreach pkg,$(gb_Package_MODULE_$*),\
More information about the Libreoffice-commits
mailing list