Kaydet (Commit) 1f2a635a authored tarafından Matúš Kukan's avatar Matúš Kukan

clean executables in Repository.mk

..so that no executable in gb_Helper_register_executables,NONE is installed
(except cppunittester from scp2/source/smoketest/)
and all others are installed.
Also remove unused officeloader executable.

Change-Id: I1726afc4d9d6848bca7fa07ebce3acd340777e8a
üst 9555b5bd
......@@ -25,7 +25,10 @@ $(eval $(call gb_Helper_register_executables,NONE, \
concat-deps \
cpp \
cppunit/cppunittester \
$(call gb_Helper_optional,CRASHREP,crashrep) \
$(if $(filter MSC,$(COM)), \
gcc-wrapper \
g++-wrapper \
) \
gencoll_rule \
genconv_dict \
gendict \
......@@ -54,23 +57,20 @@ $(eval $(call gb_Helper_register_executables,NONE, \
stringex \
transex3 \
treex \
$(if $(filter UCPP,$(BUILD_TYPE)),ucpp) \
uiex \
ulfex \
$(call gb_Helper_optional,ODK,unoapploader) \
xpdfimport \
xrmex \
))
$(eval $(call gb_Helper_register_executables,SDK, \
idlc \
$(if $(filter-out IOS,$(OS)), \
climaker \
cppumaker \
javamaker \
regcompare \
uno-skeletonmaker \
) \
$(if $(filter MSC,$(COM)),climaker) \
$(if $(filter DESKTOP,$(BUILD_TYPE)),cppumaker) \
$(if $(filter DESKTOP,$(BUILD_TYPE)),idlc) \
$(if $(filter DESKTOP,$(BUILD_TYPE)),javamaker) \
$(if $(filter DESKTOP,$(BUILD_TYPE)),regcompare) \
$(if $(filter UCPP,$(BUILD_TYPE)),ucpp) \
$(if $(filter ODK,$(BUILD_TYPE)),unoapploader) \
$(if $(filter ODK,$(BUILD_TYPE)),uno-skeletonmaker) \
))
$(eval $(call gb_Helper_register_executables_for_install,OOO,ooo, \
......@@ -78,9 +78,9 @@ $(eval $(call gb_Helper_register_executables_for_install,OOO,ooo, \
))
$(eval $(call gb_Helper_register_executables,OOO, \
$(call gb_Helper_optional,CRASHREP,crashrep) \
gnome-open-url.bin \
$(if $(filter YES,$(ENABLE_NPAPI_INTO_BROWSER)),nsplugin) \
$(if $(filter MACOSX,$(OS)),officeloader) \
$(if $(filter-out ANDROID IOS MACOSX WNT,$(OS)),oosplash) \
$(if $(filter YES,$(ENABLE_NPAPI_FROM_BROWSER)),pluginapp.bin) \
$(if $(filter-out WNT,$(OS)),soffice.bin) \
......@@ -94,14 +94,10 @@ $(eval $(call gb_Helper_register_executables,OOO, \
) \
ui-previewer \
$(if $(filter DESKTOP,$(BUILD_TYPE)),unopkg.bin) \
xpdfimport \
$(if $(filter WNT,$(OS)), \
crashrep_com \
gcc-wrapper \
g++-wrapper \
guiloader \
guistdio \
odbcconfig \
officeloader \
pyuno/python \
quickstart \
sbase \
......@@ -118,7 +114,6 @@ $(eval $(call gb_Helper_register_executables,OOO, \
unopkg \
unopkg_bin \
unopkg_com \
unopkgio \
) \
))
......
# -*- 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,officeloader))
$(eval $(call gb_Executable_use_libraries,officeloader,\
sal \
$(gb_UWINAPI) \
))
# I'm not suer wht was the intent, but that break the link
#$(eval $(call gb_Executable_set_ldflags,officeloader,\
# $(filter -bind_at_load,$$(LDFLAGS)) \
#))
$(eval $(call gb_Executable_add_noexception_objects,officeloader,\
desktop/unx/source/officeloader/officeloader \
))
# vim: set ts=4 sw=4 et:
......@@ -98,10 +98,6 @@ $(eval $(call gb_Module_add_targets,desktop,\
else ifeq ($(OS),MACOSX)
$(eval $(call gb_Module_add_targets,desktop,\
Executable_officeloader \
))
else ifeq ($(OS),ANDROID)
else ifeq ($(OS),IOS)
......
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* 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/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#include <sal/main.h>
#include <osl/process.h>
#include <rtl/ustring.hxx>
#include "../../../source/inc/exithelper.h"
SAL_IMPLEMENT_MAIN()
{
oslProcess process;
oslProcessError error;
OUString sExecutableFile;
rtl_uString **pCommandArgs;
sal_uInt32 nCommandArgs;
osl_getExecutableFile( &sExecutableFile.pData );
sExecutableFile += ".bin";
nCommandArgs = osl_getCommandArgCount();
pCommandArgs = new rtl_uString *[nCommandArgs];
for ( sal_uInt32 i = 0; i < nCommandArgs; i++ )
{
pCommandArgs[i] = NULL;
osl_getCommandArg( i, &pCommandArgs[i] );
}
bool bRestart = false;
bool bFirstRun = true;
oslProcessExitCode exitcode = 255;
do {
error = osl_executeProcess(
sExecutableFile.pData,
bFirstRun ? pCommandArgs : NULL,
bFirstRun ? nCommandArgs : 0,
0,
NULL,
NULL,
NULL,
0,
&process
);
if ( osl_Process_E_None == error )
{
oslProcessInfo info;
info.Size = sizeof(info);
error = osl_joinProcess( process );
if ( osl_Process_E_None != error )
break;
error = osl_getProcessInfo( process, osl_Process_EXITCODE, &info );
if ( osl_Process_E_None != error )
break;
if ( info.Fields & osl_Process_EXITCODE )
{
exitcode = info.Code;
bRestart = (EXITHELPER_CRASH_WITH_RESTART == exitcode || EXITHELPER_NORMAL_RESTART == exitcode);
}
else
break;
osl_freeProcessHandle( process );
}
bFirstRun = false;
} while ( bRestart );
return exitcode;
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
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