Add host build rules for sgdisk

Change-Id: I204ff8f580c2336c2c9d39bba48596aaaaa6860a
This commit is contained in:
Greg Hartman
2015-02-23 20:04:52 -08:00
parent 6d73fc63a4
commit 08372d76dc
5 changed files with 23 additions and 14 deletions

View File

@@ -1,9 +1,6 @@
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_CPP_EXTENSION := .cc
LOCAL_SRC_FILES := \
sgdisk_src_files := \
sgdisk.cc \
gptcl.cc \
crc32.cc \
@@ -21,9 +18,29 @@ LOCAL_SRC_FILES := \
diskio-unix.cc \
android_popt.cc \
include $(CLEAR_VARS)
LOCAL_CPP_EXTENSION := .cc
LOCAL_C_INCLUDES := $(LOCAL_PATH) external/e2fsprogs/lib
LOCAL_SRC_FILES := $(sgdisk_src_files)
LOCAL_SHARED_LIBRARIES := libext2_uuid
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE := sgdisk
include $(BUILD_EXECUTABLE)
include $(CLEAR_VARS)
LOCAL_CPP_EXTENSION := .cc
LOCAL_C_INCLUDES := $(LOCAL_PATH) external/e2fsprogs/lib
LOCAL_SRC_FILES := $(sgdisk_src_files)
LOCAL_SHARED_LIBRARIES := libext2_uuid_host
LOCAL_MODULE := sgdisk_host
LOCAL_MODULE_STEM := sgdisk
include $(BUILD_HOST_EXECUTABLE)

View File

@@ -11,7 +11,7 @@
* GNU General Public License for more details.
*/
#include "android_popt.h"
#include <popt.h>
// #define LOCAL_DEBUG

View File

@@ -23,11 +23,7 @@
#define __GPTCL_H
#include "gpt.h"
#ifdef __ANDROID__
#include "android_popt.h"
#else
#include <popt.h>
#endif
using namespace std;

4
guid.h
View File

@@ -26,11 +26,7 @@
#endif
typedef unsigned char my_uuid_t[16];
#else // Not Windows
#ifdef __ANDROID__
#include <uuid.h>
#else
#include <uuid/uuid.h>
#endif
typedef uuid_t my_uuid_t;
#endif