Source code
Revision control
Copy as Markdown
Other Tools
# -*- 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
with Files("**"):
BUG_COMPONENT = ("Core", "Machine Learning: On Device")
EXPORTS.mozilla.dom += [
"TextGenerator.h",
]
EXPORTS.mozilla.hwinference += [
"TextGenerationChild.h",
"TextGenerationEnums.h",
"TextGenerationParent.h",
]
UNIFIED_SOURCES += [
"TextGenerationChild.cpp",
"TextGenerationParent.cpp",
"TextGenerator.cpp",
]
IPDL_SOURCES = [
"PTextGeneration.ipdl",
"TextGenerationTypes.ipdlh",
]
LOCAL_INCLUDES += [
"/ipc/glue",
"/third_party/llama.cpp/ggml/include",
"/third_party/llama.cpp/include",
"/toolkit/components/ml/backends/llama",
]
include("/ipc/chromium/chromium-config.mozbuild")
FINAL_LIBRARY = "xul"