xref: /aoo42x/main/sdext/source/pdfimport/makefile.mk (revision 54732852)
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
73CFLAGS+=-DBOOST_SYSTEM_NO_DEPRECATED
74
75.IF "$(GUI)" == "UNX"
76    SHL1STDLIBS+=-lbasegfx_s
77.ELSE
78.IF "$(GUI)" == "WNT"
79.IF "$(COM)"=="GCC"
80    SHL1STDLIBS+=-lbasegfx_s
81.ELSE
82    SHL1LIBS+=$(SOLARLIBDIR)$/basegfx_s.lib
83.ENDIF
84
85.ENDIF # WNT
86.ENDIF # UNX
87
88SHL1DEPN=
89SHL1IMPLIB=	i$(SHL1TARGET)
90SHL1DEF=	$(MISC)$/$(SHL1TARGET).def
91SHL1VERSIONMAP=$(SOLARENV)/src/reg-component.map
92SHL1RPATH=OXT
93
94DEF1NAME=$(SHL1TARGET)
95
96# --- Extension packaging ------------------------------------------
97
98DESCRIPTION_SRC:=config$/description.xml
99MANIFEST_SRC:=config$/manifest.xml
100COMPONENT_CONFIGDIR:=config
101COMPONENT_CONFIGDEST:=.
102COMPONENT_XCU= \
103    $(EXTENSIONDIR)$/pdf_import_filter.xcu \
104    $(EXTENSIONDIR)$/pdf_types.xcu
105
106CONVERTER_FILE= \
107    $(EXTENSIONDIR)$/xpdfimport$(EXECPOST)
108
109COMPONENT_DIALOGS= \
110    $(EXTENSIONDIR)$/basic$/Module1.xba \
111    $(EXTENSIONDIR)$/basic$/TargetChooser.xdl \
112    $(EXTENSIONDIR)$/basic$/dialog.xlb \
113    $(EXTENSIONDIR)$/basic$/impress.png \
114    $(EXTENSIONDIR)$/basic$/script.xlb \
115    $(EXTENSIONDIR)$/basic$/writer.png \
116    $(EXTENSIONDIR)$/xpdfimport_err.pdf
117
118COMPONENT_HELP= \
119	$(EXTENSIONDIR)$/help/component.txt
120
121# native libraries
122COMPONENT_LIBRARIES= \
123    $(EXTENSIONDIR)$/$(SHL1TARGET)$(DLLPOST)
124
125COMPONENT_IMAGES=\
126	$(EXTENSIONDIR)$/images$/extension_32.png \
127	$(EXTENSIONDIR)$/images$/extension_32_h.png
128
129EXTENSION_PACKDEPS=$(CONVERTER_FILE) $(COMPONENT_DIALOGS) $(COMPONENT_HELP) $(COMPONENT_IMAGES) makefile.mk
130
131.INCLUDE : extension_pre.mk
132.ENDIF # L10N_framework
133.INCLUDE : target.mk
134.IF "$(L10N_framework)"==""
135.INCLUDE : extension_post.mk
136
137$(CONVERTER_FILE) : $(BIN)$/$$(@:f)
138	@@-$(MKDIRHIER) $(@:d)
139	$(COPY) $< $@
140
141$(COMPONENT_DIALOGS) : dialogs$/$$(@:f)
142	@@-$(MKDIRHIER) $(@:d)
143	$(COPY) $< $@
144
145$(COMPONENT_HELP) : help$/$$(@:f)
146	@@-$(MKDIRHIER) $(@:d)
147	$(COPY) $< $@
148
149$(COMPONENT_IMAGES) :  $(SOLARSRC)$/$(RSCDEFIMG)$/desktop$/res$/$$(@:f)
150	@@-$(MKDIRHIER) $(@:d)
151	$(COPY) $< $@
152
153.ENDIF # L10N_framework
154
155