BUILD.gn 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # Copyright 2019 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/chromeos/ui_mode.gni")
  5. import("//chrome/test/base/js2gtest.gni")
  6. import("//third_party/closure_compiler/compile_js.gni")
  7. import("//ui/webui/resources/tools/generate_grd.gni")
  8. assert(is_chromeos_ash, "Sample System Web App is ash-chrome only")
  9. assert(!is_official_build,
  10. "Sample System Web App is only built for unofficial builds")
  11. static_library("sample_system_web_app_ui") {
  12. sources = [
  13. "sample_page_handler.cc",
  14. "sample_page_handler.h",
  15. "sample_system_web_app_ui.cc",
  16. "sample_system_web_app_ui.h",
  17. "sample_system_web_app_untrusted_ui.cc",
  18. "sample_system_web_app_untrusted_ui.h",
  19. "url_constants.cc",
  20. "url_constants.h",
  21. ]
  22. deps = [
  23. "//ash/webui/resources:sample_system_web_app_resources",
  24. "//ash/webui/resources:sample_system_web_app_untrusted_resources",
  25. "//ash/webui/sample_system_web_app_ui/mojom:trusted",
  26. "//ash/webui/sample_system_web_app_ui/mojom:untrusted",
  27. "//ash/webui/system_apps/public:system_web_app_config",
  28. "//content/public/browser",
  29. "//ui/webui",
  30. ]
  31. }
  32. js2gtest("browser_tests_js") {
  33. test_type = "mojo_lite_webui"
  34. sources = [ "test/sample_system_web_app_ui_browsertest.js" ]
  35. defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]
  36. }