Index: components/translate.gypi |
diff --git a/components/sessions.gypi b/components/translate.gypi |
similarity index 34% |
copy from components/sessions.gypi |
copy to components/translate.gypi |
index 099c88f72b1aa65c918aeeececd8f83f3d341d45..7c19fe81bdb0c505f11e71b113c76df0efb4a7dc 100644 |
--- a/components/sessions.gypi |
+++ b/components/translate.gypi |
@@ -1,62 +1,55 @@ |
-# Copyright (c) 2013 The Chromium Authors. All rights reserved. |
+# Copyright 2013 The Chromium Authors. All rights reserved. |
# Use of this source code is governed by a BSD-style license that can be |
# found in the LICENSE file. |
{ |
'targets': [ |
{ |
- 'target_name': 'sessions', |
- 'type': '<(component)', |
+ 'target_name': 'translate_common', |
+ 'type': 'static_library', |
'dependencies': [ |
'../base/base.gyp:base', |
- '../content/content.gyp:content_browser', |
- '../skia/skia.gyp:skia', |
- '../third_party/protobuf/protobuf.gyp:protobuf_lite', |
'../url/url.gyp:url_lib', |
], |
'include_dirs': [ |
'..', |
], |
- 'defines': [ |
- 'SESSIONS_IMPLEMENTATION', |
- ], |
'sources': [ |
- 'sessions/serialized_navigation_entry.cc', |
- 'sessions/serialized_navigation_entry.h', |
- ], |
- 'conditions': [ |
- ['OS != "ios" and chrome_multiple_dll != 1', { |
- 'dependencies': [ |
- '../webkit/glue/webkit_glue.gyp:glue', |
- ] |
- }], |
- ['android_webview_build == 0', { |
- 'dependencies': [ |
- '../sync/sync.gyp:sync', |
- ] |
- }], |
+ 'translate/common/translate_constants.cc', |
+ 'translate/common/translate_constants.h', |
+ 'translate/common/translate_metrics.cc', |
+ 'translate/common/translate_metrics.h', |
+ 'translate/common/translate_switches.cc', |
+ 'translate/common/translate_switches.h', |
+ 'translate/common/translate_util.cc', |
+ 'translate/common/translate_util.h', |
], |
}, |
{ |
- 'target_name': 'sessions_test_support', |
+ 'target_name': 'translate_language_detection', |
'type': 'static_library', |
- 'defines!': ['SESSIONS_IMPLEMENTATION'], |
'dependencies': [ |
- '../skia/skia.gyp:skia', |
- '../testing/gtest.gyp:gtest', |
+ 'translate_common', |
+ '../base/base.gyp:base', |
+ '../url/url.gyp:url_lib', |
], |
'include_dirs': [ |
'..', |
], |
'sources': [ |
- 'sessions/serialized_navigation_entry_test_helper.cc', |
- 'sessions/serialized_navigation_entry_test_helper.h', |
+ 'translate/language_detection/language_detection_util.cc', |
+ 'translate/language_detection/language_detection_util.h', |
], |
'conditions': [ |
- ['android_webview_build == 0', { |
+ ['cld_version==0 or cld_version==1', { |
+ 'dependencies': [ |
+ '<(DEPTH)/third_party/cld/cld.gyp:cld', |
+ ], |
+ }], |
+ ['cld_version==0 or cld_version==2', { |
'dependencies': [ |
- '../sync/sync.gyp:sync', |
- ] |
+ '<(DEPTH)/third_party/cld_2/cld_2.gyp:cld_2', |
+ ], |
}], |
], |
}, |