blob: 47ed2e767661ffaaad94c13cd4598f7d6268d6de [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 \
Pirama Arumuga Nainar8c24f8d2015-03-17 13:11:25 -070034 RSScriptGroupFusion.cpp \
35 RSX86CallConvPass.cpp
Stephen Hines2f6a4932012-05-03 12:27:13 -070036
37#=====================================================================
Stephen Hinese198abe2012-07-27 18:05:41 -070038# Device Static Library: libbccRenderscript
Logan Chien74396852011-07-12 15:50:26 +080039#=====================================================================
Tim Murrayc6e6ee42014-04-07 14:13:26 -070040ifneq (true,$(DISABLE_LLVM_DEVICE_BUILDS))
Logan Chien74396852011-07-12 15:50:26 +080041include $(CLEAR_VARS)
42
Stephen Hinese198abe2012-07-27 18:05:41 -070043LOCAL_MODULE := libbccRenderscript
Logan Chien74396852011-07-12 15:50:26 +080044LOCAL_MODULE_TAGS := optional
45LOCAL_MODULE_CLASS := STATIC_LIBRARIES
Zonr Changddf56612012-04-12 15:38:42 +080046
Zonr Changc72c4dd2012-04-12 15:38:53 +080047LOCAL_SRC_FILES := $(libbcc_renderscript_SRC_FILES)
Logan Chien74396852011-07-12 15:50:26 +080048
Zonr Changddf56612012-04-12 15:38:42 +080049include $(LIBBCC_DEVICE_BUILD_MK)
Zonr Changddf56612012-04-12 15:38:42 +080050include $(LLVM_DEVICE_BUILD_MK)
Logan Chien74396852011-07-12 15:50:26 +080051include $(BUILD_STATIC_LIBRARY)
Tim Murrayc6e6ee42014-04-07 14:13:26 -070052endif
Logan Chien74396852011-07-12 15:50:26 +080053
54#=====================================================================
Stephen Hinese198abe2012-07-27 18:05:41 -070055# Host Static Library: libbccRenderscript
Logan Chien74396852011-07-12 15:50:26 +080056#=====================================================================
57
58include $(CLEAR_VARS)
59
Stephen Hinese198abe2012-07-27 18:05:41 -070060LOCAL_MODULE := libbccRenderscript
Logan Chien74396852011-07-12 15:50:26 +080061LOCAL_MODULE_TAGS := optional
62LOCAL_MODULE_CLASS := STATIC_LIBRARIES
Stephen Hines2f6a4932012-05-03 12:27:13 -070063LOCAL_IS_HOST_MODULE := true
Logan Chien67005272011-07-14 19:51:54 +080064
Zonr Changc72c4dd2012-04-12 15:38:53 +080065LOCAL_SRC_FILES := $(libbcc_renderscript_SRC_FILES)
Logan Chien74396852011-07-12 15:50:26 +080066
Zonr Changddf56612012-04-12 15:38:42 +080067include $(LIBBCC_HOST_BUILD_MK)
Zonr Changddf56612012-04-12 15:38:42 +080068include $(LLVM_HOST_BUILD_MK)
Logan Chien74396852011-07-12 15:50:26 +080069include $(BUILD_HOST_STATIC_LIBRARY)