| OLD | NEW | 
|   1 # Copyright 2013 The Chromium Authors. All rights reserved. |   1 # Copyright 2013 The Chromium Authors. All rights reserved. | 
|   2 # Use of this source code is governed by a BSD-style license that can be |   2 # Use of this source code is governed by a BSD-style license that can be | 
|   3 # found in the LICENSE file. |   3 # found in the LICENSE file. | 
|   4  |   4  | 
|   5 from RECIPE_MODULES.chromium import CONFIG_CTX |   5 from RECIPE_MODULES.chromium import CONFIG_CTX | 
|   6  |   6  | 
|   7 @CONFIG_CTX(includes=['ninja']) |   7 @CONFIG_CTX(includes=['ninja']) | 
|   8 def android_defaults(c): |   8 def android_defaults(c): | 
|   9   c.compile_py.default_targets=['All'] |   9   c.compile_py.default_targets=['All'] | 
|  10   c.gyp_env.GYP_DEFINES['fastbuild'] = 1 |  10   c.gyp_env.GYP_CROSSCOMPILE = 1 | 
 |  11   c.gyp_env.GYP_GENERATORS.add('ninja') | 
 |  12   c.gyp_env.GYP_GENERATOR_FLAGS['default_target'] = 'All' | 
 |  13   gyp_defs = c.gyp_env.GYP_DEFINES | 
 |  14   gyp_defs['fastbuild'] = 1 | 
 |  15   gyp_defs['OS'] = 'android' | 
 |  16   gyp_defs['host_os'] = 'linux' | 
 |  17   gyp_defs['gcc_version'] = 46 | 
 |  18   gyp_defs['order_text_section'] = ['orderfiles', 'orderfile.out'] | 
 |  19   gyp_defs['target_arch'] = 'arm' | 
 |  20    | 
|  11  |  21  | 
|  12 @CONFIG_CTX(includes=['android_defaults', 'default_compiler', 'goma']) |  22 @CONFIG_CTX(includes=['android_defaults', 'default_compiler', 'goma']) | 
|  13 def main_builder(c): |  23 def main_builder(c): | 
|  14   pass |  24   pass | 
|  15  |  25  | 
|  16 @CONFIG_CTX(includes=['android_defaults', 'clang', 'goma']) |  26 @CONFIG_CTX(includes=['android_defaults', 'clang', 'goma']) | 
|  17 def clang_builder(c): |  27 def clang_builder(c): | 
|  18   pass |  28   pass | 
|  19  |  29  | 
|  20 @CONFIG_CTX(includes=['main_builder']) |  30 @CONFIG_CTX(includes=['main_builder']) | 
|  21 def component_builder(c): |  31 def component_builder(c): | 
|  22   c.gyp_env.GYP_DEFINES['component'] = 'shared_library' |  32   c.gyp_env.GYP_DEFINES['component'] = 'shared_library' | 
|  23  |  33  | 
|  24 @CONFIG_CTX(includes=['main_builder']) |  34 @CONFIG_CTX(includes=['main_builder']) | 
|  25 def x86_builder(c): |  35 def x86_builder(c): | 
|  26   pass |  36   pass | 
|  27  |  37  | 
|  28 @CONFIG_CTX(includes=['main_builder']) |  38 @CONFIG_CTX(includes=['main_builder']) | 
|  29 def klp_builder(c): |  39 def klp_builder(c): | 
|  30   pass |  40   pass | 
|  31  |  41  | 
|  32 @CONFIG_CTX(includes=['main_builder']) |  42 @CONFIG_CTX(includes=['main_builder']) | 
|  33 def try_builder(c): |  43 def try_builder(c): | 
|  34   pass |  44   pass | 
| OLD | NEW |