xref: /aoo42x/main/odk/settings/std.mk (revision 985d02c7)
1122c3632SJürgen Schmidt#**************************************************************
2*985d02c7SAriel Constenla-Haile#
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
10*985d02c7SAriel Constenla-Haile#
11122c3632SJürgen Schmidt#    http://www.apache.org/licenses/LICENSE-2.0
12*985d02c7SAriel Constenla-Haile#
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.
19*985d02c7SAriel Constenla-Haile#
20122c3632SJürgen Schmidt#**************************************************************
21*985d02c7SAriel Constenla-Haile
22cdf0e10cSrcweirifneq "$(OO_SDK_OUT)" ""
23cdf0e10cSrcweirOUT=$(subst \,/,$(OO_SDK_OUT))/$(OS)example.out
24cdf0e10cSrcweirelse
25cdf0e10cSrcweirOUT=$(PRJ)/$(OS)example.out
26cdf0e10cSrcweirendif
27cdf0e10cSrcweir
28cdf0e10cSrcweirUNOPKG_EXT=uno.pkg
29cdf0e10cSrcweirUNOOXT_EXT=oxt
30cdf0e10cSrcweir
31cdf0e10cSrcweirOUT_BIN=$(OUT)/bin
32cdf0e10cSrcweirOUT_INC=$(OUT)/inc
33cdf0e10cSrcweirOUT_SLO=$(OUT)/slo
34cdf0e10cSrcweirOUT_LIB=$(OUT)/lib
35cdf0e10cSrcweirOUT_SLB=$(OUT)/slb
36cdf0e10cSrcweirOUT_MISC=$(OUT)/misc
37cdf0e10cSrcweirOUT_OBJ=$(OUT)/obj
38cdf0e10cSrcweirOUT_CLASS=$(OUT)/class
394847a43bSAriel Constenla-HaileOUT_DEPLOY=$(OUT)/deploy
40cdf0e10cSrcweirIDL_DIR=$(PRJ)/idl
41cdf0e10cSrcweirBIN_DIR=$(PRJ)/bin
42cdf0e10cSrcweirCLASSES_DIR=$(PRJ)/classes
43cdf0e10cSrcweirURE_CLASSES_DIR=$(subst \,/,$(OO_SDK_URE_JAVA_DIR))
44cdf0e10cSrcweirOFFICE_CLASSES_DIR=$(subst \,/,$(OFFICE_BASE_PROGRAM_PATH))/classes
45cdf0e10cSrcweirCOMP_PACKAGE_DIR=$(subst /,$(PS),$(OUT_BIN))
46cdf0e10cSrcweir
47cdf0e10cSrcweirSDKTYPEFLAG=$(OUT_MISC)/oosdk_cpp_types.flag
48cdf0e10cSrcweir
49cdf0e10cSrcweirURE_TYPES="$(subst \,/,$(URE_MISC)$(PS)types.rdb)"
50cdf0e10cSrcweirURE_SERVICES=$(subst \\,\,$(URE_MISC)$(PS)services.rdb)
51cdf0e10cSrcweir
52cdf0e10cSrcweirOFFICE_TYPES="$(subst \,/,$(OFFICE_BASE_PROGRAM_PATH)$(PS)offapi.rdb)"
53cdf0e10cSrcweirOFFICE_SERVICES=$(subst \\,\,$(OFFICE_BASE_PROGRAM_PATH)$(PS)services.rdb)
54cdf0e10cSrcweir
55cdf0e10cSrcweirOFFICE_TYPE_LIBRARY="$(OFFICE_TYPES)"
56cdf0e10cSrcweir
57cdf0e10cSrcweirJAVA_OPTIONS=
58cdf0e10cSrcweirifneq "$(OO_SDK_JAVA_HOME)" ""
59cdf0e10cSrcweirJAVA_BITS := $(shell $(OO_SDK_JAVA_HOME)/$(JAVABIN)/java -version 2>&1 | tail -1 | cut -d " " -f3)
60cdf0e10cSrcweirifeq "$(JAVA_BITS)" "64-Bit"
610b7957c5SAriel Constenla-Haileifneq "$(PLATFORM)" "linux"
62cdf0e10cSrcweirJAVA_OPTIONS=-d32
63cdf0e10cSrcweirendif
64cdf0e10cSrcweirendif
650b7957c5SAriel Constenla-Haileendif
66cdf0e10cSrcweir
67cdf0e10cSrcweirDEPLOYTOOL="$(OFFICE_PROGRAM_PATH)$(PS)unopkg" add -f
68cdf0e10cSrcweirSDK_JAVA="$(OO_SDK_JAVA_HOME)/$(JAVABIN)/java" $(JAVA_OPTIONS)
69cdf0e10cSrcweirSDK_JAVAC="$(OO_SDK_JAVA_HOME)/$(JAVABIN)/javac"
70cdf0e10cSrcweirSDK_JAR="$(OO_SDK_JAVA_HOME)/$(JAVABIN)/jar"
71cdf0e10cSrcweirSDK_ZIP="$(OO_SDK_ZIP_HOME)/zip"
72*985d02c7SAriel Constenla-HaileSDK_CAT="$(OO_SDK_CAT_HOME)/cat"
73*985d02c7SAriel Constenla-HaileSDK_SED="$(OO_SDK_SED_HOME)/sed"
74cdf0e10cSrcweirIDLC="$(OO_SDK_HOME)/bin/idlc"
75cdf0e10cSrcweirCPPUMAKER="$(OO_SDK_HOME)/bin/cppumaker"
76cdf0e10cSrcweirJAVAMAKER="$(OO_SDK_HOME)/bin/javamaker"
77cdf0e10cSrcweirREGMERGE="$(OO_SDK_URE_HOME)/bin/regmerge"
78cdf0e10cSrcweirREGCOMP="$(OO_SDK_URE_HOME)/bin/regcomp"
79cdf0e10cSrcweir
80cdf0e10cSrcweirSDK_JAVA_UNO_BOOTSTRAP_FILES=\
81cdf0e10cSrcweir	-C $(CLASSES_DIR) $(SQM)com/sun/star/lib/loader/Loader.class$(SQM) \
82cdf0e10cSrcweir	-C $(CLASSES_DIR) $(SQM)com/sun/star/lib/loader/Loader$$Drain.class$(SQM) \
83cdf0e10cSrcweir	-C $(CLASSES_DIR) $(SQM)com/sun/star/lib/loader/Loader$$CustomURLClassLoader.class$(SQM) \
84cdf0e10cSrcweir	-C $(CLASSES_DIR) $(SQM)com/sun/star/lib/loader/Loader$$Drain.class$(SQM) \
85cdf0e10cSrcweir	-C $(CLASSES_DIR) $(SQM)com/sun/star/lib/loader/InstallationFinder.class$(SQM) \
86cdf0e10cSrcweir	-C $(CLASSES_DIR) $(SQM)com/sun/star/lib/loader/InstallationFinder$$StreamGobbler.class$(SQM) \
87cdf0e10cSrcweir	-C $(CLASSES_DIR) $(SQM)com/sun/star/lib/loader/WinRegKey.class$(SQM) \
88cdf0e10cSrcweir	-C $(CLASSES_DIR) $(SQM)com/sun/star/lib/loader/WinRegKeyException.class$(SQM) \
89cdf0e10cSrcweir	-C $(CLASSES_DIR) $(SQM)win/unowinreg.dll$(SQM)
90