office-gobmx/desktop/Executable_unopkg_bin.mk
Mike Kaganski ab09422405 Make unopkg.com proper launcher for unopkg.bin on Windows
... like implemented in 506173a7f4 for
soffice.bin.

Previously unopkg.com prepared some communication pipes, and launched
unopkg.exe, which in turn launched unopkg.bin (both GUI subsystem apps),
and when the latter sent output to console, it was redirected to the
pipes, and finally sent to console by unopkg.com (details in dropped
desktop/win32/source/guistdio/guistdio.inc). The implementation made it
impossible to use standard console output function from c/c++ standard
libraries; WinAPI had to be used. Special API had been implemented for
that: dp_misc::writeConsole*, and still part of output was garbled.
Commit 015e9f780b tried to workaround
that, effectively making loghandler unusable outside of unopkg.

This change makes unopkg.com a console subsystem clone of unopkg.exe,
and unopkg.bin is now also console application. This allows to cleanup
and unify its output in a follow-up commit.

Change-Id: I3b299e09f8a11a72883b06442b0e95131ffaac5f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87210
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Mike Kaganski <mike.kaganski@collabora.com>
2020-01-23 06:20:22 +01:00

32 lines
854 B
Makefile

# -*- 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,unopkg_bin))
$(eval $(call gb_Executable_set_targettype_gui,unopkg_bin,NO))
$(eval $(call gb_Executable_set_include,unopkg_bin,\
$$(INCLUDE) \
-I$(SRCDIR)/desktop/source/inc \
))
$(eval $(call gb_Executable_use_libraries,unopkg_bin,\
comphelper \
sal \
tl \
unopkgapp \
))
$(eval $(call gb_Executable_add_cobjects,unopkg_bin,\
desktop/source/pkgchk/unopkg/unopkg_main \
))
$(eval $(call gb_Executable_add_default_nativeres,unopkg_bin))
# vim: set ts=4 sw=4 et: