merge the formfield patch from ooo-build
[ooovba.git] / sdext / source / minimizer / makefile.mk
blob89b1e16c955f45389267b7dd3dab5dd13b0e0ab5
1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 # Copyright 2008 by Sun Microsystems, Inc.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # $RCSfile: makefile.mk,v $
11 # $Revision: 1.13 $
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=sdext
34 TARGET=SunPresentationMinimizer
35 GEN_HID=FALSE
36 ENABLE_EXCEPTIONS=TRUE
38 # --- Settings ----------------------------------
39 .INCLUDE : settings.mk
40 .IF "$(L10N_framework)"==""
41 .INCLUDE : $(PRJ)$/source$/minimizer$/minimizer.pmk
42 .INCLUDE : $(PRJ)$/util$/makefile.pmk
44 # set in minimizer.pmk
45 #EXTENSIONNAME:=SunPresentationMinimizer
46 EXTENSION_ZIPNAME:=sun-presentation-minimizer
48 .IF "$(ENABLE_MINIMIZER)" != "YES"
49 @all:
50 @echo "Presentation Minimizer build disabled."
51 .ENDIF
53 DLLPRE=
55 # --- Files -------------------------------------
57 SLOFILES= $(SLO)$/unodialog.obj \
58 $(SLO)$/optimizerdialog.obj \
59 $(SLO)$/optimizerdialogcontrols.obj \
60 $(SLO)$/configurationaccess.obj \
61 $(SLO)$/impoptimizer.obj \
62 $(SLO)$/pppoptimizer.obj \
63 $(SLO)$/pppoptimizeruno.obj \
64 $(SLO)$/pppoptimizertoken.obj \
65 $(SLO)$/pppoptimizerdialog.obj \
66 $(SLO)$/fileopendialog.obj \
67 $(SLO)$/optimizationstats.obj \
68 $(SLO)$/aboutdialog.obj \
69 $(SLO)$/graphiccollector.obj \
70 $(SLO)$/pagecollector.obj \
71 $(SLO)$/informationdialog.obj
73 # --- Library -----------------------------------
75 SHL1TARGET= $(TARGET).uno
77 SHL1STDLIBS= $(CPPUHELPERLIB) \
78 $(CPPULIB) \
79 $(SALLIB)
80 SHL1DEPN=
81 SHL1IMPLIB= i$(SHL1TARGET)
82 SHL1LIBS= $(SLB)$/$(TARGET).lib
83 SHL1DEF= $(MISC)$/$(SHL1TARGET).def
84 SHL1VERSIONMAP= exports.map
85 SHL1RPATH= OXT
86 DEF1NAME= $(SHL1TARGET)
88 COMPONENT_MERGED_XCU= \
89 $(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/Office$/Addons.xcu \
90 $(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/Office$/extension$/SunPresentationMinimizer.xcu \
91 $(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/Office$/UI$/ImpressWindowState.xcu
93 COMPONENT_XCU= \
94 $(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/Office$/ProtocolHandler.xcu
96 COMPONENT_FILES= \
97 $(EXTENSIONDIR)$/registry$/schema$/org$/openoffice$/Office$/extension$/SunPresentationMinimizer.xcs
99 # native libraries
100 COMPONENT_LIBRARIES= \
101 $(EXTENSIONDIR)$/SunPresentationMinimizer.uno$(DLLPOST)
103 # rather freestyle or common to all?
104 COMPONENT_BITMAPS= \
105 $(EXTENSIONDIR)$/bitmaps$/aboutlogo.png \
106 $(EXTENSIONDIR)$/bitmaps$/opt_16.png \
107 $(EXTENSIONDIR)$/bitmaps$/opt_26.png \
108 $(EXTENSIONDIR)$/bitmaps$/opt_16_h.png \
109 $(EXTENSIONDIR)$/bitmaps$/opt_26_h.png \
110 $(EXTENSIONDIR)$/bitmaps$/minimizepresi_80.png \
111 $(EXTENSIONDIR)$/bitmaps$/minimizepresi_80_h.png
113 # rather freestyle or common to all?
114 COMPONENT_HELP= \
115 $(EXTENSIONDIR)$/help$/help_de.odt \
116 $(EXTENSIONDIR)$/help$/help_en-US.odt \
117 $(EXTENSIONDIR)$/help$/component.txt
119 # make sure to add your custom files here
120 EXTENSION_PACKDEPS=$(COMPONENT_BITMAPS) $(COMPONENT_HELP)
122 # --- Targets ----------------------------------
124 .INCLUDE : extension_pre.mk
126 .ENDIF # L10N_framework
127 .INCLUDE : target.mk
129 .IF "$(L10N_framework)"==""
130 .INCLUDE : extension_post.mk
132 $(COMPONENT_BITMAPS) : $(SOLARSRC)$/$(RSCDEFIMG)$/minimizer$/$$(@:f)
133 @@-$(MKDIRHIER) $(@:d)
134 $(COPY) $< $@
136 $(COMPONENT_HELP) : help$/$$(@:f)
137 @@-$(MKDIRHIER) $(@:d)
138 $(COPY) $< $@
140 .ENDIF # L10N_framework