xref: /aoo42x/main/reportbuilder/util/makefile.mk (revision 21f06b29)
17871dc3eSAndrew Rist#**************************************************************
27871dc3eSAndrew Rist#
37871dc3eSAndrew Rist#  Licensed to the Apache Software Foundation (ASF) under one
47871dc3eSAndrew Rist#  or more contributor license agreements.  See the NOTICE file
57871dc3eSAndrew Rist#  distributed with this work for additional information
67871dc3eSAndrew Rist#  regarding copyright ownership.  The ASF licenses this file
77871dc3eSAndrew Rist#  to you under the Apache License, Version 2.0 (the
87871dc3eSAndrew Rist#  "License"); you may not use this file except in compliance
97871dc3eSAndrew Rist#  with the License.  You may obtain a copy of the License at
107871dc3eSAndrew Rist#
117871dc3eSAndrew Rist#    http://www.apache.org/licenses/LICENSE-2.0
127871dc3eSAndrew Rist#
137871dc3eSAndrew Rist#  Unless required by applicable law or agreed to in writing,
147871dc3eSAndrew Rist#  software distributed under the License is distributed on an
157871dc3eSAndrew Rist#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
167871dc3eSAndrew Rist#  KIND, either express or implied.  See the License for the
177871dc3eSAndrew Rist#  specific language governing permissions and limitations
187871dc3eSAndrew Rist#  under the License.
197871dc3eSAndrew Rist#
207871dc3eSAndrew Rist#**************************************************************
217871dc3eSAndrew Rist
227871dc3eSAndrew Rist
23cdf0e10cSrcweir
24cdf0e10cSrcweirPRJ=..
25cdf0e10cSrcweirPRJNAME=reportbuilder
26cdf0e10cSrcweirTARGET=rpt
27cdf0e10cSrcweirEXTENSION_VERSION_BASE=1.2.1
28cdf0e10cSrcweir
29cdf0e10cSrcweir.IF "$(CWS_WORK_STAMP)" == ""
30cdf0e10cSrcweir    EXTENSION_VERSION=$(EXTENSION_VERSION_BASE)
31cdf0e10cSrcweir.ELSE
32cdf0e10cSrcweir    EXTENSION_VERSION=$(EXTENSION_VERSION_BASE).cws.$(CWS_WORK_STAMP)
33cdf0e10cSrcweir.ENDIF
34cdf0e10cSrcweir
35cdf0e10cSrcweir# --- Settings ----------------------------------
36cdf0e10cSrcweir.INCLUDE :  makefile.pmk
37cdf0e10cSrcweir
38cdf0e10cSrcweir.IF "$(L10N_framework)"==""
39cdf0e10cSrcweir# ------------------------------------------------------------------
40cdf0e10cSrcweir# calready set in util$/makefile.pmk
41cdf0e10cSrcweir# EXTENSIONNAME:=report-builder
42cdf0e10cSrcweirEXTENSION_ZIPNAME:=report-builder
43cdf0e10cSrcweir
44cdf0e10cSrcweir# create Extension -----------------------------
45cdf0e10cSrcweir
46cdf0e10cSrcweir.IF "$(SOLAR_JAVA)"!=""
47cdf0e10cSrcweir
48cdf0e10cSrcweirXMLFILES =  $(EXTENSIONDIR)$/META-INF$/manifest.xml
49cdf0e10cSrcweir
50cdf0e10cSrcweir# DESCRIPTION_SRC is the source file which is copied into the extension
51cdf0e10cSrcweir# It is defaulted to "description.xml", but we want to pre-process it, so we use an intermediate
52cdf0e10cSrcweir# file
53cdf0e10cSrcweirDESCRIPTION_SRC = $(MISC)$/description.xml
54cdf0e10cSrcweir
55cdf0e10cSrcweirCOMPONENT_MERGED_XCU= \
56cdf0e10cSrcweir            $(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/Setup.xcu \
57cdf0e10cSrcweir			$(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/Office$/DataAccess.xcu \
58cdf0e10cSrcweir			$(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/Office$/ReportDesign.xcu \
59cdf0e10cSrcweir			$(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/Office$/ExtendedColorScheme.xcu \
60cdf0e10cSrcweir			$(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/Office$/Embedding.xcu \
61cdf0e10cSrcweir			$(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/Office$/Paths.xcu \
62cdf0e10cSrcweir			$(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/Office$/Accelerators.xcu \
63cdf0e10cSrcweir			$(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/TypeDetection$/Filter.xcu \
64cdf0e10cSrcweir			$(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/TypeDetection$/Types.xcu \
65cdf0e10cSrcweir			$(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/Office$/UI$/ReportCommands.xcu \
66cdf0e10cSrcweir			$(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/Office$/UI$/Controller.xcu \
67cdf0e10cSrcweir			$(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/Office$/UI$/DbReportWindowState.xcu \
68cdf0e10cSrcweir			$(EXTENSIONDIR)$/registry$/schema$/org$/openoffice$/Office$/UI$/DbReportWindowState.xcs \
69cdf0e10cSrcweir			$(EXTENSIONDIR)$/registry$/schema$/org$/openoffice$/Office$/UI$/ReportCommands.xcs \
70cdf0e10cSrcweir			$(EXTENSIONDIR)$/registry$/schema$/org$/openoffice$/Office$/ReportDesign.xcs
71cdf0e10cSrcweir
72cdf0e10cSrcweirCOMPONENT_OTR_FILES= \
73cdf0e10cSrcweir	$(EXTENSIONDIR)$/template$/en-US$/wizard$/report$/default.otr
74*21f06b29SJuergen Schmidt
75cdf0e10cSrcweirCOMPONENT_IMAGES= \
76cdf0e10cSrcweir	$(EXTENSIONDIR)$/images$/extension_32.png \
77cdf0e10cSrcweir	$(EXTENSIONDIR)$/images$/extension_32_h.png
78cdf0e10cSrcweir
7926d3a4c9SAriel Constenla-HaileCOMPONENT_HTMLFILES = $(EXTENSIONDIR)$/readme_en-US.html \
80cdf0e10cSrcweir			$(EXTENSIONDIR)$/readme_en-US.txt
81cdf0e10cSrcweir
82cdf0e10cSrcweirCOMPONENT_JARFILES = \
83cdf0e10cSrcweir	$(EXTENSIONDIR)$/sun-report-builder.jar
84cdf0e10cSrcweir
85cdf0e10cSrcweirCOMPONENT_HELP= \
86cdf0e10cSrcweir	$(EXTENSIONDIR)$/help$/component.txt
87cdf0e10cSrcweir
88cdf0e10cSrcweir# .jar files from solver
89cdf0e10cSrcweirCOMPONENT_EXTJARFILES = \
90cdf0e10cSrcweir	$(EXTENSIONDIR)$/sun-report-builder.jar 					\
91cdf0e10cSrcweir	$(EXTENSIONDIR)$/reportbuilderwizard.jar
92cdf0e10cSrcweir
93cdf0e10cSrcweir.IF "$(SYSTEM_JFREEREPORT)" != "YES"
9457f49b00SOliver-Rainer Wittmann.INCLUDE :  $(SOLARBINDIR)/jfreereport_version.mk
95cdf0e10cSrcweirCOMPONENT_EXTJARFILES += \
96cdf0e10cSrcweir	$(EXTENSIONDIR)$/flute-$(FLUTE_VERSION).jar				            \
97cdf0e10cSrcweir	$(EXTENSIONDIR)$/libserializer-$(LIBSERIALIZER_VERSION).jar			\
98cdf0e10cSrcweir	$(EXTENSIONDIR)$/libbase-$(LIBBASE_VERSION).jar                     \
99cdf0e10cSrcweir	$(EXTENSIONDIR)$/libfonts-$(LIBFONTS_VERSION).jar					\
100cdf0e10cSrcweir	$(EXTENSIONDIR)$/libformula-$(LIBFORMULA_VERSION).jar						\
101cdf0e10cSrcweir	$(EXTENSIONDIR)$/liblayout-$(LIBLAYOUT_VERSION).jar					\
102cdf0e10cSrcweir	$(EXTENSIONDIR)$/libloader-$(LIBLOADER_VERSION).jar					\
103cdf0e10cSrcweir	$(EXTENSIONDIR)$/librepository-$(LIBREPOSITORY_VERSION).jar			\
104cdf0e10cSrcweir	$(EXTENSIONDIR)$/libxml-$(LIBXML_VERSION).jar						\
105cdf0e10cSrcweir	$(EXTENSIONDIR)$/flow-engine-$(FLOW_ENGINE_VERSION).jar 	        \
106cdf0e10cSrcweir	$(EXTENSIONDIR)$/sac.jar
107cdf0e10cSrcweir.ENDIF
108cdf0e10cSrcweir.IF "$(SYSTEM_APACHE_COMMONS)" != "YES"
109cdf0e10cSrcweirCOMPONENT_EXTJARFILES += \
110*21f06b29SJuergen Schmidt	$(EXTENSIONDIR)$/commons-logging-1.1.3.jar
111cdf0e10cSrcweir.ENDIF
112cdf0e10cSrcweir
113cdf0e10cSrcweirCOMPONENT_MANIFEST_GENERIC:=TRUE
114cdf0e10cSrcweirCOMPONENT_MANIFEST_SEARCHDIR:=registry
115cdf0e10cSrcweir
116cdf0e10cSrcweir# make sure to add your custom files here
117cdf0e10cSrcweirEXTENSION_PACKDEPS=$(COMPONENT_EXTJARFILES) $(COMPONENT_HTMLFILES) $(COMPONENT_OTR_FILES) $(COMPONENT_HELP) $(COMPONENT_IMAGES)
118cdf0e10cSrcweir.ENDIF
119cdf0e10cSrcweir# --- Targets ----------------------------------
120cdf0e10cSrcweir
121cdf0e10cSrcweir.INCLUDE : extension_pre.mk
122cdf0e10cSrcweir.INCLUDE : target.mk
123cdf0e10cSrcweir.INCLUDE : extension_post.mk
124cdf0e10cSrcweir.IF "$(L10N_framework)"==""
125cdf0e10cSrcweir$(EXTENSIONDIR)$/%.jar : $(SOLARBINDIR)$/%.jar
126cdf0e10cSrcweir	@@-$(MKDIRHIER) $(@:d)
127cdf0e10cSrcweir    $(COPY) $< $@
128cdf0e10cSrcweir
129cdf0e10cSrcweir$(EXTENSIONDIR)$/readme_en-US.% : $(PRJ)$/license$/readme_en-US.%
130cdf0e10cSrcweir	@@-$(MKDIRHIER) $(@:d)
131cdf0e10cSrcweir    $(COPY) $< $@
132cdf0e10cSrcweir
133cdf0e10cSrcweir$(COMPONENT_IMAGES) : $(SOLARSRC)$/$(RSCDEFIMG)$/desktop$/res$/$$(@:f)
134cdf0e10cSrcweir	@@-$(MKDIRHIER) $(@:d)
135cdf0e10cSrcweir    $(COPY) $< $@
136cdf0e10cSrcweir
137cdf0e10cSrcweir$(COMPONENT_HELP) : $$(@:f)
138cdf0e10cSrcweir	@@-$(MKDIRHIER) $(@:d)
139cdf0e10cSrcweir    $(COPY) $< $@
140cdf0e10cSrcweir
141cdf0e10cSrcweir$(DESCRIPTION_SRC): description.xml
142cdf0e10cSrcweir	+-$(RM) $@
143cdf0e10cSrcweir	$(TYPE) description.xml | $(SED) "s/#VERSION#/$(EXTENSION_VERSION)/" > $@
144cdf0e10cSrcweir.ENDIF
145cdf0e10cSrcweir.ELSE			# "$(SOLAR_JAVA)"!=""
146cdf0e10cSrcweir.INCLUDE : target.mk
147cdf0e10cSrcweir.ENDIF			# "$(SOLAR_JAVA)"!=""
148cdf0e10cSrcweir#
149