blob: 33541cc79f191a2527ec82ce432c45dd7f564a30 [file] [log] [blame]
Jean-Baptiste Queru110b3142009-07-31 17:38:20 -07001# Copyright (C) 2009 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# define the KEYSTORE_TESTS environment variable to build the test programs
16ifdef KEYSTORE_TESTS
17LOCAL_PATH:= $(call my-dir)
18include $(CLEAR_VARS)
19LOCAL_SRC_FILES:= netkeystore_test.c ../keymgmt.c
20LOCAL_SHARED_LIBRARIES := libcutils libssl
21LOCAL_MODULE:= netkeystore_test
22LOCAL_MODULE_TAGS := optional
23LOCAL_C_INCLUDES := external/openssl/include \
24 frameworks/base/cmds/keystore
25EXTRA_CFLAGS := -g -O0 -DGTEST_OS_LINUX -DGTEST_HAS_STD_STRING
26include $(BUILD_EXECUTABLE)
27
28endif #KEYSTORE_TESTS