Carl Shapiro | 7b21670 | 2011-06-17 15:09:26 -0700 | [diff] [blame^] | 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 | LOCAL_PATH := $(call my-dir) |
| 18 | include $(CLEAR_VARS) |
| 19 | |
| 20 | LOCAL_MODULE := libart |
| 21 | LOCAL_MODULE_TAGS := optional |
| 22 | |
| 23 | LOCAL_CPP_EXTENSION := .cc |
| 24 | |
| 25 | LOCAL_SRC_FILES := $(LIBART_LOCAL_SRC_FILES) |
| 26 | |
| 27 | LOCAL_CFLAGS += \ |
| 28 | -Wall \ |
| 29 | -Wextra \ |
| 30 | -Wno-unused-parameter \ |
| 31 | -Wstrict-aliasing=2 \ |
| 32 | -fno-align-jumps \ |
| 33 | -fstrict-aliasing \ |
| 34 | -fvisibility=hidden |
| 35 | |
| 36 | ifeq ($(TARGET_ARCH),arm) |
| 37 | LOCAL_CFLAGS += |
| 38 | endif |
| 39 | |
| 40 | ifeq ($(TARGET_ARCH),x86) |
| 41 | LOCAL_CFLAGS += |
| 42 | endif |
| 43 | |
| 44 | LOCAL_C_INCLUDES += \ |
| 45 | external/stlport/stlport \ |
| 46 | bionic/ \ |
| 47 | bionic/libstdc++/include \ |
| 48 | dalvik/libdex \ |
| 49 | libcore/include \ |
| 50 | $(LOCAL_PATH)/src |
| 51 | |
| 52 | LOCAL_SHARED_LIBRARIES += libstlport |
| 53 | |
| 54 | include $(BUILD_SHARED_LIBRARY) |