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_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0
27LOCAL_LICENSE_CONDITIONS := notice
28LOCAL_MODULE_STEM := $(module_name)
29LOCAL_MODULE_PATH := $(TARGET_OUT_DATA_NATIVE_TESTS)/$(module_path)
30LOCAL_MODULE_TAGS := optional
31
32LOCAL_SRC_FILES := \
33    $(poc_test_src_files) \
34    $(addprefix $(poc_test_dir)/,$(module_src_files)) \
35
36LOCAL_CFLAGS := \
37    $(poc_test_cflags) \
38    $(module_cflags) \
39
40LOCAL_C_INCLUDES := \
41    $(poc_test_c_includes) \
42    $(addprefix $(poc_test_dir)/,$(module_c_includes)) \
43
44LOCAL_HEADER_LIBRARIES := \
45    $(poc_test_header_libraries) \
46    $(module_header_libraries) \
47
48LOCAL_STATIC_LIBRARIES := \
49    $(poc_test_static_libraries) \
50    $(module_static_libraries) \
51
52LOCAL_SHARED_LIBRARIES := \
53    $(ltp_shared_libraries) \
54    $(module_shared_libraries) \
55
56include $(BUILD_EXECUTABLE)
57
58module_name :=
59module_path :=
60vts_src_file :=
61