Index: base/base.gyp |
diff --git a/base/base.gyp b/base/base.gyp |
index 929a3e42d52114297ce7715f90c31913b3fd720c..bc315b69283362dc74b447bffa98b6bb86bdaa7e 100644 |
--- a/base/base.gyp |
+++ b/base/base.gyp |
@@ -309,6 +309,82 @@ |
'sources': [ |
'message_loop/message_loop_test.cc', |
'message_loop/message_loop_test.h', |
+ ], |
+ }, |
+ { |
+ 'target_name': 'base_prefs', |
+ 'type': '<(component)', |
+ 'variables': { |
+ 'enable_wexit_time_destructors': 1, |
+ 'optimize': 'max', |
+ }, |
+ 'dependencies': [ |
+ 'base', |
+ ], |
+ 'export_dependent_settings': [ |
+ 'base', |
+ ], |
+ 'defines': [ |
+ 'BASE_PREFS_IMPLEMENTATION', |
+ ], |
+ 'sources': [ |
+ 'prefs/base_prefs_export.h', |
+ 'prefs/default_pref_store.cc', |
+ 'prefs/default_pref_store.h', |
+ 'prefs/json_pref_store.cc', |
+ 'prefs/json_pref_store.h', |
+ 'prefs/overlay_user_pref_store.cc', |
+ 'prefs/overlay_user_pref_store.h', |
+ 'prefs/persistent_pref_store.h', |
+ 'prefs/pref_change_registrar.cc', |
+ 'prefs/pref_change_registrar.h', |
+ 'prefs/pref_filter.h', |
+ 'prefs/pref_member.cc', |
+ 'prefs/pref_member.h', |
+ 'prefs/pref_notifier.h', |
+ 'prefs/pref_notifier_impl.cc', |
+ 'prefs/pref_notifier_impl.h', |
+ 'prefs/pref_observer.h', |
+ 'prefs/pref_registry.cc', |
+ 'prefs/pref_registry.h', |
+ 'prefs/pref_registry_simple.cc', |
+ 'prefs/pref_registry_simple.h', |
+ 'prefs/pref_service.cc', |
+ 'prefs/pref_service.h', |
+ 'prefs/pref_service_factory.cc', |
+ 'prefs/pref_service_factory.h', |
+ 'prefs/pref_store.cc', |
+ 'prefs/pref_store.h', |
+ 'prefs/pref_value_map.cc', |
+ 'prefs/pref_value_map.h', |
+ 'prefs/pref_value_store.cc', |
+ 'prefs/pref_value_store.h', |
+ 'prefs/scoped_user_pref_update.cc', |
+ 'prefs/scoped_user_pref_update.h', |
+ 'prefs/value_map_pref_store.cc', |
+ 'prefs/value_map_pref_store.h', |
+ 'prefs/writeable_pref_store.h', |
+ ], |
+ 'includes': [ |
+ '../build/android/increase_size_for_speed.gypi', |
+ ], |
+ }, |
+ { |
+ 'target_name': 'base_prefs_test_support', |
+ 'type': 'static_library', |
+ 'dependencies': [ |
+ 'base', |
+ 'base_prefs', |
+ '../testing/gmock.gyp:gmock', |
+ ], |
+ 'sources': [ |
+ 'prefs/mock_pref_change_callback.cc', |
+ 'prefs/pref_store_observer_mock.cc', |
+ 'prefs/pref_store_observer_mock.h', |
+ 'prefs/testing_pref_service.cc', |
+ 'prefs/testing_pref_service.h', |
+ 'prefs/testing_pref_store.cc', |
+ 'prefs/testing_pref_store.h', |
], |
}, |
{ |
@@ -490,6 +566,17 @@ |
'posix/file_descriptor_shuffle_unittest.cc', |
'posix/unix_domain_socket_linux_unittest.cc', |
'power_monitor/power_monitor_unittest.cc', |
+ 'prefs/default_pref_store_unittest.cc', |
+ 'prefs/json_pref_store_unittest.cc', |
+ 'prefs/mock_pref_change_callback.h', |
+ 'prefs/overlay_user_pref_store_unittest.cc', |
+ 'prefs/pref_change_registrar_unittest.cc', |
+ 'prefs/pref_member_unittest.cc', |
+ 'prefs/pref_notifier_impl_unittest.cc', |
+ 'prefs/pref_service_unittest.cc', |
+ 'prefs/pref_value_map_unittest.cc', |
+ 'prefs/pref_value_store_unittest.cc', |
+ 'prefs/scoped_user_pref_update_unittest.cc', |
'process/memory_unittest.cc', |
'process/memory_unittest_mac.h', |
'process/memory_unittest_mac.mm', |
@@ -591,6 +678,8 @@ |
'base', |
'base_i18n', |
'base_message_loop_tests', |
+ 'base_prefs', |
+ 'base_prefs_test_support', |
'base_static', |
'run_all_unittests', |
'test_support_base', |