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 9# with the License. You may obtain a copy of the License at 10# 11# http://www.apache.org/licenses/LICENSE-2.0 12# 13# Unless required by applicable law or agreed to in writing, 14# software distributed under the License is distributed on an 15# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16# KIND, either express or implied. See the License for the 17# specific language governing permissions and limitations 18# under the License. 19# 20#************************************************************** 21 22 23 24PRJ=..$/.. 25PRJNAME=odk 26TARGET=gendocu 27 28#---------------------------------------------------------------- 29.INCLUDE: settings.mk 30.INCLUDE: $(PRJ)$/util$/makefile.pmk 31#---------------------------------------------------------------- 32.IF "$(L10N_framework)"=="" 33 34CPPDOCREFNAME="UDK $(UDK_MAJOR).$(UDK_MINOR).$(UDK_MICRO) C/C++ API Reference" 35JAVADOCREFNAME="UDK $(UDK_MAJOR).$(UDK_MINOR).$(UDK_MICRO) Java API Reference" 36 37CPP_DOCU_INDEX_FILE = $(DESTDIRGENCPPREF)$/index.html 38JAVA_DOCU_INDEX_FILE = $(DESTDIRGENJAVAREF)$/index.html 39 40CPP_DOCU_CLEANUP_FLAG = $(MISC)$/cpp_docu_cleanup.flag 41 42JAVA_SRC_DIR=$(MISC)$/java_src 43JAVA_PACKAGES=\ 44 com.sun.star.comp.helper \ 45 com.sun.star.lib.uno.helper \ 46 com.sun.star.lib.unoloader \ 47 com.sun.star.uno \ 48 $(JAVA_SRC_DIR)$/com$/sun$/star$/lib$/util$/UrlToFileMapper.java 49# com.sun.star.beans \ 50 51JAVA_SRC_FILES=\ 52 $(JAVA_SRC_DIR)$/jurt_src.zip \ 53 $(JAVA_SRC_DIR)$/juh_src.zip \ 54 $(JAVA_SRC_DIR)$/ridl_src.zip \ 55 $(JAVA_SRC_DIR)$/unoloader_src.zip 56 57JAVA_BEAN_SRC_FILES=\ 58 $(JAVA_SRC_DIR)$/com$/sun$/star$/beans$/ContainerFactory.java \ 59 $(JAVA_SRC_DIR)$/com$/sun$/star$/beans$/JavaWindowPeerFake.java \ 60 $(JAVA_SRC_DIR)$/com$/sun$/star$/beans$/LocalOfficeConnection.java \ 61 $(JAVA_SRC_DIR)$/com$/sun$/star$/beans$/LocalOfficeWindow.java \ 62 $(JAVA_SRC_DIR)$/com$/sun$/star$/beans$/NativeConnection.java \ 63 $(JAVA_SRC_DIR)$/com$/sun$/star$/beans$/NativeService.java \ 64 $(JAVA_SRC_DIR)$/com$/sun$/star$/beans$/OfficeConnection.java \ 65 $(JAVA_SRC_DIR)$/com$/sun$/star$/beans$/OfficeWindow.java 66 67AUTODOCPARAMS= -lg c++ \ 68 -p sal $(INCOUT) -t sal -t osl -t rtl \ 69 -p store $(INCOUT) -t store \ 70 -p registry $(INCOUT) -t registry \ 71 -p cppu $(INCOUT) -t cppu -t com -t typelib -t uno \ 72 -p cppuhelper $(INCOUT) -t cppuhelper \ 73 -p salhelper $(INCOUT) -t salhelper \ 74 -p bridges $(INCOUT) -t bridges 75 76JAVADOCPARAMS= -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) 77 78JAVADOCLOG = $(MISC)$/javadoc_log.txt 79 80.IF "$(SOLAR_JAVA)"!="" 81all: \ 82 $(CPP_DOCU_INDEX_FILE) \ 83 $(JAVA_DOCU_INDEX_FILE) 84 85.ELSE 86all: $(CPP_DOCU_INDEX_FILE) 87.ENDIF 88 89 90$(CPP_DOCU_CLEANUP_FLAG) : $(INCLUDELIST) $(PRJ)$/docs$/cpp$/ref$/cpp.css 91 @@-$(MY_DELETE_RECURSIVE) $(DESTDIRGENCPPREF) 92 $(TOUCH) $@ 93 94$(CPP_DOCU_INDEX_FILE) : $(CPP_DOCU_CLEANUP_FLAG) 95 -$(MKDIRHIER) $(@:d) 96 $(MY_AUTODOC) -html $(DESTDIRGENCPPREF) -name $(CPPDOCREFNAME) $(AUTODOCPARAMS) 97 -rm $(@:d:d)$/cpp.css 98 $(MY_TEXTCOPY) $(MY_TEXTCOPY_SOURCEPRE) $(PRJ)$/docs$/cpp$/ref$/cpp.css $(MY_TEXTCOPY_TARGETPRE) $(@:d:d)$/cpp.css 99 100$(JAVA_SRC_FILES) : $(SOLARCOMMONBINDIR)$/$$(@:f) 101 -$(MKDIRHIER) $(@:d) 102 $(MY_COPY) $< $@ 103 cd $(JAVA_SRC_DIR) && unzip -quo $(@:f) 104 105#$(JAVA_SRC_DIR)$/com$/sun$/star$/beans$/%.java : $(PRJ)$/source$/bean$/com$/sun$/star$/beans$/%.java 106# -$(MKDIRHIER) $(@:d) 107# $(MY_COPY) $< $@ 108 109#$(JAVA_DOCU_INDEX_FILE) .SEQUENTIAL : $(JAVA_SRC_FILES) $(JAVA_BEAN_SRC_FILES) 110.IF "$(SOLAR_JAVA)"!="" 111$(JAVA_DOCU_INDEX_FILE) .SEQUENTIAL : $(JAVA_SRC_FILES) 112 -$(MKDIRHIER) $(@:d) 113 $(JAVADOC) -J-Xmx120m $(JAVADOCPARAMS) > $(JAVADOCLOG) 114.ENDIF 115 116.ELSE 117pseudo: 118.ENDIF 119