Android.mk revision 8f7345d68d2595ddf3d7c2aae01a29d0530afb92
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
18LOCAL_PATH := $(call my-dir)
19
20#=====================================================================
21# Common: libbccRenderscript
22#=====================================================================
23
24libbcc_renderscript_SRC_FILES := \
25  RSCompiler.cpp \
26  RSCompilerDriver.cpp \
27  RSEmbedInfo.cpp \
28  RSExecutable.cpp \
29  RSForEachExpand.cpp \
30  RSInfo.cpp \
31  RSInfoExtractor.cpp \
32  RSInfoReader.cpp \
33  RSInfoWriter.cpp \
34  RSScript.cpp
35
36#=====================================================================
37# Device Static Library: libbccRenderscript
38#=====================================================================
39
40include $(CLEAR_VARS)
41
42# not supported on 64-bit yet
43LOCAL_32_BIT_ONLY := true
44
45LOCAL_MODULE := libbccRenderscript
46LOCAL_MODULE_TAGS := optional
47LOCAL_MODULE_CLASS := STATIC_LIBRARIES
48
49LOCAL_SRC_FILES := $(libbcc_renderscript_SRC_FILES)
50
51include $(LIBBCC_DEVICE_BUILD_MK)
52include $(LIBBCC_GEN_CONFIG_MK)
53include $(LLVM_DEVICE_BUILD_MK)
54include $(BUILD_STATIC_LIBRARY)
55
56
57#=====================================================================
58# Host Static Library: libbccRenderscript
59#=====================================================================
60
61include $(CLEAR_VARS)
62
63LOCAL_MODULE := libbccRenderscript
64LOCAL_MODULE_TAGS := optional
65LOCAL_MODULE_CLASS := STATIC_LIBRARIES
66LOCAL_IS_HOST_MODULE := true
67
68LOCAL_SRC_FILES := $(libbcc_renderscript_SRC_FILES)
69
70include $(LIBBCC_HOST_BUILD_MK)
71include $(LIBBCC_GEN_CONFIG_MK)
72include $(LLVM_HOST_BUILD_MK)
73include $(BUILD_HOST_STATIC_LIBRARY)
74