| OLD | NEW |
| 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 { | 5 { |
| 6 'targets': [ | 6 'targets': [ |
| 7 { | 7 { |
| 8 'target_name': 'sessions', | 8 'target_name': 'translate_common', |
| 9 'type': '<(component)', | 9 'type': 'static_library', |
| 10 'dependencies': [ | 10 'dependencies': [ |
| 11 '../base/base.gyp:base', | 11 '../base/base.gyp:base', |
| 12 '../content/content.gyp:content_browser', | |
| 13 '../skia/skia.gyp:skia', | |
| 14 '../third_party/protobuf/protobuf.gyp:protobuf_lite', | |
| 15 '../url/url.gyp:url_lib', | 12 '../url/url.gyp:url_lib', |
| 16 ], | 13 ], |
| 17 'include_dirs': [ | 14 'include_dirs': [ |
| 18 '..', | 15 '..', |
| 19 ], | 16 ], |
| 20 'defines': [ | |
| 21 'SESSIONS_IMPLEMENTATION', | |
| 22 ], | |
| 23 'sources': [ | 17 'sources': [ |
| 24 'sessions/serialized_navigation_entry.cc', | 18 'translate/common/translate_constants.cc', |
| 25 'sessions/serialized_navigation_entry.h', | 19 'translate/common/translate_constants.h', |
| 26 ], | 20 'translate/common/translate_metrics.cc', |
| 27 'conditions': [ | 21 'translate/common/translate_metrics.h', |
| 28 ['OS != "ios" and chrome_multiple_dll != 1', { | 22 'translate/common/translate_switches.cc', |
| 29 'dependencies': [ | 23 'translate/common/translate_switches.h', |
| 30 '../webkit/glue/webkit_glue.gyp:glue', | 24 'translate/common/translate_util.cc', |
| 31 ] | 25 'translate/common/translate_util.h', |
| 32 }], | |
| 33 ['android_webview_build == 0', { | |
| 34 'dependencies': [ | |
| 35 '../sync/sync.gyp:sync', | |
| 36 ] | |
| 37 }], | |
| 38 ], | 26 ], |
| 39 }, | 27 }, |
| 40 { | 28 { |
| 41 'target_name': 'sessions_test_support', | 29 'target_name': 'translate_language_detection', |
| 42 'type': 'static_library', | 30 'type': 'static_library', |
| 43 'defines!': ['SESSIONS_IMPLEMENTATION'], | |
| 44 'dependencies': [ | 31 'dependencies': [ |
| 45 '../skia/skia.gyp:skia', | 32 'translate_common', |
| 46 '../testing/gtest.gyp:gtest', | 33 '../base/base.gyp:base', |
| 34 '../url/url.gyp:url_lib', |
| 47 ], | 35 ], |
| 48 'include_dirs': [ | 36 'include_dirs': [ |
| 49 '..', | 37 '..', |
| 50 ], | 38 ], |
| 51 'sources': [ | 39 'sources': [ |
| 52 'sessions/serialized_navigation_entry_test_helper.cc', | 40 'translate/language_detection/language_detection_util.cc', |
| 53 'sessions/serialized_navigation_entry_test_helper.h', | 41 'translate/language_detection/language_detection_util.h', |
| 54 ], | 42 ], |
| 55 'conditions': [ | 43 'conditions': [ |
| 56 ['android_webview_build == 0', { | 44 ['cld_version==0 or cld_version==1', { |
| 57 'dependencies': [ | 45 'dependencies': [ |
| 58 '../sync/sync.gyp:sync', | 46 '<(DEPTH)/third_party/cld/cld.gyp:cld', |
| 59 ] | 47 ], |
| 48 }], |
| 49 ['cld_version==0 or cld_version==2', { |
| 50 'dependencies': [ |
| 51 '<(DEPTH)/third_party/cld_2/cld_2.gyp:cld_2', |
| 52 ], |
| 60 }], | 53 }], |
| 61 ], | 54 ], |
| 62 }, | 55 }, |
| 63 ], | 56 ], |
| 64 } | 57 } |
| OLD | NEW |