Fix twrpTar building

- ifdef around set_metadata
- Set tags as optional

Change-Id: I438e370c3bf6b590dc80ba372724c47cead6cbe5
This commit is contained in:
Ethan Yonker
2014-12-21 21:54:00 -06:00
committed by Dees Troy
parent 0c53203efe
commit 960f030b41
2 changed files with 7 additions and 2 deletions
+5
View File
@@ -44,6 +44,9 @@ extern "C" {
#ifndef BUILD_TWRPTAR_MAIN
#include "data.hpp"
#include "infomanager.hpp"
extern "C" {
#include "set_metadata.h"
}
#endif //ndef BUILD_TWRPTAR_MAIN
using namespace std;
@@ -1243,7 +1246,9 @@ int twrpTar::closeTar() {
LOGERR("Backup file size for '%s' is 0 bytes.\n", tarfn.c_str());
return -1;
}
#ifndef BUILD_TWRPTAR_MAIN
tw_set_default_metadata(tarfn.c_str());
#endif
return 0;
}
+2 -2
View File
@@ -30,7 +30,7 @@ endif
LOCAL_MODULE:= twrpTar_static
LOCAL_FORCE_STATIC_EXECUTABLE := true
LOCAL_MODULE_TAGS:= eng
LOCAL_MODULE_TAGS:= optional
LOCAL_MODULE_CLASS := UTILITY_EXECUTABLES
LOCAL_MODULE_PATH := $(PRODUCT_OUT)/utilities
include $(BUILD_EXECUTABLE)
@@ -65,7 +65,7 @@ else
endif
LOCAL_MODULE:= twrpTar
LOCAL_MODULE_TAGS:= eng
LOCAL_MODULE_TAGS:= optional
LOCAL_MODULE_CLASS := UTILITY_EXECUTABLES
LOCAL_MODULE_PATH := $(PRODUCT_OUT)/utilities
include $(BUILD_EXECUTABLE)