xref: /trunk/main/sdext/source/minimizer/makefile.mk (revision 7871dc3e)
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=sdext
26TARGET=SunPresentationMinimizer
27GEN_HID=FALSE
28ENABLE_EXCEPTIONS=TRUE
29
30# --- Settings ----------------------------------
31.INCLUDE : settings.mk
32.IF "$(L10N_framework)"==""
33.INCLUDE :  $(PRJ)$/source$/minimizer$/minimizer.pmk
34.INCLUDE :  $(PRJ)$/util$/makefile.pmk
35
36# set in minimizer.pmk
37#EXTENSIONNAME:=PresentationMinimizer
38EXTENSION_ZIPNAME:=presentation-minimizer
39
40.IF "$(ENABLE_MINIMIZER)" != "YES"
41@all:
42	@echo "Presentation Minimizer build disabled."
43.ENDIF
44
45DLLPRE=
46
47# --- Files -------------------------------------
48
49SLOFILES=	$(SLO)$/unodialog.obj				\
50			$(SLO)$/optimizerdialog.obj			\
51			$(SLO)$/optimizerdialogcontrols.obj	\
52			$(SLO)$/configurationaccess.obj		\
53			$(SLO)$/impoptimizer.obj			\
54			$(SLO)$/pppoptimizer.obj			\
55			$(SLO)$/pppoptimizeruno.obj			\
56			$(SLO)$/pppoptimizertoken.obj		\
57			$(SLO)$/pppoptimizerdialog.obj		\
58			$(SLO)$/fileopendialog.obj			\
59			$(SLO)$/optimizationstats.obj		\
60			$(SLO)$/graphiccollector.obj		\
61			$(SLO)$/pagecollector.obj			\
62			$(SLO)$/informationdialog.obj
63
64# --- Library -----------------------------------
65
66SHL1TARGET=		$(TARGET).uno
67
68SHL1STDLIBS=	$(CPPUHELPERLIB)	\
69				$(CPPULIB)			\
70				$(SALLIB)
71SHL1DEPN=
72SHL1IMPLIB=		i$(SHL1TARGET)
73SHL1LIBS=		$(SLB)$/$(TARGET).lib
74SHL1DEF=		$(MISC)$/$(SHL1TARGET).def
75SHL1VERSIONMAP=$(SOLARENV)/src/reg-component.map
76SHL1RPATH=      OXT
77DEF1NAME=		$(SHL1TARGET)
78
79COMPONENT_XCU_REPLACEMENT=s/@MINIMIZEREXTENSIONPRODUCTNAME@/Presentation Minimizer/g
80
81COMPONENT_MERGED_XCU= \
82    $(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/Office$/Addons.xcu \
83    $(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/Office$/ProtocolHandler.xcu \
84    $(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/Office$/extension$/SunPresentationMinimizer.xcu
85
86COMPONENT_FILES= \
87    $(EXTENSIONDIR)$/registry$/schema$/org$/openoffice$/Office$/extension$/SunPresentationMinimizer.xcs
88
89# native libraries
90COMPONENT_LIBRARIES= \
91    $(EXTENSIONDIR)$/SunPresentationMinimizer.uno$(DLLPOST)
92
93# rather freestyle or common to all?
94COMPONENT_BITMAPS= \
95	$(EXTENSIONDIR)$/bitmaps$/opt_16.png \
96	$(EXTENSIONDIR)$/bitmaps$/opt_26.png \
97	$(EXTENSIONDIR)$/bitmaps$/opt_16_h.png \
98	$(EXTENSIONDIR)$/bitmaps$/opt_26_h.png \
99	$(EXTENSIONDIR)$/bitmaps$/minimizepresi_80.png \
100	$(EXTENSIONDIR)$/bitmaps$/minimizepresi_80_h.png
101
102COMPONENT_IMAGES=\
103	$(EXTENSIONDIR)$/bitmaps$/extension_32.png \
104	$(EXTENSIONDIR)$/bitmaps$/extension_32_h.png
105
106# rather freestyle or common to all?
107COMPONENT_HELP= \
108    $(EXTENSIONDIR)$/help$/help_de.odt \
109    $(EXTENSIONDIR)$/help$/help_en-US.odt \
110    $(EXTENSIONDIR)$/help$/component.txt
111
112# make sure to add your custom files here
113EXTENSION_PACKDEPS=$(COMPONENT_BITMAPS) $(COMPONENT_IMAGES) $(COMPONENT_HELP)
114
115ZIP2TARGET=     presentation_minimizer_develop
116.IF "$(WITH_LANG)"!=""
117ZIP2DIR=        $(MISC)/$(EXTENSIONNAME)_in/merge
118.ELSE          # "$(WITH_LANG)"!=""
119ZIP2DIR=        registry/data
120.ENDIF          # "$(WITH_LANG)"!=""
121ZIP2EXT=        .zip
122ZIP2FLAGS=-r
123ZIP2LIST= \
124    org/openoffice/Office/Addons.xcu \
125    org/openoffice/Office/extension/*.xcu
126
127# --- Targets ----------------------------------
128
129.INCLUDE : extension_pre.mk
130
131.ENDIF # L10N_framework
132.INCLUDE : target.mk
133
134.IF "$(L10N_framework)"==""
135.INCLUDE : extension_post.mk
136
137$(COMPONENT_BITMAPS) : $(SOLARSRC)$/$(RSCDEFIMG)$/minimizer$/$$(@:f)
138	@@-$(MKDIRHIER) $(@:d)
139    $(COPY) $< $@
140
141$(COMPONENT_IMAGES) : $(SOLARSRC)$/$(RSCDEFIMG)$/desktop$/res$/$$(@:f)
142	@@-$(MKDIRHIER) $(@:d)
143    $(COPY) $< $@
144
145$(COMPONENT_HELP) : help$/$$(@:f)
146	@@-$(MKDIRHIER) $(@:d)
147    $(COPY) $< $@
148
149.ENDIF # L10N_framework
150