OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright 2013 The Chromium Authors. All rights reserved. | 2 # Copyright 2013 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 import os | 6 import os |
7 import sys | 7 import sys |
8 | 8 |
9 import bb_utils | 9 import bb_utils |
10 import bb_annotations | 10 import bb_annotations |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 return parser | 125 return parser |
126 | 126 |
127 | 127 |
128 def main(argv): | 128 def main(argv): |
129 parser = GetHostStepsOptParser() | 129 parser = GetHostStepsOptParser() |
130 options, args = parser.parse_args(argv[1:]) | 130 options, args = parser.parse_args(argv[1:]) |
131 if args: | 131 if args: |
132 return sys.exit('Unused args %s' % args) | 132 return sys.exit('Unused args %s' % args) |
133 | 133 |
134 setattr(options, 'target', options.factory_properties.get('target', 'Debug')) | 134 setattr(options, 'target', options.factory_properties.get('target', 'Debug')) |
| 135 setattr(options, 'extra_src', |
| 136 options.factory_properties.get('extra_src', '')) |
135 | 137 |
136 if options.steps: | 138 if options.steps: |
137 bb_utils.RunSteps(options.steps.split(','), GetHostStepCmds(), options) | 139 bb_utils.RunSteps(options.steps.split(','), GetHostStepCmds(), options) |
138 | 140 |
139 | 141 |
140 if __name__ == '__main__': | 142 if __name__ == '__main__': |
141 sys.exit(main(sys.argv)) | 143 sys.exit(main(sys.argv)) |
OLD | NEW |