Lines Matching refs:options
1258 options, args = parser.parse_args(argv)
1263 if options.generate_markdown_format_doc:
1269 if options.fail:
1270 parser.error('\n'.join(action_helpers.parse_gn_list(options.fail)))
1290 required_options = required_options_map.get(options.type)
1292 raise Exception('Unknown type: <%s>' % options.type)
1294 build_utils.CheckOptions(options, parser, required_options)
1296 if options.type != 'android_app_bundle_module':
1297 if options.apk_proto_resources:
1300 if options.module_pathmap_path:
1303 if options.base_allowlist_rtxt_path:
1306 if options.module_name:
1310 is_apk_or_module_target = options.type in ('android_apk',
1314 if options.library_always_compress:
1319 if options.device_jar_path and not options.dex_path:
1321 if any(getattr(options, x) for x in lib_options):
1323 if not getattr(options, attr):
1326 if options.requires_android and not options.supports_android:
1330 is_java_target = options.type in ('java_binary', 'robolectric_binary',
1336 deps_configs_paths = action_helpers.parse_gn_list(options.deps_configs)
1338 options.public_deps_configs)
1341 options.type,
1342 recursive_resource_deps=options.recursive_resource_deps)
1343 public_deps = _DepsFromPaths(public_deps_configs_paths, options.type)
1345 options.annotation_processor_configs or ''),
1346 options.type,
1351 if options.recursive_resource_deps:
1364 if options.type == 'java_library':
1374 if options.type == 'android_resources' and options.recursive_resource_deps:
1382 if options.base_module_build_config:
1384 options.base_module_build_config)
1386 if options.parent_module_build_config:
1388 options.parent_module_build_config)
1394 'name': os.path.basename(options.build_config),
1395 'path': options.build_config,
1396 'type': options.type,
1397 'gn_target': options.gn_target,
1398 'chromium_code': not options.non_chromium_code,
1424 if options.type == 'android_apk' and options.tested_apk_config:
1425 tested_apk_deps = Deps([options.tested_apk_config])
1429 if options.type == 'android_app_bundle_module':
1430 deps_info['module_name'] = options.module_name
1433 if options.type == 'java_library':
1434 deps_info['is_prebuilt'] = bool(options.is_prebuilt)
1435 deps_info['gradle_treat_as_prebuilt'] = options.gradle_treat_as_prebuilt
1437 if options.preferred_dep:
1438 deps_info['preferred_dep'] = bool(options.preferred_dep)
1440 if options.android_manifest:
1441 deps_info['android_manifest'] = options.android_manifest
1443 if options.merged_android_manifest:
1444 deps_info['merged_android_manifest'] = options.merged_android_manifest
1446 if options.bundled_srcjars:
1448 options.bundled_srcjars)
1450 if options.target_sources_file:
1451 deps_info['target_sources_file'] = options.target_sources_file
1454 if options.main_class:
1455 deps_info['main_class'] = options.main_class
1473 if options.r_text_path:
1474 deps_info['r_text_path'] = options.r_text_path
1479 if is_apk_or_module_target or options.type in ('group', 'java_library',
1486 if options.target_sources_file:
1487 all_target_sources.append(options.target_sources_file)
1489 if is_apk_or_module_target or options.type in ('group', 'java_library',
1491 if options.apk_proto_resources:
1492 deps_info['proto_resources_path'] = options.apk_proto_resources
1494 deps_info['version_name'] = options.version_name
1495 deps_info['version_code'] = options.version_code
1496 if options.module_pathmap_path:
1497 deps_info['module_pathmap_path'] = options.module_pathmap_path
1504 if options.base_allowlist_rtxt_path:
1505 deps_info['base_allowlist_rtxt_path'] = options.base_allowlist_rtxt_path
1512 deps_info['requires_android'] = bool(options.requires_android)
1513 deps_info['supports_android'] = bool(options.supports_android)
1518 if not options.bypass_platform_checks and not options.is_robolectric:
1524 if deps_require_android and not options.requires_android:
1528 if deps_not_support_android and options.supports_android:
1532 if is_apk_or_module_target or options.type == 'dist_jar':
1538 if options.aar_path:
1539 deps_info['aar_path'] = options.aar_path
1540 if options.unprocessed_jar_path:
1541 deps_info['unprocessed_jar_path'] = options.unprocessed_jar_path
1542 deps_info['interface_jar_path'] = options.interface_jar_path
1543 if options.device_jar_path:
1544 deps_info['device_jar_path'] = options.device_jar_path
1545 if options.host_jar_path:
1546 deps_info['host_jar_path'] = options.host_jar_path
1547 if options.dex_path:
1548 deps_info['dex_path'] = options.dex_path
1550 all_dex_files.append(options.dex_path)
1551 if options.low_classpath_priority:
1553 if options.type == 'android_apk':
1554 deps_info['apk_path'] = options.apk_path
1555 deps_info['incremental_apk_path'] = options.incremental_apk_path
1557 options.incremental_install_json_path)
1559 if options.type == 'android_assets':
1561 if options.asset_renaming_sources:
1563 action_helpers.parse_gn_list(options.asset_renaming_sources))
1564 if options.asset_sources:
1566 action_helpers.parse_gn_list(options.asset_sources))
1571 if options.asset_renaming_destinations:
1573 options.asset_renaming_destinations))
1574 if options.disable_asset_compression:
1576 if options.treat_as_locale_paks:
1579 if options.type == 'android_resources':
1580 deps_info['resources_zip'] = options.resources_zip
1581 if options.resource_overlay:
1583 if options.srcjar:
1584 deps_info['srcjar'] = options.srcjar
1585 if options.android_manifest:
1586 manifest = AndroidManifest(options.android_manifest)
1588 if options.package_name:
1589 deps_info['package_name'] = options.package_name
1591 if options.res_sources_path:
1592 deps_info['res_sources_path'] = options.res_sources_path
1594 if (options.requires_android
1595 and options.type == 'java_library') or options.is_robolectric:
1596 if options.package_name:
1597 deps_info['package_name'] = options.package_name
1599 if options.type in ('android_resources', 'android_apk', 'robolectric_binary',
1613 if options.type != 'android_resources':
1617 if options.package_name:
1618 extra_package_names += [options.package_name]
1628 if options.type != 'java_library':
1632 elif options.recursive_resource_deps:
1641 if options.type in ('dist_aar', 'java_library'):
1647 if options.type == 'android_apk' and options.tested_apk_config:
1656 if options.res_size_info:
1657 config['deps_info']['res_size_info'] = options.res_size_info
1669 options.extra_classpath_jars)
1675 options.mergeable_android_manifests)
1681 proguard_configs = action_helpers.parse_gn_list(options.proguard_configs)
1738 if options.extra_classpath_jars:
1744 if is_java_target or options.type == 'android_app_bundle':
1747 if is_java_target and options.device_jar_path:
1748 device_classpath.append(options.device_jar_path)
1752 if options.type == 'android_app_bundle':
1757 if options.type in ('dist_jar', 'java_binary', 'robolectric_binary'):
1760 if options.host_jar_path:
1761 host_classpath.append(options.host_jar_path)
1772 if options.type in ('android_app_bundle_module', 'android_apk'):
1780 if options.target_sources_file:
1781 lint_sources.add(options.target_sources_file)
1782 if options.bundled_srcjars:
1792 if options.res_sources_path:
1793 lint_resource_sources.add(options.res_sources_path)
1794 if options.resources_zip:
1795 lint_resource_zips.add(options.resources_zip)
1812 if options.type == 'android_apk':
1813 assert options.android_manifest, 'Android APKs must define a manifest'
1814 deps_info['lint_android_manifest'] = options.android_manifest
1816 if options.type == 'android_app_bundle':
1818 options.module_build_configs)
1865 _DedupFeatureModuleSharedCode(options.uses_split, modules,
1868 if is_apk_or_module_target or options.type in ('group', 'java_library',
1880 if options.type in ('android_apk', 'dist_aar',
1885 if options.type == 'android_app_bundle':
1888 if options.type == 'android_app_bundle':
1894 if options.type == 'android_app_bundle':
1909 deps_info['proguard_enabled'] = bool(options.proguard_enabled)
1911 if options.proguard_mapping_path:
1912 deps_info['proguard_mapping_path'] = options.proguard_mapping_path
1929 if options.type == 'android_apk' and options.tested_apk_config:
1931 assert options.proguard_enabled, ('proguard must be enabled for '
1938 tested_apk_config = GetDepConfig(options.tested_apk_config)
1941 elif options.proguard_enabled:
1971 if options.type in ('android_apk', 'dist_aar', 'dist_jar',
1977 if options.final_dex_path:
1978 config['final_dex'] = {'path': options.final_dex_path}
1979 if is_apk_or_module_target or options.type == 'dist_jar':
2001 elif options.type == 'android_app_bundle':
2015 if options.type in ('android_apk', 'android_app_bundle',
2018 if options.trace_events_jar_dir:
2025 rewritten_jar_path = os.path.join(options.trace_events_jar_dir,
2032 if options.tested_apk_config:
2035 if options.type in ('android_apk', 'dist_jar'):
2037 if options.interface_jar_path:
2038 all_interface_jars.append(options.interface_jar_path)
2046 manifest = AndroidManifest(options.android_manifest)
2048 if not options.tested_apk_config and manifest.GetInstrumentationElements():
2054 if options.shared_libraries_runtime_deps:
2056 options.shared_libraries_runtime_deps)
2058 all_inputs.append(options.shared_libraries_runtime_deps)
2061 if options.secondary_abi_shared_libraries_runtime_deps:
2063 options.secondary_abi_shared_libraries_runtime_deps)
2077 all_inputs.append(options.secondary_abi_shared_libraries_runtime_deps)
2080 options.native_lib_placeholders)
2084 options.secondary_native_lib_placeholders)
2087 loadable_modules = action_helpers.parse_gn_list(options.loadable_modules)
2090 options.secondary_abi_loadable_modules)
2105 options.library_always_compress,
2115 if options.tested_apk_config:
2124 if is_apk_or_module_target or options.type == 'robolectric_binary':
2151 if options.java_resources_jar_path:
2152 deps_info['java_resources_jar'] = options.java_resources_jar_path
2187 if options.tested_apk_config:
2201 build_utils.WriteJson(config, options.build_config, only_if_changed=True)
2203 if options.depfile:
2204 action_helpers.write_depfile(options.depfile, options.build_config,
2207 if options.store_deps_for_debugging_to:
2208 GetDepConfig(options.build_config) # Add it to cache.
2209 _CopyBuildConfigsForDebugging(options.store_deps_for_debugging_to)