2007-03-22 10:30:00 -07:00
|
|
|
# vim: noexpandtab ts=8 sw=8
|
|
|
|
#
|
2012-05-21 04:12:37 -07:00
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2012-08-04 11:26:44 -07:00
|
|
|
DEPTH = @DEPTH@
|
2007-03-22 10:30:00 -07:00
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
2012-08-04 11:26:44 -07:00
|
|
|
relativesrcdir = @relativesrcdir@
|
2012-08-25 11:19:00 -07:00
|
|
|
FAIL_ON_WARNINGS := 1
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
|
2013-04-23 14:54:15 -07:00
|
|
|
cppsrcs = \
|
2012-05-14 22:44:32 -07:00
|
|
|
TestIncrementalDownload.cpp \
|
|
|
|
TestStreamLoader.cpp \
|
|
|
|
PropertiesTest.cpp \
|
|
|
|
urltest.cpp \
|
|
|
|
TestCallbacks.cpp \
|
|
|
|
TestPageLoad.cpp \
|
|
|
|
TestURLParser.cpp \
|
|
|
|
TestStandardURL.cpp \
|
|
|
|
TestUpload.cpp \
|
|
|
|
TestBlockingSocket.cpp \
|
|
|
|
TestDNS.cpp \
|
|
|
|
TestOpen.cpp \
|
|
|
|
TestCookie.cpp \
|
|
|
|
TestServ.cpp \
|
|
|
|
ReadNTLM.cpp \
|
|
|
|
TestProtocols.cpp \
|
|
|
|
$(NULL)
|
|
|
|
|
2013-06-13 09:02:02 -07:00
|
|
|
DISABLED_SIMPLE_PROGRAMS := $(cppsrcs:.cpp=$(BIN_SUFFIX))
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2011-05-23 09:54:47 -07:00
|
|
|
# XXX Make this work in libxul builds.
|
|
|
|
#SIMPLE_PROGRAMS += \
|
|
|
|
# TestPerf$(BIN_SUFFIX) \
|
|
|
|
# TestIDN$(BIN_SUFFIX) \
|
|
|
|
# TestSocketTransport$(BIN_SUFFIX) \
|
|
|
|
# TestStreamTransport$(BIN_SUFFIX) \
|
|
|
|
# TestStreamChannel$(BIN_SUFFIX) \
|
|
|
|
# TestStreamPump$(BIN_SUFFIX) \
|
|
|
|
# TestIOThreads$(BIN_SUFFIX) \
|
|
|
|
# TestUDPSocketProvider$(BIN_SUFFIX) \
|
|
|
|
# $(NULL)
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2010-06-03 14:03:17 -07:00
|
|
|
CPP_UNIT_TESTS = \
|
|
|
|
TestSTSParser.cpp \
|
2013-03-03 00:08:44 -08:00
|
|
|
TestUDPServerSocket.cpp \
|
2010-06-03 14:03:17 -07:00
|
|
|
$(NULL)
|
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
include $(topsrcdir)/config/config.mk
|
|
|
|
|
|
|
|
LIBS = $(EXTRA_DSO_LIBS) \
|
|
|
|
$(XPCOM_LIBS) \
|
|
|
|
$(NSPR_LIBS) \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
DEFINES += $(TK_CFLAGS)
|
|
|
|
|
|
|
|
include $(topsrcdir)/config/rules.mk
|
|
|
|
|
|
|
|
check::
|
2010-03-10 10:36:45 -08:00
|
|
|
$(RUN_TEST_PROGRAM) $(DIST)/bin/TestCookie$(BIN_SUFFIX)
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
_RES_FILES = urlparse.dat \
|
|
|
|
urlparse_unx.dat \
|
|
|
|
$(NULL)
|
|
|
|
libs:: $(_RES_FILES)
|
|
|
|
$(INSTALL) $^ $(DIST)/bin/res
|
|
|
|
install:: $(_RES_FILES)
|
|
|
|
$(SYSINSTALL) $(IFLAGS1) $^ $(DESTDIR)$(mozappdir)/res
|
2009-03-21 08:20:00 -07:00
|
|
|
|
|
|
|
# One of the xpcshell unit tests needs this file, so make sure it winds
|
|
|
|
# up in the test directory.
|
|
|
|
libs::
|
2010-08-26 14:47:28 -07:00
|
|
|
$(NSINSTALL) -D $(DEPTH)/_tests/xpcshell/$(relativesrcdir)/unit/data
|
2010-06-05 18:18:12 -07:00
|
|
|
$(INSTALL) $(topsrcdir)/netwerk/dns/effective_tld_names.dat \
|
2010-08-26 14:47:28 -07:00
|
|
|
$(DEPTH)/_tests/xpcshell/$(relativesrcdir)/unit/
|