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 # to block heavy exception handling that try to acquire the solarmutex
11 export LO_LEAN_EXCEPTION
=1
13 gb_LICENSE
:= license.txt
14 gb_README
= readme_
$(1).txt
16 gb_Helper_get_rcfile
= $(1).ini
18 gb_Helper_LIBRARY_PATH_VAR
:= PATH
20 gb_MKTEMP
:= mktemp
--tmpdir
=$(gb_TMPDIR
) gbuild.XXXXXX
22 # define _WIN32_WINNT and WINVER will be derived from it in sdkddkver.h
23 # current baseline is Windows 7 (NT 6.1)
24 # for _WIN32_IE, if _WIN32_WINNT >= 0x0600 the derived value from
25 # sdkddkver.h is sufficient
26 gb_WIN_VERSION_DEFS
:= \
27 -D_WIN32_WINNT
=0x0601 \
32 $(gb_WIN_VERSION_DEFS
) \
36 gb_Executable_LAYER
:= \
37 $(foreach exe
,$(gb_Executable_UREBIN
),$(exe
):UREBIN
) \
38 $(foreach exe
,$(gb_Executable_SDK
),$(exe
):SDKBIN
) \
39 $(foreach exe
,$(gb_Executable_OOO
),$(exe
):OOO
) \
40 $(foreach exe
,$(gb_Executable_NONE
),$(exe
):NONE
) \
42 # empty to avoid --warn-undefined-functions
43 gb_Library__set_soversion_script_platform
=
45 # default platform and configuration values used by msbuild
46 gb_MSBUILD_CONFIG
:= $(if
$(MSVC_USE_DEBUG_RUNTIME
),Debug
,Release
)
47 gb_MSBUILD_PLATFORM
:= $(strip \
48 $(if
$(filter INTEL
,$(CPUNAME
)),Win32
) \
49 $(if
$(filter X86_64
,$(CPUNAME
)),x64
) \
50 $(if
$(filter AARCH64
,$(CPUNAME
)),ARM64
) \
52 gb_MSBUILD_CONFIG_AND_PLATFORM
:= \
53 /p
:Configuration
=$(gb_MSBUILD_CONFIG
) \
54 /p
:Platform
=$(gb_MSBUILD_PLATFORM
)
56 gb_CONFIGURE_PLATFORMS
:= \
57 $(if
$(and
$(filter i686-pc-cygwin
,$(HOST_PLATFORM
)),$(filter x86_64-pc-cygwin
,$(BUILD_PLATFORM
))), \
58 --build
=$(HOST_PLATFORM
),--build
=$(BUILD_PLATFORM
)) --host
=$(HOST_PLATFORM
)
60 # vim:set noexpandtab: