• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
2# Copyright (C) 2011 The Android Open Source Project
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
18LOCAL_PATH := $(call my-dir)
19include $(LOCAL_PATH)/../../libbcc-config.mk
20
21ifeq ($(libbcc_USE_DISASSEMBLER),1)
22
23#=====================================================================
24# Common: libbccDisassembler
25#=====================================================================
26
27libbcc_disassembler_SRC_FILES := \
28  Disassembler.cpp
29
30
31#=====================================================================
32# Device Static Library: libbccDisassembler
33#=====================================================================
34
35include $(CLEAR_VARS)
36
37LOCAL_MODULE := libbccDisassembler
38LOCAL_MODULE_TAGS := optional
39LOCAL_MODULE_CLASS := STATIC_LIBRARIES
40LOCAL_CFLAGS += $(libbcc_CFLAGS)
41LOCAL_C_INCLUDES := $(libbcc_C_INCLUDES)
42LOCAL_SRC_FILES := $(libbcc_disassembler_SRC_FILES)
43
44include $(LIBBCC_ROOT_PATH)/libbcc-gen-config-from-mk.mk
45include $(LIBBCC_ROOT_PATH)/libbcc-build-rules.mk
46include $(LLVM_ROOT_PATH)/llvm-device-build.mk
47include $(BUILD_STATIC_LIBRARY)
48
49
50#=====================================================================
51# Host Static Library: libbccDisassembler
52#=====================================================================
53
54include $(CLEAR_VARS)
55
56LOCAL_MODULE := libbccDisassembler
57LOCAL_MODULE_TAGS := optional
58LOCAL_MODULE_CLASS := STATIC_LIBRARIES
59LOCAL_IS_HOST_MODULE := true
60
61LOCAL_CFLAGS += $(libbcc_CFLAGS)
62LOCAL_CFLAGS += -D__HOST__
63LOCAL_C_INCLUDES := $(libbcc_C_INCLUDES)
64
65LOCAL_SRC_FILES := $(libbcc_disassembler_SRC_FILES)
66
67include $(LIBBCC_ROOT_PATH)/libbcc-gen-config-from-mk.mk
68include $(LIBBCC_ROOT_PATH)/libbcc-build-rules.mk
69include $(LLVM_ROOT_PATH)/llvm-host-build.mk
70include $(BUILD_HOST_STATIC_LIBRARY)
71
72endif # $(libbcc_USE_DISASSEMBLER)
73