OLD | NEW |
| (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_util.cc', | |
23 'user_agent_util_ios.mm', | |
24 'user_agent_util.h', | |
25 'webkit_user_agent_export.h', | |
26 ], | |
27 'conditions': [ | |
28 ['OS == "ios"', { | |
29 # iOS has different user-agent construction utilities, since the | |
30 # version strings is not derived from webkit_version, and follows | |
31 # a different format. | |
32 'sources!': [ | |
33 'user_agent_util.cc', | |
34 ], | |
35 }, { # OS != "ios" | |
36 'dependencies': [ | |
37 'webkit_version', | |
38 '<(DEPTH)/base/third_party/dynamic_annotations/dynamic_annotations.g
yp:dynamic_annotations', | |
39 ], | |
40 }], | |
41 ], | |
42 }, | |
43 ], | |
44 'conditions': [ | |
45 ['OS != "ios"', { | |
46 'targets': [ | |
47 { | |
48 'target_name': 'webkit_version', | |
49 'type': 'none', | |
50 'actions': [ | |
51 { | |
52 'action_name': 'webkit_version', | |
53 'inputs': [ | |
54 '<(script)', | |
55 '<(lastchange)', | |
56 '<(template)', | |
57 ], | |
58 'outputs': [ | |
59 '<(SHARED_INTERMEDIATE_DIR)/webkit_version.h', | |
60 ], | |
61 'action': ['python', | |
62 '<(script)', | |
63 '-f', '<(lastchange)', | |
64 '<(template)', | |
65 '<@(_outputs)', | |
66 ], | |
67 'variables': { | |
68 'script': '<(DEPTH)/build/util/version.py', | |
69 'lastchange': '<(DEPTH)/build/util/LASTCHANGE.blink', | |
70 'template': '<(DEPTH)/webkit/build/webkit_version.h.in', | |
71 }, | |
72 }, | |
73 ], | |
74 'direct_dependent_settings': { | |
75 'include_dirs': [ | |
76 '<(SHARED_INTERMEDIATE_DIR)', | |
77 ], | |
78 }, | |
79 # Dependents may rely on files generated by this target or one of its | |
80 # own hard dependencies. | |
81 'hard_dependency': 1, | |
82 }, | |
83 ], | |
84 }], | |
85 ], | |
86 } | |
OLD | NEW |