Home | History | Annotate | Download | only in nanotool
      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 
     17 LOCAL_PATH := $(call my-dir)
     18 
     19 NANOTOOL_VERSION := 1.2.0
     20 
     21 include $(CLEAR_VARS)
     22 
     23 LOCAL_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
     36 COMMON_UTILS_DIR := ../common
     37 LOCAL_SRC_FILES += \
     38     $(COMMON_UTILS_DIR)/file.cpp \
     39     $(COMMON_UTILS_DIR)/JSONObject.cpp
     40 
     41 LOCAL_C_INCLUDES := \
     42     $(LOCAL_PATH)/$(COMMON_UTILS_DIR)
     43 
     44 LOCAL_SHARED_LIBRARIES := \
     45     liblog \
     46     libstagefright_foundation \
     47     libutils
     48 
     49 LOCAL_CFLAGS += -Wall -Werror -Wextra
     50 LOCAL_CFLAGS += -std=c++11
     51 LOCAL_CFLAGS += -DNANOTOOL_VERSION_STR='"version $(NANOTOOL_VERSION)"'
     52 
     53 LOCAL_MODULE := nanotool
     54 
     55 LOCAL_MODULE_TAGS := optional
     56 LOCAL_MODULE_OWNER := google
     57 
     58 include $(BUILD_EXECUTABLE)
     59