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=..$/..
25
26PRJNAME=sdext
27TARGET=pdfimport
28ENABLE_EXCEPTIONS=TRUE
29
30# --- Settings -----------------------------------------------------
31
32MKDEPENDSOLVER:=
33.INCLUDE: settings.mk
34
35.IF "$(L10N_framework)"==""
36
37.INCLUDE: pdfisettings.pmk
38INCPRE=-I$(PRJ)$/source$/pdfimport$/inc
39
40# --- Files --------------------------------------------------------
41
42EXTENSIONNAME:=PDFImport
43EXTENSION_ZIPNAME:=pdfimport
44
45.IF "$(ENABLE_PDFIMPORT)" == "NO"
46@all:
47	@echo "PDF Import extension disabled."
48.ENDIF
49
50SLOFILES=\
51    $(SLO)$/filterdet.obj   \
52    $(SLO)$/pdfiadaptor.obj \
53    $(SLO)$/services.obj
54
55SHL1DLLPRE=
56SHL1TARGET=$(TARGET).uno
57
58SHL1LIBS=\
59	$(SLB)$/pdfmisc.lib \
60	$(SLB)$/pdfparse.lib \
61	$(SLB)$/pdfsax.lib \
62	$(SLB)$/pdfparsetree.lib \
63	$(SLB)$/pdfodf.lib \
64	$(SLB)$/xpdfwrapper.lib \
65	$(SLB)$/$(TARGET).lib
66
67SHL1STDLIBS=\
68    $(CPPUHELPERLIB)	\
69	$(ZLIB3RDLIB)	    \
70	$(CPPULIB)			\
71	$(SALLIB)
72
73.IF "$(GUI)" == "UNX"
74    SHL1STDLIBS+=-lbasegfx_s
75.ELSE
76.IF "$(GUI)" == "WNT"
77.IF "$(COM)"=="GCC"
78    SHL1STDLIBS+=-lbasegfx_s
79.ELSE
80    SHL1LIBS+=$(SOLARLIBDIR)$/basegfx_s.lib
81.ENDIF
82
83.ENDIF # WNT
84.ENDIF # UNX
85
86SHL1DEPN=
87SHL1IMPLIB=	i$(SHL1TARGET)
88SHL1DEF=	$(MISC)$/$(SHL1TARGET).def
89SHL1VERSIONMAP=$(SOLARENV)/src/reg-component.map
90SHL1RPATH=OXT
91
92DEF1NAME=$(SHL1TARGET)
93
94# --- Extension packaging ------------------------------------------
95
96DESCRIPTION_SRC:=config$/description.xml
97MANIFEST_SRC:=config$/manifest.xml
98COMPONENT_CONFIGDIR:=config
99COMPONENT_CONFIGDEST:=.
100COMPONENT_XCU= \
101    $(EXTENSIONDIR)$/pdf_import_filter.xcu \
102    $(EXTENSIONDIR)$/pdf_types.xcu
103
104CONVERTER_FILE= \
105    $(EXTENSIONDIR)$/xpdfimport$(EXECPOST)
106
107COMPONENT_DIALOGS= \
108    $(EXTENSIONDIR)$/basic$/Module1.xba \
109    $(EXTENSIONDIR)$/basic$/TargetChooser.xdl \
110    $(EXTENSIONDIR)$/basic$/dialog.xlb \
111    $(EXTENSIONDIR)$/basic$/impress.png \
112    $(EXTENSIONDIR)$/basic$/script.xlb \
113    $(EXTENSIONDIR)$/basic$/writer.png \
114    $(EXTENSIONDIR)$/xpdfimport_err.pdf
115
116COMPONENT_HELP= \
117	$(EXTENSIONDIR)$/help/component.txt
118
119# native libraries
120COMPONENT_LIBRARIES= \
121    $(EXTENSIONDIR)$/$(SHL1TARGET)$(DLLPOST)
122
123COMPONENT_IMAGES=\
124	$(EXTENSIONDIR)$/images$/extension_32.png \
125	$(EXTENSIONDIR)$/images$/extension_32_h.png
126
127EXTENSION_PACKDEPS=$(CONVERTER_FILE) $(COMPONENT_DIALOGS) $(COMPONENT_HELP) $(COMPONENT_IMAGES) makefile.mk
128
129.INCLUDE : extension_pre.mk
130.ENDIF # L10N_framework
131.INCLUDE : target.mk
132.IF "$(L10N_framework)"==""
133.INCLUDE : extension_post.mk
134
135$(CONVERTER_FILE) : $(BIN)$/$$(@:f)
136	@@-$(MKDIRHIER) $(@:d)
137	$(COPY) $< $@
138
139$(COMPONENT_DIALOGS) : dialogs$/$$(@:f)
140	@@-$(MKDIRHIER) $(@:d)
141	$(COPY) $< $@
142
143$(COMPONENT_HELP) : help$/$$(@:f)
144	@@-$(MKDIRHIER) $(@:d)
145	$(COPY) $< $@
146
147$(COMPONENT_IMAGES) :  $(SOLARSRC)$/$(RSCDEFIMG)$/desktop$/res$/$$(@:f)
148	@@-$(MKDIRHIER) $(@:d)
149	$(COPY) $< $@
150
151.ENDIF # L10N_framework
152
153