1# Copyright 2016 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 15LOCAL_PATH := $(call my-dir) 16 17vkjson_sources := \ 18 vkjson.cc \ 19 vkjson_instance.cc \ 20 ../../loader/cJSON.c 21 22# Static library for platform use 23include $(CLEAR_VARS) 24 25LOCAL_CPP_EXTENSION := .cc 26LOCAL_CLANG := true 27LOCAL_CPPFLAGS := -std=c++11 \ 28 -Wno-sign-compare 29 30LOCAL_C_INCLUDES := \ 31 $(LOCAL_PATH)/../../include \ 32 $(LOCAL_PATH)/../../loader 33 34LOCAL_SRC_FILES := $(vkjson_sources) 35LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH) 36LOCAL_MODULE := libvkjson 37 38include $(BUILD_STATIC_LIBRARY) 39 40# Static library for NDK use (CTS) 41include $(CLEAR_VARS) 42 43LOCAL_CPP_EXTENSION := .cc 44LOCAL_CLANG := true 45LOCAL_CPPFLAGS := -std=c++11 \ 46 -Wno-sign-compare 47 48LOCAL_C_INCLUDES := \ 49 $(LOCAL_PATH)/../../include \ 50 $(LOCAL_PATH)/../../loader 51 52LOCAL_SRC_FILES := $(vkjson_sources) 53LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH) 54LOCAL_SDK_VERSION := 24 55LOCAL_NDK_STL_VARIANT := c++_static 56LOCAL_MODULE := libvkjson_ndk 57 58include $(BUILD_STATIC_LIBRARY) 59 60vkjson_sources := 61