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

Unified Diff: native_client_sdk/src/build_tools/verify_filelist.py

Issue 73083005: [NaCl SDK] Enable linux host build for nacl_io and nacl_io_tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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
Index: native_client_sdk/src/build_tools/verify_filelist.py
diff --git a/native_client_sdk/src/build_tools/verify_filelist.py b/native_client_sdk/src/build_tools/verify_filelist.py
index e6ccbb08af4106ddb2dd0f4e926f5ef3bfcb1285..02e3491f514dc476d2972fe3a81aef079cacdc7e 100755
--- a/native_client_sdk/src/build_tools/verify_filelist.py
+++ b/native_client_sdk/src/build_tools/verify_filelist.py
@@ -8,7 +8,8 @@ import os
import re
import sys
-from build_paths import SDK_SRC_DIR
+import build_version
+from build_paths import SDK_SRC_DIR, SCRIPT_DIR, OUT_DIR
# Add SDK make tools scripts to the python path.
sys.path.append(os.path.join(SDK_SRC_DIR, 'tools'))
@@ -188,14 +189,18 @@ def main(args):
help='Sort the file list in place, rather than verifying the contents.')
options, args = parser.parse_args(args)
+ if not args:
+ args = [os.path.join(SCRIPT_DIR, 'sdk_files.list')]
+
if options.sort:
if not args:
parser.error('Expected rule file.')
SortFile(args[0])
return 0
- if len(args) != 2:
- parser.error('Expected rule file and directory.')
+ if len(args) < 2:
+ version = build_version.ChromeMajorVersion()
+ args.append(os.path.join(OUT_DIR, 'pepper_%s' % version))
rule_path, directory_path = args
if options.platform:
« no previous file with comments | « native_client_sdk/src/build_tools/sdk_files.list ('k') | native_client_sdk/src/libraries/nacl_io/event_emitter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698