xref: /aoo42x/main/odk/settings/platform.mk (revision 9cb05e42)
1*9cb05e42SAriel Constenla-Haile#**************************************************************
2*9cb05e42SAriel Constenla-Haile#
3*9cb05e42SAriel Constenla-Haile#  Licensed to the Apache Software Foundation (ASF) under one
4*9cb05e42SAriel Constenla-Haile#  or more contributor license agreements.  See the NOTICE file
5*9cb05e42SAriel Constenla-Haile#  distributed with this work for additional information
6*9cb05e42SAriel Constenla-Haile#  regarding copyright ownership.  The ASF licenses this file
7*9cb05e42SAriel Constenla-Haile#  to you under the Apache License, Version 2.0 (the
8*9cb05e42SAriel Constenla-Haile#  "License"); you may not use this file except in compliance
9*9cb05e42SAriel Constenla-Haile#  with the License.  You may obtain a copy of the License at
10*9cb05e42SAriel Constenla-Haile#
11*9cb05e42SAriel Constenla-Haile#    http://www.apache.org/licenses/LICENSE-2.0
12*9cb05e42SAriel Constenla-Haile#
13*9cb05e42SAriel Constenla-Haile#  Unless required by applicable law or agreed to in writing,
14*9cb05e42SAriel Constenla-Haile#  software distributed under the License is distributed on an
15*9cb05e42SAriel Constenla-Haile#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*9cb05e42SAriel Constenla-Haile#  KIND, either express or implied.  See the License for the
17*9cb05e42SAriel Constenla-Haile#  specific language governing permissions and limitations
18*9cb05e42SAriel Constenla-Haile#  under the License.
19*9cb05e42SAriel Constenla-Haile#
20*9cb05e42SAriel Constenla-Haile#**************************************************************
21*9cb05e42SAriel Constenla-Haile
22*9cb05e42SAriel Constenla-Haile# Map target platform (extension cfg) and extension platform (SDK settings)
23*9cb05e42SAriel Constenla-Haile# See:
24*9cb05e42SAriel Constenla-Haile# http://wiki.openoffice.org/wiki/Documentation/DevGuide/Extensions/Target_Platform
25*9cb05e42SAriel Constenla-Haile# trunk/main/odk/settings/settings.mk
26*9cb05e42SAriel Constenla-Haile
27*9cb05e42SAriel Constenla-Haile# only make version 3.81 or later accepts the multiple else conditions
28*9cb05e42SAriel Constenla-Haileifeq "$(UNOPKG_PLATFORM)" "FreeBSD_x86"
29*9cb05e42SAriel Constenla-Haile	EXTENSION_PLATFORM=freebsd_x86
30*9cb05e42SAriel Constenla-Haileelse
31*9cb05e42SAriel Constenla-Haile	ifeq "$(UNOPKG_PLATFORM)" "FreeBSD_x86_64"
32*9cb05e42SAriel Constenla-Haile		EXTENSION_PLATFORM=freebsd_x86_64
33*9cb05e42SAriel Constenla-Haile	else
34*9cb05e42SAriel Constenla-Haile	ifeq "$(UNOPKG_PLATFORM)" "Linux_PowerPC"
35*9cb05e42SAriel Constenla-Haile		EXTENSION_PLATFORM=linux_powerpc
36*9cb05e42SAriel Constenla-Haile	else
37*9cb05e42SAriel Constenla-Haile	ifeq "$(UNOPKG_PLATFORM)" "Linux_x86"
38*9cb05e42SAriel Constenla-Haile		EXTENSION_PLATFORM=linux_x86
39*9cb05e42SAriel Constenla-Haile	else
40*9cb05e42SAriel Constenla-Haile	ifeq "$(UNOPKG_PLATFORM)" "Linux_x86_64"
41*9cb05e42SAriel Constenla-Haile		EXTENSION_PLATFORM=linux_x86_64
42*9cb05e42SAriel Constenla-Haile	else
43*9cb05e42SAriel Constenla-Haile	ifeq "$(UNOPKG_PLATFORM)" "MacOSX_PowerPC"
44*9cb05e42SAriel Constenla-Haile		EXTENSION_PLATFORM=macosx_powerpc
45*9cb05e42SAriel Constenla-Haile	else
46*9cb05e42SAriel Constenla-Haile	ifeq "$(UNOPKG_PLATFORM)" "MacOSX_x86"
47*9cb05e42SAriel Constenla-Haile		EXTENSION_PLATFORM=macosx_x86
48*9cb05e42SAriel Constenla-Haile	else
49*9cb05e42SAriel Constenla-Haile	ifeq "$(UNOPKG_PLATFORM)" "Solaris_SPARC"
50*9cb05e42SAriel Constenla-Haile		EXTENSION_PLATFORM=solaris_sparc
51*9cb05e42SAriel Constenla-Haile	else
52*9cb05e42SAriel Constenla-Haile	ifeq "$(UNOPKG_PLATFORM)" "Solaris_x86"
53*9cb05e42SAriel Constenla-Haile		EXTENSION_PLATFORM=solaris_x86
54*9cb05e42SAriel Constenla-Haile	else
55*9cb05e42SAriel Constenla-Haile	ifeq "$(UNOPKG_PLATFORM)" "Windows"
56*9cb05e42SAriel Constenla-Haile		EXTENSION_PLATFORM=windows_x86
57*9cb05e42SAriel Constenla-Haile	endif
58*9cb05e42SAriel Constenla-Haile	endif
59*9cb05e42SAriel Constenla-Haile	endif
60*9cb05e42SAriel Constenla-Haile	endif
61*9cb05e42SAriel Constenla-Haile	endif
62*9cb05e42SAriel Constenla-Haile	endif
63*9cb05e42SAriel Constenla-Haile	endif
64*9cb05e42SAriel Constenla-Haile	endif
65*9cb05e42SAriel Constenla-Haile	endif
66*9cb05e42SAriel Constenla-Haileendif
67*9cb05e42SAriel Constenla-Haile
68*9cb05e42SAriel Constenla-Haile#ifeq "$(UNOPKG_PLATFORM)" "Linux_SPARC"
69*9cb05e42SAriel Constenla-Haile#   EXTENSION_PLATFORM=
70*9cb05e42SAriel Constenla-Haile#ifeq "$(UNOPKG_PLATFORM)" "Solaris_SPARC64"
71*9cb05e42SAriel Constenla-Haile#   EXTENSION_PLATFORM=
72*9cb05e42SAriel Constenla-Haile#ifeq "$(UNOPKG_PLATFORM)" "kFreeBSD_x86"
73*9cb05e42SAriel Constenla-Haile#   EXTENSION_PLATFORM=
74*9cb05e42SAriel Constenla-Haile#ifeq "$(UNOPKG_PLATFORM)" "kFreeBSD_x86_64"
75*9cb05e42SAriel Constenla-Haile#   EXTENSION_PLATFORM=
76