| Jason Sams | 98a2813 | 2012-08-15 16:58:24 -0700 | [diff] [blame] | 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 | |
| Tim Murray | 289d859 | 2013-02-01 11:57:33 -0800 | [diff] [blame] | 17 | # Don't build the library in unbundled branches. |
| 18 | ifeq (,$(TARGET_BUILD_APPS)) |
| 19 | |
| Jason Sams | 98a2813 | 2012-08-15 16:58:24 -0700 | [diff] [blame] | 20 | LOCAL_PATH := $(call my-dir) |
| 21 | |
| 22 | include $(CLEAR_VARS) |
| 23 | |
| Chris Wailes | 6625634 | 2014-07-22 19:54:20 -0700 | [diff] [blame] | 24 | LOCAL_CFLAGS += -std=c++11 |
| 25 | |
| Scott Main | 099deb8 | 2013-05-28 15:32:19 -0700 | [diff] [blame] | 26 | LOCAL_MODULE := android-support-v8-renderscript |
| Miao Wang | 0cc3605 | 2015-03-06 14:45:12 -0800 | [diff] [blame] | 27 | LOCAL_SDK_VERSION := 21 |
| Jason Sams | 98a2813 | 2012-08-15 16:58:24 -0700 | [diff] [blame] | 28 | LOCAL_SRC_FILES := $(call all-java-files-under, java/src) |
| 29 | |
| 30 | include $(BUILD_STATIC_JAVA_LIBRARY) |
| 31 | |
| Miao Wang | bcf9068 | 2015-04-14 17:59:06 -0700 | [diff] [blame] | 32 | # API Check |
| 33 | # --------------------------------------------- |
| 34 | support_module := $(LOCAL_MODULE) |
| 35 | support_module_api_dir := $(LOCAL_PATH)/api |
| 36 | support_module_src_files := $(LOCAL_SRC_FILES) |
| 37 | support_module_java_libraries := $(LOCAL_MODULE) |
| 38 | support_module_java_packages := android.support.v8.renderscript |
| 39 | include $(SUPPORT_API_CHECK) |
| 40 | |
| Jason Sams | 98a2813 | 2012-08-15 16:58:24 -0700 | [diff] [blame] | 41 | # TODO: Build the tests as an APK here |
| 42 | |
| 43 | include $(call all-makefiles-under, $(LOCAL_PATH)) |
| 44 | |
| Tim Murray | 289d859 | 2013-02-01 11:57:33 -0800 | [diff] [blame] | 45 | endif |