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