xref: /aoo41x/main/odk/settings/std.mk (revision cdf0e10c)
1ifneq "$(OO_SDK_OUT)" ""
2OUT=$(subst \,/,$(OO_SDK_OUT))/$(OS)example.out
3else
4OUT=$(PRJ)/$(OS)example.out
5endif
6
7UNOPKG_EXT=uno.pkg
8UNOOXT_EXT=oxt
9
10OUT_BIN=$(OUT)/bin
11OUT_INC=$(OUT)/inc
12OUT_SLO=$(OUT)/slo
13OUT_LIB=$(OUT)/lib
14OUT_SLB=$(OUT)/slb
15OUT_MISC=$(OUT)/misc
16OUT_OBJ=$(OUT)/obj
17OUT_CLASS=$(OUT)/class
18IDL_DIR=$(PRJ)/idl
19BIN_DIR=$(PRJ)/bin
20CLASSES_DIR=$(PRJ)/classes
21URE_CLASSES_DIR=$(subst \,/,$(OO_SDK_URE_JAVA_DIR))
22OFFICE_CLASSES_DIR=$(subst \,/,$(OFFICE_BASE_PROGRAM_PATH))/classes
23COMP_PACKAGE_DIR=$(subst /,$(PS),$(OUT_BIN))
24
25SDKTYPEFLAG=$(OUT_MISC)/oosdk_cpp_types.flag
26
27URE_TYPES="$(subst \,/,$(URE_MISC)$(PS)types.rdb)"
28URE_SERVICES=$(subst \\,\,$(URE_MISC)$(PS)services.rdb)
29
30OFFICE_TYPES="$(subst \,/,$(OFFICE_BASE_PROGRAM_PATH)$(PS)offapi.rdb)"
31OFFICE_SERVICES=$(subst \\,\,$(OFFICE_BASE_PROGRAM_PATH)$(PS)services.rdb)
32
33OFFICE_TYPE_LIBRARY="$(OFFICE_TYPES)"
34
35JAVA_OPTIONS=
36ifneq "$(OO_SDK_JAVA_HOME)" ""
37JAVA_BITS := $(shell $(OO_SDK_JAVA_HOME)/$(JAVABIN)/java -version 2>&1 | tail -1 | cut -d " " -f3)
38ifeq "$(JAVA_BITS)" "64-Bit"
39JAVA_OPTIONS=-d32
40endif
41endif
42
43DEPLOYTOOL="$(OFFICE_PROGRAM_PATH)$(PS)unopkg" add -f
44SDK_JAVA="$(OO_SDK_JAVA_HOME)/$(JAVABIN)/java" $(JAVA_OPTIONS)
45SDK_JAVAC="$(OO_SDK_JAVA_HOME)/$(JAVABIN)/javac"
46SDK_JAR="$(OO_SDK_JAVA_HOME)/$(JAVABIN)/jar"
47SDK_ZIP="$(OO_SDK_ZIP_HOME)/zip"
48IDLC="$(OO_SDK_HOME)/bin/idlc"
49CPPUMAKER="$(OO_SDK_HOME)/bin/cppumaker"
50JAVAMAKER="$(OO_SDK_HOME)/bin/javamaker"
51REGMERGE="$(OO_SDK_URE_HOME)/bin/regmerge"
52REGCOMP="$(OO_SDK_URE_HOME)/bin/regcomp"
53
54SDK_JAVA_UNO_BOOTSTRAP_FILES=\
55	-C $(CLASSES_DIR) $(SQM)com/sun/star/lib/loader/Loader.class$(SQM) \
56	-C $(CLASSES_DIR) $(SQM)com/sun/star/lib/loader/Loader$$Drain.class$(SQM) \
57	-C $(CLASSES_DIR) $(SQM)com/sun/star/lib/loader/Loader$$CustomURLClassLoader.class$(SQM) \
58	-C $(CLASSES_DIR) $(SQM)com/sun/star/lib/loader/Loader$$Drain.class$(SQM) \
59	-C $(CLASSES_DIR) $(SQM)com/sun/star/lib/loader/InstallationFinder.class$(SQM) \
60	-C $(CLASSES_DIR) $(SQM)com/sun/star/lib/loader/InstallationFinder$$StreamGobbler.class$(SQM) \
61	-C $(CLASSES_DIR) $(SQM)com/sun/star/lib/loader/WinRegKey.class$(SQM) \
62	-C $(CLASSES_DIR) $(SQM)com/sun/star/lib/loader/WinRegKeyException.class$(SQM) \
63	-C $(CLASSES_DIR) $(SQM)win/unowinreg.dll$(SQM)
64