• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
17LOCAL_PATH := $(call my-dir)
18
19NANOTOOL_VERSION := 1.2.0
20
21include $(CLEAR_VARS)
22
23LOCAL_SRC_FILES := \
24    androidcontexthub.cpp \
25    apptohostevent.cpp \
26    calibrationfile.cpp \
27    contexthub.cpp \
28    log.cpp \
29    logevent.cpp \
30    nanomessage.cpp \
31    nanotool.cpp \
32    resetreasonevent.cpp \
33    sensorevent.cpp
34
35# JSON file handling from chinook
36COMMON_UTILS_DIR := ../common
37LOCAL_SRC_FILES += \
38    $(COMMON_UTILS_DIR)/file.cpp \
39    $(COMMON_UTILS_DIR)/JSONObject.cpp
40
41LOCAL_C_INCLUDES := \
42    $(LOCAL_PATH)/$(COMMON_UTILS_DIR)
43
44LOCAL_SHARED_LIBRARIES := \
45    liblog \
46    libstagefright_foundation \
47    libutils
48
49LOCAL_CFLAGS += -Wall -Werror -Wextra
50LOCAL_CFLAGS += -std=c++11
51LOCAL_CFLAGS += -DNANOTOOL_VERSION_STR='"version $(NANOTOOL_VERSION)"'
52
53LOCAL_MODULE := nanotool
54
55LOCAL_MODULE_TAGS := optional
56LOCAL_MODULE_OWNER := google
57
58include $(BUILD_EXECUTABLE)
59