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=\ 68 -ignoredefine CPPUHELPER_DLLPUBLIC \ 69 -lg c++ \ 70 -p sal $(INCOUT) -t sal -t osl -t rtl \ 71 -p store $(INCOUT) -t store \ 72 -p registry $(INCOUT) -t registry \ 73 -p cppu $(INCOUT) -t cppu -t com -t typelib -t uno \ 74 -p cppuhelper $(INCOUT) -t cppuhelper \ 75 -p salhelper $(INCOUT) -t salhelper \ 76 -p bridges $(INCOUT) -t bridges 77 78JAVADOCPARAMS= -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) 79 80JAVADOCLOG = $(MISC)$/javadoc_log.txt 81 82.IF "$(SOLAR_JAVA)"!="" 83all: \ 84 $(CPP_DOCU_INDEX_FILE) \ 85 $(JAVA_DOCU_INDEX_FILE) 86 87.ELSE 88all: $(CPP_DOCU_INDEX_FILE) 89.ENDIF 90 91 92$(CPP_DOCU_CLEANUP_FLAG) : $(INCLUDELIST) $(PRJ)$/docs$/cpp$/ref$/cpp.css 93 @@-$(MY_DELETE_RECURSIVE) $(DESTDIRGENCPPREF) 94 $(TOUCH) $@ 95 96$(CPP_DOCU_INDEX_FILE) : $(CPP_DOCU_CLEANUP_FLAG) 97 -$(MKDIRHIER) $(@:d) 98 $(MY_AUTODOC) -html $(DESTDIRGENCPPREF) -name $(CPPDOCREFNAME) $(AUTODOCPARAMS) 99 -rm $(@:d:d)$/cpp.css 100 $(MY_TEXTCOPY) $(MY_TEXTCOPY_SOURCEPRE) $(PRJ)$/docs$/cpp$/ref$/cpp.css $(MY_TEXTCOPY_TARGETPRE) $(@:d:d)$/cpp.css 101 102$(JAVA_SRC_FILES) : $(SOLARCOMMONPCKDIR)$/jurt_src.zip $(SOLARCOMMONBINDIR)$/ridl_src.zip $(SOLARCOMMONBINDIR)$/unoloader_src.zip $(SOLARCOMMONPCKDIR)$/juh_src.zip 103 -$(MKDIRHIER) $(@:d) 104 $(MY_COPY) $^ $(JAVA_SRC_DIR) 105 cd $(JAVA_SRC_DIR) && unzip -qu jurt_src.zip && unzip -qu ridl_src.zip && unzip -qu unoloader_src.zip && unzip -qu juh_src.zip 106 107#$(JAVA_SRC_DIR)$/com$/sun$/star$/beans$/%.java : $(PRJ)$/source$/bean$/com$/sun$/star$/beans$/%.java 108# -$(MKDIRHIER) $(@:d) 109# $(MY_COPY) $< $@ 110 111#$(JAVA_DOCU_INDEX_FILE) .SEQUENTIAL : $(JAVA_SRC_FILES) $(JAVA_BEAN_SRC_FILES) 112.IF "$(SOLAR_JAVA)"!="" 113$(JAVA_DOCU_INDEX_FILE) .SEQUENTIAL : $(JAVA_SRC_FILES) 114 -$(MKDIRHIER) $(@:d) 115 $(JAVADOC) -J-Xmx120m $(JAVADOCPARAMS) > $(JAVADOCLOG) 116.IF "$(OS)" != "MACOSX" 117 cd $(shell dirname $(JAVA_DOCU_INDEX_FILE)) && patch $(shell basename $(JAVA_DOCU_INDEX_FILE)) $(PWD)/idl_ref_javadoc.patch 118.ENDIF 119.ENDIF 120 121.ELSE 122pseudo: 123.ENDIF 124