1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 # Copyright 2008 by Sun Microsystems, Inc.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # $RCSfile: makefile.mk,v $
11 # $Revision: 1.2.4.1 $
13 # This file is part of OpenOffice.org.
15 # OpenOffice.org is free software: you can redistribute it and/or modify
16 # it under the terms of the GNU Lesser General Public License version 3
17 # only, as published by the Free Software Foundation.
19 # OpenOffice.org is distributed in the hope that it will be useful,
20 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 # GNU Lesser General Public License version 3 for more details
23 # (a copy is included in the LICENSE file that accompanied this code).
25 # You should have received a copy of the GNU Lesser General Public License
26 # version 3 along with OpenOffice.org. If not, see
27 # <http://www.openoffice.org/license.html>
28 # for a copy of the LGPLv3 License.
30 #*************************************************************************
36 ENABLE_EXCEPTIONS
=TRUE
38 # --- Settings -----------------------------------------------------
43 .IF
"$(L10N_framework)"==""
45 .INCLUDE
: pdfisettings.pmk
46 INCPRE
=-I
$(PRJ
)$/source
$/pdfimport
$/inc
48 # --- Files --------------------------------------------------------
50 EXTENSIONNAME
:=PDFImport
51 EXTENSION_ZIPNAME
:=pdfimport
53 .IF
"$(ENABLE_PDFIMPORT)" == "NO"
55 @echo
"PDF Import extension disabled."
59 $(SLO
)$/filterdet.obj \
60 $(SLO
)$/pdfiadaptor.obj \
64 SHL1TARGET
=$(TARGET
).uno
68 $(SLB
)$/pdfparse.lib \
70 $(SLB
)$/pdfparsetree.lib \
72 $(SLB
)$/xpdfwrapper.lib \
82 SHL1STDLIBS
+=-lbasegfx_s
86 SHL1STDLIBS
+=-lbasegfx_s
88 SHL1LIBS
+=$(SOLARLIBDIR
)$/basegfx_s.lib
95 SHL1IMPLIB
= i
$(SHL1TARGET
)
96 SHL1DEF
= $(MISC
)$/$(SHL1TARGET
).def
97 SHL1VERSIONMAP
=exports.map
100 DEF1NAME
=$(SHL1TARGET
)
102 # --- Extension packaging ------------------------------------------
104 DESCRIPTION_SRC
:=config
$/description.xml
105 MANIFEST_SRC
:=config
$/manifest.xml
106 COMPONENT_CONFIGDIR
:=config
107 COMPONENT_CONFIGDEST
:=.
109 $(EXTENSIONDIR
)$/pdf_import_filter.xcu \
110 $(EXTENSIONDIR
)$/pdf_types.xcu
113 $(EXTENSIONDIR
)$/xpdfimport
$(EXECPOST
)
116 $(EXTENSIONDIR
)$/basic
$/Module1.xba \
117 $(EXTENSIONDIR
)$/basic
$/TargetChooser.xdl \
118 $(EXTENSIONDIR
)$/basic
$/dialog.xlb \
119 $(EXTENSIONDIR
)$/basic
$/impress.png \
120 $(EXTENSIONDIR
)$/basic
$/script.xlb \
121 $(EXTENSIONDIR
)$/basic
$/writer.png \
122 $(EXTENSIONDIR
)$/xpdfimport_err.pdf
125 $(EXTENSIONDIR
)$/help
/component.txt
128 COMPONENT_LIBRARIES
= \
129 $(EXTENSIONDIR
)$/$(SHL1TARGET
)$(DLLPOST
)
132 $(EXTENSIONDIR
)$/images
$/pdfiext.png \
133 $(EXTENSIONDIR
)$/images
$/pdfiext_hc.png
135 EXTENSION_PACKDEPS
=$(CONVERTER_FILE
) $(COMPONENT_DIALOGS
) $(COMPONENT_HELP
) $(COMPONENT_IMAGES
) makefile.mk
137 .INCLUDE
: extension_pre.mk
138 .ENDIF
# L10N_framework
140 .IF
"$(L10N_framework)"==""
141 .INCLUDE
: extension_post.mk
143 $(CONVERTER_FILE
) : $(BIN
)$/$$(@
:f
)
144 @@
-$(MKDIRHIER
) $(@
:d
)
147 $(COMPONENT_DIALOGS
) : dialogs
$/$$(@
:f
)
148 @@
-$(MKDIRHIER
) $(@
:d
)
151 $(COMPONENT_HELP
) : help
$/$$(@
:f
)
152 @@
-$(MKDIRHIER
) $(@
:d
)
155 $(COMPONENT_IMAGES
) : images
$/$$(@
:f
)
156 @@
-$(MKDIRHIER
) $(@
:d
)
158 .ENDIF
# L10N_framework