2 # This Source Code Form is subject to the terms of the Mozilla Public
3 # License, v. 2.0. If a copy of the MPL was not distributed with this
4 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
7 topsrcdir
= @top_srcdir@
11 include $(DEPTH
)/config
/autoconf.mk
13 LIBRARY_NAME
= xpwidgets_s
21 SHARED_LIBRARY_LIBS
= ..
/shared
/$(LIB_PREFIX
)widget_shared.
$(LIB_SUFFIX
)
23 SHARED_LIBRARY_LIBS
+= ..
/shared
/x11
/$(LIB_PREFIX
)widget_shared_x11.
$(LIB_SUFFIX
)
26 ifdef MOZ_ENABLE_D3D10_LAYER
27 DEFINES
+= -DMOZ_ENABLE_D3D10_LAYER
30 ifneq (,$(filter gtk3
,$(MOZ_WIDGET_TOOLKIT
)))
31 # gtk3 shares includes with gtk2
37 -I
$(srcdir)/..
/$(MOZ_WIDGET_TOOLKIT
) \
42 -I
$(srcdir)/..
/shared \
43 -I
$(topsrcdir
)/layout
/base \
44 -I
$(topsrcdir
)/layout
/forms \
45 -I
$(topsrcdir
)/layout
/generic \
46 -I
$(topsrcdir
)/layout
/xul
/base
/src \
47 -I
$(topsrcdir
)/view
/src \
51 # we don't want the shared lib, but we want to force the creation of a static lib.
54 include $(topsrcdir
)/config
/config.mk
55 include $(topsrcdir
)/ipc
/chromium
/chromium-config.mk
56 include $(topsrcdir
)/config
/rules.mk
58 CXXFLAGS
+= $(TK_CFLAGS
)