Skip to content

Commit

Permalink
Replace generated files with proto_library rule
Browse files Browse the repository at this point in the history
… for google_streaming_api.proto added by Change Ic62db1b7.

Issue: 28860560
Issue: 280803912
Reviewed-on: #2705
  • Loading branch information
dahlstrom-g authored Mar 25, 2024
1 parent 4753e86 commit 402e3e5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2,105 deletions.
18 changes: 8 additions & 10 deletions cobalt/speech/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,21 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import("//third_party/protobuf/proto_library.gni")

config("enable_fake_microphone_public") {
defines = [ "ENABLE_FAKE_MICROPHONE" ]
}

config("speech_config") {
if (is_win) {
cflags = [
# Dereferencing NULL pointer in generated file
# google_streaming_api.pb.cc.
"/wd6011",
]
}

include_dirs = [ "//third_party/protobuf/src" ]
}

proto_library("google_streaming_api_proto") {
sources = [ "google_streaming_api.proto" ]
generate_python = false
}

copy("speech_testdata") {
install_content = true

Expand Down Expand Up @@ -56,8 +55,6 @@ static_library("speech") {
"endpointer_delegate.h",
"google_speech_service.cc",
"google_speech_service.h",
"google_streaming_api.pb.cc",
"google_streaming_api.pb.h",
"microphone.h",
"microphone_manager.cc",
"microphone_manager.h",
Expand Down Expand Up @@ -98,6 +95,7 @@ static_library("speech") {
]

deps = [
":google_streaming_api_proto",
"//cobalt/base",
"//cobalt/loader",
"//cobalt/media",
Expand Down
Loading

0 comments on commit 402e3e5

Please sign in to comment.