office-gobmx/desktop/Executable_soffice_bin.mk
Thorsten Wagner 1a16762531 tdf#138122 Add window scaling for retina displays on macOS
(1) Remove hack to make application look as if being linked against SDK 10.13

(2) Use quad storage size on virtual devices for displaying on retina displays thereafter

(3) Apply workaround to downsample bitmaps from scaled layers (to be implemented)

(4) Disable dark mode (to be implemented)

(5) Provide new environment variables:

VCL_MACOS_FORCE_WINDOW_SCALING:
window scaling on non retina displays

VCL_MACOS_FORCE_DARK_MODE:
enable dark mode (macOS 10.14, iOS 13 and newer)

VCL_MACOS_USE_SYSTEM_APPEARANCE:
use light mode or dark mode (macOS 10.14, iOS 13 and newer) as configured by system preferences

Change-Id: I99877cd62a98cb91bcbf27af62b043c31c5f5fc9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109072
Tested-by: Jenkins
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2021-01-17 19:21:15 +01:00

44 lines
1 KiB
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,soffice_bin))
$(eval $(call gb_Executable_set_include,soffice_bin,\
$$(INCLUDE) \
-I$(SRCDIR)/desktop/source/inc \
))
$(eval $(call gb_Executable_use_libraries,soffice_bin,\
sal \
sofficeapp \
))
$(eval $(call gb_Executable_add_cobjects,soffice_bin,\
desktop/source/app/main \
))
ifeq ($(OS),WNT)
$(eval $(call gb_Executable_set_targettype_gui,soffice_bin,NO))
$(eval $(call gb_Executable_add_nativeres,soffice_bin,sofficebin/officeloader))
$(eval $(call gb_Executable_add_default_nativeres,soffice_bin,$(PRODUCTNAME)))
ifeq ($(COM),MSC)
$(eval $(call gb_Executable_add_ldflags,soffice_bin,\
/STACK:10000000 \
))
endif
endif
# vim: set ts=4 sw=4 et: