From 82ebb463fde9ae79b525f8aa0888ae3152e682dd Mon Sep 17 00:00:00 2001 From: "michaelbai@google.com" Date: Tue, 11 Feb 2014 04:48:27 +0000 Subject: [PATCH] Use libvpx's obj_int_extract and unpack_lib_posix to generate offset header file. This patch removes generate_asm_header.gypi and uses libvpx's obj_int_extract and unpack_lib_posix to generate offset header files. It make the simliar feature's implementation consistent. R=andrew@webrtc.org, fischman@webrtc.org, fischman@chromium.org BUG=334447 Committed: https://code.google.com/p/webrtc/source/detail?r=5517 Review URL: https://webrtc-codereview.appspot.com/7769006 git-svn-id: http://webrtc.googlecode.com/svn/trunk@5524 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, 150 insertions(+), 171 deletions(-) delete mode 100644 webrtc/build/generate_asm_header.gypi delete mode 100644 webrtc/build/generate_asm_header.py create mode 100644 webrtc/modules/audio_processing/gen_core_neon_offsets.gyp create mode 100644 webrtc/modules/audio_processing/gen_core_neon_offsets_chromium.gyp create mode 100644 webrtc/modules/audio_processing/lib_core_neon_offsets.gypi diff --git a/webrtc/build/common.gypi b/webrtc/build/common.gypi index e4a4b09bc4..d8b958aac1 100644 --- a/webrtc/build/common.gypi +++ b/webrtc/build/common.gypi @@ -25,11 +25,13 @@ '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', }], ], }, @@ -38,7 +40,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, @@ -48,6 +50,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_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 deleted file mode 100644 index 4600bb19a9..0000000000 --- a/webrtc/build/generate_asm_header.gypi +++ /dev/null @@ -1,79 +0,0 @@ -# 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': - '