Merge "Convert update_host_simulator to Android.bp"
am: d3e4ee7b16
Change-Id: Ida439dc9fde87cdad2ac1e43e25668f871d6ece4
This commit is contained in:
+37
-6
@@ -13,11 +13,7 @@
|
|||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
cc_defaults {
|
cc_defaults {
|
||||||
name: "libupdater_defaults",
|
name: "libupdater_static_libs",
|
||||||
|
|
||||||
defaults: [
|
|
||||||
"recovery_defaults",
|
|
||||||
],
|
|
||||||
|
|
||||||
static_libs: [
|
static_libs: [
|
||||||
"libapplypatch",
|
"libapplypatch",
|
||||||
@@ -45,6 +41,15 @@ cc_defaults {
|
|||||||
"libcutils",
|
"libcutils",
|
||||||
"libutils",
|
"libutils",
|
||||||
],
|
],
|
||||||
|
}
|
||||||
|
|
||||||
|
cc_defaults {
|
||||||
|
name: "libupdater_defaults",
|
||||||
|
|
||||||
|
defaults: [
|
||||||
|
"recovery_defaults",
|
||||||
|
"libupdater_static_libs",
|
||||||
|
],
|
||||||
|
|
||||||
shared_libs: [
|
shared_libs: [
|
||||||
"libcrypto",
|
"libcrypto",
|
||||||
@@ -64,7 +69,7 @@ cc_defaults {
|
|||||||
"libext2_uuid",
|
"libext2_uuid",
|
||||||
"libext2_e2p",
|
"libext2_e2p",
|
||||||
"libext2fs",
|
"libext2fs",
|
||||||
]
|
],
|
||||||
}
|
}
|
||||||
|
|
||||||
cc_library_static {
|
cc_library_static {
|
||||||
@@ -155,3 +160,29 @@ cc_library_host_static {
|
|||||||
"include",
|
"include",
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
cc_binary_host {
|
||||||
|
name: "update_host_simulator",
|
||||||
|
defaults: ["libupdater_static_libs"],
|
||||||
|
|
||||||
|
srcs: ["update_simulator_main.cpp"],
|
||||||
|
|
||||||
|
cflags: [
|
||||||
|
"-Wall",
|
||||||
|
"-Werror",
|
||||||
|
],
|
||||||
|
|
||||||
|
static_libs: [
|
||||||
|
"libupdater_host",
|
||||||
|
"libupdater_core",
|
||||||
|
"libcrypto_static",
|
||||||
|
"libfstab",
|
||||||
|
"libc++fs",
|
||||||
|
],
|
||||||
|
|
||||||
|
target: {
|
||||||
|
darwin: {
|
||||||
|
enabled: false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|||||||
@@ -111,32 +111,3 @@ inc :=
|
|||||||
LOCAL_FORCE_STATIC_EXECUTABLE := true
|
LOCAL_FORCE_STATIC_EXECUTABLE := true
|
||||||
|
|
||||||
include $(BUILD_EXECUTABLE)
|
include $(BUILD_EXECUTABLE)
|
||||||
|
|
||||||
# TODO(xunchang) move to bp file
|
|
||||||
# update_host_simulator (host executable)
|
|
||||||
# ===============================
|
|
||||||
include $(CLEAR_VARS)
|
|
||||||
|
|
||||||
LOCAL_MODULE := update_host_simulator
|
|
||||||
LOCAL_MODULE_HOST_OS := linux
|
|
||||||
|
|
||||||
LOCAL_SRC_FILES := \
|
|
||||||
update_simulator_main.cpp
|
|
||||||
|
|
||||||
LOCAL_C_INCLUDES := \
|
|
||||||
$(LOCAL_PATH)/include
|
|
||||||
|
|
||||||
LOCAL_CFLAGS := \
|
|
||||||
-Wall \
|
|
||||||
-Werror
|
|
||||||
|
|
||||||
LOCAL_STATIC_LIBRARIES := \
|
|
||||||
libupdater_host \
|
|
||||||
libupdater_core \
|
|
||||||
$(updater_common_static_libraries) \
|
|
||||||
libfstab \
|
|
||||||
libc++fs
|
|
||||||
|
|
||||||
LOCAL_MODULE_CLASS := EXECUTABLES
|
|
||||||
|
|
||||||
include $(BUILD_HOST_EXECUTABLE)
|
|
||||||
|
|||||||
Reference in New Issue
Block a user