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 | |
Hui Shu | eb8ac25 | 2014-08-05 14:34:48 -0700 | [diff] [blame] | 16 | LOCAL_CFLAGS := -Wall -Werror |
Kenny Root | 3b1abba | 2010-10-13 15:00:07 -0700 | [diff] [blame] | 17 | |
Kenny Root | 6e7ac5f | 2010-07-19 10:31:34 -0700 | [diff] [blame] | 18 | #LOCAL_C_INCLUDES += |
| 19 | |
| 20 | LOCAL_STATIC_LIBRARIES := \ |
Mathias Agopian | 83c64e6 | 2012-02-20 16:58:20 -0800 | [diff] [blame] | 21 | libandroidfw \ |
Mathias Agopian | 60e510a | 2013-05-07 19:52:05 -0700 | [diff] [blame] | 22 | libutils \ |
Ying Wang | d685894 | 2013-04-09 21:54:12 -0700 | [diff] [blame] | 23 | libcutils \ |
| 24 | liblog |
Kenny Root | 6e7ac5f | 2010-07-19 10:31:34 -0700 | [diff] [blame] | 25 | |
| 26 | ifeq ($(HOST_OS),linux) |
Iliyan Malchev | 64ef6b4 | 2011-10-19 22:35:56 -0700 | [diff] [blame] | 27 | LOCAL_LDLIBS += -ldl -lpthread |
Kenny Root | 6e7ac5f | 2010-07-19 10:31:34 -0700 | [diff] [blame] | 28 | endif |
| 29 | |
| 30 | LOCAL_MODULE := obbtool |
| 31 | |
| 32 | include $(BUILD_HOST_EXECUTABLE) |
| 33 | |
Ying Wang | a1b592e | 2010-10-14 16:13:31 -0700 | [diff] [blame] | 34 | ##################################################### |
| 35 | include $(CLEAR_VARS) |
Kenny Root | 3b1abba | 2010-10-13 15:00:07 -0700 | [diff] [blame] | 36 | |
Ying Wang | a1b592e | 2010-10-14 16:13:31 -0700 | [diff] [blame] | 37 | LOCAL_MODULE := pbkdf2gen |
| 38 | LOCAL_MODULE_TAGS := optional |
Hui Shu | eb8ac25 | 2014-08-05 14:34:48 -0700 | [diff] [blame] | 39 | LOCAL_CFLAGS := -Wall -Werror |
Ying Wang | a1b592e | 2010-10-14 16:13:31 -0700 | [diff] [blame] | 40 | LOCAL_SRC_FILES := pbkdf2gen.cpp |
| 41 | LOCAL_LDLIBS += -ldl |
| 42 | LOCAL_C_INCLUDES := external/openssl/include $(LOCAL_C_INCLUDES) |
| 43 | LOCAL_STATIC_LIBRARIES := libcrypto_static |
Kenny Root | 3b1abba | 2010-10-13 15:00:07 -0700 | [diff] [blame] | 44 | |
Ying Wang | a1b592e | 2010-10-14 16:13:31 -0700 | [diff] [blame] | 45 | include $(BUILD_HOST_EXECUTABLE) |
Kenny Root | 3b1abba | 2010-10-13 15:00:07 -0700 | [diff] [blame] | 46 | |
Ying Wang | a1b592e | 2010-10-14 16:13:31 -0700 | [diff] [blame] | 47 | ####################################################### |
Kenny Root | 6e7ac5f | 2010-07-19 10:31:34 -0700 | [diff] [blame] | 48 | endif # TARGET_BUILD_APPS |