2 # This file is part of the LibreOffice project.
4 # This Source Code Form is subject to the terms of the Mozilla Public
5 # License, v. 2.0. If a copy of the MPL was not distributed with this
6 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 # This file incorporates work covered by the following license notice:
10 # Licensed to the Apache Software Foundation (ASF) under one or more
11 # contributor license agreements. See the NOTICE file distributed
12 # with this work for additional information regarding copyright
13 # ownership. The ASF licenses this file to you under the Apache
14 # License, Version 2.0 (the "License"); you may not use this file
15 # except in compliance with the License. You may obtain a copy of
16 # the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 # Map target platform (extension cfg) and extension platform (SDK settings)
22 # https://wiki.documentfoundation.org/Documentation/DevGuide/Extensions#Target_Platform
23 # odk/settings/settings.mk
25 # only make version 3.81 or later accepts the multiple else conditions
26 ifeq "$(UNOPKG_PLATFORM)" "FreeBSD_x86"
27 EXTENSION_PLATFORM
=freebsd_x86
28 else ifeq "$(UNOPKG_PLATFORM)" "FreeBSD_x86_64"
29 EXTENSION_PLATFORM
=freebsd_x86_64
30 else ifeq "$(UNOPKG_PLATFORM)" "Linux_PowerPC"
31 EXTENSION_PLATFORM
=linux_powerpc
32 else ifeq "$(UNOPKG_PLATFORM)" "Linux_x86"
33 EXTENSION_PLATFORM
=linux_x86
34 else ifeq "$(UNOPKG_PLATFORM)" "Linux_x86_64"
35 EXTENSION_PLATFORM
=linux_x86_64
36 else ifeq "$(UNOPKG_PLATFORM)" "MacOSX_PowerPC"
37 EXTENSION_PLATFORM
=macosx_powerpc
38 else ifeq "$(UNOPKG_PLATFORM)" "MacOSX_x86"
39 EXTENSION_PLATFORM
=macosx_x86
40 else ifeq "$(UNOPKG_PLATFORM)" "MacOSX_x86_64"
41 EXTENSION_PLATFORM
=macosx_x86_64
42 else ifeq "$(UNOPKG_PLATFORM)" "Solaris_SPARC"
43 EXTENSION_PLATFORM
=solaris_sparc
44 else ifeq "$(UNOPKG_PLATFORM)" "Solaris_x86"
45 EXTENSION_PLATFORM
=solaris_x86
46 else ifeq "$(UNOPKG_PLATFORM)" "Windows"
47 ifeq "$(PROCTYPE)" "x86_64"
48 EXTENSION_PLATFORM
=windows_x86_64
50 EXTENSION_PLATFORM
=windows_x86