Fixed properl linking in nolibxul configuration
[mozilla-central.git] / embedding / browser / qt / tests / Makefile.in
blobf0798321a3e4eea224dee0306b2fc953dcd9fb3d
1 DEPTH = ../../../..
2 topsrcdir = @top_srcdir@
3 srcdir = @srcdir@
4 VPATH = @srcdir@
6 include $(DEPTH)/config/autoconf.mk
8 MODULE = qgeckoembed
9 REQUIRES = xpcom \
10 string \
11 dom \
12 $(NULL)
14 ifdef NS_TRACE_MALLOC
15 REQUIRES += tracemalloc
16 endif
18 ifdef MOZ_JPROF
19 REQUIRES += jprof
20 endif
22 CPPSRCS = \
23 $(MOCSRCS) \
24 mainwindow.cpp \
25 TestQGeckoEmbed.cpp
27 MOCSRCS = \
28 moc_mainwindow.cpp \
29 $(NULL)
31 #IMAGES = fileopen.png reload.png back.png forward.png stop.png
33 CXXFLAGS += $(MOZ_QT_CFLAGS)
34 PROGRAM = TestQGeckoEmbed$(BIN_SUFFIX)
36 ifdef MOZ_ENABLE_QT
37 LIBS += \
38 $(XLDFLAGS) \
39 $(XLIBS) \
40 $(MOZ_QT_LIBS) \
41 $(NULL)
43 ifndef MOZ_ENABLE_LIBXUL
44 LIBS += \
45 -lqgeckoembed \
46 $(NULL)
47 endif
48 LIBS += \
49 -lxul \
50 $(NULL)
51 endif
53 include $(topsrcdir)/config/config.mk
54 include $(srcdir)/../src/config/qtconfig.mk
56 # Force applications to be built non-statically
57 # when building the mozcomps meta component
58 ifneq (,$(filter mozcomps,$(MOZ_META_COMPONENTS)))
59 BUILD_STATIC_LIBS=
60 endif
62 ifdef NS_TRACE_MALLOC
63 EXTRA_LIBS += -ltracemalloc
64 endif
66 ifdef MOZ_PERF_METRICS
67 EXTRA_LIBS += -lmozutil_s
68 endif
70 ifdef MOZ_JPROF
71 EXTRA_LIBS += -ljprof
72 endif
74 EXTRA_LIBS += $(MOZ_JS_LIBS)
75 EXTRA_LIBS += $(MOZ_COMPONENT_LIBS)
77 include $(topsrcdir)/config/rules.mk
78 include $(srcdir)/../src/config/qtrules.mk
80 LIBS += $(XPCOM_STANDALONE_GLUE_LDOPTS)
81 DEFINES += -DXPCOM_GLUE
83 CXXFLAGS += $(MOZ_QT_CFLAGS)
85 EXTRA_LIBS += \
86 $(TK_LIBS) \
87 $(MOZ_QT_LIBS) \
88 $(NULL)
90 ifeq ($(OS_ARCH), SunOS)
91 ifndef GNU_CC
92 # When using Sun's WorkShop compiler, including
93 # /wherever/workshop-5.0/SC5.0/include/CC/std/time.h
94 # causes most of these compiles to fail with:
95 # line 29: Error: Multiple declaration for std::tm.
96 # So, this gets around the problem.
97 DEFINES += -D_TIME_H=1
98 endif
99 endif
101 ifeq ($(OS_ARCH), OpenVMS)
102 DEFINES += -DGENERIC_MOTIF_REDEFINES
103 endif