Android.mk revision e198abec6c5e3eab380ccf6897b0a0b9c2dd92dd
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  RSExecutable.cpp \
28  RSForEachExpand.cpp \
29  RSInfo.cpp \
30  RSInfoExtractor.cpp \
31  RSInfoReader.cpp \
32  RSInfoWriter.cpp \
33  RSScript.cpp
34
35#=====================================================================
36# Device Static Library: libbccRenderscript
37#=====================================================================
38
39include $(CLEAR_VARS)
40
41LOCAL_MODULE := libbccRenderscript
42LOCAL_MODULE_TAGS := optional
43LOCAL_MODULE_CLASS := STATIC_LIBRARIES
44
45LOCAL_SRC_FILES := $(libbcc_renderscript_SRC_FILES)
46
47include $(LIBBCC_DEVICE_BUILD_MK)
48include $(LIBBCC_GEN_CONFIG_MK)
49include $(LLVM_DEVICE_BUILD_MK)
50include $(BUILD_STATIC_LIBRARY)
51
52
53#=====================================================================
54# Host Static Library: libbccRenderscript
55#=====================================================================
56
57include $(CLEAR_VARS)
58
59LOCAL_MODULE := libbccRenderscript
60LOCAL_MODULE_TAGS := optional
61LOCAL_MODULE_CLASS := STATIC_LIBRARIES
62LOCAL_IS_HOST_MODULE := true
63
64LOCAL_SRC_FILES := $(libbcc_renderscript_SRC_FILES)
65
66include $(LIBBCC_HOST_BUILD_MK)
67include $(LIBBCC_GEN_CONFIG_MK)
68include $(LLVM_HOST_BUILD_MK)
69include $(BUILD_HOST_STATIC_LIBRARY)
70
71# Build Renderscript runtime (libclcore.bc)
72include $(LOCAL_PATH)/runtime/Android.mk
73