blob: 357571fb50aec58cd20049503a09d98986d0b594 [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 := \
25 RSCompiler.cpp \
26 RSCompilerDriver.cpp \
Stephen Hines86a0b792012-11-06 20:04:47 -080027 RSEmbedInfo.cpp \
Zonr Changc72c4dd2012-04-12 15:38:53 +080028 RSExecutable.cpp \
29 RSForEachExpand.cpp \
30 RSInfo.cpp \
31 RSInfoExtractor.cpp \
32 RSInfoReader.cpp \
33 RSInfoWriter.cpp \
34 RSScript.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
Colin Cross8f7345d2014-03-21 22:24:51 -070042# not supported on 64-bit yet
43LOCAL_32_BIT_ONLY := true
44
Stephen Hinese198abe2012-07-27 18:05:41 -070045LOCAL_MODULE := libbccRenderscript
Logan Chien74396852011-07-12 15:50:26 +080046LOCAL_MODULE_TAGS := optional
47LOCAL_MODULE_CLASS := STATIC_LIBRARIES
Zonr Changddf56612012-04-12 15:38:42 +080048
Zonr Changc72c4dd2012-04-12 15:38:53 +080049LOCAL_SRC_FILES := $(libbcc_renderscript_SRC_FILES)
Logan Chien74396852011-07-12 15:50:26 +080050
Zonr Changddf56612012-04-12 15:38:42 +080051include $(LIBBCC_DEVICE_BUILD_MK)
52include $(LIBBCC_GEN_CONFIG_MK)
53include $(LLVM_DEVICE_BUILD_MK)
Logan Chien74396852011-07-12 15:50:26 +080054include $(BUILD_STATIC_LIBRARY)
Tim Murrayc6e6ee42014-04-07 14:13:26 -070055endif
Logan Chien74396852011-07-12 15:50:26 +080056
57#=====================================================================
Stephen Hinese198abe2012-07-27 18:05:41 -070058# Host Static Library: libbccRenderscript
Logan Chien74396852011-07-12 15:50:26 +080059#=====================================================================
60
61include $(CLEAR_VARS)
62
Stephen Hinese198abe2012-07-27 18:05:41 -070063LOCAL_MODULE := libbccRenderscript
Logan Chien74396852011-07-12 15:50:26 +080064LOCAL_MODULE_TAGS := optional
65LOCAL_MODULE_CLASS := STATIC_LIBRARIES
Stephen Hines2f6a4932012-05-03 12:27:13 -070066LOCAL_IS_HOST_MODULE := true
Logan Chien67005272011-07-14 19:51:54 +080067
Zonr Changc72c4dd2012-04-12 15:38:53 +080068LOCAL_SRC_FILES := $(libbcc_renderscript_SRC_FILES)
Logan Chien74396852011-07-12 15:50:26 +080069
Zonr Changddf56612012-04-12 15:38:42 +080070include $(LIBBCC_HOST_BUILD_MK)
71include $(LIBBCC_GEN_CONFIG_MK)
72include $(LLVM_HOST_BUILD_MK)
Logan Chien74396852011-07-12 15:50:26 +080073include $(BUILD_HOST_STATIC_LIBRARY)