| # Copyright 2022 The Chromium Authors |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| import("//third_party/protobuf/proto_library.gni") |
| |
| if (is_android) { |
| import("//build/config/android/rules.gni") |
| } |
| |
| _proto_files = [ |
| "aim_eligibility_response.proto", |
| "aim_tools_and_models.proto", |
| "answer_data.proto", |
| "answer_type.proto", |
| "chrome_aim_entry_point.proto", |
| "chrome_searchbox_stats.proto", |
| "entity_info.proto", |
| "groups.proto", |
| "navigational_intent.proto", |
| "ntp_composebox_config.proto", |
| "rich_answer_template.proto", |
| "rich_suggest_template.proto", |
| "search_context.proto", |
| "suggest_template_info.proto", |
| "types.proto", |
| ] |
| |
| proto_library("omnibox_proto") { |
| sources = _proto_files |
| proto_in_dir = "." |
| generate_py_runtime = true |
| } |
| |
| if (is_android) { |
| proto_java_library("omnibox_proto_java") { |
| proto_path = "." |
| sources = _proto_files |
| } |
| } |