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

Side by Side Diff: webkit/common/user_agent/webkit_user_agent.gyp

Issue 186883002: Move user_agent code from webkit/ to content/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review Created 6 years, 9 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
OLDNEW
(Empty)
1 # Copyright 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 {
6 'targets': [
7 {
8 'target_name': 'user_agent',
9 'type': '<(component)',
10 'defines': [
11 'WEBKIT_USER_AGENT_IMPLEMENTATION',
12 ],
13 'variables': {
14 'chromium_code': 1,
15 },
16 'dependencies': [
17 '<(DEPTH)/base/base.gyp:base',
18 '<(DEPTH)/base/base.gyp:base_i18n',
19 '<(DEPTH)/url/url.gyp:url_lib',
20 ],
21 'sources': [
22 'user_agent.cc',
23 'user_agent.h',
24 'user_agent_util.cc',
25 'user_agent_util_ios.mm',
26 'user_agent_util.h',
27 'webkit_user_agent_export.h',
28 ],
29 'conditions': [
30 ['OS == "ios"', {
31 # iOS has different user-agent construction utilities, since the
32 # version strings is not derived from webkit_version, and follows
33 # a different format.
34 'sources!': [
35 'user_agent_util.cc',
36 ],
37 }, { # OS != "ios"
38 'dependencies': [
39 'webkit_version',
40 '<(DEPTH)/base/third_party/dynamic_annotations/dynamic_annotations.g yp:dynamic_annotations',
41 ],
42 }],
43 ],
44 },
45 ],
46 'conditions': [
47 ['OS != "ios"', {
48 'targets': [
49 {
50 'target_name': 'webkit_version',
51 'type': 'none',
52 'actions': [
53 {
54 'action_name': 'webkit_version',
55 'inputs': [
56 '<(script)',
57 '<(lastchange)',
58 '<(template)',
59 ],
60 'outputs': [
61 '<(SHARED_INTERMEDIATE_DIR)/webkit_version.h',
62 ],
63 'action': ['python',
64 '<(script)',
65 '-f', '<(lastchange)',
66 '<(template)',
67 '<@(_outputs)',
68 ],
69 'variables': {
70 'script': '<(DEPTH)/build/util/version.py',
71 'lastchange': '<(DEPTH)/build/util/LASTCHANGE.blink',
72 'template': '<(DEPTH)/webkit/build/webkit_version.h.in',
73 },
74 },
75 ],
76 'direct_dependent_settings': {
77 'include_dirs': [
78 '<(SHARED_INTERMEDIATE_DIR)',
79 ],
80 },
81 # Dependents may rely on files generated by this target or one of its
82 # own hard dependencies.
83 'hard_dependency': 1,
84 },
85 ],
86 }],
87 ],
88 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698