blob: 5ccd6572dbd4674bfdc1a370d8679521eb094519 [file] [log] [blame]
Zonr Changddf56612012-04-12 15:38:42 +08001#
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
Logan Chienbe115352014-05-26 23:00:06 +080017ifneq ($(HOST_OS),windows)
Tim Murrayc2074ca2014-04-08 15:39:08 -070018LOCAL_CLANG := true
Logan Chienbe115352014-05-26 23:00:06 +080019endif
Tim Murrayc2074ca2014-04-08 15:39:08 -070020
Zonr Changddf56612012-04-12 15:38:42 +080021LOCAL_CFLAGS := \
22 -Wall \
23 -Wno-unused-parameter \
24 -Werror \
25 -D__HOST__ \
Stephen Hinese1094342014-05-13 17:55:49 -070026 $(RS_VERSION_DEFINE) \
Zonr Changddf56612012-04-12 15:38:42 +080027 $(LOCAL_CFLAGS)
28
Tim Murray8d254fd2014-07-15 13:27:25 -070029ifneq ($(BOARD_OVERRIDE_RS_CPU_VARIANT_32),)
30LOCAL_CFLAGS += -DFORCE_CPU_VARIANT_32=$(BOARD_OVERRIDE_RS_CPU_VARIANT_32)
31endif
32
33ifneq ($(BOARD_OVERRIDE_RS_CPU_VARIANT_64),)
34LOCAL_CFLAGS += -DFORCE_CPU_VARIANT_64=$(BOARD_OVERRIDE_RS_CPU_VARIANT_64)
35endif
36
Zonr Changddf56612012-04-12 15:38:42 +080037ifeq ($(TARGET_BUILD_VARIANT),eng)
38libbcc_CFLAGS += -DANDROID_ENGINEERING_BUILD
Stephen Hines6e9e89d2012-07-27 19:16:04 -070039else
40LOCAL_CFLAGS += -D__DISABLE_ASSERTS
Zonr Changddf56612012-04-12 15:38:42 +080041endif
42
43LOCAL_C_INCLUDES := \
Zonr Changddf56612012-04-12 15:38:42 +080044 $(LIBBCC_ROOT_PATH)/include \
Stephen Hines4e986482013-06-15 21:53:29 -070045 $(LLVM_ROOT_PATH)/include \
46 $(LLVM_ROOT_PATH)/host/include \
Zonr Changddf56612012-04-12 15:38:42 +080047 $(LOCAL_C_INCLUDES)
48
49LOCAL_IS_HOST_MODULE := true