xref: /aoo41x/main/odk/settings/std.mk (revision 4847a43b)
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#**************************************************************
21ifneq "$(OO_SDK_OUT)" ""
22OUT=$(subst \,/,$(OO_SDK_OUT))/$(OS)example.out
23else
24OUT=$(PRJ)/$(OS)example.out
25endif
26
27UNOPKG_EXT=uno.pkg
28UNOOXT_EXT=oxt
29
30OUT_BIN=$(OUT)/bin
31OUT_INC=$(OUT)/inc
32OUT_SLO=$(OUT)/slo
33OUT_LIB=$(OUT)/lib
34OUT_SLB=$(OUT)/slb
35OUT_MISC=$(OUT)/misc
36OUT_OBJ=$(OUT)/obj
37OUT_CLASS=$(OUT)/class
38OUT_DEPLOY=$(OUT)/deploy
39IDL_DIR=$(PRJ)/idl
40BIN_DIR=$(PRJ)/bin
41CLASSES_DIR=$(PRJ)/classes
42URE_CLASSES_DIR=$(subst \,/,$(OO_SDK_URE_JAVA_DIR))
43OFFICE_CLASSES_DIR=$(subst \,/,$(OFFICE_BASE_PROGRAM_PATH))/classes
44COMP_PACKAGE_DIR=$(subst /,$(PS),$(OUT_BIN))
45
46SDKTYPEFLAG=$(OUT_MISC)/oosdk_cpp_types.flag
47
48URE_TYPES="$(subst \,/,$(URE_MISC)$(PS)types.rdb)"
49URE_SERVICES=$(subst \\,\,$(URE_MISC)$(PS)services.rdb)
50
51OFFICE_TYPES="$(subst \,/,$(OFFICE_BASE_PROGRAM_PATH)$(PS)offapi.rdb)"
52OFFICE_SERVICES=$(subst \\,\,$(OFFICE_BASE_PROGRAM_PATH)$(PS)services.rdb)
53
54OFFICE_TYPE_LIBRARY="$(OFFICE_TYPES)"
55
56JAVA_OPTIONS=
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"
60ifneq "$(PLATFORM)" "linux"
61JAVA_OPTIONS=-d32
62endif
63endif
64endif
65
66DEPLOYTOOL="$(OFFICE_PROGRAM_PATH)$(PS)unopkg" add -f
67SDK_JAVA="$(OO_SDK_JAVA_HOME)/$(JAVABIN)/java" $(JAVA_OPTIONS)
68SDK_JAVAC="$(OO_SDK_JAVA_HOME)/$(JAVABIN)/javac"
69SDK_JAR="$(OO_SDK_JAVA_HOME)/$(JAVABIN)/jar"
70SDK_ZIP="$(OO_SDK_ZIP_HOME)/zip"
71IDLC="$(OO_SDK_HOME)/bin/idlc"
72CPPUMAKER="$(OO_SDK_HOME)/bin/cppumaker"
73JAVAMAKER="$(OO_SDK_HOME)/bin/javamaker"
74REGMERGE="$(OO_SDK_URE_HOME)/bin/regmerge"
75REGCOMP="$(OO_SDK_URE_HOME)/bin/regcomp"
76
77SDK_JAVA_UNO_BOOTSTRAP_FILES=\
78	-C $(CLASSES_DIR) $(SQM)com/sun/star/lib/loader/Loader.class$(SQM) \
79	-C $(CLASSES_DIR) $(SQM)com/sun/star/lib/loader/Loader$$Drain.class$(SQM) \
80	-C $(CLASSES_DIR) $(SQM)com/sun/star/lib/loader/Loader$$CustomURLClassLoader.class$(SQM) \
81	-C $(CLASSES_DIR) $(SQM)com/sun/star/lib/loader/Loader$$Drain.class$(SQM) \
82	-C $(CLASSES_DIR) $(SQM)com/sun/star/lib/loader/InstallationFinder.class$(SQM) \
83	-C $(CLASSES_DIR) $(SQM)com/sun/star/lib/loader/InstallationFinder$$StreamGobbler.class$(SQM) \
84	-C $(CLASSES_DIR) $(SQM)com/sun/star/lib/loader/WinRegKey.class$(SQM) \
85	-C $(CLASSES_DIR) $(SQM)com/sun/star/lib/loader/WinRegKeyException.class$(SQM) \
86	-C $(CLASSES_DIR) $(SQM)win/unowinreg.dll$(SQM)
87