xref: /aoo41x/main/sdext/source/pdfimport/makefile.mk (revision cdf0e10c)
1#*************************************************************************
2#
3# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4#
5# Copyright 2000, 2010 Oracle and/or its affiliates.
6#
7# OpenOffice.org - a multi-platform office productivity suite
8#
9# This file is part of OpenOffice.org.
10#
11# OpenOffice.org is free software: you can redistribute it and/or modify
12# it under the terms of the GNU Lesser General Public License version 3
13# only, as published by the Free Software Foundation.
14#
15# OpenOffice.org is distributed in the hope that it will be useful,
16# but WITHOUT ANY WARRANTY; without even the implied warranty of
17# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18# GNU Lesser General Public License version 3 for more details
19# (a copy is included in the LICENSE file that accompanied this code).
20#
21# You should have received a copy of the GNU Lesser General Public License
22# version 3 along with OpenOffice.org.  If not, see
23# <http://www.openoffice.org/license.html>
24# for a copy of the LGPLv3 License.
25#
26#*************************************************************************
27
28PRJ=..$/..
29
30PRJNAME=sdext
31TARGET=pdfimport
32ENABLE_EXCEPTIONS=TRUE
33
34# --- Settings -----------------------------------------------------
35
36MKDEPENDSOLVER:=
37.INCLUDE: settings.mk
38
39.IF "$(L10N_framework)"==""
40
41.INCLUDE: pdfisettings.pmk
42INCPRE=-I$(PRJ)$/source$/pdfimport$/inc
43
44# --- Files --------------------------------------------------------
45
46EXTENSIONNAME:=PDFImport
47EXTENSION_ZIPNAME:=pdfimport
48
49.IF "$(ENABLE_PDFIMPORT)" == "NO"
50@all:
51	@echo "PDF Import extension disabled."
52.ENDIF
53
54SLOFILES=\
55    $(SLO)$/filterdet.obj   \
56    $(SLO)$/pdfiadaptor.obj \
57    $(SLO)$/services.obj
58
59SHL1DLLPRE=
60SHL1TARGET=$(TARGET).uno
61
62SHL1LIBS=\
63	$(SLB)$/pdfmisc.lib \
64	$(SLB)$/pdfparse.lib \
65	$(SLB)$/pdfsax.lib \
66	$(SLB)$/pdfparsetree.lib \
67	$(SLB)$/pdfodf.lib \
68	$(SLB)$/xpdfwrapper.lib \
69	$(SLB)$/$(TARGET).lib
70
71SHL1STDLIBS=\
72    $(CPPUHELPERLIB)	\
73	$(ZLIB3RDLIB)	    \
74	$(CPPULIB)			\
75	$(SALLIB)
76
77.IF "$(GUI)" == "UNX"
78    SHL1STDLIBS+=-lbasegfx_s
79.ELSE
80.IF "$(GUI)" == "WNT"
81.IF "$(COM)"=="GCC"
82    SHL1STDLIBS+=-lbasegfx_s
83.ELSE
84    SHL1LIBS+=$(SOLARLIBDIR)$/basegfx_s.lib
85.ENDIF
86
87.ENDIF # WNT
88.ENDIF # UNX
89
90SHL1DEPN=
91SHL1IMPLIB=	i$(SHL1TARGET)
92SHL1DEF=	$(MISC)$/$(SHL1TARGET).def
93SHL1VERSIONMAP=$(SOLARENV)/src/reg-component.map
94SHL1RPATH=OXT
95
96DEF1NAME=$(SHL1TARGET)
97
98# --- Extension packaging ------------------------------------------
99
100DESCRIPTION_SRC:=config$/description.xml
101MANIFEST_SRC:=config$/manifest.xml
102COMPONENT_CONFIGDIR:=config
103COMPONENT_CONFIGDEST:=.
104COMPONENT_XCU= \
105    $(EXTENSIONDIR)$/pdf_import_filter.xcu \
106    $(EXTENSIONDIR)$/pdf_types.xcu
107
108CONVERTER_FILE= \
109    $(EXTENSIONDIR)$/xpdfimport$(EXECPOST)
110
111COMPONENT_DIALOGS= \
112    $(EXTENSIONDIR)$/basic$/Module1.xba \
113    $(EXTENSIONDIR)$/basic$/TargetChooser.xdl \
114    $(EXTENSIONDIR)$/basic$/dialog.xlb \
115    $(EXTENSIONDIR)$/basic$/impress.png \
116    $(EXTENSIONDIR)$/basic$/script.xlb \
117    $(EXTENSIONDIR)$/basic$/writer.png \
118    $(EXTENSIONDIR)$/xpdfimport_err.pdf
119
120COMPONENT_HELP= \
121	$(EXTENSIONDIR)$/help/component.txt
122
123# native libraries
124COMPONENT_LIBRARIES= \
125    $(EXTENSIONDIR)$/$(SHL1TARGET)$(DLLPOST)
126
127COMPONENT_IMAGES=\
128	$(EXTENSIONDIR)$/images$/extension_32.png \
129	$(EXTENSIONDIR)$/images$/extension_32_h.png
130
131EXTENSION_PACKDEPS=$(CONVERTER_FILE) $(COMPONENT_DIALOGS) $(COMPONENT_HELP) $(COMPONENT_IMAGES) makefile.mk
132
133.INCLUDE : extension_pre.mk
134.ENDIF # L10N_framework
135.INCLUDE : target.mk
136.IF "$(L10N_framework)"==""
137.INCLUDE : extension_post.mk
138
139$(CONVERTER_FILE) : $(BIN)$/$$(@:f)
140	@@-$(MKDIRHIER) $(@:d)
141    $(COPY) $< $@
142
143$(COMPONENT_DIALOGS) : dialogs$/$$(@:f)
144	@@-$(MKDIRHIER) $(@:d)
145    $(COPY) $< $@
146
147$(COMPONENT_HELP) : help$/$$(@:f)
148	@@-$(MKDIRHIER) $(@:d)
149    $(COPY) $< $@
150
151$(COMPONENT_IMAGES) :  $(SOLARSRC)$/$(RSCDEFIMG)$/desktop$/res$/$$(@:f)
152	@@-$(MKDIRHIER) $(@:d)
153    $(COPY) $< $@
154.ENDIF # L10N_framework
155
156