Exemple #1
0
def generate_var_dict(target_dir, target_file, skia_arch_type, have_neon,
                      have_mips_dspr2, have_mips_dspr1, gyp_source_dir):
  """Create a VarsDict for a particular arch type.

  Each paramater is passed directly to android_framework_gyp.main().

  Args:
    target_dir: Directory containing gyp files.
    target_file: Target gyp file.
    skia_arch_type: Target architecture.
    have_neon: Whether the target should build for neon.
    have_mips_dspr2: Whether the target should build for mips_dspr2.
    have_mips_dspr1: Whether the target should build for mips_dspr1.
    gyp_source_dir: Directory for gyp source.
  Returns:
    A VarsDict containing the variable definitions determined by gyp.
  """
  result_file = android_framework_gyp.main(target_dir, target_file,
                                           skia_arch_type, have_neon,
                                           have_mips_dspr2, have_mips_dspr1,
                                           gyp_source_dir)
  var_dict = vars_dict_lib.VarsDict()
  gypd_parser.parse_gypd(var_dict, result_file, '.')
  android_framework_gyp.clean_gypd_files(target_dir)
  print '.',
  return var_dict
Exemple #2
0
def generate_var_dict(target_dir, target_file, skia_arch_type, have_neon):
    """Create a VarsDict for a particular arch type.

  Each paramater is passed directly to android_framework_gyp.main().

  Args:
    target_dir: Directory containing gyp files.
    target_file: Target gyp file.
    skia_arch_type: Target architecture.
    have_neon: Whether the target should build for neon.
  Returns:
    A VarsDict containing the variable definitions determined by gyp.
  """
    result_file = android_framework_gyp.main(target_dir, target_file,
                                             skia_arch_type, have_neon)
    var_dict = vars_dict_lib.VarsDict()
    gypd_parser.parse_gypd(var_dict, result_file, '.')
    android_framework_gyp.clean_gypd_files(target_dir)
    print '.',
    return var_dict