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