Home | History | Annotate | Download | only in nanopb-c
      1 // Copyright (C) 2014 The Android Open Source Project
      2 //
      3 // Licensed under the Apache License, Version 2.0 (the "License");
      4 // you may not use this file except in compliance with the License.
      5 // You may obtain a copy of the License at
      6 //
      7 //      http://www.apache.org/licenses/LICENSE-2.0
      8 //
      9 // Unless required by applicable law or agreed to in writing, software
     10 // distributed under the License is distributed on an "AS IS" BASIS,
     11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     12 // See the License for the specific language governing permissions and
     13 // limitations under the License.
     14 //
     15 //
     16 
     17 cc_defaults {
     18     name: "libprotobuf-c-nano-defaults",
     19     cflags: [
     20         "-Wall",
     21         "-Werror",
     22         "-Wno-sign-compare",
     23         "-Wno-unused-parameter",
     24     ],
     25     srcs: [
     26         "pb_decode.c",
     27         "pb_encode.c",
     28     ],
     29     sdk_version: "19",
     30     export_include_dirs: ["."],
     31 }
     32 
     33 cc_library_static {
     34     name: "libprotobuf-c-nano",
     35     vendor_available: true,
     36     defaults: ["libprotobuf-c-nano-defaults"],
     37 }
     38 
     39 cc_library_static {
     40     name: "libprotobuf-c-nano-enable_malloc",
     41     vendor_available: true,
     42     defaults: ["libprotobuf-c-nano-defaults"],
     43 
     44     cflags: ["-DPB_ENABLE_MALLOC"],
     45 }
     46 
     47