#************************************************************** # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. # #************************************************************** PRJ=..$/.. PRJNAME=odk TARGET=gendocu #---------------------------------------------------------------- .INCLUDE: settings.mk .INCLUDE: $(PRJ)$/util$/makefile.pmk #---------------------------------------------------------------- .IF "$(L10N_framework)"=="" CPPDOCREFNAME="UDK $(UDK_MAJOR).$(UDK_MINOR).$(UDK_MICRO) C/C++ API Reference" JAVADOCREFNAME="UDK $(UDK_MAJOR).$(UDK_MINOR).$(UDK_MICRO) Java API Reference" CPP_DOCU_INDEX_FILE = $(DESTDIRGENCPPREF)$/index.html JAVA_DOCU_INDEX_FILE = $(DESTDIRGENJAVAREF)$/index.html CPP_DOCU_CLEANUP_FLAG = $(MISC)$/cpp_docu_cleanup.flag JAVA_SRC_DIR=$(MISC)$/java_src JAVA_PACKAGES=\ com.sun.star.comp.helper \ com.sun.star.lib.uno.helper \ com.sun.star.lib.unoloader \ com.sun.star.uno \ $(JAVA_SRC_DIR)$/com$/sun$/star$/lib$/util$/UrlToFileMapper.java # com.sun.star.beans \ JAVA_SRC_FILES=\ $(JAVA_SRC_DIR)$/jurt_src.zip \ $(JAVA_SRC_DIR)$/juh_src.zip \ $(JAVA_SRC_DIR)$/ridl_src.zip \ $(JAVA_SRC_DIR)$/unoloader_src.zip JAVA_BEAN_SRC_FILES=\ $(JAVA_SRC_DIR)$/com$/sun$/star$/beans$/ContainerFactory.java \ $(JAVA_SRC_DIR)$/com$/sun$/star$/beans$/JavaWindowPeerFake.java \ $(JAVA_SRC_DIR)$/com$/sun$/star$/beans$/LocalOfficeConnection.java \ $(JAVA_SRC_DIR)$/com$/sun$/star$/beans$/LocalOfficeWindow.java \ $(JAVA_SRC_DIR)$/com$/sun$/star$/beans$/NativeConnection.java \ $(JAVA_SRC_DIR)$/com$/sun$/star$/beans$/NativeService.java \ $(JAVA_SRC_DIR)$/com$/sun$/star$/beans$/OfficeConnection.java \ $(JAVA_SRC_DIR)$/com$/sun$/star$/beans$/OfficeWindow.java AUTODOCPARAMS=\ -ignoredefine CPPUHELPER_DLLPUBLIC \ -lg c++ \ -p sal $(INCOUT) -t sal -t osl -t rtl \ -p store $(INCOUT) -t store \ -p registry $(INCOUT) -t registry \ -p cppu $(INCOUT) -t cppu -t com -t typelib -t uno \ -p cppuhelper $(INCOUT) -t cppuhelper \ -p salhelper $(INCOUT) -t salhelper \ -p bridges $(INCOUT) -t bridges JAVADOCPARAMS= -use -splitindex -windowtitle "Java UNO Runtime Reference" -header $(JAVADOCREFNAME) -d $(DESTDIRGENJAVAREF) -sourcepath $(JAVA_SRC_DIR) -classpath $(SOLARBINDIR)$/ridl.jar -linkoffline ../../common/ref ./uno -linkoffline http://java.sun.com/j2se/1.4.1/docs/api ./java $(JAVA_PACKAGES) JAVADOCLOG = $(MISC)$/javadoc_log.txt .IF "$(SOLAR_JAVA)"!="" all: \ $(CPP_DOCU_INDEX_FILE) \ $(JAVA_DOCU_INDEX_FILE) .ELSE all: $(CPP_DOCU_INDEX_FILE) .ENDIF $(CPP_DOCU_CLEANUP_FLAG) : $(INCLUDELIST) $(PRJ)$/docs$/cpp$/ref$/cpp.css @@-$(MY_DELETE_RECURSIVE) $(DESTDIRGENCPPREF) $(TOUCH) $@ $(CPP_DOCU_INDEX_FILE) : $(CPP_DOCU_CLEANUP_FLAG) -$(MKDIRHIER) $(@:d) $(MY_AUTODOC) -html $(DESTDIRGENCPPREF) -name $(CPPDOCREFNAME) $(AUTODOCPARAMS) -rm $(@:d:d)$/cpp.css $(MY_TEXTCOPY) $(MY_TEXTCOPY_SOURCEPRE) $(PRJ)$/docs$/cpp$/ref$/cpp.css $(MY_TEXTCOPY_TARGETPRE) $(@:d:d)$/cpp.css $(JAVA_SRC_FILES) : $(SOLARCOMMONPCKDIR)$/jurt_src.zip $(SOLARCOMMONBINDIR)$/ridl_src.zip $(SOLARCOMMONBINDIR)$/unoloader_src.zip $(SOLARCOMMONPCKDIR)$/juh_src.zip -$(MKDIRHIER) $(@:d) $(MY_COPY) $^ $(JAVA_SRC_DIR) cd $(JAVA_SRC_DIR) && unzip -qu jurt_src.zip && unzip -qu ridl_src.zip && unzip -qu unoloader_src.zip && unzip -qu juh_src.zip #$(JAVA_SRC_DIR)$/com$/sun$/star$/beans$/%.java : $(PRJ)$/source$/bean$/com$/sun$/star$/beans$/%.java # -$(MKDIRHIER) $(@:d) # $(MY_COPY) $< $@ #$(JAVA_DOCU_INDEX_FILE) .SEQUENTIAL : $(JAVA_SRC_FILES) $(JAVA_BEAN_SRC_FILES) .IF "$(SOLAR_JAVA)"!="" $(JAVA_DOCU_INDEX_FILE) .SEQUENTIAL : $(JAVA_SRC_FILES) -$(MKDIRHIER) $(@:d) $(JAVADOC) -J-Xmx120m $(JAVADOCPARAMS) > $(JAVADOCLOG) .IF "$(OS)" != "MACOSX" cd $(shell dirname $(JAVA_DOCU_INDEX_FILE)) && patch $(shell basename $(JAVA_DOCU_INDEX_FILE)) $(PWD)/idl_ref_javadoc.patch .ENDIF .ENDIF .ELSE pseudo: .ENDIF