• Home
  • Raw
  • Download

Lines Matching +full:jdk11 +full:- +full:build

4 # Use of this source code is governed by a BSD-style license that can be
20 import action_helpers # build_utils adds //build to sys.path.
22 …//chromium.googlesource.com/chromium/src/+/main/build/android/docs/lint.md' # pylint: disable=lin…
27 "Assert", # R8 --force-enable-assertions is used to enable java asserts.
33 "MissingApplicationIcon", # False positive for non-production targets.
37 "StringFormatCount", # Has false-positives.
51 """Returns relative path to top-level src dir."""
83 # Required to make lint-resources.xml be written to a per-target path.
85 main_module.set('partial-results-dir', partials_dir)
102 # non-test files, which lint does not allow:
114 lint = ElementTree.SubElement(main_module, 'lint-checks')
161 uses_sdk = manifest.find('./uses-sdk')
163 uses_sdk = ElementTree.Element('uses-sdk')
180 root, encoding='utf-8')).toprettyxml(indent=' ').encode('utf-8'))
204 # Use per-target cache directory when --cache-dir is not used.
207 # When --create-cache is used, ninja will create this directory because the
235 '-cp',
237 'org.chromium.build.CustomLint',
238 '--sdk-home',
240 '--jdk-home',
242 '--path-variables',
244 '--offline',
245 '--quiet', # Silences lint's "." progress updates.
246 '--stacktrace', # Prints full stacktraces for internal lint errors.
247 '--disable',
252 manifest_path = os.path.join(build_utils.DIR_SOURCE_ROOT, 'build',
260 cmd.extend(['--config', generated_config_path])
326 cmd += ['--project', project_xml_path]
328 # This filter is necessary for JDK11.
358 end = time.time() - start
368 print('- For more help with lint in Chrome:', _LINT_MD_URL)
370 print('- DEBUG MODE: Here is the project.xml: {}'.format(
373 print('- Run with LINT_DEBUG=1 to enable lint configuration debugging')
382 parser.add_argument('--target-name', help='Fully qualified GN target name.')
383 parser.add_argument('--skip-build-server',
385 help='Avoid using the build server.')
386 parser.add_argument('--use-build-server',
388 help='Always use the build server.')
389 parser.add_argument('--lint-jar-path',
392 parser.add_argument('--custom-lint-jar-path',
395 parser.add_argument('--backported-methods',
397 parser.add_argument('--cache-dir',
400 parser.add_argument('--config-path', help='Path to lint suppressions file.')
401 parser.add_argument('--lint-gen-dir',
404 parser.add_argument('--stamp', help='Path to stamp upon success.')
405 parser.add_argument('--android-sdk-version',
408 parser.add_argument('--min-sdk-version',
411 parser.add_argument('--android-sdk-root',
414 parser.add_argument('--create-cache',
417 parser.add_argument('--warnings-as-errors',
420 parser.add_argument('--sources',
423 parser.add_argument('--aars', help='GN list of included aars.')
424 parser.add_argument('--srcjars', help='GN list of included srcjars.')
425 parser.add_argument('--manifest-path',
427 parser.add_argument('--extra-manifest-paths',
429 help='GYP-list of manifest paths to merge into the '
431 parser.add_argument('--resource-sources',
434 help='GYP-list of resource sources files, similar to '
436 parser.add_argument('--resource-zips',
439 help='GYP-list of resource zips, zip files of generated '
441 parser.add_argument('--classpath',
443 parser.add_argument('--baseline',
458 assert os.path.basename(args.baseline) == 'lint-baseline.xml', (
459 'The baseline file needs to be named "lint-baseline.xml" in order for '