Home | History | Annotate | Download | only in obbtool
      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 
     16 LOCAL_CFLAGS := -Wall -Werror
     17 
     18 #LOCAL_C_INCLUDES +=
     19 
     20 LOCAL_STATIC_LIBRARIES := \
     21 	libutils \
     22 	libcutils
     23 
     24 ifeq ($(HOST_OS),linux)
     25 LOCAL_LDLIBS += -ldl -lpthread
     26 endif
     27 
     28 LOCAL_MODULE := obbtool
     29 
     30 include $(BUILD_HOST_EXECUTABLE)
     31 
     32 #####################################################
     33 include $(CLEAR_VARS)
     34 
     35 LOCAL_MODULE := pbkdf2gen
     36 LOCAL_MODULE_TAGS := optional
     37 LOCAL_CFLAGS := -Wall -Werror
     38 LOCAL_SRC_FILES := pbkdf2gen.cpp
     39 LOCAL_LDLIBS += -ldl
     40 LOCAL_C_INCLUDES := external/openssl/include $(LOCAL_C_INCLUDES)
     41 LOCAL_STATIC_LIBRARIES := libcrypto_static
     42 
     43 include $(BUILD_HOST_EXECUTABLE)
     44 
     45 #######################################################
     46 endif # TARGET_BUILD_APPS
     47