merged tag ooo/OOO330_m14
[LibreOffice.git] / reportbuilder / util / makefile.mk
blobc52e85841f68772e2e4ebbf337ff55292b60e8c5
1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # Copyright 2000, 2010 Oracle and/or its affiliates.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # This file is part of OpenOffice.org.
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.
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).
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.
26 #*************************************************************************
28 PRJ=..
29 PRJNAME=reportbuilder
30 TARGET=rpt
31 EXTENSION_VERSION_BASE=1.2.1
33 .IF "$(CWS_WORK_STAMP)" == ""
34 EXTENSION_VERSION=$(EXTENSION_VERSION_BASE)
35 .ELSE
36 EXTENSION_VERSION=$(EXTENSION_VERSION_BASE).cws.$(CWS_WORK_STAMP)
37 .ENDIF
39 # --- Settings ----------------------------------
40 .INCLUDE : makefile.pmk
41 .IF "$(L10N_framework)"==""
42 # ------------------------------------------------------------------
43 # calready set in util$/makefile.pmk
44 # EXTENSIONNAME:=report-builder
45 EXTENSION_ZIPNAME:=report-builder
47 # create Extension -----------------------------
49 .IF "$(SOLAR_JAVA)"!=""
51 XMLFILES = $(EXTENSIONDIR)$/META-INF$/manifest.xml
53 # DESCRIPTION_SRC is the source file which is copied into the extension
54 # It is defaulted to "description.xml", but we want to pre-process it, so we use an intermediate
55 # file
56 DESCRIPTION_SRC = $(MISC)$/description.xml
58 COMPONENT_MERGED_XCU= \
59 $(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/Setup.xcu \
60 $(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/Office$/DataAccess.xcu \
61 $(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/Office$/ReportDesign.xcu \
62 $(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/Office$/ExtendedColorScheme.xcu \
63 $(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/Office$/Embedding.xcu \
64 $(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/Office$/Paths.xcu \
65 $(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/Office$/Accelerators.xcu \
66 $(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/TypeDetection$/Filter.xcu \
67 $(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/TypeDetection$/Types.xcu \
68 $(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/Office$/UI$/ReportCommands.xcu \
69 $(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/Office$/UI$/Controller.xcu \
70 $(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/Office$/UI$/DbReportWindowState.xcu \
71 $(EXTENSIONDIR)$/registry$/schema$/org$/openoffice$/Office$/UI$/DbReportWindowState.xcs \
72 $(EXTENSIONDIR)$/registry$/schema$/org$/openoffice$/Office$/UI$/ReportCommands.xcs \
73 $(EXTENSIONDIR)$/registry$/schema$/org$/openoffice$/Office$/ReportDesign.xcs
75 COMPONENT_OTR_FILES= \
76 $(EXTENSIONDIR)$/template$/en-US$/wizard$/report$/default.otr
78 COMPONENT_IMAGES= \
79 $(EXTENSIONDIR)$/images$/extension_32.png \
80 $(EXTENSIONDIR)$/images$/extension_32_h.png
82 COMPONENT_HTMLFILES = $(EXTENSIONDIR)$/THIRDPARTYREADMELICENSE.html \
83 $(EXTENSIONDIR)$/readme_en-US.html \
84 $(EXTENSIONDIR)$/readme_en-US.txt
86 COMPONENT_JARFILES = \
87 $(EXTENSIONDIR)$/sun-report-builder.jar
89 COMPONENT_HELP= \
90 $(EXTENSIONDIR)$/help$/component.txt
92 # .jar files from solver
93 COMPONENT_EXTJARFILES = \
94 $(EXTENSIONDIR)$/sun-report-builder.jar \
95 $(EXTENSIONDIR)$/reportbuilderwizard.jar
97 .IF "$(SYSTEM_JFREEREPORT)" != "YES"
98 COMPONENT_EXTJARFILES += \
99 $(EXTENSIONDIR)$/flute-1.3.0.jar \
100 $(EXTENSIONDIR)$/libserializer-1.0.0.jar \
101 $(EXTENSIONDIR)$/libbase-1.0.0.jar \
102 $(EXTENSIONDIR)$/libfonts-1.0.0.jar \
103 $(EXTENSIONDIR)$/libformula-0.2.0.jar \
104 $(EXTENSIONDIR)$/liblayout-0.2.9.jar \
105 $(EXTENSIONDIR)$/libloader-1.0.0.jar \
106 $(EXTENSIONDIR)$/librepository-1.0.0.jar \
107 $(EXTENSIONDIR)$/libxml-1.0.0.jar \
108 $(EXTENSIONDIR)$/flow-engine-0.9.2.jar \
109 $(EXTENSIONDIR)$/sac.jar
110 .ENDIF
111 .IF "$(SYSTEM_APACHE_COMMONS)" != "YES"
112 COMPONENT_EXTJARFILES += \
113 $(EXTENSIONDIR)$/commons-logging-1.1.1.jar
114 .ENDIF
116 COMPONENT_MANIFEST_GENERIC:=TRUE
117 COMPONENT_MANIFEST_SEARCHDIR:=registry
119 # make sure to add your custom files here
120 EXTENSION_PACKDEPS=$(COMPONENT_EXTJARFILES) $(COMPONENT_HTMLFILES) $(COMPONENT_OTR_FILES) $(COMPONENT_HELP) $(COMPONENT_IMAGES)
121 .ENDIF
122 # --- Targets ----------------------------------
124 .INCLUDE : extension_pre.mk
125 .INCLUDE : target.mk
126 .INCLUDE : extension_post.mk
127 .IF "$(L10N_framework)"==""
128 $(EXTENSIONDIR)$/%.jar : $(SOLARBINDIR)$/%.jar
129 @@-$(MKDIRHIER) $(@:d)
130 $(COPY) $< $@
132 $(EXTENSIONDIR)$/readme_en-US.% : $(PRJ)$/license$/readme_en-US.%
133 @@-$(MKDIRHIER) $(@:d)
134 $(COPY) $< $@
136 $(COMPONENT_IMAGES) : $(SOLARSRC)$/$(RSCDEFIMG)$/desktop$/res$/$$(@:f)
137 @@-$(MKDIRHIER) $(@:d)
138 $(COPY) $< $@
140 $(EXTENSIONDIR)$/THIRDPARTYREADMELICENSE.html : $(PRJ)$/license$/THIRDPARTYREADMELICENSE.html
141 @@-$(MKDIRHIER) $(@:d)
142 $(COPY) $< $@
144 $(COMPONENT_HELP) : $$(@:f)
145 @@-$(MKDIRHIER) $(@:d)
146 $(COPY) $< $@
148 $(DESCRIPTION_SRC): description.xml
149 +-$(RM) $@
150 $(TYPE) description.xml | $(SED) "s/#VERSION#/$(EXTENSION_VERSION)/" > $@
151 .ENDIF
152 .ELSE # "$(SOLAR_JAVA)"!=""
153 .INCLUDE : target.mk
154 .ENDIF # "$(SOLAR_JAVA)"!=""