| 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 '<(lastchange)', | |
| 54 '<(template)', | |
| 55 ], | |
| 56 'outputs': [ | |
| 57 '<(SHARED_INTERMEDIATE_DIR)/webkit_version.h', | |
| 58 ], | |
| 59 'action': ['python', | |
| 60 '<(script)', | |
| 61 '-f', '<(lastchange)', | |
| 62 '<(template)', | |
| 63 '<@(_outputs)', | |
| 64 ], | |
| 65 'variables': { | |
| 66 'script': '<(DEPTH)/chrome/tools/build/version.py', | |
| 67 'lastchange': '<(DEPTH)/build/util/LASTCHANGE.blink', | |
| 68 'template': '<(DEPTH)/webkit/build/webkit_version.h.in', | |
| 69 }, | |
| 70 }, | |
| 71 ], | |
| 72 'direct_dependent_settings': { | |
| 73 'include_dirs': [ | |
| 74 '<(SHARED_INTERMEDIATE_DIR)', | |
| 75 ], | |
| 76 }, | |
| 77 # Dependents may rely on files generated by this target or one of its | |
| 78 # own hard dependencies. | |
| 79 'hard_dependency': 1, | |
| 80 }, | |
| 81 ], | |
| 82 }], | |
| 83 ], | |
| 84 } | |
| OLD | NEW |