1#************************************************************** 2# 3# Licensed to the Apache Software Foundation (ASF) under one 4# or more contributor license agreements. See the NOTICE file 5# distributed with this work for additional information 6# regarding copyright ownership. The ASF licenses this file 7# to you under the Apache License, Version 2.0 (the 8# "License"); you may not use this file except in compliance 9# with the License. You may obtain a copy of the License at 10# 11# http://www.apache.org/licenses/LICENSE-2.0 12# 13# Unless required by applicable law or agreed to in writing, 14# software distributed under the License is distributed on an 15# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16# KIND, either express or implied. See the License for the 17# specific language governing permissions and limitations 18# under the License. 19# 20#************************************************************** 21 22# Map target platform (extension cfg) and extension platform (SDK settings) 23# See: 24# http://wiki.openoffice.org/wiki/Documentation/DevGuide/Extensions/Target_Platform 25# trunk/main/odk/settings/settings.mk 26 27# only make version 3.81 or later accepts the multiple else conditions 28ifeq "$(UNOPKG_PLATFORM)" "FreeBSD_x86" 29 EXTENSION_PLATFORM=freebsd_x86 30else 31 ifeq "$(UNOPKG_PLATFORM)" "FreeBSD_x86_64" 32 EXTENSION_PLATFORM=freebsd_x86_64 33 else 34 ifeq "$(UNOPKG_PLATFORM)" "Linux_PowerPC" 35 EXTENSION_PLATFORM=linux_powerpc 36 else 37 ifeq "$(UNOPKG_PLATFORM)" "FreeBSD_PowerPC64" 38 EXTENSION_PLATFORM=freebsd_powerpc64 39 else 40 ifeq "$(UNOPKG_PLATFORM)" "Linux_x86" 41 EXTENSION_PLATFORM=linux_x86 42 else 43 ifeq "$(UNOPKG_PLATFORM)" "Linux_x86_64" 44 EXTENSION_PLATFORM=linux_x86_64 45 else 46 ifeq "$(UNOPKG_PLATFORM)" "MacOSX_PowerPC" 47 EXTENSION_PLATFORM=macosx_powerpc 48 else 49 ifeq "$(UNOPKG_PLATFORM)" "MacOSX_x86" 50 EXTENSION_PLATFORM=macosx_x86 51 else 52 ifeq "$(UNOPKG_PLATFORM)" "MacOSX_x86_64" 53 EXTENSION_PLATFORM=macosx_x86_64 54 else 55 ifeq "$(UNOPKG_PLATFORM)" "Solaris_SPARC" 56 EXTENSION_PLATFORM=solaris_sparc 57 else 58 ifeq "$(UNOPKG_PLATFORM)" "Solaris_x86" 59 EXTENSION_PLATFORM=solaris_x86 60 else 61 ifeq "$(UNOPKG_PLATFORM)" "Windows" 62 # UNOPKG_PLATFORM deliberately carries no architecture: it names the 63 # manifest platform, and the office matches that with platform_fits(), 64 # which accepts an OS-only token on every architecture. The 65 # description.xml platform value has no such shortcut -- it goes 66 # through isValidPlatform(), which wants the exact token -- so an x64 67 # SDK must say windows_x86_64 here or the office it belongs to will 68 # reject its own extensions. Nothing in the SDK environment knows the 69 # architecture (settings.mk gets PROCTYPE from config.guess, which does 70 # not exist on Windows), so dk.mk carries the value baked in at SDK 71 # build time. The fallback keeps an SDK built before that works. 72 EXTENSION_PLATFORM=$(if $(SDK_PLATFORMID),$(SDK_PLATFORMID),windows_x86) 73 endif 74 endif 75 endif 76 endif 77 endif 78 endif 79 endif 80 endif 81 endif 82 endif 83 endif 84endif 85