diff options
author | Jan-Marek Glogowski <glogow@fbihome.de> | 2021-05-21 15:41:15 +0200 |
---|---|---|
committer | Jan-Marek Glogowski <glogow@fbihome.de> | 2021-05-27 09:55:00 +0200 |
commit | 67294308ac05b0ec4a8f0ff29f1bb560164d413d (patch) | |
tree | cd56c085fe6a0192bb80c9e0c6e2d53e9828ff58 /sal/Library_cppunitmain.mk | |
parent | gbuild: introduce plugin + loader concepts (diff) | |
download | core-67294308ac05b0ec4a8f0ff29f1bb560164d413d.tar.gz core-67294308ac05b0ec4a8f0ff29f1bb560164d413d.zip |
gbuild: link static executables
See the (large) comment in solenv/gbuild/static.mk trying to
explain, why this implementation was chosen (spoiler: seems
there is no other way) and what is actually implemented. Yes,
I also think it's borderline maintainable (like gbuild in
general; complexity clashing with make "restrictions").
I which I had put that much time into a Meson build, or just
had expanded the bin/lo-all-static-libs "concept"...
Change-Id: Iafc95752fae9e88095f54a21f1e30a4f080815e2
Diffstat (limited to 'sal/Library_cppunitmain.mk')
-rw-r--r-- | sal/Library_cppunitmain.mk | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/sal/Library_cppunitmain.mk b/sal/Library_cppunitmain.mk new file mode 100644 index 000000000000..07f51e0c4821 --- /dev/null +++ b/sal/Library_cppunitmain.mk @@ -0,0 +1,42 @@ +# -*- 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_Library_Library,cppunitmain)) + +$(eval $(call gb_Library_set_include,cppunitmain,\ + $$(INCLUDE) \ + -I$(SRCDIR)/sal/inc \ +)) + +$(eval $(call gb_Library_use_libraries,cppunitmain,\ + sal \ + unoexceptionprotector \ + unobootstrapprotector \ + vclbootstrapprotector \ +)) + +$(eval $(call gb_Library_use_externals,cppunitmain,\ + boost_headers \ + cppunit \ +)) + +$(eval $(call gb_Library_add_exception_objects,cppunitmain,\ + sal/cppunittester/cppunittester \ +)) + +ifeq ($(COM),MSC) + +$(eval $(call gb_Library_add_ldflags,cppunitmain,\ + /STACK:10000000 \ +)) + +endif + +# vim: set noet sw=4 ts=4: |