|
| 1 | +# |
| 2 | +# Copyright (c) 2025 Intel Corporation |
| 3 | +# |
| 4 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | +# you may not use this file except in compliance with the License. |
| 6 | +# You may obtain a copy of the License at |
| 7 | +# |
| 8 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | +# |
| 10 | +# Unless required by applicable law or agreed to in writing, software |
| 11 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | +# See the License for the specific language governing permissions and |
| 14 | +# limitations under the License. |
| 15 | +# |
| 16 | + |
| 17 | +load("@mediapipe//mediapipe/framework/port:build_config.bzl", "mediapipe_cc_proto_library", "mediapipe_proto_library") |
| 18 | +load("//:common_settings.bzl", "ovms_cc_library") |
| 19 | + |
| 20 | +ovms_cc_library( |
| 21 | + name = "llm_engine", # in fact this is genai library |
| 22 | + srcs = [], |
| 23 | + deps = ["@llm_engine//:llm_engine"], |
| 24 | + visibility = ["//visibility:public"], |
| 25 | + alwayslink = 1, |
| 26 | +) |
| 27 | + |
| 28 | +ovms_cc_library( |
| 29 | + name = "speech_calculator", |
| 30 | + srcs = ["http_speech_calculator.cc"], |
| 31 | + hdrs = ["dr_wav.h"], |
| 32 | + deps = [ |
| 33 | + "@mediapipe//mediapipe/framework:calculator_framework", |
| 34 | + "//src:httppayload", |
| 35 | + "//src:libovmslogging", |
| 36 | + "speech_calculator_cc_proto", |
| 37 | + ]+ select({ |
| 38 | + "//conditions:default": ["//third_party:genai", ":llm_engine"], |
| 39 | + "//:not_genai_bin" : [":llm_engine"], |
| 40 | + }), |
| 41 | + visibility = ["//visibility:public"], |
| 42 | + alwayslink = 1, |
| 43 | +) |
| 44 | + |
| 45 | +mediapipe_proto_library( |
| 46 | + name = "speech_calculator_proto", |
| 47 | + srcs = ["speech_calculator.proto"], |
| 48 | + visibility = ["//visibility:private"], |
| 49 | + deps = [ |
| 50 | + "@mediapipe//mediapipe/framework:calculator_options_proto", |
| 51 | + "@mediapipe//mediapipe/framework:calculator_proto", |
| 52 | + ], |
| 53 | +) |
0 commit comments