Kenny Root | 6e7ac5f | 2010-07-19 10:31:34 -0700 | [diff] [blame] | 1 | # |
2 | # Copyright 2010 The Android Open Source Project | ||||
3 | # | ||||
4 | # Opaque Binary Blob (OBB) Tool | ||||
5 | # | ||||
6 | |||||
7 | # This tool is prebuilt if we're doing an app-only build. | ||||
8 | ifeq ($(TARGET_BUILD_APPS),) | ||||
9 | |||||
10 | LOCAL_PATH:= $(call my-dir) | ||||
11 | include $(CLEAR_VARS) | ||||
12 | |||||
13 | LOCAL_SRC_FILES := \ | ||||
14 | Main.cpp | ||||
15 | |||||
Kenny Root | 3b1abba | 2010-10-13 15:00:07 -0700 | [diff] [blame] | 16 | LOCAL_CFLAGS := -Wall -Werror |
17 | |||||
Kenny Root | 6e7ac5f | 2010-07-19 10:31:34 -0700 | [diff] [blame] | 18 | #LOCAL_C_INCLUDES += |
19 | |||||
20 | LOCAL_STATIC_LIBRARIES := \ | ||||
21 | libutils \ | ||||
22 | libcutils | ||||
23 | |||||
24 | ifeq ($(HOST_OS),linux) | ||||
25 | LOCAL_LDLIBS += -lpthread | ||||
26 | endif | ||||
27 | |||||
28 | LOCAL_MODULE := obbtool | ||||
29 | |||||
30 | include $(BUILD_HOST_EXECUTABLE) | ||||
31 | |||||
Kenny Root | a09f1eb | 2010-10-14 10:25:25 -0700 | [diff] [blame] | 32 | # Non-Linux hosts might not have OpenSSL libcrypto |
33 | ifeq ($(HOST_OS),linux) | ||||
34 | include $(CLEAR_VARS) | ||||
Kenny Root | 3b1abba | 2010-10-13 15:00:07 -0700 | [diff] [blame] | 35 | |
Kenny Root | a09f1eb | 2010-10-14 10:25:25 -0700 | [diff] [blame] | 36 | LOCAL_MODULE := pbkdf2gen |
Kenny Root | 3b1abba | 2010-10-13 15:00:07 -0700 | [diff] [blame] | 37 | |
Kenny Root | a09f1eb | 2010-10-14 10:25:25 -0700 | [diff] [blame] | 38 | LOCAL_MODULE_TAGS := optional |
Kenny Root | 3b1abba | 2010-10-13 15:00:07 -0700 | [diff] [blame] | 39 | |
Kenny Root | a09f1eb | 2010-10-14 10:25:25 -0700 | [diff] [blame] | 40 | LOCAL_CFLAGS := -Wall -Werror |
Kenny Root | 3b1abba | 2010-10-13 15:00:07 -0700 | [diff] [blame] | 41 | |
Kenny Root | a09f1eb | 2010-10-14 10:25:25 -0700 | [diff] [blame] | 42 | LOCAL_SRC_FILES := pbkdf2gen.cpp |
Kenny Root | 3b1abba | 2010-10-13 15:00:07 -0700 | [diff] [blame] | 43 | |
Kenny Root | a09f1eb | 2010-10-14 10:25:25 -0700 | [diff] [blame] | 44 | LOCAL_SHARED_LIBRARIES := libcrypto |
Kenny Root | 3b1abba | 2010-10-13 15:00:07 -0700 | [diff] [blame] | 45 | |
Kenny Root | a09f1eb | 2010-10-14 10:25:25 -0700 | [diff] [blame] | 46 | include $(BUILD_HOST_EXECUTABLE) |
47 | endif # HOST_OS == linux | ||||
Kenny Root | 3b1abba | 2010-10-13 15:00:07 -0700 | [diff] [blame] | 48 | |
Kenny Root | 6e7ac5f | 2010-07-19 10:31:34 -0700 | [diff] [blame] | 49 | endif # TARGET_BUILD_APPS |