Home | History | Annotate | Download | only in jni
      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 #
     15 LOCAL_PATH := $(call my-dir)
     16 
     17 include $(CLEAR_VARS)
     18 
     19 SYSTEM_PREBUILT_PACKAGE ?= true
     20 
     21 LOCAL_MODULE    := libjni_abcc
     22 LOCAL_MODULE_CLASS := SHARED_LIBRARIES
     23 LOCAL_C_INCLUDES := $(LOCAL_PATH)/device
     24 LOCAL_SRC_FILES := \
     25   Abcc.cpp \
     26   device/Abcc_device.cpp \
     27   device/main.cpp
     28 
     29 # Check in AOSP or NDK usage
     30 ifeq ($(SYSTEM_PREBUILT_PACKAGE),true)
     31 
     32 LOCAL_SHARED_LIBRARIES := liblog libstlport
     33 include external/stlport/libstlport.mk
     34 
     35 include $(BUILD_SHARED_LIBRARY)
     36 else  # SYSTEM_PREBUILT_PACKAGE
     37 
     38 LOCAL_CFLAGS += -DON_DEVICE=1
     39 LOCAL_CFLAGS += -DENABLE_PARALLEL_LLVM_CG=1
     40 LOCAL_CFLAGS += -DVERBOSE=0
     41 LOCAL_LDLIBS := -llog
     42 LOCAL_STATIC_LIBRARIES := cpufeatures
     43 include $(BUILD_SHARED_LIBRARY)
     44 
     45 $(call import-module,android/cpufeatures)
     46 
     47 endif
     48 
     49