blob: bbb289df7653eb41074b71ad53a0b12cc13585c0 [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#=====================================================================
Stephen Hinese198abe2012-07-27 18:05:41 -070021# Common: libbccRenderscript
Stephen Hines2f6a4932012-05-03 12:27:13 -070022#=====================================================================
23
Zonr Changc72c4dd2012-04-12 15:38:53 +080024libbcc_renderscript_SRC_FILES := \
Zonr Changc72c4dd2012-04-12 15:38:53 +080025 RSCompilerDriver.cpp \
Stephen Hines86a0b792012-11-06 20:04:47 -080026 RSEmbedInfo.cpp \
Zonr Changc72c4dd2012-04-12 15:38:53 +080027 RSForEachExpand.cpp \
David Gross1d93a192015-03-25 14:59:27 -070028 RSInvariant.cpp \
Tim Murrayb7bce742014-11-03 16:17:30 -080029 RSScript.cpp \
Pirama Arumuga Nainar1e0557a2014-12-02 15:02:18 -080030 RSInvokeHelperPass.cpp \
Pirama Arumuga Nainar9fe081b2015-01-27 14:09:19 -080031 RSIsThreadablePass.cpp \
Pirama Arumuga Nainar1e0557a2014-12-02 15:02:18 -080032 RSScreenFunctionsPass.cpp \
Yang Nia4ded132014-11-17 17:44:08 -080033 RSStubsWhiteList.cpp \
34 RSScriptGroupFusion.cpp
Stephen Hines2f6a4932012-05-03 12:27:13 -070035
36#=====================================================================
Stephen Hinese198abe2012-07-27 18:05:41 -070037# Device Static Library: libbccRenderscript
Logan Chien74396852011-07-12 15:50:26 +080038#=====================================================================
Tim Murrayc6e6ee42014-04-07 14:13:26 -070039ifneq (true,$(DISABLE_LLVM_DEVICE_BUILDS))
Logan Chien74396852011-07-12 15:50:26 +080040include $(CLEAR_VARS)
41
Stephen Hinese198abe2012-07-27 18:05:41 -070042LOCAL_MODULE := libbccRenderscript
Logan Chien74396852011-07-12 15:50:26 +080043LOCAL_MODULE_TAGS := optional
44LOCAL_MODULE_CLASS := STATIC_LIBRARIES
Zonr Changddf56612012-04-12 15:38:42 +080045
Zonr Changc72c4dd2012-04-12 15:38:53 +080046LOCAL_SRC_FILES := $(libbcc_renderscript_SRC_FILES)
Logan Chien74396852011-07-12 15:50:26 +080047
Zonr Changddf56612012-04-12 15:38:42 +080048include $(LIBBCC_DEVICE_BUILD_MK)
Zonr Changddf56612012-04-12 15:38:42 +080049include $(LLVM_DEVICE_BUILD_MK)
Logan Chien74396852011-07-12 15:50:26 +080050include $(BUILD_STATIC_LIBRARY)
Tim Murrayc6e6ee42014-04-07 14:13:26 -070051endif
Logan Chien74396852011-07-12 15:50:26 +080052
53#=====================================================================
Stephen Hinese198abe2012-07-27 18:05:41 -070054# Host Static Library: libbccRenderscript
Logan Chien74396852011-07-12 15:50:26 +080055#=====================================================================
56
57include $(CLEAR_VARS)
58
Stephen Hinese198abe2012-07-27 18:05:41 -070059LOCAL_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)
Zonr Changddf56612012-04-12 15:38:42 +080067include $(LLVM_HOST_BUILD_MK)
Logan Chien74396852011-07-12 15:50:26 +080068include $(BUILD_HOST_STATIC_LIBRARY)