blob: 09c5df0058d29d03899dfa3616a413113c030fdf [file] [log] [blame]
Logan Chien74396852011-07-12 15:50:26 +08001#
Zonr Changc72c4dd2012-04-12 15:38:53 +08002# Copyright (C) 2012 The Android Open Source Project
Logan Chien74396852011-07-12 15:50:26 +08003#
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)
Logan Chien74396852011-07-12 15:50:26 +080019
Logan Chien74396852011-07-12 15:50:26 +080020#=====================================================================
Zonr Changc72c4dd2012-04-12 15:38:53 +080021# Common: libbccRenderScript
Stephen Hines2f6a4932012-05-03 12:27:13 -070022#=====================================================================
23
Zonr Changc72c4dd2012-04-12 15:38:53 +080024libbcc_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
Stephen Hines2f6a4932012-05-03 12:27:13 -070034
35#=====================================================================
Zonr Changc72c4dd2012-04-12 15:38:53 +080036# Device Static Library: libbccRenderScript
Logan Chien74396852011-07-12 15:50:26 +080037#=====================================================================
38
39include $(CLEAR_VARS)
40
Zonr Changc72c4dd2012-04-12 15:38:53 +080041LOCAL_MODULE := libbccRenderScript
Logan Chien74396852011-07-12 15:50:26 +080042LOCAL_MODULE_TAGS := optional
43LOCAL_MODULE_CLASS := STATIC_LIBRARIES
Zonr Changddf56612012-04-12 15:38:42 +080044
Zonr Changc72c4dd2012-04-12 15:38:53 +080045LOCAL_SRC_FILES := $(libbcc_renderscript_SRC_FILES)
Logan Chien74396852011-07-12 15:50:26 +080046
Zonr Changddf56612012-04-12 15:38:42 +080047include $(LIBBCC_DEVICE_BUILD_MK)
48include $(LIBBCC_GEN_CONFIG_MK)
49include $(LLVM_DEVICE_BUILD_MK)
Logan Chien74396852011-07-12 15:50:26 +080050include $(BUILD_STATIC_LIBRARY)
51
52
53#=====================================================================
Zonr Changc72c4dd2012-04-12 15:38:53 +080054# Host Static Library: libbccRenderScript
Logan Chien74396852011-07-12 15:50:26 +080055#=====================================================================
56
57include $(CLEAR_VARS)
58
Zonr Changc72c4dd2012-04-12 15:38:53 +080059LOCAL_MODULE := libbccRenderScript
Logan Chien74396852011-07-12 15:50:26 +080060LOCAL_MODULE_TAGS := optional
61LOCAL_MODULE_CLASS := STATIC_LIBRARIES
Stephen Hines2f6a4932012-05-03 12:27:13 -070062LOCAL_IS_HOST_MODULE := true
Logan Chien67005272011-07-14 19:51:54 +080063
Zonr Changc72c4dd2012-04-12 15:38:53 +080064LOCAL_SRC_FILES := $(libbcc_renderscript_SRC_FILES)
Logan Chien74396852011-07-12 15:50:26 +080065
Zonr Changddf56612012-04-12 15:38:42 +080066include $(LIBBCC_HOST_BUILD_MK)
67include $(LIBBCC_GEN_CONFIG_MK)
68include $(LLVM_HOST_BUILD_MK)
Logan Chien74396852011-07-12 15:50:26 +080069include $(BUILD_HOST_STATIC_LIBRARY)
Stephen Hines2f6a4932012-05-03 12:27:13 -070070
Zonr Changc72c4dd2012-04-12 15:38:53 +080071# Build RenderScript runtime (libclcore.bc)
72include $(LOCAL_PATH)/runtime/Android.mk