michael@0: # -*- Mode: makefile -*- michael@0: # michael@0: # This Source Code Form is subject to the terms of the Mozilla Public michael@0: # License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: # file, You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: michael@0: LIBS = ../$(LIB_PREFIX)js_static.$(LIB_SUFFIX) $(NSPR_LIBS) $(MOZ_ZLIB_LIBS) michael@0: michael@0: ifdef MOZ_SHARED_ICU michael@0: EXTRA_LIBS += $(MOZ_ICU_LIBS) michael@0: endif michael@0: michael@0: EXTRA_LIBS += $(MOZ_FFI_LIBS) michael@0: michael@0: ifdef QEMU_EXE michael@0: MOZ_POST_PROGRAM_COMMAND = $(topsrcdir)/build/qemu-wrap --qemu $(QEMU_EXE) --libdir $(CROSS_LIB) michael@0: endif michael@0: michael@0: # Place a GDB Python auto-load file next to the jsapi-tests executable in michael@0: # the build directory. michael@0: PP_TARGETS += JSAPI_TESTS_AUTOLOAD michael@0: JSAPI_TESTS_AUTOLOAD := jsapi-tests-gdb.py.in michael@0: JSAPI_TESTS_AUTOLOAD_FLAGS := -Dtopsrcdir=$(abspath $(srcdir)/..) michael@0: michael@0: include $(topsrcdir)/config/rules.mk michael@0: michael@0: check:: michael@0: $(wildcard $(RUN_TEST_PROGRAM)) $(DIST)/bin/jsapi-tests$(BIN_SUFFIX)