From a65abf9d3a7d08376dba7b8fba9b87e12f998162 Mon Sep 17 00:00:00 2001 From: "michaelbai@google.com" Date: Mon, 10 Feb 2014 19:26:26 +0000 Subject: [PATCH] Revert "Use libvpx's obj_int_extract and unpack_lib_posix to generate offset header file." This reverts commit 7686f0ddda717a9e776be0e219f039f68a10f9ed. BUG= TBR=andrew@webrtc.org, fischman@webrtc.org, Review URL: https://webrtc-codereview.appspot.com/8369004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@5520 4adac7df-926f-26a2-2b94-8c16560cd09d --- webrtc/build/common.gypi | 5 +- webrtc/build/generate_asm_header.gypi | 79 +++++++++++++++++++ webrtc/build/generate_asm_header.py | 74 +++++++++++++++++ .../audio_processing/audio_processing.gypi | 22 ++++-- .../gen_core_neon_offsets.gyp | 45 ----------- .../gen_core_neon_offsets_chromium.gyp | 45 ----------- .../lib_core_neon_offsets.gypi | 51 ------------ 7 files changed, 171 insertions(+), 150 deletions(-) create mode 100644 webrtc/build/generate_asm_header.gypi create mode 100644 webrtc/build/generate_asm_header.py delete mode 100644 webrtc/modules/audio_processing/gen_core_neon_offsets.gyp delete mode 100644 webrtc/modules/audio_processing/gen_core_neon_offsets_chromium.gyp delete mode 100644 webrtc/modules/audio_processing/lib_core_neon_offsets.gypi diff --git a/webrtc/build/common.gypi b/webrtc/build/common.gypi index d8b958aac..e4a4b09bc 100644 --- a/webrtc/build/common.gypi +++ b/webrtc/build/common.gypi @@ -25,13 +25,11 @@ 'webrtc_root%': '<(DEPTH)/third_party/webrtc', 'apk_tests_path%': '<(DEPTH)/third_party/webrtc/build/apk_tests.gyp', 'modules_java_gyp_path%': '<(DEPTH)/third_party/webrtc/modules/modules_java_chromium.gyp', - 'gen_core_neon_offsets_gyp%': '<(DEPTH)/third_party/webrtc/modules/audio_processing/gen_core_neon_offsets_chromium.gyp', }, { 'build_with_libjingle%': 0, 'webrtc_root%': '<(DEPTH)/webrtc', 'apk_tests_path%': '<(DEPTH)/webrtc/build/apk_test_noop.gyp', 'modules_java_gyp_path%': '<(DEPTH)/webrtc/modules/modules_java.gyp', - 'gen_core_neon_offsets_gyp%':'<(DEPTH)/webrtc/modules/audio_processing/gen_core_neon_offsets.gyp', }], ], }, @@ -40,7 +38,7 @@ 'webrtc_root%': '<(webrtc_root)', 'apk_tests_path%': '<(apk_tests_path)', 'modules_java_gyp_path%': '<(modules_java_gyp_path)', - 'gen_core_neon_offsets_gyp%': '<(gen_core_neon_offsets_gyp)', + 'webrtc_vp8_dir%': '<(webrtc_root)/modules/video_coding/codecs/vp8', 'rbe_components_path%': '<(webrtc_root)/modules/remote_bitrate_estimator', 'include_opus%': 1, @@ -50,7 +48,6 @@ 'webrtc_root%': '<(webrtc_root)', 'apk_tests_path%': '<(apk_tests_path)', 'modules_java_gyp_path%': '<(modules_java_gyp_path)', - 'gen_core_neon_offsets_gyp%': '<(gen_core_neon_offsets_gyp)', 'webrtc_vp8_dir%': '<(webrtc_vp8_dir)', 'include_opus%': '<(include_opus)', 'rbe_components_path%': '<(rbe_components_path)', diff --git a/webrtc/build/generate_asm_header.gypi b/webrtc/build/generate_asm_header.gypi new file mode 100644 index 000000000..4600bb19a --- /dev/null +++ b/webrtc/build/generate_asm_header.gypi @@ -0,0 +1,79 @@ +# Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. +# +# Use of this source code is governed by a BSD-style license +# that can be found in the LICENSE file in the root of the source +# tree. An additional intellectual property rights grant can be found +# in the file PATENTS. All contributing project authors may +# be found in the AUTHORS file in the root of the source tree. + +# This file is meant to be included into a target to provide an action +# to generate C header files. These headers include definitions +# that can be used in ARM assembly files. +# +# To use this, create a gyp target with the following form: +# { +# 'target_name': 'my_asm_headers_lib', +# 'type': 'static_library', +# 'sources': [ +# 'foo.c', +# 'bar.c', +# ], +# 'includes': ['path/to/this/gypi/file'], +# } +# +# The headers are guaranteed to be generated before any +# source files, even within this target, are compiled. +# +# The 'asm_header_dir' variable specifies the path suffix that output +# files are generated under. + +# TODO(kma): port this block from Android into other build systems. +{ + 'variables': { + 'out_dir': '<(SHARED_INTERMEDIATE_DIR)/<(asm_header_dir)', + 'process_outputs_as_sources': 1, + 'conditions': [ + # We only support Android and iOS. + ['OS=="android"', { + 'compiler_to_use': + '