arm64 iOS build.

Allows successful build of arm64 libraries using
GYP_DEFINES="OS=ios target_arch=arm64 target_subarch=arm64".
Note that not all libraries will be NEON optimized (eg common_audio),
however most importantly libvpx will be. WEBRTC_ARCH_ARM needs to be
defined so that libvpx doesn't post-process, which is significantly
detrimental to performance.

BUG=3898
R=kjellander@webrtc.org, pthatcher@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/26959004

git-svn-id: http://webrtc.googlecode.com/svn/trunk@7573 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
tkchin@webrtc.org 2014-10-31 00:14:39 +00:00
parent 50ca986bc1
commit 14146e40aa
3 changed files with 10 additions and 1 deletions
talk/media/base
webrtc

View File

@ -971,7 +971,7 @@ struct BandwidthEstimationInfo {
// StatsOptions::include_received_propagation_stats is true. // StatsOptions::include_received_propagation_stats is true.
int total_received_propagation_delta_ms; int total_received_propagation_delta_ms;
std::vector<int> recent_received_propagation_delta_ms; std::vector<int> recent_received_propagation_delta_ms;
std::vector<int64> recent_received_packet_group_arrival_time_ms; std::vector<int64_t> recent_received_packet_group_arrival_time_ms;
}; };
struct VoiceMediaInfo { struct VoiceMediaInfo {

View File

@ -120,6 +120,10 @@ config("common_config") {
} }
} }
if (cpu_arch == "arm64") {
defines += [ "WEBRTC_ARCH_ARM" ]
}
if (cpu_arch == "arm") { if (cpu_arch == "arm") {
defines += [ "WEBRTC_ARCH_ARM" ] defines += [ "WEBRTC_ARCH_ARM" ]
if (arm_version == 7) { if (arm_version == 7) {

View File

@ -250,6 +250,11 @@
}], }],
], ],
}], }],
['target_arch=="arm64"', {
'defines': [
'WEBRTC_ARCH_ARM',
],
}],
['target_arch=="arm" or target_arch=="armv7"', { ['target_arch=="arm" or target_arch=="armv7"', {
'defines': [ 'defines': [
'WEBRTC_ARCH_ARM', 'WEBRTC_ARCH_ARM',