Logan Chien | 7439685 | 2011-07-12 15:50:26 +0800 | [diff] [blame] | 1 | # |
Stephen Hines | 2f6a493 | 2012-05-03 12:27:13 -0700 | [diff] [blame] | 2 | # Copyright (C) 2011 The Android Open Source Project |
Logan Chien | 7439685 | 2011-07-12 15:50:26 +0800 | [diff] [blame] | 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 | |
| 18 | LOCAL_PATH := $(call my-dir) |
Logan Chien | 7439685 | 2011-07-12 15:50:26 +0800 | [diff] [blame] | 19 | |
Stephen Hines | 2f6a493 | 2012-05-03 12:27:13 -0700 | [diff] [blame] | 20 | ifeq ($(libbcc_USE_DISASSEMBLER),1) |
Logan Chien | 7439685 | 2011-07-12 15:50:26 +0800 | [diff] [blame] | 21 | |
| 22 | #===================================================================== |
Stephen Hines | 2f6a493 | 2012-05-03 12:27:13 -0700 | [diff] [blame] | 23 | # Common: libbccDisassembler |
| 24 | #===================================================================== |
| 25 | |
| 26 | libbcc_disassembler_SRC_FILES := \ |
| 27 | Disassembler.cpp |
| 28 | |
| 29 | |
| 30 | #===================================================================== |
| 31 | # Device Static Library: libbccDisassembler |
Logan Chien | 7439685 | 2011-07-12 15:50:26 +0800 | [diff] [blame] | 32 | #===================================================================== |
| 33 | |
| 34 | include $(CLEAR_VARS) |
| 35 | |
Stephen Hines | 2f6a493 | 2012-05-03 12:27:13 -0700 | [diff] [blame] | 36 | LOCAL_MODULE := libbccDisassembler |
Logan Chien | 7439685 | 2011-07-12 15:50:26 +0800 | [diff] [blame] | 37 | LOCAL_MODULE_TAGS := optional |
| 38 | LOCAL_MODULE_CLASS := STATIC_LIBRARIES |
Zonr Chang | ddf5661 | 2012-04-12 15:38:42 +0800 | [diff] [blame^] | 39 | |
Stephen Hines | 2f6a493 | 2012-05-03 12:27:13 -0700 | [diff] [blame] | 40 | LOCAL_SRC_FILES := $(libbcc_disassembler_SRC_FILES) |
Logan Chien | 7439685 | 2011-07-12 15:50:26 +0800 | [diff] [blame] | 41 | |
Zonr Chang | ddf5661 | 2012-04-12 15:38:42 +0800 | [diff] [blame^] | 42 | include $(LIBBCC_DEVICE_BUILD_MK) |
| 43 | include $(LIBBCC_GEN_CONFIG_MK) |
| 44 | include $(LLVM_DEVICE_BUILD_MK) |
Logan Chien | 7439685 | 2011-07-12 15:50:26 +0800 | [diff] [blame] | 45 | include $(BUILD_STATIC_LIBRARY) |
| 46 | |
| 47 | |
| 48 | #===================================================================== |
Stephen Hines | 2f6a493 | 2012-05-03 12:27:13 -0700 | [diff] [blame] | 49 | # Host Static Library: libbccDisassembler |
Logan Chien | 7439685 | 2011-07-12 15:50:26 +0800 | [diff] [blame] | 50 | #===================================================================== |
| 51 | |
| 52 | include $(CLEAR_VARS) |
| 53 | |
Stephen Hines | 2f6a493 | 2012-05-03 12:27:13 -0700 | [diff] [blame] | 54 | LOCAL_MODULE := libbccDisassembler |
Logan Chien | 7439685 | 2011-07-12 15:50:26 +0800 | [diff] [blame] | 55 | LOCAL_MODULE_TAGS := optional |
| 56 | LOCAL_MODULE_CLASS := STATIC_LIBRARIES |
Stephen Hines | 2f6a493 | 2012-05-03 12:27:13 -0700 | [diff] [blame] | 57 | LOCAL_IS_HOST_MODULE := true |
Logan Chien | 6700527 | 2011-07-14 19:51:54 +0800 | [diff] [blame] | 58 | |
Stephen Hines | 2f6a493 | 2012-05-03 12:27:13 -0700 | [diff] [blame] | 59 | LOCAL_SRC_FILES := $(libbcc_disassembler_SRC_FILES) |
Logan Chien | 7439685 | 2011-07-12 15:50:26 +0800 | [diff] [blame] | 60 | |
Zonr Chang | ddf5661 | 2012-04-12 15:38:42 +0800 | [diff] [blame^] | 61 | include $(LIBBCC_HOST_BUILD_MK) |
| 62 | include $(LIBBCC_GEN_CONFIG_MK) |
| 63 | include $(LLVM_HOST_BUILD_MK) |
Logan Chien | 7439685 | 2011-07-12 15:50:26 +0800 | [diff] [blame] | 64 | include $(BUILD_HOST_STATIC_LIBRARY) |
Stephen Hines | 2f6a493 | 2012-05-03 12:27:13 -0700 | [diff] [blame] | 65 | |
| 66 | endif # $(libbcc_USE_DISASSEMBLER) |