Avoid potential negative array index access to cached text.
[LibreOffice.git] / desktop / Executable_oosplash.mk
blob2808e0113510e42fd7ddd2f031974fb40f340636
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_Executable_Executable,oosplash))
12 $(eval $(call gb_Executable_set_targettype_gui,oosplash,YES))
14 $(eval $(call gb_Executable_use_libraries,oosplash,\
15 sal \
18 $(eval $(call gb_Executable_add_cobjects,oosplash,\
19 desktop/unx/source/args \
20 desktop/unx/source/file_image_unx \
21 $(if $(ENABLE_PAGEIN),desktop/unx/source/pagein) \
22 desktop/unx/source/splashx \
23 desktop/unx/source/start \
26 ifneq ($(USING_X11),)
27 $(eval $(call gb_Executable_add_libs,oosplash,\
28 -lXinerama \
30 endif
32 ifneq ($(DISABLE_GUI),TRUE)
34 ifneq ($(OS),WNT)
35 $(eval $(call gb_Executable_add_libs,oosplash,\
36 -lX11 \
38 endif
40 $(eval $(call gb_Executable_add_defs,oosplash,\
41 -DENABLE_QUICKSTART_LIBPNG \
44 $(eval $(call gb_Executable_use_externals,oosplash,\
45 libpng \
48 endif
50 ifeq ($(OS),LINUX)
51 $(eval $(call gb_Executable_add_libs,oosplash,\
52 -lm \
54 endif
56 ifeq ($(OS),SOLARIS)
58 $(eval $(call gb_Executable_add_libs,oosplash,\
59 -lsocket \
62 endif
64 # vim: set ts=4 sw=4 et: