1# Copyright (C) 2013 The Android Open Source Project 2# 3# Licensed under the Apache License, Version 2.0 (the "License"); 4# you may not use this file except in compliance with the License. 5# You may obtain a copy of the License at 6# 7# http://www.apache.org/licenses/LICENSE-2.0 8# 9# Unless required by applicable law or agreed to in writing, software 10# distributed under the License is distributed on an "AS IS" BASIS, 11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12# See the License for the specific language governing permissions and 13# limitations under the License. 14# 15LOCAL_PATH := $(call my-dir) 16 17include $(CLEAR_VARS) 18 19SYSTEM_PREBUILT_PACKAGE ?= true 20 21LOCAL_MODULE := libjni_abcc 22LOCAL_MODULE_CLASS := SHARED_LIBRARIES 23LOCAL_C_INCLUDES := $(LOCAL_PATH)/device 24LOCAL_SRC_FILES := \ 25 Abcc.cpp \ 26 device/Abcc_device.cpp \ 27 device/main.cpp 28 29# Check in AOSP or NDK usage 30ifeq ($(SYSTEM_PREBUILT_PACKAGE),true) 31 32LOCAL_SHARED_LIBRARIES := liblog libstlport 33include external/stlport/libstlport.mk 34 35include $(BUILD_SHARED_LIBRARY) 36else # SYSTEM_PREBUILT_PACKAGE 37 38LOCAL_CFLAGS += -DON_DEVICE=1 39LOCAL_CFLAGS += -DENABLE_PARALLEL_LLVM_CG=1 40LOCAL_CFLAGS += -DVERBOSE=0 41LOCAL_LDLIBS := -llog 42LOCAL_STATIC_LIBRARIES := cpufeatures 43include $(BUILD_SHARED_LIBRARY) 44 45$(call import-module,android/cpufeatures) 46 47endif 48 49