Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Side by Side Diff: ios/chrome/search_widget_extension/BUILD.gn

Issue 2810403003: Add unit test and showcase support for search widget. (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | ios/chrome/search_widget_extension/search_widget_view_controller_unittest.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2017 The Chromium Authors. All rights reserved. 1 # Copyright 2017 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//build/config/ios/rules.gni") 5 import("//build/config/ios/rules.gni")
6 import("//build/config/mac/base_rules.gni") 6 import("//build/config/mac/base_rules.gni")
7 import("//build/mac/tweak_info_plist.gni") 7 import("//build/mac/tweak_info_plist.gni")
8 import("//ios/build/chrome_build.gni") 8 import("//ios/build/chrome_build.gni")
9 9
10 tweak_info_plist("tweak_info_plist") { 10 tweak_info_plist("tweak_info_plist") {
11 info_plist = "Info.plist" 11 info_plist = "Info.plist"
12 } 12 }
13 13
14 compile_plist("entitlements") { 14 compile_plist("entitlements") {
15 format = "xml1" 15 format = "xml1"
16 substitutions = [ "IOS_BUNDLE_ID_PREFIX=$ios_app_bundle_id_prefix" ] 16 substitutions = [ "IOS_BUNDLE_ID_PREFIX=$ios_app_bundle_id_prefix" ]
17 output_name = "$target_gen_dir/search_widget_extension.appex.entitlements" 17 output_name = "$target_gen_dir/search_widget_extension.appex.entitlements"
18 plist_templates = 18 plist_templates =
19 [ "entitlements/external/search_widget_extension.appex.entitlements" ] 19 [ "entitlements/external/search_widget_extension.appex.entitlements" ]
20 } 20 }
21 21
22 ios_appex_bundle("search_widget_extension") { 22 ios_appex_bundle("search_widget_extension") {
23 sources = [
24 "search_widget_view.h",
25 "search_widget_view.mm",
26 "search_widget_view_controller.h",
27 "search_widget_view_controller.mm",
28 ]
29
30 deps = [ 23 deps = [
24 ":search_widget",
31 "//base", 25 "//base",
32 "//components/open_from_clipboard:open_from_clipboard_impl", 26 "//components/open_from_clipboard:open_from_clipboard_impl",
33 "//components/prefs", 27 "//components/prefs",
34 "//components/variations", 28 "//components/variations",
35 "//components/version_info", 29 "//components/version_info",
36 "//ios/chrome/common", 30 "//ios/chrome/common",
37 "//ios/chrome/common/app_group", 31 "//ios/chrome/common/app_group",
38 "//ios/chrome/common/app_group:client", 32 "//ios/chrome/common/app_group:client",
39 "//ios/chrome/common/physical_web", 33 "//ios/chrome/common/physical_web",
40 "//ios/chrome/today_extension/strings", 34 "//ios/chrome/today_extension/strings",
(...skipping 12 matching lines...) Expand all
53 "CHROME_CHANNEL_SCHEME=$url_channel_scheme", 47 "CHROME_CHANNEL_SCHEME=$url_channel_scheme",
54 "CHROMIUM_SHORT_NAME=$chromium_short_name", 48 "CHROMIUM_SHORT_NAME=$chromium_short_name",
55 "WIDGET_EXTENSION_BUNDLE_ID=$chromium_bundle_id.SearchTodayExtension", 49 "WIDGET_EXTENSION_BUNDLE_ID=$chromium_bundle_id.SearchTodayExtension",
56 ] 50 ]
57 51
58 configs += [ "//build/config/compiler:enable_arc" ] 52 configs += [ "//build/config/compiler:enable_arc" ]
59 53
60 entitlements_target = ":entitlements" 54 entitlements_target = ":entitlements"
61 info_plist_target = ":tweak_info_plist" 55 info_plist_target = ":tweak_info_plist"
62 } 56 }
57
58 source_set("search_widget") {
59 sources = [
60 "search_widget_view.h",
lpromero 2017/04/13 17:26:08 You also need to move to this source_set the deps
lody 2017/04/14 13:56:09 Done.
61 "search_widget_view.mm",
62 "search_widget_view_controller.h",
63 "search_widget_view_controller.mm",
64 ]
65 configs += [ "//build/config/compiler:enable_arc" ]
66 }
67
68 source_set("unit_tests") {
69 testonly = true
70 sources = [
71 "search_widget_view_controller_unittest.mm",
72 ]
73 deps = [
74 ":search_widget",
75 "//testing/gtest",
76 ]
77 configs += [ "//build/config/compiler:enable_arc" ]
78 }
OLDNEW
« no previous file with comments | « no previous file | ios/chrome/search_widget_extension/search_widget_view_controller_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698