xref: /aoo41x/main/reportbuilder/util/makefile.mk (revision 7871dc3e)
1*7871dc3eSAndrew Rist#**************************************************************
2*7871dc3eSAndrew Rist#
3*7871dc3eSAndrew Rist#  Licensed to the Apache Software Foundation (ASF) under one
4*7871dc3eSAndrew Rist#  or more contributor license agreements.  See the NOTICE file
5*7871dc3eSAndrew Rist#  distributed with this work for additional information
6*7871dc3eSAndrew Rist#  regarding copyright ownership.  The ASF licenses this file
7*7871dc3eSAndrew Rist#  to you under the Apache License, Version 2.0 (the
8*7871dc3eSAndrew Rist#  "License"); you may not use this file except in compliance
9*7871dc3eSAndrew Rist#  with the License.  You may obtain a copy of the License at
10*7871dc3eSAndrew Rist#
11*7871dc3eSAndrew Rist#    http://www.apache.org/licenses/LICENSE-2.0
12*7871dc3eSAndrew Rist#
13*7871dc3eSAndrew Rist#  Unless required by applicable law or agreed to in writing,
14*7871dc3eSAndrew Rist#  software distributed under the License is distributed on an
15*7871dc3eSAndrew Rist#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*7871dc3eSAndrew Rist#  KIND, either express or implied.  See the License for the
17*7871dc3eSAndrew Rist#  specific language governing permissions and limitations
18*7871dc3eSAndrew Rist#  under the License.
19*7871dc3eSAndrew Rist#
20*7871dc3eSAndrew Rist#**************************************************************
21*7871dc3eSAndrew Rist
22*7871dc3eSAndrew 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
74cdf0e10cSrcweir
75cdf0e10cSrcweirCOMPONENT_IMAGES= \
76cdf0e10cSrcweir	$(EXTENSIONDIR)$/images$/extension_32.png \
77cdf0e10cSrcweir	$(EXTENSIONDIR)$/images$/extension_32_h.png
78cdf0e10cSrcweir
79cdf0e10cSrcweirCOMPONENT_HTMLFILES = $(EXTENSIONDIR)$/THIRDPARTYREADMELICENSE.html \
80cdf0e10cSrcweir			$(EXTENSIONDIR)$/readme_en-US.html \
81cdf0e10cSrcweir			$(EXTENSIONDIR)$/readme_en-US.txt
82cdf0e10cSrcweir
83cdf0e10cSrcweirCOMPONENT_JARFILES = \
84cdf0e10cSrcweir	$(EXTENSIONDIR)$/sun-report-builder.jar
85cdf0e10cSrcweir
86cdf0e10cSrcweirCOMPONENT_HELP= \
87cdf0e10cSrcweir	$(EXTENSIONDIR)$/help$/component.txt
88cdf0e10cSrcweir
89cdf0e10cSrcweir# .jar files from solver
90cdf0e10cSrcweirCOMPONENT_EXTJARFILES = \
91cdf0e10cSrcweir	$(EXTENSIONDIR)$/sun-report-builder.jar 					\
92cdf0e10cSrcweir	$(EXTENSIONDIR)$/reportbuilderwizard.jar
93cdf0e10cSrcweir
94cdf0e10cSrcweir.IF "$(SYSTEM_JFREEREPORT)" != "YES"
9557f49b00SOliver-Rainer Wittmann.INCLUDE :  $(SOLARBINDIR)/jfreereport_version.mk
96cdf0e10cSrcweirCOMPONENT_EXTJARFILES += \
97cdf0e10cSrcweir	$(EXTENSIONDIR)$/flute-$(FLUTE_VERSION).jar				            \
98cdf0e10cSrcweir	$(EXTENSIONDIR)$/libserializer-$(LIBSERIALIZER_VERSION).jar			\
99cdf0e10cSrcweir	$(EXTENSIONDIR)$/libbase-$(LIBBASE_VERSION).jar                     \
100cdf0e10cSrcweir	$(EXTENSIONDIR)$/libfonts-$(LIBFONTS_VERSION).jar					\
101cdf0e10cSrcweir	$(EXTENSIONDIR)$/libformula-$(LIBFORMULA_VERSION).jar						\
102cdf0e10cSrcweir	$(EXTENSIONDIR)$/liblayout-$(LIBLAYOUT_VERSION).jar					\
103cdf0e10cSrcweir	$(EXTENSIONDIR)$/libloader-$(LIBLOADER_VERSION).jar					\
104cdf0e10cSrcweir	$(EXTENSIONDIR)$/librepository-$(LIBREPOSITORY_VERSION).jar			\
105cdf0e10cSrcweir	$(EXTENSIONDIR)$/libxml-$(LIBXML_VERSION).jar						\
106cdf0e10cSrcweir	$(EXTENSIONDIR)$/flow-engine-$(FLOW_ENGINE_VERSION).jar 	        \
107cdf0e10cSrcweir	$(EXTENSIONDIR)$/sac.jar
108cdf0e10cSrcweir.ENDIF
109cdf0e10cSrcweir.IF "$(SYSTEM_APACHE_COMMONS)" != "YES"
110cdf0e10cSrcweirCOMPONENT_EXTJARFILES += \
111cdf0e10cSrcweir	$(EXTENSIONDIR)$/commons-logging-1.1.1.jar
112cdf0e10cSrcweir.ENDIF
113cdf0e10cSrcweir
114cdf0e10cSrcweirCOMPONENT_MANIFEST_GENERIC:=TRUE
115cdf0e10cSrcweirCOMPONENT_MANIFEST_SEARCHDIR:=registry
116cdf0e10cSrcweir
117cdf0e10cSrcweir# make sure to add your custom files here
118cdf0e10cSrcweirEXTENSION_PACKDEPS=$(COMPONENT_EXTJARFILES) $(COMPONENT_HTMLFILES) $(COMPONENT_OTR_FILES) $(COMPONENT_HELP) $(COMPONENT_IMAGES)
119cdf0e10cSrcweir.ENDIF
120cdf0e10cSrcweir# --- Targets ----------------------------------
121cdf0e10cSrcweir
122cdf0e10cSrcweir.INCLUDE : extension_pre.mk
123cdf0e10cSrcweir.INCLUDE : target.mk
124cdf0e10cSrcweir.INCLUDE : extension_post.mk
125cdf0e10cSrcweir.IF "$(L10N_framework)"==""
126cdf0e10cSrcweir$(EXTENSIONDIR)$/%.jar : $(SOLARBINDIR)$/%.jar
127cdf0e10cSrcweir	@@-$(MKDIRHIER) $(@:d)
128cdf0e10cSrcweir    $(COPY) $< $@
129cdf0e10cSrcweir
130cdf0e10cSrcweir$(EXTENSIONDIR)$/readme_en-US.% : $(PRJ)$/license$/readme_en-US.%
131cdf0e10cSrcweir	@@-$(MKDIRHIER) $(@:d)
132cdf0e10cSrcweir    $(COPY) $< $@
133cdf0e10cSrcweir
134cdf0e10cSrcweir$(COMPONENT_IMAGES) : $(SOLARSRC)$/$(RSCDEFIMG)$/desktop$/res$/$$(@:f)
135cdf0e10cSrcweir	@@-$(MKDIRHIER) $(@:d)
136cdf0e10cSrcweir    $(COPY) $< $@
137cdf0e10cSrcweir
138cdf0e10cSrcweir$(EXTENSIONDIR)$/THIRDPARTYREADMELICENSE.html : $(PRJ)$/license$/THIRDPARTYREADMELICENSE.html
139cdf0e10cSrcweir    @@-$(MKDIRHIER) $(@:d)
140cdf0e10cSrcweir    $(COPY) $< $@
141cdf0e10cSrcweir
142cdf0e10cSrcweir$(COMPONENT_HELP) : $$(@:f)
143cdf0e10cSrcweir	@@-$(MKDIRHIER) $(@:d)
144cdf0e10cSrcweir    $(COPY) $< $@
145cdf0e10cSrcweir
146cdf0e10cSrcweir$(DESCRIPTION_SRC): description.xml
147cdf0e10cSrcweir	+-$(RM) $@
148cdf0e10cSrcweir	$(TYPE) description.xml | $(SED) "s/#VERSION#/$(EXTENSION_VERSION)/" > $@
149cdf0e10cSrcweir.ENDIF
150cdf0e10cSrcweir.ELSE			# "$(SOLAR_JAVA)"!=""
151cdf0e10cSrcweir.INCLUDE : target.mk
152cdf0e10cSrcweir.ENDIF			# "$(SOLAR_JAVA)"!=""
153cdf0e10cSrcweir#
154