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