std.mk (985d02c7) std.mk (b3ba5bc7)
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

--- 26 unchanged lines hidden (view full) ---

35OUT_SLB=$(OUT)/slb
36OUT_MISC=$(OUT)/misc
37OUT_OBJ=$(OUT)/obj
38OUT_CLASS=$(OUT)/class
39OUT_DEPLOY=$(OUT)/deploy
40IDL_DIR=$(PRJ)/idl
41BIN_DIR=$(PRJ)/bin
42CLASSES_DIR=$(PRJ)/classes
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

--- 26 unchanged lines hidden (view full) ---

35OUT_SLB=$(OUT)/slb
36OUT_MISC=$(OUT)/misc
37OUT_OBJ=$(OUT)/obj
38OUT_CLASS=$(OUT)/class
39OUT_DEPLOY=$(OUT)/deploy
40IDL_DIR=$(PRJ)/idl
41BIN_DIR=$(PRJ)/bin
42CLASSES_DIR=$(PRJ)/classes
43URE_CLASSES_DIR=$(subst \,/,$(OO_SDK_URE_JAVA_DIR))
44OFFICE_CLASSES_DIR=$(subst \,/,$(OFFICE_BASE_PROGRAM_PATH))/classes
43URE_CLASSES_DIR=$(subst \,/,$(OFFICE_PROGRAM_PATH))/classes
44OFFICE_CLASSES_DIR=$(subst \,/,$(OFFICE_PROGRAM_PATH))/classes
45COMP_PACKAGE_DIR=$(subst /,$(PS),$(OUT_BIN))
46
47SDKTYPEFLAG=$(OUT_MISC)/oosdk_cpp_types.flag
48
45COMP_PACKAGE_DIR=$(subst /,$(PS),$(OUT_BIN))
46
47SDKTYPEFLAG=$(OUT_MISC)/oosdk_cpp_types.flag
48
49URE_TYPES="$(subst \,/,$(URE_MISC)$(PS)types.rdb)"
50URE_SERVICES=$(subst \\,\,$(URE_MISC)$(PS)services.rdb)
49URE_TYPES="$(subst \,/,$(OFFICE_PROGRAM_PATH)$(PS)types.rdb)"
50URE_SERVICES=$(subst \\,\,$(OFFICE_PROGRAM_PATH)$(PS)services.rdb)
51
51
52OFFICE_TYPES="$(subst \,/,$(OFFICE_BASE_PROGRAM_PATH)$(PS)offapi.rdb)"
53OFFICE_SERVICES=$(subst \\,\,$(OFFICE_BASE_PROGRAM_PATH)$(PS)services.rdb)
52OFFICE_TYPES="$(subst \,/,$(OFFICE_PROGRAM_PATH)$(PS)types.rdb)"
53OFFICE_SERVICES=$(subst \\,\,$(OFFICE_PROGRAM_PATH)$(PS)services.rdb)
54
55OFFICE_TYPE_LIBRARY="$(OFFICE_TYPES)"
56
57JAVA_OPTIONS=
58ifneq "$(OO_SDK_JAVA_HOME)" ""
59JAVA_BITS := $(shell $(OO_SDK_JAVA_HOME)/$(JAVABIN)/java -version 2>&1 | tail -1 | cut -d " " -f3)
60ifeq "$(JAVA_BITS)" "64-Bit"
61ifneq "$(PLATFORM)" "linux"
62JAVA_OPTIONS=-d32
63endif
64endif
65endif
66
54
55OFFICE_TYPE_LIBRARY="$(OFFICE_TYPES)"
56
57JAVA_OPTIONS=
58ifneq "$(OO_SDK_JAVA_HOME)" ""
59JAVA_BITS := $(shell $(OO_SDK_JAVA_HOME)/$(JAVABIN)/java -version 2>&1 | tail -1 | cut -d " " -f3)
60ifeq "$(JAVA_BITS)" "64-Bit"
61ifneq "$(PLATFORM)" "linux"
62JAVA_OPTIONS=-d32
63endif
64endif
65endif
66
67ifeq "$(PLATFORM)" "macosx"
68OFFICE_LAUNCHER=DYLD_LIBRARY_PATH="" && "$(OFFICE_PROGRAM_PATH)$(PS)soffice"
69else
70OFFICE_LAUNCHER="$(OFFICE_PROGRAM_PATH)$(PS)soffice"
71endif
72
67DEPLOYTOOL="$(OFFICE_PROGRAM_PATH)$(PS)unopkg" add -f
68SDK_JAVA="$(OO_SDK_JAVA_HOME)/$(JAVABIN)/java" $(JAVA_OPTIONS)
69SDK_JAVAC="$(OO_SDK_JAVA_HOME)/$(JAVABIN)/javac"
70SDK_JAR="$(OO_SDK_JAVA_HOME)/$(JAVABIN)/jar"
71SDK_ZIP="$(OO_SDK_ZIP_HOME)/zip"
72SDK_CAT="$(OO_SDK_CAT_HOME)/cat"
73SDK_SED="$(OO_SDK_SED_HOME)/sed"
74IDLC="$(OO_SDK_HOME)/bin/idlc"
75CPPUMAKER="$(OO_SDK_HOME)/bin/cppumaker"
76JAVAMAKER="$(OO_SDK_HOME)/bin/javamaker"
73DEPLOYTOOL="$(OFFICE_PROGRAM_PATH)$(PS)unopkg" add -f
74SDK_JAVA="$(OO_SDK_JAVA_HOME)/$(JAVABIN)/java" $(JAVA_OPTIONS)
75SDK_JAVAC="$(OO_SDK_JAVA_HOME)/$(JAVABIN)/javac"
76SDK_JAR="$(OO_SDK_JAVA_HOME)/$(JAVABIN)/jar"
77SDK_ZIP="$(OO_SDK_ZIP_HOME)/zip"
78SDK_CAT="$(OO_SDK_CAT_HOME)/cat"
79SDK_SED="$(OO_SDK_SED_HOME)/sed"
80IDLC="$(OO_SDK_HOME)/bin/idlc"
81CPPUMAKER="$(OO_SDK_HOME)/bin/cppumaker"
82JAVAMAKER="$(OO_SDK_HOME)/bin/javamaker"
77REGMERGE="$(OO_SDK_URE_HOME)/bin/regmerge"
78REGCOMP="$(OO_SDK_URE_HOME)/bin/regcomp"
83REGMERGE="$(OFFICE_PROGRAM_PATH)/regmerge"
84REGCOMP="$(OFFICE_PROGRAM_PATH)/regcomp"
79
80SDK_JAVA_UNO_BOOTSTRAP_FILES=\
81 -C $(CLASSES_DIR) $(SQM)com/sun/star/lib/loader/Loader.class$(SQM) \
82 -C $(CLASSES_DIR) $(SQM)com/sun/star/lib/loader/Loader$$Drain.class$(SQM) \
83 -C $(CLASSES_DIR) $(SQM)com/sun/star/lib/loader/Loader$$CustomURLClassLoader.class$(SQM) \
84 -C $(CLASSES_DIR) $(SQM)com/sun/star/lib/loader/Loader$$Drain.class$(SQM) \
85 -C $(CLASSES_DIR) $(SQM)com/sun/star/lib/loader/InstallationFinder.class$(SQM) \
86 -C $(CLASSES_DIR) $(SQM)com/sun/star/lib/loader/InstallationFinder$$StreamGobbler.class$(SQM) \
87 -C $(CLASSES_DIR) $(SQM)com/sun/star/lib/loader/WinRegKey.class$(SQM) \
88 -C $(CLASSES_DIR) $(SQM)com/sun/star/lib/loader/WinRegKeyException.class$(SQM) \
89 -C $(CLASSES_DIR) $(SQM)win/unowinreg.dll$(SQM)
85
86SDK_JAVA_UNO_BOOTSTRAP_FILES=\
87 -C $(CLASSES_DIR) $(SQM)com/sun/star/lib/loader/Loader.class$(SQM) \
88 -C $(CLASSES_DIR) $(SQM)com/sun/star/lib/loader/Loader$$Drain.class$(SQM) \
89 -C $(CLASSES_DIR) $(SQM)com/sun/star/lib/loader/Loader$$CustomURLClassLoader.class$(SQM) \
90 -C $(CLASSES_DIR) $(SQM)com/sun/star/lib/loader/Loader$$Drain.class$(SQM) \
91 -C $(CLASSES_DIR) $(SQM)com/sun/star/lib/loader/InstallationFinder.class$(SQM) \
92 -C $(CLASSES_DIR) $(SQM)com/sun/star/lib/loader/InstallationFinder$$StreamGobbler.class$(SQM) \
93 -C $(CLASSES_DIR) $(SQM)com/sun/star/lib/loader/WinRegKey.class$(SQM) \
94 -C $(CLASSES_DIR) $(SQM)com/sun/star/lib/loader/WinRegKeyException.class$(SQM) \
95 -C $(CLASSES_DIR) $(SQM)win/unowinreg.dll$(SQM)