xref: /aoo41x/main/odk/pack/gendocu/makefile.mk (revision cdf0e10c)
1#*************************************************************************
2#
3# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4#
5# Copyright 2000, 2010 Oracle and/or its affiliates.
6#
7# OpenOffice.org - a multi-platform office productivity suite
8#
9# This file is part of OpenOffice.org.
10#
11# OpenOffice.org is free software: you can redistribute it and/or modify
12# it under the terms of the GNU Lesser General Public License version 3
13# only, as published by the Free Software Foundation.
14#
15# OpenOffice.org is distributed in the hope that it will be useful,
16# but WITHOUT ANY WARRANTY; without even the implied warranty of
17# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18# GNU Lesser General Public License version 3 for more details
19# (a copy is included in the LICENSE file that accompanied this code).
20#
21# You should have received a copy of the GNU Lesser General Public License
22# version 3 along with OpenOffice.org.  If not, see
23# <http://www.openoffice.org/license.html>
24# for a copy of the LGPLv3 License.
25#
26#*************************************************************************
27
28PRJ=..$/..
29PRJNAME=odk
30TARGET=gendocu
31
32#----------------------------------------------------------------
33.INCLUDE: settings.mk
34.INCLUDE: $(PRJ)$/util$/makefile.pmk
35#----------------------------------------------------------------
36.IF "$(L10N_framework)"==""
37
38CPPDOCREFNAME="UDK $(UDK_MAJOR).$(UDK_MINOR).$(UDK_MICRO) C/C++ API Reference"
39JAVADOCREFNAME="UDK $(UDK_MAJOR).$(UDK_MINOR).$(UDK_MICRO) Java API Reference"
40
41CPP_DOCU_INDEX_FILE = $(DESTDIRGENCPPREF)$/index.html
42JAVA_DOCU_INDEX_FILE = $(DESTDIRGENJAVAREF)$/index.html
43
44CPP_DOCU_CLEANUP_FLAG = $(MISC)$/cpp_docu_cleanup.flag
45
46JAVA_SRC_DIR=$(MISC)$/java_src
47JAVA_PACKAGES=\
48        com.sun.star.comp.helper \
49        com.sun.star.lib.uno.helper \
50        com.sun.star.lib.unoloader \
51        com.sun.star.uno \
52        $(JAVA_SRC_DIR)$/com$/sun$/star$/lib$/util$/UrlToFileMapper.java
53#        com.sun.star.beans \
54
55JAVA_SRC_FILES=\
56        $(JAVA_SRC_DIR)$/jurt_src.zip \
57        $(JAVA_SRC_DIR)$/juh_src.zip \
58        $(JAVA_SRC_DIR)$/ridl_src.zip \
59        $(JAVA_SRC_DIR)$/unoloader_src.zip
60
61JAVA_BEAN_SRC_FILES=\
62        $(JAVA_SRC_DIR)$/com$/sun$/star$/beans$/ContainerFactory.java \
63        $(JAVA_SRC_DIR)$/com$/sun$/star$/beans$/JavaWindowPeerFake.java \
64        $(JAVA_SRC_DIR)$/com$/sun$/star$/beans$/LocalOfficeConnection.java \
65        $(JAVA_SRC_DIR)$/com$/sun$/star$/beans$/LocalOfficeWindow.java \
66        $(JAVA_SRC_DIR)$/com$/sun$/star$/beans$/NativeConnection.java \
67        $(JAVA_SRC_DIR)$/com$/sun$/star$/beans$/NativeService.java \
68        $(JAVA_SRC_DIR)$/com$/sun$/star$/beans$/OfficeConnection.java \
69        $(JAVA_SRC_DIR)$/com$/sun$/star$/beans$/OfficeWindow.java
70
71AUTODOCPARAMS= -lg c++ \
72        -p sal $(INCOUT) -t sal -t osl -t rtl \
73        -p store $(INCOUT) -t store \
74        -p registry $(INCOUT) -t registry \
75        -p cppu $(INCOUT) -t cppu -t com -t typelib -t uno \
76        -p cppuhelper $(INCOUT) -t cppuhelper \
77        -p salhelper $(INCOUT) -t salhelper \
78        -p bridges $(INCOUT) -t bridges
79
80JAVADOCPARAMS= -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)
81
82JAVADOCLOG = $(MISC)$/javadoc_log.txt
83
84.IF "$(SOLAR_JAVA)"!=""
85all: \
86	$(CPP_DOCU_INDEX_FILE) \
87	$(JAVA_DOCU_INDEX_FILE)
88
89.ELSE
90all: $(CPP_DOCU_INDEX_FILE)
91.ENDIF
92
93
94$(CPP_DOCU_CLEANUP_FLAG) : $(INCLUDELIST) $(PRJ)$/docs$/cpp$/ref$/cpp.css
95	@@-$(MY_DELETE_RECURSIVE) $(DESTDIRGENCPPREF)
96	$(TOUCH) $@
97
98$(CPP_DOCU_INDEX_FILE) : $(CPP_DOCU_CLEANUP_FLAG)
99	-$(MKDIRHIER) $(@:d)
100	$(MY_AUTODOC) -html $(DESTDIRGENCPPREF) -name $(CPPDOCREFNAME) $(AUTODOCPARAMS)
101	-rm $(@:d:d)$/cpp.css
102	$(MY_TEXTCOPY) $(MY_TEXTCOPY_SOURCEPRE) $(PRJ)$/docs$/cpp$/ref$/cpp.css $(MY_TEXTCOPY_TARGETPRE) $(@:d:d)$/cpp.css
103
104$(JAVA_SRC_FILES) : $(SOLARCOMMONBINDIR)$/$$(@:f)
105	-$(MKDIRHIER) $(@:d)
106	$(MY_COPY) $< $@
107	cd $(JAVA_SRC_DIR) && unzip -quo $(@:f)
108
109#$(JAVA_SRC_DIR)$/com$/sun$/star$/beans$/%.java : $(PRJ)$/source$/bean$/com$/sun$/star$/beans$/%.java
110#	-$(MKDIRHIER) $(@:d)
111#	$(MY_COPY) $< $@
112
113#$(JAVA_DOCU_INDEX_FILE) .SEQUENTIAL : $(JAVA_SRC_FILES) $(JAVA_BEAN_SRC_FILES)
114.IF "$(SOLAR_JAVA)"!=""
115$(JAVA_DOCU_INDEX_FILE) .SEQUENTIAL : $(JAVA_SRC_FILES)
116	-$(MKDIRHIER) $(@:d)
117	$(JAVADOC) -J-Xmx120m $(JAVADOCPARAMS) > $(JAVADOCLOG)
118.ENDIF
119
120.ELSE
121pseudo:
122.ENDIF
123