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

Side by Side Diff: build/android/gyp/create_placeholder_files.py

Issue 580903008: [Android] Create native lib placeholder files (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: make stamp dependency conditional, fix build error Created 6 years, 3 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 unified diff | Download patch
« no previous file with comments | « no previous file | build/java_apk.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #!/usr/bin/env python
2 # Copyright 2014 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
5
6 """Create placeholder files.
7 """
8
9 import optparse
10 import os
11 import sys
12
13 from util import build_utils
14
15 def main():
16 parser = optparse.OptionParser()
17 parser.add_option(
18 '--dest-lib-dir',
19 help='Destination directory to have placeholder files.')
20 parser.add_option(
21 '--stamp',
22 help='Path to touch on success')
23
24 options, args = parser.parse_args()
25
26 for name in args:
27 target_path = os.path.join(options.dest_lib_dir, name)
28 build_utils.Touch(target_path)
29
30 if options.stamp:
31 build_utils.Touch(options.stamp)
32
33 if __name__ == '__main__':
34 sys.exit(main())
35
OLDNEW
« no previous file with comments | « no previous file | build/java_apk.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698