blob: 4b5e9941bf1fe8e42fe0e260be2e4017a19bc8de [file] [log] [blame]
# Copyright 2017 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_library("optimization_guide_proto") {
proto_in_dir = "//"
sources = [
"autocomplete_scoring_model_metadata.proto",
"autofill_field_classification_model_metadata.proto",
"client_side_phishing_model_metadata.proto",
"common_types.proto",
"features/common_quality_data.proto",
"features/compose.proto",
"features/default.proto",
"features/tab_organization.proto",
"features/wallpaper_search.proto",
"hint_cache.proto",
"hints.proto",
"loading_predictor_metadata.proto",
"model_execution.proto",
"model_quality_metadata.proto",
"model_quality_service.proto",
"models.proto",
"on_device_tail_suggest_model_metadata.proto",
"page_entities_metadata.proto",
"page_entities_model_metadata.proto",
"page_topics_model_metadata.proto",
"page_topics_override_list.proto",
"push_notification.proto",
"salient_image_metadata.proto",
"visual_search_model_metadata.proto",
]
}
if (is_android) {
proto_java_library("optimization_guide_proto_java") {
proto_path = "//"
sources = [
"common_types.proto",
"hints.proto",
"loading_predictor_metadata.proto",
"models.proto",
"push_notification.proto",
]
}
}
proto_library("compose_proto_descriptor") {
proto_in_dir = "//"
proto_out_dir = "components/optimization_guide/proto"
sources = [ "features/compose.proto" ]
generate_cc = false
generate_python = false
generate_descriptor = "compose.descriptor"
proto_deps = [ ":optimization_guide_proto" ]
}