Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(507)

Unified Diff: unpack_lib_posix.gypi

Issue 130563008: Refactoring unpack_lib_posix and obj_int_extract. (Closed) Base URL: http://src.chromium.org/svn/trunk/deps/third_party/libvpx
Patch Set: remove obj_int_extract.c Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« obj_int_extract.gypi ('K') | « obj_int_extract.gypi ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: unpack_lib_posix.gypi
diff --git a/unpack_lib_posix.gypi b/unpack_lib_posix.gypi
new file mode 100644
index 0000000000000000000000000000000000000000..06088b19f879b144941bf1c0269491c44f3740c3
--- /dev/null
+++ b/unpack_lib_posix.gypi
@@ -0,0 +1,45 @@
+# Copyright 2014 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+# This action takes archived .a file and unpack it unto .o files.
Tom Finegan 2014/01/27 21:56:48 s/archived .a/an archive (.a)/ s/unpack/unpacks/ s
michaelbai 2014/01/27 22:46:35 Done.
+# input gyp variables are:
Tom Finegan 2014/01/27 21:56:48 Optional or required?
michaelbai 2014/01/27 22:46:35 Done.
+# unpack_lib_output_dir, the output directory of extrated object file
Tom Finegan 2014/01/27 21:56:48 Ditto on variable name indent comment from last fi
michaelbai 2014/01/27 22:46:35 Done.
+# unpack_lib_name, the object file to be extracted.
+# unpack_lib_search_path_list, a list of paths to search for the library.
+# it must be ['-a', 'path_name1', '-a', 'path_name2'...]
+#
+# For example:
+# 'variables': {
+# 'unpack_lib_search_path_list': [
+# '-a', '/a/lib.a',
+# '-a', 'b/lib.a',
+# ],
+# 'unpack_lib_output_dir':'ouput',
+# 'unpack_lib_name':'offsets.o'
+# },
+# 'includes': ['unpack_lib_posix.gypi'],
+#
+# It unpacks the first existing library in 'unpack_lib_search_path_list', and
+# extracts 'offsets.o' to 'output' directory.
+
+{
+ 'actions': [
+ {
+ 'action_name': 'unpack_lib_posix',
+ 'inputs': [
+ 'unpack_lib_posix.sh',
+ ],
+ 'outputs': [
+ '<(unpack_lib_output_dir)/<(unpack_lib_name)',
+ ],
+ 'action': [
+ '<(DEPTH)/third_party/libvpx/unpack_lib_posix.sh',
+ '-d', '<(unpack_lib_output_dir)',
+ '-f', '<(unpack_lib_name)',
+ '<@(unpack_lib_search_path_list)',
+ ],
+ 'process_output_as_sources': 1,
+ },
+ ],
+}
« obj_int_extract.gypi ('K') | « obj_int_extract.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698