js/src/jsapi-tests/Makefile.in
author Mike Hommey <mh+mozilla@glandium.org>
Thu, 12 Jul 2012 08:30:59 +0200
changeset 104337 4be97839a566d8f482f431801237afc4caac22ae
parent 103915 69225f71e53804b5d216405148768089ac8f9730
child 106057 f142f32a98a3849089b235818a1ed359d633084c
child 113410 35ef899801bc41b0af7b694f3858ba3c225dbd8e
permissions -rw-r--r--
Bug 763651 - Link the javascript engine against zlib. r=khuey

# -*- Mode: makefile -*-
#
# 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/.

DEPTH		= ..
topsrcdir	= @top_srcdir@
srcdir		= @srcdir@
VPATH		= @srcdir@

include $(DEPTH)/config/autoconf.mk

PROGRAM         = jsapi-tests$(BIN_SUFFIX)

CPPSRCS = \
  tests.cpp \
  selfTest.cpp \
  testAddPropertyPropcache.cpp \
  testArgumentsObject.cpp \
  testBindCallable.cpp \
  testBug604087.cpp \
  testCallNonGenericMethodOnProxy.cpp \
  testChromeBuffer.cpp \
  testClassGetter.cpp \
  testCloneScript.cpp \
  testConservativeGC.cpp \
  testContexts.cpp \
  testCustomIterator.cpp \
  testDebugger.cpp \
  testDeepFreeze.cpp \
  testDefineGetterSetterNonEnumerable.cpp \
  testDefineProperty.cpp \
  testExtendedEq.cpp \
  testExternalStrings.cpp \
  testFuncCallback.cpp \
  testFunctionProperties.cpp \
  testGCOutOfMemory.cpp \
  testOOM.cpp \
  testGetPropertyDefault.cpp \
  testHashTable.cpp \
  testIndexToString.cpp \
  testIntString.cpp \
  testIntTypesABI.cpp \
  testIntern.cpp \
  testLookup.cpp \
  testLooselyEqual.cpp \
  testNewObject.cpp \
  testOps.cpp \
  testOriginPrincipals.cpp \
  testParseJSON.cpp \
  testPropCache.cpp \
  testRegExp.cpp \
  testResolveRecursion.cpp \
  testSameValue.cpp \
  testScriptInfo.cpp \
  testScriptObject.cpp \
  testSetProperty.cpp \
  testStringBuffer.cpp \
  testTrap.cpp \
  testTypedArrays.cpp \
  testUTF8.cpp \
  testValueABI.cpp \
  testVersion.cpp \
  testXDR.cpp \
  testProfileStrings.cpp \
  $(NULL)

CSRCS = \
  valueABI.c

# Disabled: an entirely unrelated test seems to cause this to fail.  Moreover,
# given the test's dependence on interactions between the compiler, the GC, and
# conservative stack scanning, the fix isn't obvious: more investigation
# needed.
#CPPSRCS += \
#  testRegExpInstanceProperties.cpp \
#  $(NULL)

DEFINES         += -DEXPORT_JS_API
# Building against js_static requires that we declare mfbt sybols "exported"
# on its behalf.
DEFINES         += -DIMPL_MFBT

LIBS      = $(DEPTH)/$(LIB_PREFIX)js_static.$(LIB_SUFFIX) $(NSPR_LIBS) $(MOZ_ZLIB_LIBS)

LOCAL_INCLUDES += -I$(topsrcdir) -I..

include $(topsrcdir)/config/rules.mk

check::
	$(wildcard $(RUN_TEST_PROGRAM)) $(DIST)/bin/jsapi-tests$(BIN_SUFFIX)