xref: /aoo42x/main/sdext/source/pdfimport/makefile.mk (revision f813b59a)
17871dc3eSAndrew Rist#**************************************************************
27871dc3eSAndrew Rist#
37871dc3eSAndrew Rist#  Licensed to the Apache Software Foundation (ASF) under one
47871dc3eSAndrew Rist#  or more contributor license agreements.  See the NOTICE file
57871dc3eSAndrew Rist#  distributed with this work for additional information
67871dc3eSAndrew Rist#  regarding copyright ownership.  The ASF licenses this file
77871dc3eSAndrew Rist#  to you under the Apache License, Version 2.0 (the
87871dc3eSAndrew Rist#  "License"); you may not use this file except in compliance
97871dc3eSAndrew Rist#  with the License.  You may obtain a copy of the License at
107871dc3eSAndrew Rist#
117871dc3eSAndrew Rist#    http://www.apache.org/licenses/LICENSE-2.0
127871dc3eSAndrew Rist#
137871dc3eSAndrew Rist#  Unless required by applicable law or agreed to in writing,
147871dc3eSAndrew Rist#  software distributed under the License is distributed on an
157871dc3eSAndrew Rist#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
167871dc3eSAndrew Rist#  KIND, either express or implied.  See the License for the
177871dc3eSAndrew Rist#  specific language governing permissions and limitations
187871dc3eSAndrew Rist#  under the License.
197871dc3eSAndrew Rist#
207871dc3eSAndrew Rist#**************************************************************
217871dc3eSAndrew Rist
227871dc3eSAndrew Rist
23cdf0e10cSrcweir
24cdf0e10cSrcweirPRJ=..$/..
25cdf0e10cSrcweir
26cdf0e10cSrcweirPRJNAME=sdext
27cdf0e10cSrcweirTARGET=pdfimport
28cdf0e10cSrcweirENABLE_EXCEPTIONS=TRUE
29cdf0e10cSrcweir
30cdf0e10cSrcweir# --- Settings -----------------------------------------------------
31cdf0e10cSrcweir
32cdf0e10cSrcweirMKDEPENDSOLVER:=
33cdf0e10cSrcweir.INCLUDE: settings.mk
34cdf0e10cSrcweir
35cdf0e10cSrcweir.IF "$(L10N_framework)"==""
36cdf0e10cSrcweir
37cdf0e10cSrcweir.INCLUDE: pdfisettings.pmk
38cdf0e10cSrcweirINCPRE=-I$(PRJ)$/source$/pdfimport$/inc
39cdf0e10cSrcweir
40cdf0e10cSrcweir# --- Files --------------------------------------------------------
41cdf0e10cSrcweir
42cdf0e10cSrcweirEXTENSIONNAME:=PDFImport
43cdf0e10cSrcweirEXTENSION_ZIPNAME:=pdfimport
44cdf0e10cSrcweir
45cdf0e10cSrcweir.IF "$(ENABLE_PDFIMPORT)" == "NO"
46cdf0e10cSrcweir@all:
47cdf0e10cSrcweir	@echo "PDF Import extension disabled."
48cdf0e10cSrcweir.ENDIF
49cdf0e10cSrcweir
50cdf0e10cSrcweirSLOFILES=\
51cdf0e10cSrcweir    $(SLO)$/filterdet.obj   \
52cdf0e10cSrcweir    $(SLO)$/pdfiadaptor.obj \
53cdf0e10cSrcweir    $(SLO)$/services.obj
54cdf0e10cSrcweir
55cdf0e10cSrcweirSHL1DLLPRE=
56cdf0e10cSrcweirSHL1TARGET=$(TARGET).uno
57cdf0e10cSrcweir
58cdf0e10cSrcweirSHL1LIBS=\
59cdf0e10cSrcweir	$(SLB)$/pdfmisc.lib \
60cdf0e10cSrcweir	$(SLB)$/pdfparse.lib \
61cdf0e10cSrcweir	$(SLB)$/pdfsax.lib \
62cdf0e10cSrcweir	$(SLB)$/pdfparsetree.lib \
63cdf0e10cSrcweir	$(SLB)$/pdfodf.lib \
64cdf0e10cSrcweir	$(SLB)$/xpdfwrapper.lib \
65cdf0e10cSrcweir	$(SLB)$/$(TARGET).lib
66cdf0e10cSrcweir
67cdf0e10cSrcweirSHL1STDLIBS=\
68cdf0e10cSrcweir    $(CPPUHELPERLIB)	\
69cdf0e10cSrcweir	$(ZLIB3RDLIB)	    \
70cdf0e10cSrcweir	$(CPPULIB)			\
71cdf0e10cSrcweir	$(SALLIB)
72cdf0e10cSrcweir
73cdf0e10cSrcweir.IF "$(GUI)" == "UNX"
74cdf0e10cSrcweir    SHL1STDLIBS+=-lbasegfx_s
75cdf0e10cSrcweir.ELSE
76cdf0e10cSrcweir.IF "$(GUI)" == "WNT"
77cdf0e10cSrcweir.IF "$(COM)"=="GCC"
78cdf0e10cSrcweir    SHL1STDLIBS+=-lbasegfx_s
79cdf0e10cSrcweir.ELSE
80cdf0e10cSrcweir    SHL1LIBS+=$(SOLARLIBDIR)$/basegfx_s.lib
81cdf0e10cSrcweir.ENDIF
82cdf0e10cSrcweir
83cdf0e10cSrcweir.ENDIF # WNT
84cdf0e10cSrcweir.ENDIF # UNX
85cdf0e10cSrcweir
86cdf0e10cSrcweirSHL1DEPN=
87cdf0e10cSrcweirSHL1IMPLIB=	i$(SHL1TARGET)
88cdf0e10cSrcweirSHL1DEF=	$(MISC)$/$(SHL1TARGET).def
89cdf0e10cSrcweirSHL1VERSIONMAP=$(SOLARENV)/src/reg-component.map
90cdf0e10cSrcweirSHL1RPATH=OXT
91cdf0e10cSrcweir
92cdf0e10cSrcweirDEF1NAME=$(SHL1TARGET)
93cdf0e10cSrcweir
94cdf0e10cSrcweir# --- Extension packaging ------------------------------------------
95cdf0e10cSrcweir
96cdf0e10cSrcweirDESCRIPTION_SRC:=config$/description.xml
97cdf0e10cSrcweirMANIFEST_SRC:=config$/manifest.xml
98cdf0e10cSrcweirCOMPONENT_CONFIGDIR:=config
99cdf0e10cSrcweirCOMPONENT_CONFIGDEST:=.
100cdf0e10cSrcweirCOMPONENT_XCU= \
101cdf0e10cSrcweir    $(EXTENSIONDIR)$/pdf_import_filter.xcu \
102cdf0e10cSrcweir    $(EXTENSIONDIR)$/pdf_types.xcu
103cdf0e10cSrcweir
104cdf0e10cSrcweirCONVERTER_FILE= \
105cdf0e10cSrcweir    $(EXTENSIONDIR)$/xpdfimport$(EXECPOST)
106cdf0e10cSrcweir
107cdf0e10cSrcweirCOMPONENT_DIALOGS= \
108cdf0e10cSrcweir    $(EXTENSIONDIR)$/basic$/Module1.xba \
109cdf0e10cSrcweir    $(EXTENSIONDIR)$/basic$/TargetChooser.xdl \
110cdf0e10cSrcweir    $(EXTENSIONDIR)$/basic$/dialog.xlb \
111cdf0e10cSrcweir    $(EXTENSIONDIR)$/basic$/impress.png \
112cdf0e10cSrcweir    $(EXTENSIONDIR)$/basic$/script.xlb \
113cdf0e10cSrcweir    $(EXTENSIONDIR)$/basic$/writer.png \
114cdf0e10cSrcweir    $(EXTENSIONDIR)$/xpdfimport_err.pdf
115cdf0e10cSrcweir
116cdf0e10cSrcweirCOMPONENT_HELP= \
117cdf0e10cSrcweir	$(EXTENSIONDIR)$/help/component.txt
118cdf0e10cSrcweir
119cdf0e10cSrcweir# native libraries
120cdf0e10cSrcweirCOMPONENT_LIBRARIES= \
121cdf0e10cSrcweir    $(EXTENSIONDIR)$/$(SHL1TARGET)$(DLLPOST)
122cdf0e10cSrcweir
123cdf0e10cSrcweirCOMPONENT_IMAGES=\
124cdf0e10cSrcweir	$(EXTENSIONDIR)$/images$/extension_32.png \
125cdf0e10cSrcweir	$(EXTENSIONDIR)$/images$/extension_32_h.png
126cdf0e10cSrcweir
127cdf0e10cSrcweirEXTENSION_PACKDEPS=$(CONVERTER_FILE) $(COMPONENT_DIALOGS) $(COMPONENT_HELP) $(COMPONENT_IMAGES) makefile.mk
128cdf0e10cSrcweir
129cdf0e10cSrcweir.INCLUDE : extension_pre.mk
130cdf0e10cSrcweir.ENDIF # L10N_framework
131cdf0e10cSrcweir.INCLUDE : target.mk
132cdf0e10cSrcweir.IF "$(L10N_framework)"==""
133cdf0e10cSrcweir.INCLUDE : extension_post.mk
134cdf0e10cSrcweir
135cdf0e10cSrcweir$(CONVERTER_FILE) : $(BIN)$/$$(@:f)
136cdf0e10cSrcweir	@@-$(MKDIRHIER) $(@:d)
137*77f0f650SHerbert Dürr	$(COPY) $< $@
138cdf0e10cSrcweir
139cdf0e10cSrcweir$(COMPONENT_DIALOGS) : dialogs$/$$(@:f)
140cdf0e10cSrcweir	@@-$(MKDIRHIER) $(@:d)
141*77f0f650SHerbert Dürr	$(COPY) $< $@
142cdf0e10cSrcweir
143cdf0e10cSrcweir$(COMPONENT_HELP) : help$/$$(@:f)
144cdf0e10cSrcweir	@@-$(MKDIRHIER) $(@:d)
145*77f0f650SHerbert Dürr	$(COPY) $< $@
146cdf0e10cSrcweir
147cdf0e10cSrcweir$(COMPONENT_IMAGES) :  $(SOLARSRC)$/$(RSCDEFIMG)$/desktop$/res$/$$(@:f)
148cdf0e10cSrcweir	@@-$(MKDIRHIER) $(@:d)
149*77f0f650SHerbert Dürr	$(COPY) $< $@
150*77f0f650SHerbert Dürr
151cdf0e10cSrcweir.ENDIF # L10N_framework
152cdf0e10cSrcweir
153