OLD | NEW |
---|---|
(Empty) | |
1 # Copyright 2012 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 'variables': { | |
7 'conditions': [ | |
8 ['inside_chromium_build==0', { | |
9 'webkit_src_dir': '../../../../..', | |
10 },{ | |
11 'webkit_src_dir': '../../third_party/WebKit', | |
12 }], | |
13 ], | |
14 }, | |
15 'targets': [ | |
16 { | |
17 'target_name': 'webkit_version', | |
18 'type': 'none', | |
19 'actions': [ | |
20 { | |
21 'action_name': 'webkit_version', | |
22 'inputs': [ | |
23 '<(script)', | |
24 '<(webkit_src_dir)<(version_file)', | |
25 '../../build/util/lastchange.py', # Used by the script. | |
26 ], | |
27 'outputs': [ | |
28 '<(SHARED_INTERMEDIATE_DIR)/webkit_version.h', | |
29 ], | |
30 'action': ['python', '<(script)', '<(webkit_src_dir)', | |
31 '<(version_file)', '<(SHARED_INTERMEDIATE_DIR)'], | |
32 'variables': { | |
33 'script': '../build/webkit_version.py', | |
34 # version_file is a relative path from |webkit_src_dir| to | |
35 # the version file. But gyp will eat the variable unless | |
36 # it looks like an absolute path, so write it like one and | |
37 # then use it carefully above. | |
38 'version_file': '/Source/WebCore/Configurations/Version.xcconfig', | |
39 }, | |
40 }, | |
41 ], | |
42 'direct_dependent_settings': { | |
43 'include_dirs': [ | |
44 '<(SHARED_INTERMEDIATE_DIR)', | |
45 ], | |
46 }, | |
47 # Dependents may rely on files generated by this target or one of its | |
48 # own hard dependencies. | |
49 'hard_dependency': 1, | |
50 }, | |
51 { | |
52 'target_name': 'webkit_user_agent', | |
tony
2012/09/05 17:45:24
I'm confused by this target. In the description, y
stuartmorgan
2012/09/05 19:58:14
Sorry, I should have explained better. It's includ
| |
53 'type': 'static_library', | |
54 'dependencies': [ | |
55 'webkit_version', | |
56 '<(DEPTH)/base/base.gyp:base_i18n', | |
57 ], | |
58 'sources': [ | |
59 'user_agent_util.cc', | |
60 'user_agent_util.h', | |
61 ], | |
62 }, | |
63 { | |
64 'target_name': 'user_agent', | |
65 'type': '<(component)', | |
66 'defines': [ | |
67 'WEBKIT_USER_AGENT_IMPLEMENTATION', | |
68 ], | |
69 'dependencies': [ | |
70 '<(DEPTH)/base/base.gyp:base_i18n', | |
71 ], | |
72 'sources': [ | |
73 'user_agent.cc', | |
74 'user_agent.h', | |
75 'webkit_user_agent_export.h', | |
76 ], | |
77 }, | |
78 ], | |
79 } | |
OLD | NEW |