1a89eef413da39b013f2e931c9f207ef2587eef01Tim Murray# Copyright (C) 2013 The Android Open Source Project
2a89eef413da39b013f2e931c9f207ef2587eef01Tim Murray#
3a89eef413da39b013f2e931c9f207ef2587eef01Tim Murray# Licensed under the Apache License, Version 2.0 (the "License");
4a89eef413da39b013f2e931c9f207ef2587eef01Tim Murray# you may not use this file except in compliance with the License.
5a89eef413da39b013f2e931c9f207ef2587eef01Tim Murray# You may obtain a copy of the License at
6a89eef413da39b013f2e931c9f207ef2587eef01Tim Murray#
7a89eef413da39b013f2e931c9f207ef2587eef01Tim Murray#      http://www.apache.org/licenses/LICENSE-2.0
8a89eef413da39b013f2e931c9f207ef2587eef01Tim Murray#
9a89eef413da39b013f2e931c9f207ef2587eef01Tim Murray# Unless required by applicable law or agreed to in writing, software
10a89eef413da39b013f2e931c9f207ef2587eef01Tim Murray# distributed under the License is distributed on an "AS IS" BASIS,
11a89eef413da39b013f2e931c9f207ef2587eef01Tim Murray# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12a89eef413da39b013f2e931c9f207ef2587eef01Tim Murray# See the License for the specific language governing permissions and
13a89eef413da39b013f2e931c9f207ef2587eef01Tim Murray# limitations under the License.
14a89eef413da39b013f2e931c9f207ef2587eef01Tim Murray
15a89eef413da39b013f2e931c9f207ef2587eef01Tim Murray#
16a89eef413da39b013f2e931c9f207ef2587eef01Tim Murray# This is the shared library included by the JNI test app.
17a89eef413da39b013f2e931c9f207ef2587eef01Tim Murray#
18a89eef413da39b013f2e931c9f207ef2587eef01Tim MurrayLOCAL_PATH := $(call my-dir)
19a89eef413da39b013f2e931c9f207ef2587eef01Tim Murrayinclude $(CLEAR_VARS)
20d1cfb510bcae2ed7cf735c9937b5050ae1043c85Dan AlbertLOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
21a89eef413da39b013f2e931c9f207ef2587eef01Tim MurrayLOCAL_CLANG := true
22a89eef413da39b013f2e931c9f207ef2587eef01Tim Murray
23a89eef413da39b013f2e931c9f207ef2587eef01Tim MurrayLOCAL_MODULE := libhellocomputendk
24a89eef413da39b013f2e931c9f207ef2587eef01Tim MurrayLOCAL_MODULE_TAGS := optional
25a89eef413da39b013f2e931c9f207ef2587eef01Tim MurrayLOCAL_SRC_FILES := helloComputeNDK.cpp mono.rs
26a89eef413da39b013f2e931c9f207ef2587eef01Tim Murray
27a89eef413da39b013f2e931c9f207ef2587eef01Tim MurrayLOCAL_C_INCLUDES := $(JNI_H_INCLUDE)
28a89eef413da39b013f2e931c9f207ef2587eef01Tim MurrayLOCAL_C_INCLUDES += frameworks/rs/cpp
29a89eef413da39b013f2e931c9f207ef2587eef01Tim MurrayLOCAL_C_INCLUDES += frameworks/rs
30a89eef413da39b013f2e931c9f207ef2587eef01Tim Murray
3144bef6fba6244292b751387f3d6c31cca96c28adChris WailesLOCAL_CFLAGS := -std=c++11
32997bb34e1f65bf4026634d2db5be5c86f13a31f0Stephen HinesLOCAL_LDFLAGS := -Wl,-Bsymbolic
33a89eef413da39b013f2e931c9f207ef2587eef01Tim MurrayLOCAL_SHARED_LIBRARIES := libdl liblog libjnigraphics
34997bb34e1f65bf4026634d2db5be5c86f13a31f0Stephen HinesLOCAL_STATIC_LIBRARIES := libRScpp_static
35e5692bece9c1bc5de70cdc4a5c466666c735a809Stephen Hines
36fbb6938c9735b34168d8a7844038cb76a23321f9Dan Albertifeq ($(my_32_64_bit_suffix),32)
37fbb6938c9735b34168d8a7844038cb76a23321f9Dan AlbertLOCAL_SDK_VERSION := 8
38fbb6938c9735b34168d8a7844038cb76a23321f9Dan Albertelse
39fbb6938c9735b34168d8a7844038cb76a23321f9Dan AlbertLOCAL_SDK_VERSION := 21
40fbb6938c9735b34168d8a7844038cb76a23321f9Dan Albertendif
41fbb6938c9735b34168d8a7844038cb76a23321f9Dan Albert
42fbb6938c9735b34168d8a7844038cb76a23321f9Dan AlbertLOCAL_NDK_STL_VARIANT := stlport_static
43fbb6938c9735b34168d8a7844038cb76a23321f9Dan Albert
44a89eef413da39b013f2e931c9f207ef2587eef01Tim Murrayinclude $(BUILD_SHARED_LIBRARY)
45