xref: /aoo42x/main/odk/settings/std.mk (revision 8b8620b8)
1122c3632SJürgen Schmidt#**************************************************************
2985d02c7SAriel 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
10985d02c7SAriel Constenla-Haile#
11122c3632SJürgen Schmidt#    http://www.apache.org/licenses/LICENSE-2.0
12985d02c7SAriel 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.
19985d02c7SAriel Constenla-Haile#
20122c3632SJürgen Schmidt#**************************************************************
21985d02c7SAriel 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
43b3ba5bc7SJürgen SchmidtURE_CLASSES_DIR=$(subst \,/,$(OFFICE_PROGRAM_PATH))/classes
44b3ba5bc7SJürgen SchmidtOFFICE_CLASSES_DIR=$(subst \,/,$(OFFICE_PROGRAM_PATH))/classes
45cdf0e10cSrcweirCOMP_PACKAGE_DIR=$(subst /,$(PS),$(OUT_BIN))
46cdf0e10cSrcweir
47cdf0e10cSrcweirSDKTYPEFLAG=$(OUT_MISC)/oosdk_cpp_types.flag
48cdf0e10cSrcweir
49b3ba5bc7SJürgen SchmidtURE_TYPES="$(subst \,/,$(OFFICE_PROGRAM_PATH)$(PS)types.rdb)"
50*8b8620b8SJürgen SchmidtURE_SERVICES="$(subst \\,\,$(OFFICE_PROGRAM_PATH)$(PS)services.rdb)"
51cdf0e10cSrcweir
52b3ba5bc7SJürgen SchmidtOFFICE_TYPES="$(subst \,/,$(OFFICE_PROGRAM_PATH)$(PS)types.rdb)"
53*8b8620b8SJürgen SchmidtOFFICE_SERVICES="$(subst \\,\,$(OFFICE_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
67b3ba5bc7SJürgen Schmidtifeq "$(PLATFORM)" "macosx"
68b3ba5bc7SJürgen SchmidtOFFICE_LAUNCHER=DYLD_LIBRARY_PATH="" && "$(OFFICE_PROGRAM_PATH)$(PS)soffice"
69b3ba5bc7SJürgen Schmidtelse
70b3ba5bc7SJürgen SchmidtOFFICE_LAUNCHER="$(OFFICE_PROGRAM_PATH)$(PS)soffice"
71b3ba5bc7SJürgen Schmidtendif
72b3ba5bc7SJürgen Schmidt
73cdf0e10cSrcweirDEPLOYTOOL="$(OFFICE_PROGRAM_PATH)$(PS)unopkg" add -f
74cdf0e10cSrcweirSDK_JAVA="$(OO_SDK_JAVA_HOME)/$(JAVABIN)/java" $(JAVA_OPTIONS)
75cdf0e10cSrcweirSDK_JAVAC="$(OO_SDK_JAVA_HOME)/$(JAVABIN)/javac"
76cdf0e10cSrcweirSDK_JAR="$(OO_SDK_JAVA_HOME)/$(JAVABIN)/jar"
77cdf0e10cSrcweirSDK_ZIP="$(OO_SDK_ZIP_HOME)/zip"
78985d02c7SAriel Constenla-HaileSDK_CAT="$(OO_SDK_CAT_HOME)/cat"
79985d02c7SAriel Constenla-HaileSDK_SED="$(OO_SDK_SED_HOME)/sed"
80cdf0e10cSrcweirIDLC="$(OO_SDK_HOME)/bin/idlc"
81cdf0e10cSrcweirCPPUMAKER="$(OO_SDK_HOME)/bin/cppumaker"
82cdf0e10cSrcweirJAVAMAKER="$(OO_SDK_HOME)/bin/javamaker"
83b3ba5bc7SJürgen SchmidtREGMERGE="$(OFFICE_PROGRAM_PATH)/regmerge"
84b3ba5bc7SJürgen SchmidtREGCOMP="$(OFFICE_PROGRAM_PATH)/regcomp"
85cdf0e10cSrcweir
86cdf0e10cSrcweirSDK_JAVA_UNO_BOOTSTRAP_FILES=\
87cdf0e10cSrcweir	-C $(CLASSES_DIR) $(SQM)com/sun/star/lib/loader/Loader.class$(SQM) \
88cdf0e10cSrcweir	-C $(CLASSES_DIR) $(SQM)com/sun/star/lib/loader/Loader$$Drain.class$(SQM) \
89cdf0e10cSrcweir	-C $(CLASSES_DIR) $(SQM)com/sun/star/lib/loader/Loader$$CustomURLClassLoader.class$(SQM) \
90cdf0e10cSrcweir	-C $(CLASSES_DIR) $(SQM)com/sun/star/lib/loader/Loader$$Drain.class$(SQM) \
91cdf0e10cSrcweir	-C $(CLASSES_DIR) $(SQM)com/sun/star/lib/loader/InstallationFinder.class$(SQM) \
92cdf0e10cSrcweir	-C $(CLASSES_DIR) $(SQM)com/sun/star/lib/loader/InstallationFinder$$StreamGobbler.class$(SQM) \
93cdf0e10cSrcweir	-C $(CLASSES_DIR) $(SQM)com/sun/star/lib/loader/WinRegKey.class$(SQM) \
94cdf0e10cSrcweir	-C $(CLASSES_DIR) $(SQM)com/sun/star/lib/loader/WinRegKeyException.class$(SQM) \
95cdf0e10cSrcweir	-C $(CLASSES_DIR) $(SQM)win/unowinreg.dll$(SQM)
96