1// 2// Copyright (C) 2016 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 17NANOTOOL_VERSION = "1.2.0" 18 19cc_binary { 20 name: "nanotool", 21 22 srcs: [ 23 "androidcontexthub.cpp", 24 "apptohostevent.cpp", 25 "calibrationfile.cpp", 26 "contexthub.cpp", 27 "log.cpp", 28 "logevent.cpp", 29 "nanomessage.cpp", 30 "nanotool.cpp", 31 "resetreasonevent.cpp", 32 "sensorevent.cpp", 33 ], 34 35 // JSON file handling from chinook 36 static_libs: ["libhubutilcommon"], 37 shared_libs: [ 38 "liblog", 39 "libstagefright_foundation", 40 "libutils", 41 ], 42 43 cpp_std: "c++11", 44 cflags: [ 45 "-Wall", 46 "-Werror", 47 "-Wextra", 48 49 "-DNANOTOOL_VERSION_STR=\"version " + NANOTOOL_VERSION + "\"", 50 ], 51 52 owner: "google", 53 vendor: true, 54} 55