| 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 'targets': [ | |
| 7 { | |
| 8 'target_name': 'user_agent', | |
| 9 'type': '<(component)', | |
| 10 'defines': [ | |
| 11 'WEBKIT_USER_AGENT_IMPLEMENTATION', | |
| 12 ], | |
| 13 'dependencies': [ | |
| 14 '<(DEPTH)/base/base.gyp:base', | |
| 15 '<(DEPTH)/base/base.gyp:base_i18n', | |
| 16 ], | |
| 17 'sources': [ | |
| 18 'user_agent.cc', | |
| 19 'user_agent.h', | |
| 20 'user_agent_util.cc', | |
| 21 'user_agent_util_ios.mm', | |
| 22 'user_agent_util.h', | |
| 23 'webkit_user_agent_export.h', | |
| 24 ], | |
| 25 'conditions': [ | |
| 26 ['OS == "ios"', { | |
| 27 # iOS has different user-agent construction utilities, since the | |
| 28 # version strings is not derived from webkit_version, and follows | |
| 29 # a different format. | |
| 30 'sources!': [ | |
| 31 'user_agent_util.cc', | |
| 32 ], | |
| 33 }, { # OS != "ios" | |
| 34 'dependencies': [ | |
| 35 'webkit_version', | |
| 36 '<(DEPTH)/base/third_party/dynamic_annotations/dynamic_annotations.g
yp:dynamic_annotations', | |
| 37 ], | |
| 38 }], | |
| 39 ], | |
| 40 }, | |
| 41 ], | |
| 42 'conditions': [ | |
| 43 ['OS != "ios"', { | |
| 44 'targets': [ | |
| 45 { | |
| 46 'target_name': 'webkit_version', | |
| 47 'type': 'none', | |
| 48 'actions': [ | |
| 49 { | |
| 50 'action_name': 'webkit_version', | |
| 51 'inputs': [ | |
| 52 '<(script)', | |
| 53 '../../../build/util/lastchange.py', # Used by the script. | |
| 54 # This depends on the svn revision of third_party/WebKit but doe
s | |
| 55 # not list it as a dependency. Incremental builds will have | |
| 56 # the wrong WEBKIT_SVN_REVISION. | |
| 57 ], | |
| 58 'outputs': [ | |
| 59 '<(SHARED_INTERMEDIATE_DIR)/webkit_version.h', | |
| 60 ], | |
| 61 'action': ['python', '<(script)', '../../../third_party/WebKit/Sou
rce', | |
| 62 '<(SHARED_INTERMEDIATE_DIR)'], | |
| 63 'variables': { | |
| 64 'script': '../build/webkit_version.py', | |
| 65 }, | |
| 66 }, | |
| 67 ], | |
| 68 'direct_dependent_settings': { | |
| 69 'include_dirs': [ | |
| 70 '<(SHARED_INTERMEDIATE_DIR)', | |
| 71 ], | |
| 72 }, | |
| 73 # Dependents may rely on files generated by this target or one of its | |
| 74 # own hard dependencies. | |
| 75 'hard_dependency': 1, | |
| 76 }, | |
| 77 ], | |
| 78 }], | |
| 79 ], | |
| 80 } | |
| OLD | NEW |