1*cdf0e10cSrcweir#************************************************************************* 2*cdf0e10cSrcweir# 3*cdf0e10cSrcweir# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4*cdf0e10cSrcweir# 5*cdf0e10cSrcweir# Copyright 2000, 2010 Oracle and/or its affiliates. 6*cdf0e10cSrcweir# 7*cdf0e10cSrcweir# OpenOffice.org - a multi-platform office productivity suite 8*cdf0e10cSrcweir# 9*cdf0e10cSrcweir# This file is part of OpenOffice.org. 10*cdf0e10cSrcweir# 11*cdf0e10cSrcweir# OpenOffice.org is free software: you can redistribute it and/or modify 12*cdf0e10cSrcweir# it under the terms of the GNU Lesser General Public License version 3 13*cdf0e10cSrcweir# only, as published by the Free Software Foundation. 14*cdf0e10cSrcweir# 15*cdf0e10cSrcweir# OpenOffice.org is distributed in the hope that it will be useful, 16*cdf0e10cSrcweir# but WITHOUT ANY WARRANTY; without even the implied warranty of 17*cdf0e10cSrcweir# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18*cdf0e10cSrcweir# GNU Lesser General Public License version 3 for more details 19*cdf0e10cSrcweir# (a copy is included in the LICENSE file that accompanied this code). 20*cdf0e10cSrcweir# 21*cdf0e10cSrcweir# You should have received a copy of the GNU Lesser General Public License 22*cdf0e10cSrcweir# version 3 along with OpenOffice.org. If not, see 23*cdf0e10cSrcweir# <http://www.openoffice.org/license.html> 24*cdf0e10cSrcweir# for a copy of the LGPLv3 License. 25*cdf0e10cSrcweir# 26*cdf0e10cSrcweir#************************************************************************* 27*cdf0e10cSrcweir 28*cdf0e10cSrcweirPRJ=.. 29*cdf0e10cSrcweirPRJNAME=reportbuilder 30*cdf0e10cSrcweirTARGET=rpt 31*cdf0e10cSrcweirEXTENSION_VERSION_BASE=1.2.1 32*cdf0e10cSrcweir 33*cdf0e10cSrcweir.IF "$(CWS_WORK_STAMP)" == "" 34*cdf0e10cSrcweir EXTENSION_VERSION=$(EXTENSION_VERSION_BASE) 35*cdf0e10cSrcweir.ELSE 36*cdf0e10cSrcweir EXTENSION_VERSION=$(EXTENSION_VERSION_BASE).cws.$(CWS_WORK_STAMP) 37*cdf0e10cSrcweir.ENDIF 38*cdf0e10cSrcweir 39*cdf0e10cSrcweir# --- Settings ---------------------------------- 40*cdf0e10cSrcweir.INCLUDE : makefile.pmk 41*cdf0e10cSrcweir.INCLUDE : $(SOLARBINDIR)/jfreereport_version.mk 42*cdf0e10cSrcweir 43*cdf0e10cSrcweir.IF "$(L10N_framework)"=="" 44*cdf0e10cSrcweir# ------------------------------------------------------------------ 45*cdf0e10cSrcweir# calready set in util$/makefile.pmk 46*cdf0e10cSrcweir# EXTENSIONNAME:=report-builder 47*cdf0e10cSrcweirEXTENSION_ZIPNAME:=report-builder 48*cdf0e10cSrcweir 49*cdf0e10cSrcweir# create Extension ----------------------------- 50*cdf0e10cSrcweir 51*cdf0e10cSrcweir.IF "$(SOLAR_JAVA)"!="" 52*cdf0e10cSrcweir 53*cdf0e10cSrcweirXMLFILES = $(EXTENSIONDIR)$/META-INF$/manifest.xml 54*cdf0e10cSrcweir 55*cdf0e10cSrcweir# DESCRIPTION_SRC is the source file which is copied into the extension 56*cdf0e10cSrcweir# It is defaulted to "description.xml", but we want to pre-process it, so we use an intermediate 57*cdf0e10cSrcweir# file 58*cdf0e10cSrcweirDESCRIPTION_SRC = $(MISC)$/description.xml 59*cdf0e10cSrcweir 60*cdf0e10cSrcweirCOMPONENT_MERGED_XCU= \ 61*cdf0e10cSrcweir $(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/Setup.xcu \ 62*cdf0e10cSrcweir $(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/Office$/DataAccess.xcu \ 63*cdf0e10cSrcweir $(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/Office$/ReportDesign.xcu \ 64*cdf0e10cSrcweir $(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/Office$/ExtendedColorScheme.xcu \ 65*cdf0e10cSrcweir $(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/Office$/Embedding.xcu \ 66*cdf0e10cSrcweir $(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/Office$/Paths.xcu \ 67*cdf0e10cSrcweir $(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/Office$/Accelerators.xcu \ 68*cdf0e10cSrcweir $(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/TypeDetection$/Filter.xcu \ 69*cdf0e10cSrcweir $(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/TypeDetection$/Types.xcu \ 70*cdf0e10cSrcweir $(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/Office$/UI$/ReportCommands.xcu \ 71*cdf0e10cSrcweir $(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/Office$/UI$/Controller.xcu \ 72*cdf0e10cSrcweir $(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/Office$/UI$/DbReportWindowState.xcu \ 73*cdf0e10cSrcweir $(EXTENSIONDIR)$/registry$/schema$/org$/openoffice$/Office$/UI$/DbReportWindowState.xcs \ 74*cdf0e10cSrcweir $(EXTENSIONDIR)$/registry$/schema$/org$/openoffice$/Office$/UI$/ReportCommands.xcs \ 75*cdf0e10cSrcweir $(EXTENSIONDIR)$/registry$/schema$/org$/openoffice$/Office$/ReportDesign.xcs 76*cdf0e10cSrcweir 77*cdf0e10cSrcweirCOMPONENT_OTR_FILES= \ 78*cdf0e10cSrcweir $(EXTENSIONDIR)$/template$/en-US$/wizard$/report$/default.otr 79*cdf0e10cSrcweir 80*cdf0e10cSrcweirCOMPONENT_IMAGES= \ 81*cdf0e10cSrcweir $(EXTENSIONDIR)$/images$/extension_32.png \ 82*cdf0e10cSrcweir $(EXTENSIONDIR)$/images$/extension_32_h.png 83*cdf0e10cSrcweir 84*cdf0e10cSrcweirCOMPONENT_HTMLFILES = $(EXTENSIONDIR)$/THIRDPARTYREADMELICENSE.html \ 85*cdf0e10cSrcweir $(EXTENSIONDIR)$/readme_en-US.html \ 86*cdf0e10cSrcweir $(EXTENSIONDIR)$/readme_en-US.txt 87*cdf0e10cSrcweir 88*cdf0e10cSrcweirCOMPONENT_JARFILES = \ 89*cdf0e10cSrcweir $(EXTENSIONDIR)$/sun-report-builder.jar 90*cdf0e10cSrcweir 91*cdf0e10cSrcweirCOMPONENT_HELP= \ 92*cdf0e10cSrcweir $(EXTENSIONDIR)$/help$/component.txt 93*cdf0e10cSrcweir 94*cdf0e10cSrcweir# .jar files from solver 95*cdf0e10cSrcweirCOMPONENT_EXTJARFILES = \ 96*cdf0e10cSrcweir $(EXTENSIONDIR)$/sun-report-builder.jar \ 97*cdf0e10cSrcweir $(EXTENSIONDIR)$/reportbuilderwizard.jar 98*cdf0e10cSrcweir 99*cdf0e10cSrcweir.IF "$(SYSTEM_JFREEREPORT)" != "YES" 100*cdf0e10cSrcweirCOMPONENT_EXTJARFILES += \ 101*cdf0e10cSrcweir $(EXTENSIONDIR)$/flute-$(FLUTE_VERSION).jar \ 102*cdf0e10cSrcweir $(EXTENSIONDIR)$/libserializer-$(LIBSERIALIZER_VERSION).jar \ 103*cdf0e10cSrcweir $(EXTENSIONDIR)$/libbase-$(LIBBASE_VERSION).jar \ 104*cdf0e10cSrcweir $(EXTENSIONDIR)$/libfonts-$(LIBFONTS_VERSION).jar \ 105*cdf0e10cSrcweir $(EXTENSIONDIR)$/libformula-$(LIBFORMULA_VERSION).jar \ 106*cdf0e10cSrcweir $(EXTENSIONDIR)$/liblayout-$(LIBLAYOUT_VERSION).jar \ 107*cdf0e10cSrcweir $(EXTENSIONDIR)$/libloader-$(LIBLOADER_VERSION).jar \ 108*cdf0e10cSrcweir $(EXTENSIONDIR)$/librepository-$(LIBREPOSITORY_VERSION).jar \ 109*cdf0e10cSrcweir $(EXTENSIONDIR)$/libxml-$(LIBXML_VERSION).jar \ 110*cdf0e10cSrcweir $(EXTENSIONDIR)$/flow-engine-$(FLOW_ENGINE_VERSION).jar \ 111*cdf0e10cSrcweir $(EXTENSIONDIR)$/sac.jar 112*cdf0e10cSrcweir.ENDIF 113*cdf0e10cSrcweir.IF "$(SYSTEM_APACHE_COMMONS)" != "YES" 114*cdf0e10cSrcweirCOMPONENT_EXTJARFILES += \ 115*cdf0e10cSrcweir $(EXTENSIONDIR)$/commons-logging-1.1.1.jar 116*cdf0e10cSrcweir.ENDIF 117*cdf0e10cSrcweir 118*cdf0e10cSrcweirCOMPONENT_MANIFEST_GENERIC:=TRUE 119*cdf0e10cSrcweirCOMPONENT_MANIFEST_SEARCHDIR:=registry 120*cdf0e10cSrcweir 121*cdf0e10cSrcweir# make sure to add your custom files here 122*cdf0e10cSrcweirEXTENSION_PACKDEPS=$(COMPONENT_EXTJARFILES) $(COMPONENT_HTMLFILES) $(COMPONENT_OTR_FILES) $(COMPONENT_HELP) $(COMPONENT_IMAGES) 123*cdf0e10cSrcweir.ENDIF 124*cdf0e10cSrcweir# --- Targets ---------------------------------- 125*cdf0e10cSrcweir 126*cdf0e10cSrcweir.INCLUDE : extension_pre.mk 127*cdf0e10cSrcweir.INCLUDE : target.mk 128*cdf0e10cSrcweir.INCLUDE : extension_post.mk 129*cdf0e10cSrcweir.IF "$(L10N_framework)"=="" 130*cdf0e10cSrcweir$(EXTENSIONDIR)$/%.jar : $(SOLARBINDIR)$/%.jar 131*cdf0e10cSrcweir @@-$(MKDIRHIER) $(@:d) 132*cdf0e10cSrcweir $(COPY) $< $@ 133*cdf0e10cSrcweir 134*cdf0e10cSrcweir$(EXTENSIONDIR)$/readme_en-US.% : $(PRJ)$/license$/readme_en-US.% 135*cdf0e10cSrcweir @@-$(MKDIRHIER) $(@:d) 136*cdf0e10cSrcweir $(COPY) $< $@ 137*cdf0e10cSrcweir 138*cdf0e10cSrcweir$(COMPONENT_IMAGES) : $(SOLARSRC)$/$(RSCDEFIMG)$/desktop$/res$/$$(@:f) 139*cdf0e10cSrcweir @@-$(MKDIRHIER) $(@:d) 140*cdf0e10cSrcweir $(COPY) $< $@ 141*cdf0e10cSrcweir 142*cdf0e10cSrcweir$(EXTENSIONDIR)$/THIRDPARTYREADMELICENSE.html : $(PRJ)$/license$/THIRDPARTYREADMELICENSE.html 143*cdf0e10cSrcweir @@-$(MKDIRHIER) $(@:d) 144*cdf0e10cSrcweir $(COPY) $< $@ 145*cdf0e10cSrcweir 146*cdf0e10cSrcweir$(COMPONENT_HELP) : $$(@:f) 147*cdf0e10cSrcweir @@-$(MKDIRHIER) $(@:d) 148*cdf0e10cSrcweir $(COPY) $< $@ 149*cdf0e10cSrcweir 150*cdf0e10cSrcweir$(DESCRIPTION_SRC): description.xml 151*cdf0e10cSrcweir +-$(RM) $@ 152*cdf0e10cSrcweir $(TYPE) description.xml | $(SED) "s/#VERSION#/$(EXTENSION_VERSION)/" > $@ 153*cdf0e10cSrcweir.ENDIF 154*cdf0e10cSrcweir.ELSE # "$(SOLAR_JAVA)"!="" 155*cdf0e10cSrcweir.INCLUDE : target.mk 156*cdf0e10cSrcweir.ENDIF # "$(SOLAR_JAVA)"!="" 157*cdf0e10cSrcweir# 158