Zonr Chang | ddf5661 | 2012-04-12 15:38:42 +0800 | [diff] [blame] | 1 | # |
| 2 | # Copyright (C) 2012 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 | |
Tim Murray | c2074ca | 2014-04-08 15:39:08 -0700 | [diff] [blame] | 17 | LOCAL_CLANG := true |
| 18 | |
Zonr Chang | ddf5661 | 2012-04-12 15:38:42 +0800 | [diff] [blame] | 19 | LOCAL_CFLAGS := \ |
| 20 | -Wall \ |
| 21 | -Wno-unused-parameter \ |
| 22 | -Werror \ |
| 23 | -DTARGET_BUILD \ |
Stephen Hines | e109434 | 2014-05-13 17:55:49 -0700 | [diff] [blame] | 24 | $(RS_VERSION_DEFINE) \ |
Zonr Chang | ddf5661 | 2012-04-12 15:38:42 +0800 | [diff] [blame] | 25 | $(LOCAL_CFLAGS) |
| 26 | |
| 27 | ifeq ($(TARGET_BUILD_VARIANT),eng) |
| 28 | LOCAL_CFLAGS += -DANDROID_ENGINEERING_BUILD |
Stephen Hines | 6e9e89d | 2012-07-27 19:16:04 -0700 | [diff] [blame] | 29 | else |
| 30 | LOCAL_CFLAGS += -D__DISABLE_ASSERTS |
Zonr Chang | ddf5661 | 2012-04-12 15:38:42 +0800 | [diff] [blame] | 31 | endif |
| 32 | |
| 33 | #===================================================================== |
| 34 | # Architecture Selection |
| 35 | #===================================================================== |
| 36 | # Note: We should only use -DFORCE_ARCH_CODEGEN on target build. |
| 37 | # For the host build, we will include as many architecture as possible, |
| 38 | # so that we can test the execution engine easily. |
| 39 | |
Colin Cross | 71df050 | 2014-02-04 16:27:32 -0800 | [diff] [blame] | 40 | LOCAL_MODULE_TARGET_ARCH := $(LLVM_SUPPORTED_ARCH) |
Ashok Bhat | ad7d4c3 | 2013-11-22 13:29:44 +0000 | [diff] [blame] | 41 | |
Colin Cross | 71df050 | 2014-02-04 16:27:32 -0800 | [diff] [blame] | 42 | ifeq ($(TARGET_ARCH),arm64) |
| 43 | $(info TODOArm64: $(LOCAL_PATH)/Android.mk Add Arm64 define to LOCAL_CFLAGS) |
| 44 | endif |
| 45 | |
| 46 | ifeq ($(TARGET_ARCH),mips64) |
| 47 | $(info TODOMips64: $(LOCAL_PATH)/Android.mk Add Mips64 define to LOCAL_CFLAGS) |
| 48 | endif |
| 49 | |
Stephen Hines | 0467bc4 | 2014-05-05 15:11:12 -0700 | [diff] [blame] | 50 | include frameworks/compile/libbcc/libbcc-targets.mk |
Zonr Chang | ddf5661 | 2012-04-12 15:38:42 +0800 | [diff] [blame] | 51 | |
| 52 | LOCAL_C_INCLUDES := \ |
Stephen Hines | 4e98648 | 2013-06-15 21:53:29 -0700 | [diff] [blame] | 53 | bionic \ |
Tim Murray | c2074ca | 2014-04-08 15:39:08 -0700 | [diff] [blame] | 54 | external/libcxx/include \ |
Zonr Chang | ddf5661 | 2012-04-12 15:38:42 +0800 | [diff] [blame] | 55 | $(LIBBCC_ROOT_PATH)/include \ |
Stephen Hines | 4e98648 | 2013-06-15 21:53:29 -0700 | [diff] [blame] | 56 | $(LLVM_ROOT_PATH)/include \ |
| 57 | $(LLVM_ROOT_PATH)/device/include \ |
Zonr Chang | ddf5661 | 2012-04-12 15:38:42 +0800 | [diff] [blame] | 58 | $(LOCAL_C_INCLUDES) |