| # Copyright 2021 The Chromium Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| import("//ios/web/public/js_messaging/optimize_ts.gni") |
| |
| source_set("print") { |
| configs += [ "//build/config/compiler:enable_arc" ] |
| sources = [ |
| "print_java_script_feature.h", |
| "print_java_script_feature.mm", |
| "print_tab_helper.h", |
| "print_tab_helper.mm", |
| "web_state_printer.h", |
| ] |
| deps = [ |
| ":print_js", |
| "//base", |
| "//components/prefs", |
| "//ios/chrome/browser/browser_state", |
| "//ios/chrome/browser/prefs:pref_names", |
| "//ios/web/public", |
| "//ios/web/public/js_messaging", |
| ] |
| frameworks = [ "Foundation.framework" ] |
| } |
| |
| source_set("unit_tests") { |
| testonly = true |
| configs += [ "//build/config/compiler:enable_arc" ] |
| sources = [ |
| "print_java_script_feature_unittest.mm", |
| "print_tab_helper_unittest.mm", |
| ] |
| deps = [ |
| ":print", |
| "//base", |
| "//base/test:test_support", |
| "//components/sync_preferences", |
| "//components/sync_preferences:test_support", |
| "//ios/chrome/browser/browser_state:test_support", |
| "//ios/chrome/browser/prefs:browser_prefs", |
| "//ios/chrome/browser/prefs:pref_names", |
| "//ios/chrome/test/fakes", |
| "//ios/web/public/test", |
| "//testing/gtest", |
| ] |
| } |
| |
| optimize_ts("print_js") { |
| visibility = [ ":print" ] |
| |
| sources = [ "resources/print.ts" ] |
| |
| deps = [ "//ios/web/public/js_messaging:util_scripts" ] |
| } |