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

Side by Side Diff: chrome/common/BUILD.gn

Issue 348663003: Work toward a chrome/common GN target. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: no android Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « chrome/chrome_resources.gyp ('k') | chrome/common/metrics/proto/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 import("//tools/grit/grit_rule.gni") 5 import("//tools/grit/grit_rule.gni")
6 6
7 # TODO(GYP) uncomment when this is used below.
8 #gypi_values = exec_script(
9 # "//build/gypi_to_gn.py",
10 # [ rebase_path("../chrome_common.gypi") ],
11 # "scope",
12 # [ "../chrome_common.gypi" ])
13
7 # GYP version: chrome/chrome_resources.gyp:chrome_resources 14 # GYP version: chrome/chrome_resources.gyp:chrome_resources
8 # (generate_common_resources action) 15 # (generate_common_resources action)
9 grit("resources") { 16 grit("resources") {
10 source = "common_resources.grd" 17 source = "common_resources.grd"
11 } 18 }
12 19
13 # GYP version: chrome/chrome_resources.gyp:chrome_resources 20 # GYP version: chrome/chrome_resources.gyp:chrome_resources
14 # (generate_extensions_api_resources action) 21 # (generate_extensions_api_resources action)
15 grit("extensions_api_resources") { 22 grit("extensions_api_resources") {
16 source = "extensions_api_resources.grd" 23 source = "extensions_api_resources.grd"
17 } 24 }
18 25
19 # TODO(GYP) add this target. 26 # GYP version: chrome/chrome_common.gyp:common
20 #static_library("common") { 27 static_library("common") {
21 # configs += [ "//build/config/compiler:wexit_time_destructors" ] 28 # TODO(GYP) Uncomment when these compile.
22 #} 29 #sources = rebase_path(gypi_values.chrome_common_sources, ".", "//chrome")
30
31 configs += [ "//build/config/compiler:wexit_time_destructors" ]
32
33 deps = [
34 ":version",
35 #":installer_util", TODO(GYP)
36 "//base:base",
37 "//base:i18n",
38 "//base:prefs",
39 "//base:base_static",
40 "//chrome:resources",
41 "//chrome:strings",
42 "//chrome/app/theme:theme_resources",
43 "//chrome/common:constants",
44 "//chrome/common/metrics/proto",
45 "//chrome/common/net",
46 #"//components/cloud_devices:common", TODO(GYP)
47 #"//components/json_schema", TODO(GYP)
48 "//components/metrics",
49 #"//components/components.gyp:policy_component_common", TODO(GYP)
50 "//components/translate:translate_core_common",
51 #"//components/variations", TODO(GYP)
52 "//content/public/common",
53 "//crypto",
54 #"//extensions/extensions_resources.gyp:extensions_resources", TODO(GYP)
55 #"//extensions/extensions_strings.gyp:extensions_strings", TODO(GYP)
56 #"//media/cast/cast.gyp:cast_transport", TODO(GYP)
57 "//net",
58 "//skia",
59 "//third_party/icu",
60 "//third_party/libxml",
61 "//third_party/sqlite",
62 "//third_party/zlib:zip",
63 "//ui/resources:resources",
64 "//url",
65 ]
66 }
67
68 if (is_linux) {
69 action("version") {
70 visibility = ":common"
71 script = "//build/util/version.py"
72
73 lastchange_path = "//build/util/LASTCHANGE"
74 version_path = "//chrome/VERSION"
75 template_input_path = "chrome_version_info_posix.h.version"
76 if (is_chrome_branded) {
77 branding_path = "//chrome/app/theme/google_chrome/BRANDING"
78 } else {
79 branding_path = "//chrome/app/theme/chromium/BRANDING"
80 }
81
82 source_prereqs = [
83 version_path,
84 template_input_path,
85 lastchange_path,
86 branding_path,
87 ]
88
89 outfile = "$target_gen_dir/chrome_version_info_posix.h"
90 outputs = [ outfile ]
91
92 args = [
93 "-f", rebase_path(version_path, root_build_dir),
94 "-f", rebase_path(branding_path, root_build_dir),
95 "-f", rebase_path(lastchange_path, root_build_dir),
96 rebase_path(template_input_path, root_build_dir),
97 rebase_path(outfile, root_build_dir),
98 ]
99 }
100 } else {
101 # Other platforms have a different way to do versioning.
102 group("version") {
103 }
104 }
105
106 # GN version: chrome/common_constants.gyp:common_constants
107 static_library("constants") {
108 sources = [
109 "chrome_constants.cc",
110 "chrome_constants.h",
111 "chrome_icon_resources_win.cc",
112 "chrome_icon_resources_win.h",
113 "chrome_paths.cc",
114 "chrome_paths.h",
115 "chrome_paths_android.cc",
116 "chrome_paths_internal.h",
117 "chrome_paths_linux.cc",
118 "chrome_paths_mac.mm",
119 "chrome_paths_win.cc",
120 "chrome_switches.cc",
121 "chrome_switches.h",
122 "env_vars.cc",
123 "env_vars.h",
124 "net/test_server_locations.cc",
125 "net/test_server_locations.h",
126 "pref_font_script_names-inl.h",
127 "pref_font_webkit_names.h",
128 "pref_names.cc",
129 "pref_names.h",
130 "widevine_cdm_constants.cc",
131 "widevine_cdm_constants.h",
132 ]
133
134 # TODO(GYP) remove when widevine is supported for real.
135 configs += [ "//content:widevine_stub_config" ]
136
137 deps = [
138 "//base",
139 "//base/third_party/dynamic_annotations",
140 # TODO(GYP)
141 #'../components/components.gyp:bookmarks_common',
142 #'../components/nacl.gyp:nacl_switches',
143 #'../third_party/widevine/cdm/widevine_cdm.gyp:widevine_cdm_version_h',
144 # (Also see widevine config above.)
145 ]
146 }
OLDNEW
« no previous file with comments | « chrome/chrome_resources.gyp ('k') | chrome/common/metrics/proto/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698