Fix build on Win64, where int != sal_Int32
[LibreOffice.git] / desktop / Executable_soffice_bin.mk
blobce908c1be3185072b3b5997cd51880628b4191b3
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,soffice_bin))
12 $(eval $(call gb_Executable_set_include,soffice_bin,\
13 $$(INCLUDE) \
14 -I$(SRCDIR)/desktop/source/inc \
17 $(eval $(call gb_Executable_add_defs,soffice_bin,\
18 $(if $(DISABLE_DYNLOADING),$(if $(SYSTEM_LIBXML),,-DNOTEST_xmlCleanupParser)) \
21 $(eval $(call gb_Executable_use_libraries,soffice_bin,\
22 sal \
23 sofficeapp \
26 $(eval $(call gb_Executable_add_cobjects,soffice_bin,\
27 desktop/source/app/main \
30 $(eval $(call gb_Executable_add_prejs,soffice_bin,$(SRCDIR)/static/emscripten/soffice_args.js))
32 ifeq ($(OS),WNT)
34 $(eval $(call gb_Executable_set_targettype_gui,soffice_bin,NO))
36 $(eval $(call gb_Executable_add_nativeres,soffice_bin,sofficebin/officeloader))
38 $(eval $(call gb_Executable_add_default_nativeres,soffice_bin,$(PRODUCTNAME)))
40 ifeq ($(COM),MSC)
42 $(eval $(call gb_Executable_add_ldflags,soffice_bin,\
43 /STACK:10000000 \
46 endif
48 endif
50 ifeq ($(OS),EMSCRIPTEN)
52 $(eval $(call gb_Executable_add_ldflags,soffice_bin,\
53 -s EXPORTED_FUNCTIONS=["_main"$(COMMA)"_libreofficekit_hook"$(COMMA)"_libreofficekit_hook_2"$(COMMA)"_lok_preinit"$(COMMA)"_lok_preinit_2"] \
56 endif
58 # vim: set ts=4 sw=4 et: