2 # This file is part of the LibreOffice project.
4 # This Source Code Form is subject to the terms of the Mozilla Public
5 # License, v. 2.0. If a copy of the MPL was not distributed with this
6 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 # This file incorporates work covered by the following license notice:
10 # Licensed to the Apache Software Foundation (ASF) under one or more
11 # contributor license agreements. See the NOTICE file distributed
12 # with this work for additional information regarding copyright
13 # ownership. The ASF licenses this file to you under the Apache
14 # License, Version 2.0 (the "License"); you may not use this file
15 # except in compliance with the License. You may obtain a copy of
16 # the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 ifneq "$(OO_SDK_OUT)" ""
20 OUT
=$(subst \
,/,$(OO_SDK_OUT
))/$(OS
)example.out
22 OUT
=$(PRJ
)/$(OS
)example.out
35 OUT_CLASS
=$(OUT
)/class
38 CLASSES_DIR
=$(PRJ
)/classes
39 URE_CLASSES_DIR
=$(subst \
,/,$(OO_SDK_URE_JAVA_DIR
))
40 OFFICE_CLASSES_DIR
=$(subst \
,/,$(OFFICE_PROGRAM_PATH
))/classes
41 COMP_PACKAGE_DIR
=$(subst /,$(PS
),$(OUT_BIN
))
43 SDKTYPEFLAG
=$(OUT_MISC
)/oosdk_cpp_types.flag
45 URE_TYPES
="$(subst \,/,$(URE_MISC)$(PS)types.rdb)"
46 URE_SERVICES
="$(subst \\,\,$(URE_MISC)$(PS)services.rdb)"
48 OFFICE_TYPES
="$(subst \,/,$(OFFICE_PROGRAM_PATH)$(PS)types$(PS)offapi.rdb)"
49 OFFICE_SERVICES
="$(subst \\,\,$(OFFICE_PROGRAM_PATH)$(PS)services$(PS)services.rdb)"
51 OFFICE_TYPE_LIBRARY
="$(OFFICE_TYPES)"
54 ifneq "$(OO_SDK_JAVA_HOME)" ""
55 JAVA_BITS
:= $(shell $(OO_SDK_JAVA_HOME
)/$(JAVABIN
)/java
-version
2>&1 | tail
-1 | cut
-d
" " -f3
)
56 ifeq "$(JAVA_BITS)" "64-Bit"
57 ifneq "$(PROCTYPE)" "x86_64"
63 DEPLOYTOOL
="$(OFFICE_PROGRAM_PATH)$(PS)unopkg" add
-f
64 SDK_JAVA
="$(OO_SDK_JAVA_HOME)/$(JAVABIN)/java" $(JAVA_OPTIONS
)
65 SDK_JAVAC
="$(OO_SDK_JAVA_HOME)/$(JAVABIN)/javac"
66 SDK_JAR
="$(OO_SDK_JAVA_HOME)/$(JAVABIN)/jar"
67 SDK_ZIP
="$(OO_SDK_ZIP_HOME)/zip"
68 SDK_CAT
="$(OO_SDK_CAT_HOME)/cat"
69 SDK_SED
="$(OO_SDK_SED_HOME)/sed"
70 IDLC
="$(OO_SDK_HOME)/bin/idlc"
71 CPPUMAKER
="$(OO_SDK_HOME)/bin/cppumaker"
72 JAVAMAKER
="$(OO_SDK_HOME)/bin/javamaker"
73 REGMERGE
="$(OO_SDK_URE_HOME)/bin/regmerge"
75 SDK_JAVA_UNO_BOOTSTRAP_FILES
=\
76 -C
$(CLASSES_DIR
) $(SQM
)com
/sun
/star
/lib
/loader
/Loader.class
$(SQM
) \
77 -C
$(CLASSES_DIR
) $(SQM
)com
/sun
/star
/lib
/loader
/Loader
$$Drain.class
$(SQM
) \
78 -C
$(CLASSES_DIR
) $(SQM
)com
/sun
/star
/lib
/loader
/Loader
$$CustomURLClassLoader.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
/InstallationFinder.class
$(SQM
) \
81 -C
$(CLASSES_DIR
) $(SQM
)com
/sun
/star
/lib
/loader
/InstallationFinder
$$StreamGobbler.class
$(SQM
) \
82 -C
$(CLASSES_DIR
) $(SQM
)com
/sun
/star
/lib
/loader
/WinRegKey.class
$(SQM
) \
83 -C
$(CLASSES_DIR
) $(SQM
)com
/sun
/star
/lib
/loader
/WinRegKeyException.class
$(SQM
) \
84 -C
$(CLASSES_DIR
) $(SQM
)win
/unowinreg.dll
$(SQM
)