xref: /aoo41x/main/fpicker/source/unx/gnome/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=fpicker
31TARGET=fps_gnome.uno
32LIBTARGET=NO
33ENABLE_EXCEPTIONS=TRUE
34
35# --- Settings -----------------------------------------------------
36
37.INCLUDE :  settings.mk
38DLLPRE=
39
40# ------------------------------------------------------------------
41
42.IF "$(ENABLE_GTK)" != "TRUE"
43
44dummy:
45	@echo "Nothing to build. GUIBASE == $(GUIBASE), WITH_WIDGETSET == $(WITH_WIDGETSET)"
46
47.ELSE # we build for GNOME
48
49PKGCONFIG_MODULES=gtk+-2.0
50.INCLUDE : pkg_config.mk
51
52# check gtk version
53GTK_TWO_FOUR:=$(shell @$(PKG_CONFIG) --exists 'gtk+-2.0 >= 2.4.0' && echo ok)
54.IF "$(GTK_TWO_FOUR)" != "ok"
55
56dummy:
57	@echo "Cannot build gtk filepicker because"
58	@$(PKG_CONFIG) --print-errors --exists 'gtk+-2.0 >= 2.4.0'
59
60.ELSE
61
62CFLAGS+= $(WIDGETSET_CFLAGS)
63CFLAGS+= $(PKGCONFIG_CFLAGS)
64
65# --- Files --------------------------------------------------------
66
67SLOFILES =\
68		$(SLO)$/SalGtkPicker.obj				\
69		$(SLO)$/SalGtkFilePicker.obj			\
70		$(SLO)$/SalGtkFolderPicker.obj			\
71		$(SLO)$/resourceprovider.obj			\
72		$(SLO)$/FPentry.obj
73
74SHL1NOCHECK=TRUE
75SHL1TARGET=	$(TARGET)
76SHL1OBJS=	$(SLOFILES)
77SHL1STDLIBS=\
78	$(VCLLIB) \
79	$(TOOLSLIB) \
80	$(CPPUHELPERLIB) \
81	$(COMPHELPERLIB) \
82	$(CPPULIB) \
83	$(SALLIB) \
84	$(PKGCONFIG_LIBS)
85
86.IF "$(OS)"=="SOLARIS"
87LINKFLAGSDEFS=
88.ENDIF # "$(OS)"=="SOLARIS"
89
90SHL1VERSIONMAP=$(SOLARENV)/src/component.map
91DEF1NAME=$(SHL1TARGET)
92
93.ENDIF # GTK_TWO_FOUR
94.ENDIF # "$(GUIBASE)" != "unx" || "$(WITH_WIDGETSET)" != "gnome"
95
96# --- Targets ------------------------------------------------------
97
98.INCLUDE :	target.mk
99
100ALLTAR : $(MISC)/fps_gnome.component
101
102$(MISC)/fps_gnome.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
103        fps_gnome.component
104    $(XSLTPROC) --nonet --stringparam uri \
105        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \
106        $(SOLARENV)/bin/createcomponent.xslt fps_gnome.component
107