| Logan Chien | 7439685 | 2011-07-12 15:50:26 +0800 | [diff] [blame] | 1 | # |
| Zonr Chang | c72c4dd | 2012-04-12 15:38:53 +0800 | [diff] [blame] | 2 | # Copyright (C) 2012 The Android Open Source Project |
| Logan Chien | 7439685 | 2011-07-12 15:50:26 +0800 | [diff] [blame] | 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 | |
| 18 | LOCAL_PATH := $(call my-dir) |
| Logan Chien | 7439685 | 2011-07-12 15:50:26 +0800 | [diff] [blame] | 19 | |
| Logan Chien | 7439685 | 2011-07-12 15:50:26 +0800 | [diff] [blame] | 20 | #===================================================================== |
| Stephen Hines | e198abe | 2012-07-27 18:05:41 -0700 | [diff] [blame] | 21 | # Common: libbccRenderscript |
| Stephen Hines | 2f6a493 | 2012-05-03 12:27:13 -0700 | [diff] [blame] | 22 | #===================================================================== |
| 23 | |
| Zonr Chang | c72c4dd | 2012-04-12 15:38:53 +0800 | [diff] [blame] | 24 | libbcc_renderscript_SRC_FILES := \ |
| 25 | RSCompiler.cpp \ |
| 26 | RSCompilerDriver.cpp \ |
| Stephen Hines | 86a0b79 | 2012-11-06 20:04:47 -0800 | [diff] [blame] | 27 | RSEmbedInfo.cpp \ |
| Zonr Chang | c72c4dd | 2012-04-12 15:38:53 +0800 | [diff] [blame] | 28 | RSExecutable.cpp \ |
| 29 | RSForEachExpand.cpp \ |
| 30 | RSInfo.cpp \ |
| 31 | RSInfoExtractor.cpp \ |
| 32 | RSInfoReader.cpp \ |
| 33 | RSInfoWriter.cpp \ |
| 34 | RSScript.cpp |
| Stephen Hines | 2f6a493 | 2012-05-03 12:27:13 -0700 | [diff] [blame] | 35 | |
| 36 | #===================================================================== |
| Stephen Hines | e198abe | 2012-07-27 18:05:41 -0700 | [diff] [blame] | 37 | # Device Static Library: libbccRenderscript |
| Logan Chien | 7439685 | 2011-07-12 15:50:26 +0800 | [diff] [blame] | 38 | #===================================================================== |
| Tim Murray | c6e6ee4 | 2014-04-07 14:13:26 -0700 | [diff] [blame^] | 39 | ifneq (true,$(DISABLE_LLVM_DEVICE_BUILDS)) |
| Logan Chien | 7439685 | 2011-07-12 15:50:26 +0800 | [diff] [blame] | 40 | include $(CLEAR_VARS) |
| 41 | |
| Colin Cross | 8f7345d | 2014-03-21 22:24:51 -0700 | [diff] [blame] | 42 | # not supported on 64-bit yet |
| 43 | LOCAL_32_BIT_ONLY := true |
| 44 | |
| Stephen Hines | e198abe | 2012-07-27 18:05:41 -0700 | [diff] [blame] | 45 | LOCAL_MODULE := libbccRenderscript |
| Logan Chien | 7439685 | 2011-07-12 15:50:26 +0800 | [diff] [blame] | 46 | LOCAL_MODULE_TAGS := optional |
| 47 | LOCAL_MODULE_CLASS := STATIC_LIBRARIES |
| Zonr Chang | ddf5661 | 2012-04-12 15:38:42 +0800 | [diff] [blame] | 48 | |
| Zonr Chang | c72c4dd | 2012-04-12 15:38:53 +0800 | [diff] [blame] | 49 | LOCAL_SRC_FILES := $(libbcc_renderscript_SRC_FILES) |
| Logan Chien | 7439685 | 2011-07-12 15:50:26 +0800 | [diff] [blame] | 50 | |
| Zonr Chang | ddf5661 | 2012-04-12 15:38:42 +0800 | [diff] [blame] | 51 | include $(LIBBCC_DEVICE_BUILD_MK) |
| 52 | include $(LIBBCC_GEN_CONFIG_MK) |
| 53 | include $(LLVM_DEVICE_BUILD_MK) |
| Logan Chien | 7439685 | 2011-07-12 15:50:26 +0800 | [diff] [blame] | 54 | include $(BUILD_STATIC_LIBRARY) |
| Tim Murray | c6e6ee4 | 2014-04-07 14:13:26 -0700 | [diff] [blame^] | 55 | endif |
| Logan Chien | 7439685 | 2011-07-12 15:50:26 +0800 | [diff] [blame] | 56 | |
| 57 | #===================================================================== |
| Stephen Hines | e198abe | 2012-07-27 18:05:41 -0700 | [diff] [blame] | 58 | # Host Static Library: libbccRenderscript |
| Logan Chien | 7439685 | 2011-07-12 15:50:26 +0800 | [diff] [blame] | 59 | #===================================================================== |
| 60 | |
| 61 | include $(CLEAR_VARS) |
| 62 | |
| Stephen Hines | e198abe | 2012-07-27 18:05:41 -0700 | [diff] [blame] | 63 | LOCAL_MODULE := libbccRenderscript |
| Logan Chien | 7439685 | 2011-07-12 15:50:26 +0800 | [diff] [blame] | 64 | LOCAL_MODULE_TAGS := optional |
| 65 | LOCAL_MODULE_CLASS := STATIC_LIBRARIES |
| Stephen Hines | 2f6a493 | 2012-05-03 12:27:13 -0700 | [diff] [blame] | 66 | LOCAL_IS_HOST_MODULE := true |
| Logan Chien | 6700527 | 2011-07-14 19:51:54 +0800 | [diff] [blame] | 67 | |
| Zonr Chang | c72c4dd | 2012-04-12 15:38:53 +0800 | [diff] [blame] | 68 | LOCAL_SRC_FILES := $(libbcc_renderscript_SRC_FILES) |
| Logan Chien | 7439685 | 2011-07-12 15:50:26 +0800 | [diff] [blame] | 69 | |
| Zonr Chang | ddf5661 | 2012-04-12 15:38:42 +0800 | [diff] [blame] | 70 | include $(LIBBCC_HOST_BUILD_MK) |
| 71 | include $(LIBBCC_GEN_CONFIG_MK) |
| 72 | include $(LLVM_HOST_BUILD_MK) |
| Logan Chien | 7439685 | 2011-07-12 15:50:26 +0800 | [diff] [blame] | 73 | include $(BUILD_HOST_STATIC_LIBRARY) |