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 22ifneq "$(OO_SDK_OUT)" "" 23OUT=$(subst \,/,$(OO_SDK_OUT))/$(OS)example.out 24else 25OUT=$(PRJ)/$(OS)example.out 26endif 27 28UNOPKG_EXT=uno.pkg 29UNOOXT_EXT=oxt 30 31OUT_BIN=$(OUT)/bin 32OUT_INC=$(OUT)/inc 33OUT_SLO=$(OUT)/slo 34OUT_LIB=$(OUT)/lib 35OUT_SLB=$(OUT)/slb 36OUT_MISC=$(OUT)/misc 37OUT_OBJ=$(OUT)/obj 38OUT_CLASS=$(OUT)/class 39OUT_DEPLOY=$(OUT)/deploy 40IDL_DIR=$(PRJ)/idl 41BIN_DIR=$(PRJ)/bin 42CLASSES_DIR=$(PRJ)/classes 43URE_CLASSES_DIR=$(subst \,/,$(OFFICE_PROGRAM_PATH))/classes 44OFFICE_CLASSES_DIR=$(subst \,/,$(OFFICE_PROGRAM_PATH))/classes 45COMP_PACKAGE_DIR=$(subst /,$(PS),$(OUT_BIN)) 46 47SDKTYPEFLAG=$(OUT_MISC)/oosdk_cpp_types.flag 48 49URE_TYPES="$(subst \,/,$(OFFICE_PROGRAM_PATH)$(PS)types.rdb)" 50URE_SERVICES="$(subst \\,\,$(OFFICE_PROGRAM_PATH)$(PS)services.rdb)" 51 52OFFICE_TYPES="$(subst \,/,$(OFFICE_PROGRAM_PATH)$(PS)types.rdb)" 53OFFICE_SERVICES="$(subst \\,\,$(OFFICE_PROGRAM_PATH)$(PS)services.rdb)" 54 55OFFICE_TYPE_LIBRARY="$(OFFICE_TYPES)" 56 57ifneq "$(OO_SDK_JAVA_HOME)" "" 58JAVA_BITS := $(shell $(OO_SDK_JAVA_HOME)/$(JAVABIN)/java -version 2>&1 | tail -1 | cut -d " " -f3) 59ifeq "$(JAVA_BITS)" "64-Bit" 60JAVA_OPTIONS=-32 61 62ifeq "$(PLATFORM)" "linux" 63JAVA_OPTIONS= 64endif 65ifeq "$(PLATFORM)" "macosx" 66JAVA_OPTIONS= 67endif 68 69endif 70endif 71 72ifeq "$(PLATFORM)" "macosx" 73OFFICE_LAUNCHER=DYLD_LIBRARY_PATH="" && "$(OFFICE_PROGRAM_PATH)$(PS)soffice" 74else 75OFFICE_LAUNCHER="$(OFFICE_PROGRAM_PATH)$(PS)soffice" 76endif 77 78DEPLOYTOOL="$(OFFICE_PROGRAM_PATH)$(PS)unopkg" add -f 79SDK_JAVA="$(OO_SDK_JAVA_HOME)/$(JAVABIN)/java" $(JAVA_OPTIONS) 80SDK_JAVAC="$(OO_SDK_JAVA_HOME)/$(JAVABIN)/javac" 81SDK_JAR="$(OO_SDK_JAVA_HOME)/$(JAVABIN)/jar" 82SDK_ZIP="$(OO_SDK_ZIP_HOME)/zip" 83SDK_CAT="$(OO_SDK_CAT_HOME)/cat" 84SDK_SED="$(OO_SDK_SED_HOME)/sed" 85IDLC="$(OO_SDK_HOME)/bin/idlc" 86CPPUMAKER="$(OO_SDK_HOME)/bin/cppumaker" 87JAVAMAKER="$(OO_SDK_HOME)/bin/javamaker" 88REGMERGE="$(OFFICE_PROGRAM_PATH)/regmerge" 89REGCOMP="$(OFFICE_PROGRAM_PATH)/regcomp" 90 91SDK_JAVA_UNO_BOOTSTRAP_FILES=\ 92 -C $(CLASSES_DIR) $(SQM)com/sun/star/lib/loader/Loader.class$(SQM) \ 93 -C $(CLASSES_DIR) $(SQM)com/sun/star/lib/loader/Loader$$Drain.class$(SQM) \ 94 -C $(CLASSES_DIR) $(SQM)com/sun/star/lib/loader/Loader$$CustomURLClassLoader.class$(SQM) \ 95 -C $(CLASSES_DIR) $(SQM)com/sun/star/lib/loader/Loader$$Drain.class$(SQM) \ 96 -C $(CLASSES_DIR) $(SQM)com/sun/star/lib/loader/InstallationFinder.class$(SQM) \ 97 -C $(CLASSES_DIR) $(SQM)com/sun/star/lib/loader/InstallationFinder$$StreamGobbler.class$(SQM) \ 98 -C $(CLASSES_DIR) $(SQM)com/sun/star/lib/loader/WinRegKey.class$(SQM) \ 99 -C $(CLASSES_DIR) $(SQM)com/sun/star/lib/loader/WinRegKeyException.class$(SQM) \ 100 -C $(CLASSES_DIR) $(SQM)win/unowinreg.dll$(SQM) 101