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

Side by Side Diff: components/dom_distiller/content/BUILD.gn

Issue 1311623002: Add more components_unittests to GN build (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 5 years, 4 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 | « components/components_tests.gyp ('k') | components/dom_distiller/core/BUILD.gn » ('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 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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 if (!is_ios) { 5 assert(!is_ios)
6 # GYP version: components/dom_distiller.gypi:dom_distiller_content
7 static_library("content_browser") {
8 sources = [
9 "browser/distillable_page_utils.cc",
10 "browser/distillable_page_utils.h",
11 "browser/distiller_javascript_utils.cc",
12 "browser/distiller_javascript_utils.h",
13 "browser/distiller_page_web_contents.cc",
14 "browser/distiller_page_web_contents.h",
15 "browser/dom_distiller_viewer_source.cc",
16 "browser/dom_distiller_viewer_source.h",
17 "browser/external_feedback_reporter.h",
18 "browser/web_contents_main_frame_observer.cc",
19 "browser/web_contents_main_frame_observer.h",
20 ]
21 6
22 public_deps = [ 7 # GYP version: components/dom_distiller.gypi:dom_distiller_content
23 "//components/dom_distiller/core", 8 source_set("content_browser") {
24 ] 9 sources = [
25 deps = [ 10 "browser/distillable_page_utils.cc",
26 "//base", 11 "browser/distillable_page_utils.h",
27 "//components/resources", 12 "browser/distiller_javascript_utils.cc",
28 "//components/strings", 13 "browser/distiller_javascript_utils.h",
29 "//content/public/browser", 14 "browser/distiller_page_web_contents.cc",
30 "//net", 15 "browser/distiller_page_web_contents.h",
31 "//skia", 16 "browser/dom_distiller_viewer_source.cc",
32 "//sync", 17 "browser/dom_distiller_viewer_source.h",
33 "//ui/gfx", 18 "browser/external_feedback_reporter.h",
34 "//url", 19 "browser/web_contents_main_frame_observer.cc",
35 ] 20 "browser/web_contents_main_frame_observer.h",
21 ]
36 22
37 if (is_android) { 23 public_deps = [
38 sources += [ 24 "//components/dom_distiller/core",
39 "browser/distillable_page_utils_android.cc", 25 "//content/public/browser",
40 "browser/distillable_page_utils_android.h", 26 ]
41 ] 27 deps = [
42 deps += [ ":jni_headers" ] 28 "//base",
43 } 29 "//components/resources",
44 } 30 "//components/strings",
31 "//net",
32 "//skia",
33 "//sync",
34 "//ui/gfx",
35 "//url",
36 ]
45 37
46 if (is_android) { 38 if (is_android) {
47 import("//build/config/android/rules.gni") 39 sources += [
48 40 "browser/distillable_page_utils_android.cc",
49 generate_jni("jni_headers") { 41 "browser/distillable_page_utils_android.h",
50 sources = [ 42 ]
51 "../android/java/src/org/chromium/components/dom_distiller/content/Disti llablePageUtils.java", 43 deps += [ ":jni_headers" ]
52 ]
53 jni_package = "dom_distiller_content"
54 }
55 } 44 }
56 } 45 }
46
47 if (is_android) {
48 import("//build/config/android/rules.gni")
49
50 generate_jni("jni_headers") {
51 sources = [
52 "../android/java/src/org/chromium/components/dom_distiller/content/Distill ablePageUtils.java",
53 ]
54 jni_package = "dom_distiller_content"
55 }
56 }
57
58 source_set("unit_tests") {
59 testonly = true
60 sources = [
61 "browser/dom_distiller_viewer_source_unittest.cc",
62 "browser/web_contents_main_frame_observer_unittest.cc",
63 ]
64 deps = [
65 ":content_browser",
66 "//testing/gtest",
67 ]
68 }
OLDNEW
« no previous file with comments | « components/components_tests.gyp ('k') | components/dom_distiller/core/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698