1# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*- 2# vim: set filetype=python: 3# This Source Code Form is subject to the terms of the Mozilla Public 4# License, v. 2.0. If a copy of the MPL was not distributed with this 5# file, You can obtain one at http://mozilla.org/MPL/2.0/. 6 7with Files("**"): 8 BUG_COMPONENT = ("Toolkit", "Application Update") 9 10XPCSHELL_TESTS_MANIFESTS += ["tests/xpcshell/xpcshell.ini"] 11 12EXTRA_JS_MODULES += ["TaskScheduler.jsm"] 13 14# This whole component is currently Windows-only, but a Mac implementation is planned. 15# Only the Windows C++ interface is an XPCOM component. 16if CONFIG["OS_TARGET"] == "WINNT": 17 EXTRA_JS_MODULES += ["TaskSchedulerWinImpl.jsm"] 18 XPCOM_MANIFESTS += ["components.conf"] 19 XPIDL_MODULE = "taskscheduler" 20 XPIDL_SOURCES += ["nsIWinTaskSchedulerService.idl"] 21 EXPORTS += ["nsWinTaskScheduler.h"] 22 SOURCES += ["nsWinTaskScheduler.cpp"] 23 OS_LIBS += ["taskschd"] 24 DEFINES["UNICODE"] = True 25 26if CONFIG["OS_TARGET"] == "Darwin": 27 EXTRA_JS_MODULES += ["TaskSchedulerMacOSImpl.jsm"] 28 29FINAL_LIBRARY = "xul" 30