xref: /aoo42x/main/odk/settings/std.mk (revision 4847a43b)
1122c3632SJürgen Schmidt#**************************************************************
2122c3632SJürgen Schmidt#
3122c3632SJürgen Schmidt#  Licensed to the Apache Software Foundation (ASF) under one
4122c3632SJürgen Schmidt#  or more contributor license agreements.  See the NOTICE file
5122c3632SJürgen Schmidt#  distributed with this work for additional information
6122c3632SJürgen Schmidt#  regarding copyright ownership.  The ASF licenses this file
7122c3632SJürgen Schmidt#  to you under the Apache License, Version 2.0 (the
8122c3632SJürgen Schmidt#  "License"); you may not use this file except in compliance
9122c3632SJürgen Schmidt#  with the License.  You may obtain a copy of the License at
10122c3632SJürgen Schmidt#
11122c3632SJürgen Schmidt#    http://www.apache.org/licenses/LICENSE-2.0
12122c3632SJürgen Schmidt#
13122c3632SJürgen Schmidt#  Unless required by applicable law or agreed to in writing,
14122c3632SJürgen Schmidt#  software distributed under the License is distributed on an
15122c3632SJürgen Schmidt#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16122c3632SJürgen Schmidt#  KIND, either express or implied.  See the License for the
17122c3632SJürgen Schmidt#  specific language governing permissions and limitations
18122c3632SJürgen Schmidt#  under the License.
19122c3632SJürgen Schmidt#
20122c3632SJürgen Schmidt#**************************************************************
21cdf0e10cSrcweirifneq "$(OO_SDK_OUT)" ""
22cdf0e10cSrcweirOUT=$(subst \,/,$(OO_SDK_OUT))/$(OS)example.out
23cdf0e10cSrcweirelse
24cdf0e10cSrcweirOUT=$(PRJ)/$(OS)example.out
25cdf0e10cSrcweirendif
26cdf0e10cSrcweir
27cdf0e10cSrcweirUNOPKG_EXT=uno.pkg
28cdf0e10cSrcweirUNOOXT_EXT=oxt
29cdf0e10cSrcweir
30cdf0e10cSrcweirOUT_BIN=$(OUT)/bin
31cdf0e10cSrcweirOUT_INC=$(OUT)/inc
32cdf0e10cSrcweirOUT_SLO=$(OUT)/slo
33cdf0e10cSrcweirOUT_LIB=$(OUT)/lib
34cdf0e10cSrcweirOUT_SLB=$(OUT)/slb
35cdf0e10cSrcweirOUT_MISC=$(OUT)/misc
36cdf0e10cSrcweirOUT_OBJ=$(OUT)/obj
37cdf0e10cSrcweirOUT_CLASS=$(OUT)/class
38*4847a43bSAriel Constenla-HaileOUT_DEPLOY=$(OUT)/deploy
39cdf0e10cSrcweirIDL_DIR=$(PRJ)/idl
40cdf0e10cSrcweirBIN_DIR=$(PRJ)/bin
41cdf0e10cSrcweirCLASSES_DIR=$(PRJ)/classes
42cdf0e10cSrcweirURE_CLASSES_DIR=$(subst \,/,$(OO_SDK_URE_JAVA_DIR))
43cdf0e10cSrcweirOFFICE_CLASSES_DIR=$(subst \,/,$(OFFICE_BASE_PROGRAM_PATH))/classes
44cdf0e10cSrcweirCOMP_PACKAGE_DIR=$(subst /,$(PS),$(OUT_BIN))
45cdf0e10cSrcweir
46cdf0e10cSrcweirSDKTYPEFLAG=$(OUT_MISC)/oosdk_cpp_types.flag
47cdf0e10cSrcweir
48cdf0e10cSrcweirURE_TYPES="$(subst \,/,$(URE_MISC)$(PS)types.rdb)"
49cdf0e10cSrcweirURE_SERVICES=$(subst \\,\,$(URE_MISC)$(PS)services.rdb)
50cdf0e10cSrcweir
51cdf0e10cSrcweirOFFICE_TYPES="$(subst \,/,$(OFFICE_BASE_PROGRAM_PATH)$(PS)offapi.rdb)"
52cdf0e10cSrcweirOFFICE_SERVICES=$(subst \\,\,$(OFFICE_BASE_PROGRAM_PATH)$(PS)services.rdb)
53cdf0e10cSrcweir
54cdf0e10cSrcweirOFFICE_TYPE_LIBRARY="$(OFFICE_TYPES)"
55cdf0e10cSrcweir
56cdf0e10cSrcweirJAVA_OPTIONS=
57cdf0e10cSrcweirifneq "$(OO_SDK_JAVA_HOME)" ""
58cdf0e10cSrcweirJAVA_BITS := $(shell $(OO_SDK_JAVA_HOME)/$(JAVABIN)/java -version 2>&1 | tail -1 | cut -d " " -f3)
59cdf0e10cSrcweirifeq "$(JAVA_BITS)" "64-Bit"
600b7957c5SAriel Constenla-Haileifneq "$(PLATFORM)" "linux"
61cdf0e10cSrcweirJAVA_OPTIONS=-d32
62cdf0e10cSrcweirendif
63cdf0e10cSrcweirendif
640b7957c5SAriel Constenla-Haileendif
65cdf0e10cSrcweir
66cdf0e10cSrcweirDEPLOYTOOL="$(OFFICE_PROGRAM_PATH)$(PS)unopkg" add -f
67cdf0e10cSrcweirSDK_JAVA="$(OO_SDK_JAVA_HOME)/$(JAVABIN)/java" $(JAVA_OPTIONS)
68cdf0e10cSrcweirSDK_JAVAC="$(OO_SDK_JAVA_HOME)/$(JAVABIN)/javac"
69cdf0e10cSrcweirSDK_JAR="$(OO_SDK_JAVA_HOME)/$(JAVABIN)/jar"
70cdf0e10cSrcweirSDK_ZIP="$(OO_SDK_ZIP_HOME)/zip"
71cdf0e10cSrcweirIDLC="$(OO_SDK_HOME)/bin/idlc"
72cdf0e10cSrcweirCPPUMAKER="$(OO_SDK_HOME)/bin/cppumaker"
73cdf0e10cSrcweirJAVAMAKER="$(OO_SDK_HOME)/bin/javamaker"
74cdf0e10cSrcweirREGMERGE="$(OO_SDK_URE_HOME)/bin/regmerge"
75cdf0e10cSrcweirREGCOMP="$(OO_SDK_URE_HOME)/bin/regcomp"
76cdf0e10cSrcweir
77cdf0e10cSrcweirSDK_JAVA_UNO_BOOTSTRAP_FILES=\
78cdf0e10cSrcweir	-C $(CLASSES_DIR) $(SQM)com/sun/star/lib/loader/Loader.class$(SQM) \
79cdf0e10cSrcweir	-C $(CLASSES_DIR) $(SQM)com/sun/star/lib/loader/Loader$$Drain.class$(SQM) \
80cdf0e10cSrcweir	-C $(CLASSES_DIR) $(SQM)com/sun/star/lib/loader/Loader$$CustomURLClassLoader.class$(SQM) \
81cdf0e10cSrcweir	-C $(CLASSES_DIR) $(SQM)com/sun/star/lib/loader/Loader$$Drain.class$(SQM) \
82cdf0e10cSrcweir	-C $(CLASSES_DIR) $(SQM)com/sun/star/lib/loader/InstallationFinder.class$(SQM) \
83cdf0e10cSrcweir	-C $(CLASSES_DIR) $(SQM)com/sun/star/lib/loader/InstallationFinder$$StreamGobbler.class$(SQM) \
84cdf0e10cSrcweir	-C $(CLASSES_DIR) $(SQM)com/sun/star/lib/loader/WinRegKey.class$(SQM) \
85cdf0e10cSrcweir	-C $(CLASSES_DIR) $(SQM)com/sun/star/lib/loader/WinRegKeyException.class$(SQM) \
86cdf0e10cSrcweir	-C $(CLASSES_DIR) $(SQM)win/unowinreg.dll$(SQM)
87