aboutsummaryrefslogtreecommitdiffstats
path: root/heimdall/source/Android.mk
blob: d1bd0f7b0ee12555b67052abbfeb2e2a2380ed38 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_SRC_FILES := \
  Arguments.cpp \
  ClosePcScreenAction.cpp \
  DownloadPitAction.cpp \
  FlashAction.cpp \
  InfoAction.cpp \
  PrintPitAction.cpp \
  VersionAction.cpp \
  BridgeManager.cpp \
  DetectAction.cpp \
  HelpAction.cpp \
  Interface.cpp \
  Utility.cpp \
  main.cpp \
  ../../libpit/Source/libpit.cpp
  
LOCAL_C_INCLUDES := \
  external/heimdall/libpit/Source \
  external/libusbx/libusb

LOCAL_STATIC_LIBRARIES := libusbx

ifeq ($(HOST_OS),darwin)
LOCAL_LDFLAGS := -framework CoreFoundation -framework IOKit
endif

ifeq ($(HOST_OS),linux)
LOCAL_LDFLAGS := -lpthread -lrt
endif

LOCAL_MODULE := heimdall
include $(BUILD_HOST_EXECUTABLE)