• Home
  • Raw
  • Download

Lines Matching refs:options

1252   options, args = parser.parse_args(argv)
1257 if options.generate_markdown_format_doc:
1263 if options.fail:
1264 parser.error('\n'.join(action_helpers.parse_gn_list(options.fail)))
1284 required_options = required_options_map.get(options.type)
1286 raise Exception('Unknown type: <%s>' % options.type)
1288 build_utils.CheckOptions(options, parser, required_options)
1290 if options.type != 'android_app_bundle_module':
1291 if options.apk_proto_resources:
1294 if options.module_pathmap_path:
1297 if options.base_allowlist_rtxt_path:
1300 if options.module_name:
1304 is_apk_or_module_target = options.type in ('android_apk',
1308 if options.library_always_compress:
1313 if options.device_jar_path and not options.dex_path:
1315 if any(getattr(options, x) for x in lib_options):
1317 if not getattr(options, attr):
1320 if options.requires_android and not options.supports_android:
1324 is_java_target = options.type in ('java_binary', 'robolectric_binary',
1330 deps_configs_paths = action_helpers.parse_gn_list(options.deps_configs)
1332 options.public_deps_configs)
1335 options.type,
1336 recursive_resource_deps=options.recursive_resource_deps)
1337 public_deps = _DepsFromPaths(public_deps_configs_paths, options.type)
1339 options.annotation_processor_configs or ''),
1340 options.type,
1345 if options.recursive_resource_deps:
1358 if options.type == 'java_library':
1368 if options.type == 'android_resources' and options.recursive_resource_deps:
1376 if options.base_module_build_config:
1378 options.base_module_build_config)
1380 if options.parent_module_build_config:
1382 options.parent_module_build_config)
1388 'name': os.path.basename(options.build_config),
1389 'path': options.build_config,
1390 'type': options.type,
1391 'gn_target': options.gn_target,
1392 'chromium_code': not options.non_chromium_code,
1418 if options.type == 'android_apk' and options.tested_apk_config:
1419 tested_apk_deps = Deps([options.tested_apk_config])
1423 if options.type == 'android_app_bundle_module':
1424 deps_info['module_name'] = options.module_name
1427 if options.type == 'java_library':
1428 deps_info['is_prebuilt'] = bool(options.is_prebuilt)
1429 deps_info['gradle_treat_as_prebuilt'] = options.gradle_treat_as_prebuilt
1431 if options.preferred_dep:
1432 deps_info['preferred_dep'] = bool(options.preferred_dep)
1434 if options.android_manifest:
1435 deps_info['android_manifest'] = options.android_manifest
1437 if options.merged_android_manifest:
1438 deps_info['merged_android_manifest'] = options.merged_android_manifest
1440 if options.bundled_srcjars:
1442 options.bundled_srcjars)
1444 if options.target_sources_file:
1445 deps_info['target_sources_file'] = options.target_sources_file
1448 if options.main_class:
1449 deps_info['main_class'] = options.main_class
1467 if options.r_text_path:
1468 deps_info['r_text_path'] = options.r_text_path
1470 if is_apk_or_module_target or options.type in ('group', 'java_library',
1472 if options.apk_proto_resources:
1473 deps_info['proto_resources_path'] = options.apk_proto_resources
1475 deps_info['version_name'] = options.version_name
1476 deps_info['version_code'] = options.version_code
1477 if options.module_pathmap_path:
1478 deps_info['module_pathmap_path'] = options.module_pathmap_path
1485 if options.base_allowlist_rtxt_path:
1486 deps_info['base_allowlist_rtxt_path'] = options.base_allowlist_rtxt_path
1493 deps_info['requires_android'] = bool(options.requires_android)
1494 deps_info['supports_android'] = bool(options.supports_android)
1499 if not options.bypass_platform_checks and not options.is_robolectric:
1505 if deps_require_android and not options.requires_android:
1509 if deps_not_support_android and options.supports_android:
1513 if is_apk_or_module_target or options.type == 'dist_jar':
1519 if options.aar_path:
1520 deps_info['aar_path'] = options.aar_path
1521 if options.unprocessed_jar_path:
1522 deps_info['unprocessed_jar_path'] = options.unprocessed_jar_path
1523 deps_info['interface_jar_path'] = options.interface_jar_path
1524 if options.device_jar_path:
1525 deps_info['device_jar_path'] = options.device_jar_path
1526 if options.host_jar_path:
1527 deps_info['host_jar_path'] = options.host_jar_path
1528 if options.dex_path:
1529 deps_info['dex_path'] = options.dex_path
1531 all_dex_files.append(options.dex_path)
1532 if options.low_classpath_priority:
1534 if options.type == 'android_apk':
1535 deps_info['apk_path'] = options.apk_path
1536 deps_info['incremental_apk_path'] = options.incremental_apk_path
1538 options.incremental_install_json_path)
1540 if options.type == 'android_assets':
1542 if options.asset_renaming_sources:
1544 action_helpers.parse_gn_list(options.asset_renaming_sources))
1545 if options.asset_sources:
1547 action_helpers.parse_gn_list(options.asset_sources))
1552 if options.asset_renaming_destinations:
1554 options.asset_renaming_destinations))
1555 if options.disable_asset_compression:
1557 if options.treat_as_locale_paks:
1560 if options.type == 'android_resources':
1561 deps_info['resources_zip'] = options.resources_zip
1562 if options.resource_overlay:
1564 if options.srcjar:
1565 deps_info['srcjar'] = options.srcjar
1566 if options.android_manifest:
1567 manifest = AndroidManifest(options.android_manifest)
1569 if options.package_name:
1570 deps_info['package_name'] = options.package_name
1572 if options.res_sources_path:
1573 deps_info['res_sources_path'] = options.res_sources_path
1575 if (options.requires_android
1576 and options.type == 'java_library') or options.is_robolectric:
1577 if options.package_name:
1578 deps_info['package_name'] = options.package_name
1580 if options.type in ('android_resources', 'android_apk', 'robolectric_binary',
1594 if options.type != 'android_resources':
1598 if options.package_name:
1599 extra_package_names += [options.package_name]
1609 if options.type != 'java_library':
1613 elif options.recursive_resource_deps:
1622 if options.type in ('dist_aar', 'java_library'):
1628 if options.type == 'android_apk' and options.tested_apk_config:
1637 if options.res_size_info:
1638 config['deps_info']['res_size_info'] = options.res_size_info
1650 options.extra_classpath_jars)
1656 options.mergeable_android_manifests)
1662 proguard_configs = action_helpers.parse_gn_list(options.proguard_configs)
1719 if options.extra_classpath_jars:
1725 if is_java_target or options.type == 'android_app_bundle':
1728 if is_java_target and options.device_jar_path:
1729 device_classpath.append(options.device_jar_path)
1733 if options.type == 'android_app_bundle':
1738 if options.type in ('dist_jar', 'java_binary', 'robolectric_binary'):
1741 if options.host_jar_path:
1742 host_classpath.append(options.host_jar_path)
1753 if options.type in ('android_app_bundle_module', 'android_apk'):
1761 if options.target_sources_file:
1762 lint_sources.add(options.target_sources_file)
1763 if options.bundled_srcjars:
1773 if options.res_sources_path:
1774 lint_resource_sources.add(options.res_sources_path)
1775 if options.resources_zip:
1776 lint_resource_zips.add(options.resources_zip)
1793 if options.type == 'android_apk':
1794 assert options.android_manifest, 'Android APKs must define a manifest'
1795 deps_info['lint_android_manifest'] = options.android_manifest
1797 if options.type == 'android_app_bundle':
1799 options.module_build_configs)
1843 _DedupFeatureModuleSharedCode(options.uses_split, modules,
1853 if options.type in ('android_apk', 'dist_aar',
1858 if options.type == 'android_app_bundle':
1861 if options.type == 'android_app_bundle':
1867 if options.type == 'android_app_bundle':
1882 deps_info['proguard_enabled'] = bool(options.proguard_enabled)
1884 if options.proguard_mapping_path:
1885 deps_info['proguard_mapping_path'] = options.proguard_mapping_path
1902 if options.type == 'android_apk' and options.tested_apk_config:
1904 assert options.proguard_enabled, ('proguard must be enabled for '
1911 tested_apk_config = GetDepConfig(options.tested_apk_config)
1914 elif options.proguard_enabled:
1944 if options.type in ('android_apk', 'dist_aar', 'dist_jar',
1950 if options.final_dex_path:
1951 config['final_dex'] = {'path': options.final_dex_path}
1952 if is_apk_or_module_target or options.type == 'dist_jar':
1974 elif options.type == 'android_app_bundle':
1988 if options.type in ('android_apk', 'android_app_bundle',
1991 if options.trace_events_jar_dir:
1998 rewritten_jar_path = os.path.join(options.trace_events_jar_dir,
2005 if options.tested_apk_config:
2008 if options.type in ('android_apk', 'dist_jar'):
2010 if options.interface_jar_path:
2011 all_interface_jars.append(options.interface_jar_path)
2019 manifest = AndroidManifest(options.android_manifest)
2021 if not options.tested_apk_config and manifest.GetInstrumentationElements():
2027 if options.shared_libraries_runtime_deps:
2029 options.shared_libraries_runtime_deps)
2031 all_inputs.append(options.shared_libraries_runtime_deps)
2034 if options.secondary_abi_shared_libraries_runtime_deps:
2036 options.secondary_abi_shared_libraries_runtime_deps)
2050 all_inputs.append(options.secondary_abi_shared_libraries_runtime_deps)
2053 options.native_lib_placeholders)
2057 options.secondary_native_lib_placeholders)
2060 loadable_modules = action_helpers.parse_gn_list(options.loadable_modules)
2063 options.secondary_abi_loadable_modules)
2078 options.library_always_compress,
2088 if options.tested_apk_config:
2097 if is_apk_or_module_target or options.type == 'robolectric_binary':
2124 if options.java_resources_jar_path:
2125 deps_info['java_resources_jar'] = options.java_resources_jar_path
2159 if options.tested_apk_config:
2173 build_utils.WriteJson(config, options.build_config, only_if_changed=True)
2175 if options.depfile:
2176 action_helpers.write_depfile(options.depfile, options.build_config,
2179 if options.store_deps_for_debugging_to:
2180 GetDepConfig(options.build_config) # Add it to cache.
2181 _CopyBuildConfigsForDebugging(options.store_deps_for_debugging_to)