Avoid potential negative array index access to cached text.
[LibreOffice.git] / setup_native / Library_sn_tools.mk
blob061cdbad37f1b12b2accbfc31333d0a6c6313374
1 # -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
3 # This file is part of the LibreOffice project.
5 # This Source Code Form is subject to the terms of the Mozilla Public
6 # License, v. 2.0. If a copy of the MPL was not distributed with this
7 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
10 $(eval $(call gb_Library_Library,sn_tools))
12 $(eval $(call gb_Library_add_defs,sn_tools,\
13 -U_DLL \
16 $(eval $(call gb_Library_add_cxxflags,sn_tools,\
17 $(if $(MSVC_USE_DEBUG_RUNTIME),/MTd,/MT) \
18 $(if $(filter -fsanitize=%,$(CC)),,/fno-sanitize-address-vcasan-lib) \
21 $(eval $(call gb_Library_add_ldflags,sn_tools,\
22 /DEF:$(SRCDIR)/setup_native/source/win32/customactions/tools/sn_tools.def \
23 /NODEFAULTLIB \
26 $(eval $(call gb_Library_add_exception_objects,sn_tools,\
27 setup_native/source/win32/customactions/tools/checkversion \
30 $(eval $(call gb_Library_use_static_libraries,sn_tools,\
31 seterror \
34 $(eval $(call gb_Library_use_system_win32_libs,sn_tools,\
35 libcmt \
36 libcpmt \
37 libucrt \
38 libvcruntime \
39 kernel32 \
40 msi \
41 advapi32 \
44 # vim: set noet sw=4 ts=4: