From 916e88b2d360599948313c0ca9452d8b418bf942 Mon Sep 17 00:00:00 2001 From: Koushik Dutta Date: Wed, 10 Apr 2013 22:46:12 -0700 Subject: Create pregenerated config.h. --- heimdall/config.h | 79 ++++++++++++++++++++++++++++++++++++++++++++++ heimdall/source/Android.mk | 60 +++++++++++++++++++++++++++++++++++ 2 files changed, 139 insertions(+) create mode 100644 heimdall/config.h create mode 100644 heimdall/source/Android.mk diff --git a/heimdall/config.h b/heimdall/config.h new file mode 100644 index 0000000..96dc3a6 --- /dev/null +++ b/heimdall/config.h @@ -0,0 +1,79 @@ +/* config.h.in. */ + +/* Define if building universal (internal helper macro) */ +#undef AC_APPLE_UNIVERSAL_BUILD + +/* Define to 1 if you have the header file. */ +#define HAVE_DLFCN_H + +/* Define to 1 if you have the header file. */ +#define HAVE_INTTYPES_H + +/* Define to 1 if you have the header file. */ +#define HAVE_MEMORY_H + +/* Define to 1 if you have the header file. */ +// #undef HAVE_STDINT_H + +/* Define to 1 if you have the header file. */ +#define HAVE_STDLIB_H + +/* Define to 1 if you have the header file. */ +#define HAVE_STRINGS_H + +/* Define to 1 if you have the header file. */ +#define HAVE_STRING_H + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_STAT_H + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_TYPES_H + +/* Define to 1 if you have the header file. */ +#define HAVE_UNISTD_H + +/* Define to the sub-directory in which libtool stores uninstalled libraries. + */ +#undef LT_OBJDIR + +/* Darwin backend */ +#if defined(__APPLE__) +#define OS_DARWIN +#elif defined(__LINUX__) +/* Linux backend */ +#define OS_LINUX +#else +/* Windows backend */ +#define OS_WINDOWS +#endif + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION + +/* Define to 1 if you have the ANSI C header files. */ +// #undef STDC_HEADERS + +/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most + significant byte first (like Motorola and SPARC, unlike Intel). */ +#if defined AC_APPLE_UNIVERSAL_BUILD +# if defined __BIG_ENDIAN__ +# define WORDS_BIGENDIAN 1 +# endif +#else +# ifndef WORDS_BIGENDIAN +# undef WORDS_BIGENDIAN +# endif +#endif diff --git a/heimdall/source/Android.mk b/heimdall/source/Android.mk new file mode 100644 index 0000000..d344fdb --- /dev/null +++ b/heimdall/source/Android.mk @@ -0,0 +1,60 @@ +LOCAL_PATH := $(call my-dir) + +include $(CLEAR_VARS) + +LOCAL_SRC_FILES := \ + core.c \ + descriptor.c \ + io.c \ + sync.c + +ifeq ($(HOST_OS),darwin) +LOCAL_SRC_FILES += os/darwin_usb.c +endif +ifeq ($(HOST_OS),linux) +LOCAL_SRC_FILES += os/linux_usbfs.c +endif + +LOCAL_SRC_FILES := $(addprefix ../../../libusb/libusb/,$(LOCAL_SRC_FILES)) +LOCAL_MODULE := libusb + +LOCAL_C_INCLUDES := \ + external/libusb \ + external/libusb/libusb + +include $(BUILD_HOST_STATIC_LIBRARY) + +include $(CLEAR_VARS) + +LOCAL_SRC_FILES := \ + Arguments.cpp \ + ClosePcScreenAction.cpp \ + DownloadPitAction.cpp \ + FlashAction.cpp \ + InfoAction.cpp \ + PrintPitAction.cpp \ + VersionAction.cpp \ + BridgeManager.cpp \ + DetectAction.cpp \ + DumpAction.cpp \ + HelpAction.cpp \ + Interface.cpp \ + Utility.cpp \ + main.cpp \ + ../../libpit/Source/libpit.cpp + +LOCAL_SRC_FILES += $(LIBUSB_SRC_FILES) +LOCAL_FORCE_STATIC_EXECUTABLE := true + +LOCAL_C_INCLUDES := \ + external/heimdall/libpit/Source \ + external/libusb/libusb + +LOCAL_STATIC_LIBRARIES := libusb + +ifeq ($(HOST_OS),darwin) +LOCAL_LDFLAGS := -framework CoreFoundation -framework IOKit +endif + +LOCAL_MODULE := heimdall +include $(BUILD_HOST_EXECUTABLE) -- cgit v1.1