merge the formfield patch from ooo-build
[ooovba.git] / reportbuilder / util / makefile.mk
blobcd65b814abf9e45d6069d98de0795559770a61b3
1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # Copyright 2008 by Sun Microsystems, Inc.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # $RCSfile: makefile.mk,v $
11 # $Revision: 1.21.2.2 $
13 # This file is part of OpenOffice.org.
15 # OpenOffice.org is free software: you can redistribute it and/or modify
16 # it under the terms of the GNU Lesser General Public License version 3
17 # only, as published by the Free Software Foundation.
19 # OpenOffice.org is distributed in the hope that it will be useful,
20 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 # GNU Lesser General Public License version 3 for more details
23 # (a copy is included in the LICENSE file that accompanied this code).
25 # You should have received a copy of the GNU Lesser General Public License
26 # version 3 along with OpenOffice.org. If not, see
27 # <http://www.openoffice.org/license.html>
28 # for a copy of the LGPLv3 License.
30 #*************************************************************************
32 PRJ=..
33 PRJNAME=reportbuilder
34 TARGET=rpt
35 EXTENSION_VERSION_BASE=1.2.0
37 .IF "$(CWS_WORK_STAMP)" == ""
38 EXTENSION_VERSION=$(EXTENSION_VERSION_BASE)
39 .ELSE
40 EXTENSION_VERSION=$(EXTENSION_VERSION_BASE).cws.$(CWS_WORK_STAMP)
41 .ENDIF
43 # --- Settings ----------------------------------
44 .INCLUDE : makefile.pmk
45 .IF "$(L10N_framework)"==""
46 # ------------------------------------------------------------------
47 # calready set in util$/makefile.pmk
48 # EXTENSIONNAME:=sun-report-builder
49 EXTENSION_ZIPNAME:=sun-report-builder
51 # create Extension -----------------------------
53 .IF "$(SOLAR_JAVA)"!=""
55 XMLFILES = $(EXTENSIONDIR)$/META-INF$/manifest.xml
57 # DESCRIPTION_SRC is the source file which is copied into the extension
58 # It is defaulted to "description.xml", but we want to pre-process it, so we use an intermediate
59 # file
60 DESCRIPTION_SRC = $(MISC)$/description.xml
62 COMPONENT_MERGED_XCU= \
63 $(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/Setup.xcu \
64 $(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/Office$/DataAccess.xcu \
65 $(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/Office$/ReportDesign.xcu \
66 $(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/Office$/ExtendedColorScheme.xcu \
67 $(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/Office$/Embedding.xcu \
68 $(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/Office$/Paths.xcu \
69 $(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/Office$/Accelerators.xcu \
70 $(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/TypeDetection$/Filter.xcu \
71 $(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/TypeDetection$/Types.xcu \
72 $(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/Office$/UI$/ReportCommands.xcu \
73 $(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/Office$/UI$/Controller.xcu \
74 $(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/Office$/UI$/DbReportWindowState.xcu \
75 $(EXTENSIONDIR)$/registry$/schema$/org$/openoffice$/Office$/UI$/DbReportWindowState.xcs \
76 $(EXTENSIONDIR)$/registry$/schema$/org$/openoffice$/Office$/UI$/ReportCommands.xcs \
77 $(EXTENSIONDIR)$/registry$/schema$/org$/openoffice$/Office$/ReportDesign.xcs
79 COMPONENT_OTR_FILES= \
80 $(EXTENSIONDIR)$/template$/en-US$/wizard$/report$/default.otr
82 COMPONENT_IMAGES= \
83 $(EXTENSIONDIR)$/images$/em42.png \
84 $(EXTENSIONDIR)$/images$/em42_hc.png
86 COMPONENT_HTMLFILES = $(EXTENSIONDIR)$/THIRDPARTYREADMELICENSE.html \
87 $(EXTENSIONDIR)$/readme_en-US.html \
88 $(EXTENSIONDIR)$/readme_en-US.txt
90 COMPONENT_JARFILES = \
91 $(EXTENSIONDIR)$/sun-report-builder.jar
93 COMPONENT_HELP= \
94 $(EXTENSIONDIR)$/help$/component.txt
96 # .jar files from solver
97 COMPONENT_EXTJARFILES = \
98 $(EXTENSIONDIR)$/sun-report-builder.jar \
99 $(EXTENSIONDIR)$/reportbuilderwizard.jar
101 .IF "$(SYSTEM_JFREEREPORT)" != "YES"
102 COMPONENT_EXTJARFILES += \
103 $(EXTENSIONDIR)$/flute-1.3.0.jar \
104 $(EXTENSIONDIR)$/libserializer-1.0.0.jar \
105 $(EXTENSIONDIR)$/libbase-1.0.0.jar \
106 $(EXTENSIONDIR)$/libfonts-1.0.0.jar \
107 $(EXTENSIONDIR)$/libformula-0.2.0.jar \
108 $(EXTENSIONDIR)$/liblayout-0.2.9.jar \
109 $(EXTENSIONDIR)$/libloader-1.0.0.jar \
110 $(EXTENSIONDIR)$/librepository-1.0.0.jar \
111 $(EXTENSIONDIR)$/libxml-1.0.0.jar \
112 $(EXTENSIONDIR)$/flow-engine-0.9.2.jar \
113 $(EXTENSIONDIR)$/sac.jar
114 .ENDIF
115 .IF "$(SYSTEM_APACHE_COMMONS)" != "YES"
116 COMPONENT_EXTJARFILES += \
117 $(EXTENSIONDIR)$/commons-logging-1.1.1.jar
118 .ENDIF
120 COMPONENT_MANIFEST_GENERIC:=TRUE
121 COMPONENT_MANIFEST_SEARCHDIR:=registry
123 # make sure to add your custom files here
124 EXTENSION_PACKDEPS=$(COMPONENT_EXTJARFILES) $(COMPONENT_HTMLFILES) $(COMPONENT_OTR_FILES) $(COMPONENT_HELP) $(COMPONENT_IMAGES)
125 .ENDIF
126 # --- Targets ----------------------------------
128 .INCLUDE : extension_pre.mk
129 .INCLUDE : target.mk
130 .INCLUDE : extension_post.mk
131 .IF "$(L10N_framework)"==""
132 $(EXTENSIONDIR)$/%.jar : $(SOLARBINDIR)$/%.jar
133 @@-$(MKDIRHIER) $(@:d)
134 $(COPY) $< $@
136 $(EXTENSIONDIR)$/readme_en-US.% : $(PRJ)$/license$/readme_en-US.%
137 @@-$(MKDIRHIER) $(@:d)
138 $(COPY) $< $@
140 $(EXTENSIONDIR)$/images$/%.png : $(PRJ)$/images$/%.png
141 @@-$(MKDIRHIER) $(@:d)
142 $(COPY) $< $@
144 $(EXTENSIONDIR)$/THIRDPARTYREADMELICENSE.html : $(PRJ)$/license$/THIRDPARTYREADMELICENSE.html
145 @@-$(MKDIRHIER) $(@:d)
146 $(COPY) $< $@
148 $(COMPONENT_HELP) : $$(@:f)
149 @@-$(MKDIRHIER) $(@:d)
150 $(COPY) $< $@
152 $(DESCRIPTION_SRC): description.xml
153 +-$(RM) $@
154 $(TYPE) description.xml | $(SED) "s/#VERSION#/$(EXTENSION_VERSION)/" > $@
155 .ENDIF
156 .ELSE # "$(SOLAR_JAVA)"!=""
157 .INCLUDE : target.mk
158 .ENDIF # "$(SOLAR_JAVA)"!=""