1# 2# Copyright (C) 2016 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 17# Compiles a PoC test module into an executable and copies it into 18# android-vts/testcases/DATA/nativetest(64)/security/poc/ directory. 19LOCAL_PATH := $(call my-dir) 20 21include $(CLEAR_VARS) 22module_name := $(notdir $(module_testname)) 23module_path := security/poc/$(dir $(module_testname)) 24 25LOCAL_MODULE := $(module_name) 26LOCAL_MODULE_STEM := $(module_name) 27LOCAL_MODULE_PATH := $(TARGET_OUT_DATA_NATIVE_TESTS)/$(module_path) 28LOCAL_MODULE_TAGS := optional 29 30LOCAL_SRC_FILES := \ 31 $(poc_test_src_files) \ 32 $(addprefix $(poc_test_dir)/,$(module_src_files)) \ 33 34LOCAL_CFLAGS := \ 35 $(poc_test_cflags) \ 36 $(module_cflags) \ 37 38LOCAL_C_INCLUDES := \ 39 $(poc_test_c_includes) \ 40 $(addprefix $(poc_test_dir)/,$(module_c_includes)) \ 41 42LOCAL_HEADER_LIBRARIES := \ 43 $(poc_test_header_libraries) \ 44 $(module_header_libraries) \ 45 46LOCAL_STATIC_LIBRARIES := \ 47 $(poc_test_static_libraries) \ 48 $(module_static_libraries) \ 49 50LOCAL_SHARED_LIBRARIES := \ 51 $(ltp_shared_libraries) \ 52 $(module_shared_libraries) \ 53 54include $(BUILD_EXECUTABLE) 55 56module_name := 57module_path := 58vts_src_file := 59