devtools.gni 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. # Copyright (c) 2021 The Chromium Authors. All rights reserved.
  2. # Use of this source code is governed by a BSD-style license that can be
  3. # found in the LICENSE file.
  4. import("//build/config/chrome_build.gni")
  5. import("//build_overrides/build.gni")
  6. declare_args() {
  7. if (build_with_chromium) {
  8. # devtools_location is used in DevTools to resolve to the correct location
  9. # for any script/file referenced in the DevTools build scripts. Since
  10. # DevTools supports both a standalone build and build integration with
  11. # Chromium, we need to differentiate between the two versions.
  12. # devtools_location points to the Chromium version in both Chrome-branded
  13. # and not Chrome-branded builds. devtools_root_location points to the root
  14. # of the Chrome-branded version when is_chrome_branded is true and to the root
  15. # of the Chromium version when is_chrome_branded is false.
  16. # devtools_grd_location is the location of the GRD file listing all DevTools
  17. # resources.
  18. if (is_chrome_branded) {
  19. devtools_root_location = "third_party/devtools-frontend-internal"
  20. devtools_location = "$devtools_root_location/devtools-frontend/"
  21. devtools_grd_location =
  22. "$devtools_root_location/chrome_devtools_resources.grd"
  23. } else {
  24. devtools_root_location = "third_party/devtools-frontend/src"
  25. devtools_location = "third_party/devtools-frontend/src/"
  26. devtools_grd_location =
  27. "$devtools_root_location/front_end/devtools_resources.grd"
  28. }
  29. } else {
  30. # DevTools is building a standalone version
  31. devtools_location = ""
  32. devtools_root_location = ""
  33. devtools_grd_location = ""
  34. }
  35. }