1# 2# Copyright (C) 2012 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# Don't build the library in unbundled branches. 18ifeq (,$(TARGET_BUILD_APPS)) 19 20LOCAL_PATH := $(call my-dir) 21 22include $(CLEAR_VARS) 23 24LOCAL_CFLAGS += -std=c++11 25 26LOCAL_MODULE := android-support-v8-renderscript 27LOCAL_SDK_VERSION := 22 28LOCAL_SRC_FILES := $(call all-java-files-under, java/src) 29LOCAL_JAVA_LIBRARIES := android-support-annotations 30 31# Disable JACK when RSTest_Compatlib is used for updating RS prebuilts. 32ifneq (,$(UPDATE_RS_PREBUILTS_DISABLE_JACK)) 33LOCAL_JACK_ENABLED := disabled 34endif 35 36include $(BUILD_STATIC_JAVA_LIBRARY) 37 38# API Check 39# --------------------------------------------- 40support_module := $(LOCAL_MODULE) 41support_module_api_dir := $(LOCAL_PATH)/api 42support_module_src_files := $(LOCAL_SRC_FILES) 43support_module_java_libraries := $(LOCAL_MODULE) 44support_module_java_packages := android.support.v8.renderscript 45include $(SUPPORT_API_CHECK) 46 47# TODO: Build the tests as an APK here 48 49include $(call all-makefiles-under, $(LOCAL_PATH)) 50 51endif 52