forked from openkylin/platform_build
Merge changes Ib37508d4,Ia46ac30e
* changes: Turn off Windows builds during BUILD_HOST_static zipalign: Fix build failure in static_sdk_tools.
This commit is contained in:
commit
dcd46870f2
|
@ -124,11 +124,13 @@ BUILD_OS := $(HOST_OS)
|
||||||
HOST_CROSS_OS :=
|
HOST_CROSS_OS :=
|
||||||
# We can cross-build Windows binaries on Linux
|
# We can cross-build Windows binaries on Linux
|
||||||
ifeq ($(HOST_OS),linux)
|
ifeq ($(HOST_OS),linux)
|
||||||
|
ifeq ($(BUILD_HOST_static),)
|
||||||
HOST_CROSS_OS := windows
|
HOST_CROSS_OS := windows
|
||||||
HOST_CROSS_ARCH := x86
|
HOST_CROSS_ARCH := x86
|
||||||
HOST_CROSS_2ND_ARCH := x86_64
|
HOST_CROSS_2ND_ARCH := x86_64
|
||||||
2ND_HOST_CROSS_IS_64_BIT := true
|
2ND_HOST_CROSS_IS_64_BIT := true
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(HOST_OS),)
|
ifeq ($(HOST_OS),)
|
||||||
$(error Unable to determine HOST_OS from uname -sm: $(UNAME)!)
|
$(error Unable to determine HOST_OS from uname -sm: $(UNAME)!)
|
||||||
|
|
|
@ -15,19 +15,18 @@ cc_binary_host {
|
||||||
|
|
||||||
cflags: ["-Wall", "-Werror"],
|
cflags: ["-Wall", "-Werror"],
|
||||||
|
|
||||||
|
// NOTE: Do not add any shared_libs dependencies because they will break the
|
||||||
|
// static_sdk_tools target.
|
||||||
static_libs: [
|
static_libs: [
|
||||||
"libutils",
|
"libutils",
|
||||||
"libcutils",
|
"libcutils",
|
||||||
"liblog",
|
"liblog",
|
||||||
|
"libziparchive",
|
||||||
|
"libz",
|
||||||
|
"libbase",
|
||||||
"libzopfli",
|
"libzopfli",
|
||||||
],
|
],
|
||||||
|
|
||||||
shared_libs: [
|
|
||||||
"libbase",
|
|
||||||
"libz",
|
|
||||||
"libziparchive"
|
|
||||||
],
|
|
||||||
|
|
||||||
target: {
|
target: {
|
||||||
windows: {
|
windows: {
|
||||||
host_ldlibs: ["-lpthread"],
|
host_ldlibs: ["-lpthread"],
|
||||||
|
|
Loading…
Reference in New Issue