| # Copyright 2021 The Chromium Authors |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| import("//ios/build/config.gni") |
| import("//ios/web/public/js_messaging/optimize_ts.gni") |
| |
| source_set("web_performance_metrics") { |
| configs += [ "//build/config/compiler:enable_arc" ] |
| |
| deps = [ |
| ":web_performance_metrics_js", |
| "//base", |
| "//ios/web/public:public", |
| "//ios/web/public:web_state_observer", |
| "//ios/web/public/js_messaging", |
| ] |
| |
| sources = [ |
| "web_performance_metrics_java_script_feature.h", |
| "web_performance_metrics_java_script_feature.mm", |
| "web_performance_metrics_java_script_feature_util.h", |
| "web_performance_metrics_java_script_feature_util.mm", |
| "web_performance_metrics_tab_helper.h", |
| "web_performance_metrics_tab_helper.mm", |
| ] |
| } |
| |
| source_set("unit_tests") { |
| testonly = true |
| configs += [ "//build/config/compiler:enable_arc" ] |
| |
| deps = [ |
| ":web_performance_metrics", |
| "//base", |
| "//testing/gtest", |
| ] |
| |
| sources = [ "web_performance_metrics_java_script_feature_unittest.mm" ] |
| } |
| |
| optimize_ts("web_performance_metrics_js") { |
| visibility = [ ":web_performance_metrics" ] |
| |
| sources = [ "resources/web_performance_metrics.ts" ] |
| deps = [ "//ios/web/public/js_messaging:util_scripts" ] |
| } |