forked from amazingfate/loongoffice
In an ideal world, by the time we reach DeInitVCL() there should be neither non-null VclPtr nor EditEngine instances around. This fixes the former for those VclPtrs owned by EditEngines, by disposing them when SfxApplication is dying. The goal is -- for now -- to not have any non-null VclPtrs around by DeInitVCL(), so we can e.g. assert() on that to pick up regressions. Should we one day have all EditEngines accounted for with proper smart pointers that get torn down before DeInitVCL(), the Dispose() introduced here might be removed again. Change-Id: I47b17f7fd31fce2ac5fd6f6b146d356d7d07e677 Reviewed-on: https://gerrit.libreoffice.org/34985 Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com> Tested-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
165 lines
5.4 KiB
Makefile
165 lines
5.4 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/.
|
|
#
|
|
# 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 .
|
|
#
|
|
|
|
$(eval $(call gb_Library_Library,editeng))
|
|
|
|
$(eval $(call gb_Library_set_include,editeng,\
|
|
$$(INCLUDE) \
|
|
-I$(SRCDIR)/editeng/inc \
|
|
-I$(SRCDIR)/editeng/source/editeng \
|
|
))
|
|
|
|
$(eval $(call gb_Library_use_custom_headers,editeng,editeng/generated))
|
|
|
|
$(eval $(call gb_Library_set_precompiled_header,editeng,$(SRCDIR)/editeng/inc/pch/precompiled_editeng))
|
|
|
|
$(eval $(call gb_Library_add_defs,editeng,\
|
|
-DEDITENG_DLLIMPLEMENTATION \
|
|
))
|
|
|
|
$(eval $(call gb_Library_use_sdk_api,editeng))
|
|
|
|
$(eval $(call gb_Library_add_exception_objects,editeng,\
|
|
editeng/source/accessibility/AccessibleComponentBase \
|
|
editeng/source/accessibility/AccessibleContextBase \
|
|
editeng/source/accessibility/AccessibleEditableTextPara \
|
|
editeng/source/accessibility/AccessibleHyperlink \
|
|
editeng/source/accessibility/AccessibleImageBullet \
|
|
editeng/source/accessibility/AccessibleParaManager \
|
|
editeng/source/accessibility/AccessibleSelectionBase \
|
|
editeng/source/accessibility/AccessibleStaticTextBase \
|
|
editeng/source/accessibility/AccessibleStringWrap \
|
|
editeng/source/editeng/editattr \
|
|
editeng/source/editeng/editdata \
|
|
editeng/source/editeng/editdbg \
|
|
editeng/source/editeng/editdoc \
|
|
editeng/source/editeng/editeng \
|
|
editeng/source/editeng/editobj \
|
|
editeng/source/editeng/editsel \
|
|
editeng/source/editeng/editundo \
|
|
editeng/source/editeng/editview \
|
|
editeng/source/editeng/edtspell \
|
|
editeng/source/editeng/eehtml \
|
|
editeng/source/editeng/eeobj \
|
|
editeng/source/editeng/eerdll \
|
|
editeng/source/editeng/eertfpar \
|
|
editeng/source/editeng/fieldupdater \
|
|
editeng/source/editeng/impedit \
|
|
editeng/source/editeng/impedit2 \
|
|
editeng/source/editeng/impedit3 \
|
|
editeng/source/editeng/impedit4 \
|
|
editeng/source/editeng/impedit5 \
|
|
editeng/source/editeng/misspellrange \
|
|
editeng/source/editeng/section \
|
|
editeng/source/editeng/textconv \
|
|
editeng/source/items/borderline \
|
|
editeng/source/items/bulitem \
|
|
editeng/source/items/charhiddenitem \
|
|
editeng/source/items/flditem \
|
|
editeng/source/items/frmitems \
|
|
editeng/source/items/itemtype \
|
|
editeng/source/items/justifyitem \
|
|
editeng/source/items/numitem \
|
|
editeng/source/items/optitems \
|
|
editeng/source/items/paperinf \
|
|
editeng/source/items/paraitem \
|
|
editeng/source/items/svdfield \
|
|
editeng/source/items/svxfont \
|
|
editeng/source/items/textitem \
|
|
editeng/source/items/writingmodeitem \
|
|
editeng/source/items/xmlcnitm \
|
|
editeng/source/misc/acorrcfg \
|
|
editeng/source/misc/edtdlg \
|
|
editeng/source/misc/forbiddencharacterstable \
|
|
editeng/source/misc/hangulhanja \
|
|
editeng/source/misc/splwrap \
|
|
editeng/source/misc/svxacorr \
|
|
editeng/source/misc/SvXMLAutoCorrectTokenHandler \
|
|
editeng/source/misc/SvXMLAutoCorrectExport \
|
|
editeng/source/misc/SvXMLAutoCorrectImport \
|
|
editeng/source/misc/swafopt \
|
|
editeng/source/misc/txtrange \
|
|
editeng/source/misc/unolingu \
|
|
editeng/source/outliner/outleeng \
|
|
editeng/source/outliner/outlin2 \
|
|
editeng/source/outliner/outliner \
|
|
editeng/source/outliner/outlobj \
|
|
editeng/source/outliner/outlundo \
|
|
editeng/source/outliner/outlvw \
|
|
editeng/source/outliner/overflowingtxt \
|
|
editeng/source/outliner/paralist \
|
|
editeng/source/rtf/rtfitem \
|
|
editeng/source/rtf/svxrtf \
|
|
editeng/source/uno/unoedhlp \
|
|
editeng/source/uno/unoedprx \
|
|
editeng/source/uno/unoedsrc \
|
|
editeng/source/uno/unofdesc \
|
|
editeng/source/uno/unofield \
|
|
editeng/source/uno/UnoForbiddenCharsTable \
|
|
editeng/source/uno/unofored \
|
|
editeng/source/uno/unoforou \
|
|
editeng/source/uno/unoipset \
|
|
editeng/source/uno/unonrule \
|
|
editeng/source/uno/unopracc \
|
|
editeng/source/uno/unotext \
|
|
editeng/source/uno/unotext2 \
|
|
editeng/source/uno/unoviwou \
|
|
editeng/source/xml/xmltxtexp \
|
|
editeng/source/xml/xmltxtimp \
|
|
editeng/source/lookuptree/Trie \
|
|
))
|
|
|
|
# add libraries to be linked to editeng; again these names need to be given as
|
|
# specified in Repository.mk
|
|
$(eval $(call gb_Library_use_libraries,editeng,\
|
|
xo \
|
|
basegfx \
|
|
lng \
|
|
svt \
|
|
tk \
|
|
vcl \
|
|
svl \
|
|
sot \
|
|
sfx \
|
|
utl \
|
|
tl \
|
|
comphelper \
|
|
ucbhelper \
|
|
cppuhelper \
|
|
cppu \
|
|
sal \
|
|
salhelper \
|
|
sax \
|
|
i18nlangtag \
|
|
i18nutil \
|
|
$(gb_UWINAPI) \
|
|
))
|
|
|
|
$(eval $(call gb_Library_use_externals,editeng,\
|
|
boost_headers \
|
|
icuuc \
|
|
icu_headers \
|
|
libxml2 \
|
|
))
|
|
|
|
# Runtime dependency for unit-tests
|
|
$(eval $(call gb_Library_use_restarget,editeng,editeng))
|
|
|
|
# vim: set noet sw=4 ts=4:
|