OLD | NEW |
---|---|
1 #!/usr/bin/python | 1 #!/usr/bin/python |
2 # Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 """ | 6 """ |
7 cr_cronet.py - cr - like helper tool for cronet developers | 7 cr_cronet.py - cr - like helper tool for cronet developers |
8 """ | 8 """ |
9 | 9 |
10 import argparse | 10 import argparse |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
60 'stack', | 60 'stack', |
61 'debug', | 61 'debug', |
62 'build-debug']) | 62 'build-debug']) |
63 parser.add_argument('-r', '--release', action='store_true', | 63 parser.add_argument('-r', '--release', action='store_true', |
64 help='use release configuration') | 64 help='use release configuration') |
65 | 65 |
66 options, extra_options_list = parser.parse_known_args() | 66 options, extra_options_list = parser.parse_known_args() |
67 print options | 67 print options |
68 print extra_options_list | 68 print extra_options_list |
69 gyp_defines = 'GYP_DEFINES="OS=android enable_websockets=0 '+ \ | 69 gyp_defines = 'GYP_DEFINES="OS=android enable_websockets=0 '+ \ |
70 'disable_file_support=1 disable_ftp_support=1" ' | 70 'disable_file_support=1 disable_ftp_support=1 '+ \ |
71 'enable_bidirectional_stream=1"' | |
pauljensen
2016/01/04 19:56:01
hmm so buildbots won't be building this I guess?
mef
2016/01/04 22:27:08
Chrome build bots won't be building this as Chrome
| |
71 out_dir = 'out/Debug' | 72 out_dir = 'out/Debug' |
72 release_arg = '' | 73 release_arg = '' |
73 extra_options = ' '.join(extra_options_list) | 74 extra_options = ' '.join(extra_options_list) |
74 if options.release: | 75 if options.release: |
75 out_dir = 'out/Release' | 76 out_dir = 'out/Release' |
76 release_arg = ' --release' | 77 release_arg = ' --release' |
77 | 78 |
78 if (options.command=='gyp'): | 79 if (options.command=='gyp'): |
79 return run (gyp_defines + ' gclient runhooks') | 80 return run (gyp_defines + ' gclient runhooks') |
80 if (options.command=='sync'): | 81 if (options.command=='sync'): |
(...skipping 15 matching lines...) Expand all Loading... | |
96 return install(release_arg) or debug(extra_options) | 97 return install(release_arg) or debug(extra_options) |
97 if (options.command=='build-debug'): | 98 if (options.command=='build-debug'): |
98 return build(out_dir) or install(release_arg) or debug(extra_options) | 99 return build(out_dir) or install(release_arg) or debug(extra_options) |
99 | 100 |
100 parser.print_help() | 101 parser.print_help() |
101 return 1 | 102 return 1 |
102 | 103 |
103 | 104 |
104 if __name__ == '__main__': | 105 if __name__ == '__main__': |
105 sys.exit(main()) | 106 sys.exit(main()) |
OLD | NEW |