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': 'user_agent', |
| 53 'type': '<(component)', |
| 54 'defines': [ |
| 55 'WEBKIT_USER_AGENT_IMPLEMENTATION', |
| 56 ], |
| 57 'dependencies': [ |
| 58 'webkit_version', |
| 59 '<(DEPTH)/base/base.gyp:base', |
| 60 '<(DEPTH)/base/base.gyp:base_i18n', |
| 61 '<(DEPTH)/base/third_party/dynamic_annotations/dynamic_annotations.gyp:d
ynamic_annotations', |
| 62 ], |
| 63 'sources': [ |
| 64 'user_agent.cc', |
| 65 'user_agent.h', |
| 66 'user_agent_util.cc', |
| 67 'user_agent_util.h', |
| 68 'webkit_user_agent_export.h', |
| 69 ], |
| 70 }, |
| 71 ], |
| 72 } |
OLD | NEW |