Update build configuration to support iOS targets

Review URL: https://codereview.chromium.org/1130153009

Cr-Original-Commit-Position: refs/heads/master@{#330643}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 4d7a267e2f8b7a62963f4632bac8999df91627b6
This commit is contained in:
chinmaygarde 2015-05-19 15:38:55 -07:00 коммит произвёл Commit bot
Родитель 6a91c80286
Коммит 8d61bc3b20
4 изменённых файлов: 20 добавлений и 9 удалений

Просмотреть файл

@ -3,7 +3,8 @@
# found in the LICENSE file.
# TODO(GYP): Make tcmalloc work on win.
if (is_android || current_cpu == "mipsel" || is_mac || is_asan || is_win) {
if (is_android || current_cpu == "mipsel" || is_mac || is_ios || is_asan ||
is_win) {
_default_allocator = "none"
} else {
_default_allocator = "tcmalloc"

Просмотреть файл

@ -28,6 +28,11 @@ if (current_cpu == "arm") {
arm_use_neon = false
arm_optionally_use_neon = true
}
if (is_ios) {
arm_use_neon = false
arm_optionally_use_neon = false
}
}
assert(arm_float_abi == "" || arm_float_abi == "hard" ||

Просмотреть файл

@ -125,7 +125,7 @@ config("compiler") {
}
# Linker warnings.
if (!(is_chromeos && current_cpu == "arm") && !is_mac) {
if (!(is_chromeos && current_cpu == "arm") && !is_mac && !is_ios) {
# TODO(jochen): Enable this on chromeos on arm. http://crbug.com/356580
ldflags += [ "-Wl,--fatal-warnings" ]
}
@ -186,6 +186,11 @@ config("compiler") {
"-arch",
"i386",
]
} else if (current_cpu == "arm") {
common_mac_flags += [
"-arch",
"armv7",
]
}
cflags += common_mac_flags
@ -493,7 +498,7 @@ config("compiler") {
}
config("compiler_arm_fpu") {
if (current_cpu == "arm") {
if (current_cpu == "arm" && !is_ios) {
cflags = [ "-mfpu=$arm_fpu" ]
}
}

Просмотреть файл

@ -11,12 +11,12 @@ config("sdk") {
sysroot,
]
if (use_ios_simulator) {
common_flags += [ "-mios-simulator-version-min=$ios_deployment_target" ]
} else {
common_flags += [ "-miphoneos-version-min=$ios_deployment_target" ]
}
cflags = common_flags
ldflags = common_flags
if (use_ios_simulator) {
cflags += [ "-mios-simulator-version-min=$ios_deployment_target" ]
} else {
cflags += [ "-miphoneos-version-min=$ios_deployment_target" ]
}
}