# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*- # vim: set filetype=python: # 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/. with Files("**"): BUG_COMPONENT = ("Core", "Machine Learning") if CONFIG["MOZ_WIDGET_TOOLKIT"] != "android": DIRS += ["/third_party/llama.cpp"] UNIFIED_SOURCES += [ "LlamaBackend.cpp", "LlamaRunner.cpp", "LlamaRuntimeLinker.cpp", ] EXPORTS.mozilla.dom += [ "LlamaRunner.h", ] EXPORTS.mozilla.llama += [ "LlamaBackend.h", "LlamaRuntimeLinker.h", ] LOCAL_INCLUDES += [ "/dom/base", "/dom/bindings", "/dom/ipc", "/third_party/llama.cpp/ggml/include", "/third_party/llama.cpp/include", "/xpcom/build", ] include("/ipc/chromium/chromium-config.mozbuild") FINAL_LIBRARY = "xul"