blob: bbd06566422d2878a256da809722828668017525 [file] [log] [blame]
Mattias Nissler03b72b02016-02-24 14:45:06 +01001# Copyright (C) 2008 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
15LOCAL_PATH := $(call my-dir)
16
17# Determine whether to build dumpkey from system/core/libmincrypt or from
18# bootable/recovery/tools. The dumpkey source is temporarily present in both
19# locations during the process of moving the tool to the recovery repository.
20# TODO(mnissler): Remove the guard after the transition is complete.
21ifndef BUILD_DUMPKEY_FROM_RECOVERY
22BUILD_DUMPKEY_FROM_RECOVERY := true
23endif
24
25ifeq ($(BUILD_DUMPKEY_FROM_RECOVERY),true)
26include $(CLEAR_VARS)
27LOCAL_MODULE := dumpkey
28LOCAL_SRC_FILES := DumpPublicKey.java
29LOCAL_JAR_MANIFEST := DumpPublicKey.mf
30LOCAL_STATIC_JAVA_LIBRARIES := bouncycastle-host
31include $(BUILD_HOST_JAVA_LIBRARY)
32endif