Home | History | Annotate | Download | only in avb
      1 //
      2 // Copyright (C) 2017 The Android Open Source Project
      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 genrule {
     18     name: "nos_app_avb_service_genc++",
     19     out: ["Avb.client.cpp"],
     20     srcs: ["avb.proto"],
     21     tools: ["aprotoc", "protoc-gen-nos-client-cpp"],
     22     cmd: GEN_SERVICE_SOURCE,
     23 }
     24 
     25 genrule {
     26     name: "nos_app_avb_service_genc++_headers",
     27     out: ["Avb.client.h"],
     28     srcs: ["avb.proto"],
     29     tools: ["aprotoc", "protoc-gen-nos-client-cpp"],
     30     cmd: GEN_SERVICE_HEADER,
     31 }
     32 
     33 genrule {
     34     name: "nos_app_avb_service_genc++_mock",
     35     out: ["MockAvb.client.h"],
     36     srcs: ["avb.proto"],
     37     tools: ["aprotoc", "protoc-gen-nos-client-cpp"],
     38     cmd: GEN_SERVICE_MOCK,
     39 }
     40 
     41 cc_library {
     42     name: "nos_app_avb",
     43     generated_sources: ["nos_app_avb_service_genc++"],
     44     generated_headers: ["nos_app_avb_service_genc++_headers"],
     45     defaults: ["nos_app_service_defaults"],
     46     export_generated_headers: ["nos_app_avb_service_genc++_headers"],
     47 }
     48