Fix OFFICE_PROGRAM_PATH for new Mac OS X layout
Change-Id: Id8c6082b4b90c3020e1187dd311f0afd0320d155
This commit is contained in:
@@ -94,10 +94,12 @@ sdk_platform=`/bin/sh ${OO_SDK_HOME}/config.guess | cut -d"-" -f3,4`
|
||||
# Set the directory name.
|
||||
programdir=program
|
||||
javadir=bin
|
||||
sdk_lo_java_dir=program/classes
|
||||
case ${sdk_platform} in
|
||||
darwin*)
|
||||
programdir="Contents/MacOS"
|
||||
javadir=Commands
|
||||
sdk_lo_java_dir=Contents/Resources/java
|
||||
;;
|
||||
esac
|
||||
|
||||
@@ -226,7 +228,7 @@ esac
|
||||
PATH=${OO_SDK_HOME}/bin:${OO_SDK_OUT}/${exampleout}/bin:${OO_SDK_URE_BIN_DIR}:${OFFICE_PROGRAM_PATH}:${PATH}
|
||||
|
||||
# Set the classpath
|
||||
CLASSPATH=${OO_SDK_URE_JAVA_DIR}/juh.jar:${OO_SDK_URE_JAVA_DIR}/jurt.jar:${OO_SDK_URE_JAVA_DIR}/ridl.jar:${OO_SDK_URE_JAVA_DIR}/unoloader.jar:${OFFICE_PROGRAM_PATH}/classes/unoil.jar:${CLASSPATH}
|
||||
CLASSPATH=${OO_SDK_URE_JAVA_DIR}/juh.jar:${OO_SDK_URE_JAVA_DIR}/jurt.jar:${OO_SDK_URE_JAVA_DIR}/ridl.jar:${OO_SDK_URE_JAVA_DIR}/unoloader.jar:${OFFICE_HOME}/$sdk_lo_java_dir/unoil.jar:${CLASSPATH}
|
||||
export CLASSPATH
|
||||
|
||||
|
||||
|
@@ -37,7 +37,11 @@ IDL_DIR=$(PRJ)/idl
|
||||
BIN_DIR=$(PRJ)/bin
|
||||
CLASSES_DIR=$(PRJ)/classes
|
||||
URE_CLASSES_DIR=$(subst \,/,$(OO_SDK_URE_JAVA_DIR))
|
||||
ifeq "$(PLATFORM)" "macosx"
|
||||
OFFICE_CLASSES_DIR=$(subst \,/,$(OFFICE_PROGRAM_PATH))/../Resources/java
|
||||
else
|
||||
OFFICE_CLASSES_DIR=$(subst \,/,$(OFFICE_PROGRAM_PATH))/classes
|
||||
endif
|
||||
COMP_PACKAGE_DIR=$(subst /,$(PS),$(OUT_BIN))
|
||||
|
||||
SDKTYPEFLAG=$(OUT_MISC)/oosdk_cpp_types.flag
|
||||
@@ -45,8 +49,13 @@ SDKTYPEFLAG=$(OUT_MISC)/oosdk_cpp_types.flag
|
||||
URE_TYPES="$(subst \,/,$(URE_MISC)$(PS)types.rdb)"
|
||||
URE_SERVICES="$(subst \\,\,$(URE_MISC)$(PS)services.rdb)"
|
||||
|
||||
ifeq "$(PLATFORM)" "macosx"
|
||||
OFFICE_TYPES="$(subst \,/,$(OFFICE_PROGRAM_PATH)$(PS)..$(PS)Resources$(PS)types$(PS)offapi.rdb)"
|
||||
OFFICE_SERVICES="$(subst \\,\,$(OFFICE_PROGRAM_PATH)$(PS)..$(PS)Resources$(PS)services$(PS)services.rdb)"
|
||||
else
|
||||
OFFICE_TYPES="$(subst \,/,$(OFFICE_PROGRAM_PATH)$(PS)types$(PS)offapi.rdb)"
|
||||
OFFICE_SERVICES="$(subst \\,\,$(OFFICE_PROGRAM_PATH)$(PS)services$(PS)services.rdb)"
|
||||
endif
|
||||
|
||||
OFFICE_TYPE_LIBRARY="$(OFFICE_TYPES)"
|
||||
|
||||
|
Reference in New Issue
Block a user