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 17LOCAL_MODULE_SUFFIX := .napp 18include $(NANOHUB_APP_CONFIG) 19 20my_variants := $(LOCAL_NANO_VARIANT_LIST) 21 22ifeq ($(strip $(my_variants)),) 23# default is to use all variants supported by this OS 24my_variants := $(AUX_OS_VARIANT_LIST_$(NANO_OS)) 25endif 26 27# mark the app as CHRE 1.1 nanoapp 28LOCAL_NANO_APP_POSTPROCESS_FLAGS += -c 0x0101 29 30# add app-side CHRE implementation 31LOCAL_WHOLE_STATIC_LIBRARIES += \ 32 libnanochre11 \ 33 34# add standard libaries 35LOCAL_STATIC_LIBRARIES += \ 36 libnanobuiltins \ 37 libnanolibc \ 38 libnanolibm \ 39 40LOCAL_C_INCLUDES += \ 41 system/chre/chre_api/legacy/v1_1 \ 42 43$(call for-each-variant,$(my_variants),APP,$(BUILD_NANOHUB_EXECUTABLE)) 44