diff --git a/Repository.mk b/Repository.mk index 9940f05dddbb..8f3e005cbb85 100644 --- a/Repository.mk +++ b/Repository.mk @@ -104,6 +104,12 @@ $(eval $(call gb_Helper_register_executables_for_install,OOO,base, \ ) \ )) +$(eval $(call gb_Helper_register_executables_for_install,OOO,calc_brand, \ + $(if $(filter WNT,$(OS)), \ + scalc \ + ) \ +)) + $(eval $(call gb_Helper_register_executables_for_install,OOO,ooo, \ gengal \ )) @@ -146,7 +152,6 @@ $(eval $(call gb_Helper_register_executables,OOO, \ $(if $(and $(ENABLE_GTK), $(filter LINUX,$(OS))), gtktiledviewer) \ $(if $(filter WNT,$(OS)), \ quickstart \ - scalc \ sdraw \ senddoc \ simpress \ diff --git a/scp2/AutoInstall.mk b/scp2/AutoInstall.mk index f47603224c2d..eaa1666caa3a 100644 --- a/scp2/AutoInstall.mk +++ b/scp2/AutoInstall.mk @@ -16,6 +16,7 @@ $(eval $(call gb_AutoInstall_add_module,base,LIBO_LIB_FILE,LIBO_EXECUTABLE)) $(eval $(call gb_AutoInstall_add_module,base_brand,,LIBO_EXECUTABLE)) $(eval $(call gb_AutoInstall_add_module,brand,,LIBO_EXECUTABLE)) $(eval $(call gb_AutoInstall_add_module,calc,LIBO_LIB_FILE)) +$(eval $(call gb_AutoInstall_add_module,calc_brand,,LIBO_EXECUTABLE)) $(eval $(call gb_AutoInstall_add_module,crashrep,,LIBO_EXECUTABLE)) $(eval $(call gb_AutoInstall_add_module,extensions_bsh,,,LIBO_JAR_FILE)) $(eval $(call gb_AutoInstall_add_module,extensions_rhino,,,LIBO_JAR_FILE)) diff --git a/scp2/InstallModule_calc.mk b/scp2/InstallModule_calc.mk index 1aff01cbc127..0484fac3174e 100644 --- a/scp2/InstallModule_calc.mk +++ b/scp2/InstallModule_calc.mk @@ -9,7 +9,10 @@ $(eval $(call gb_InstallModule_InstallModule,scp2/calc)) -$(eval $(call gb_InstallModule_use_auto_install_libs,scp2/calc,calc)) +$(eval $(call gb_InstallModule_use_auto_install_libs,scp2/calc,\ + calc \ + calc_brand \ +)) $(eval $(call gb_InstallModule_define_if_set,scp2/calc,\ ENABLE_MACOSX_SANDBOX \ diff --git a/scp2/source/calc/file_calc.scp b/scp2/source/calc/file_calc.scp index c3d2ed2b4ab6..390fd0e3f65f 100644 --- a/scp2/source/calc/file_calc.scp +++ b/scp2/source/calc/file_calc.scp @@ -41,11 +41,11 @@ File gid_File_Help_Scalc_Zip End #endif -#ifndef MACOSX +#if !defined MACOSX && !defined WNT File gid_File_Exe_Scalc BIN_FILE_BODY; Dir = gid_Brand_Dir_Program; - Name = EXENAME(scalc); + Name = "scalc"; Styles = (PACKED); End #endif diff --git a/scp2/source/calc/folderitem_calc.scp b/scp2/source/calc/folderitem_calc.scp index 05db68fded8e..a41ade695864 100644 --- a/scp2/source/calc/folderitem_calc.scp +++ b/scp2/source/calc/folderitem_calc.scp @@ -23,8 +23,8 @@ FolderItem gid_Folderitem_Scalc Name = "%PRODUCTNAME Calc"; ModuleID = gid_Module_Prg_Calc_Bin; FolderID = gid_Folder_Staroffice51; - FileID = gid_File_Exe_Scalc; - IconFile = gid_File_Exe_Scalc; + FileID = auto_calc_brand_exe_scalc; + IconFile = auto_calc_brand_exe_scalc; IconID = 0; WkDir = gid_Brand_Dir_Program; Parameter = ""; diff --git a/scp2/source/calc/module_calc.scp b/scp2/source/calc/module_calc.scp index 020af524d81a..47d64265929d 100644 --- a/scp2/source/calc/module_calc.scp +++ b/scp2/source/calc/module_calc.scp @@ -19,6 +19,7 @@ #include "macros.inc" #include "AutoInstall/calc" +#include "AutoInstall/calc_brand" Module gid_Module_Prg_Calc MOD_NAME_DESC ( MODULE_PRG_CALC ); @@ -59,7 +60,7 @@ Module gid_Module_Brand_Prg_Calc Minimal = YES; Default = YES; Styles = (HIDDEN_ROOT); - Files = (gid_File_Exe_Scalc); + Files = (auto_calc_brand_ALL,gid_File_Exe_Scalc); End Module gid_Module_Langpack_Calc_Template