[email protected] | d772c9a | 2014-07-04 13:48:07 | [diff] [blame] | 1 | # Copyright 2014 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 | { |
[email protected] | d66eac4 | 2014-07-14 23:48:30 | [diff] [blame] | 6 | 'variables': { |
| 7 | # Cross-platform user_manager sources. |
| 8 | 'user_manager_shared_sources': [ |
| 9 | 'user_manager/empty_user_info.cc', |
| 10 | 'user_manager/empty_user_info.h', |
antrim | 62ed258 | 2015-03-24 19:08:35 | [diff] [blame] | 11 | 'user_manager/user_id.h', |
[email protected] | d66eac4 | 2014-07-14 23:48:30 | [diff] [blame] | 12 | 'user_manager/user_info.cc', |
satorux | ba9fc86 | 2015-02-17 01:16:42 | [diff] [blame] | 13 | 'user_manager/user_info.h', |
[email protected] | d66eac4 | 2014-07-14 23:48:30 | [diff] [blame] | 14 | 'user_manager/user_info_impl.cc', |
| 15 | 'user_manager/user_info_impl.h', |
| 16 | 'user_manager/user_manager_export.h', |
| 17 | ], |
| 18 | # Chrome OS user_manager sources. |
| 19 | 'user_manager_chromeos_sources': [ |
[email protected] | 4d39078 | 2014-08-15 09:22:58 | [diff] [blame] | 20 | 'user_manager/remove_user_delegate.h', |
satorux | ba9fc86 | 2015-02-17 01:16:42 | [diff] [blame] | 21 | 'user_manager/user.cc', |
| 22 | 'user_manager/user.h', |
[email protected] | ba5fcf16 | 2014-07-21 19:57:53 | [diff] [blame] | 23 | 'user_manager/user_image/default_user_images.cc', |
| 24 | 'user_manager/user_image/default_user_images.h', |
[email protected] | d66eac4 | 2014-07-14 23:48:30 | [diff] [blame] | 25 | 'user_manager/user_image/user_image.cc', |
| 26 | 'user_manager/user_image/user_image.h', |
[email protected] | 4d39078 | 2014-08-15 09:22:58 | [diff] [blame] | 27 | 'user_manager/user_manager.cc', |
| 28 | 'user_manager/user_manager.h', |
| 29 | 'user_manager/user_manager_base.cc', |
| 30 | 'user_manager/user_manager_base.h', |
[email protected] | d66eac4 | 2014-07-14 23:48:30 | [diff] [blame] | 31 | 'user_manager/user_type.h', |
| 32 | ], |
| 33 | }, |
[email protected] | d772c9a | 2014-07-04 13:48:07 | [diff] [blame] | 34 | 'targets': [{ |
| 35 | 'target_name': 'user_manager', |
| 36 | 'type': '<(component)', |
| 37 | 'dependencies': [ |
[email protected] | ba5fcf16 | 2014-07-21 19:57:53 | [diff] [blame] | 38 | '<(DEPTH)/base/base.gyp:base', |
| 39 | '<(DEPTH)/skia/skia.gyp:skia', |
| 40 | '<(DEPTH)/ui/gfx/gfx.gyp:gfx', |
[email protected] | d772c9a | 2014-07-04 13:48:07 | [diff] [blame] | 41 | ], |
| 42 | 'defines': [ |
| 43 | 'USER_MANAGER_IMPLEMENTATION', |
| 44 | ], |
| 45 | 'include_dirs': [ |
[email protected] | ba5fcf16 | 2014-07-21 19:57:53 | [diff] [blame] | 46 | '<(DEPTH)', |
| 47 | '<(DEPTH)/ui/chromeos/ui_chromeos.gyp:ui_chromeos_resources', |
| 48 | '<(DEPTH)/ui/chromeos/ui_chromeos.gyp:ui_chromeos_strings', |
[email protected] | d772c9a | 2014-07-04 13:48:07 | [diff] [blame] | 49 | ], |
[email protected] | d66eac4 | 2014-07-14 23:48:30 | [diff] [blame] | 50 | 'sources': [ '<@(user_manager_shared_sources)' ], |
| 51 | 'conditions': [ |
| 52 | ['chromeos == 1', { |
[email protected] | ba5fcf16 | 2014-07-21 19:57:53 | [diff] [blame] | 53 | 'dependencies': [ |
[email protected] | 4d39078 | 2014-08-15 09:22:58 | [diff] [blame] | 54 | '<(DEPTH)/base/base.gyp:base_prefs', |
Nico Weber | a3d0a42 | 2015-01-20 21:46:21 | [diff] [blame] | 55 | '<(DEPTH)/chromeos/chromeos.gyp:chromeos', |
[email protected] | 4d39078 | 2014-08-15 09:22:58 | [diff] [blame] | 56 | '<(DEPTH)/components/components.gyp:session_manager_component', |
[email protected] | 2fda997 | 2014-07-23 14:51:59 | [diff] [blame] | 57 | '<(DEPTH)/google_apis/google_apis.gyp:google_apis', |
Nico Weber | a3d0a42 | 2015-01-20 21:46:21 | [diff] [blame] | 58 | '<(DEPTH)/ui/base/ui_base.gyp:ui_base', |
[email protected] | ba5fcf16 | 2014-07-21 19:57:53 | [diff] [blame] | 59 | '<(DEPTH)/ui/chromeos/ui_chromeos.gyp:ui_chromeos_resources', |
| 60 | '<(DEPTH)/ui/chromeos/ui_chromeos.gyp:ui_chromeos_strings', |
[email protected] | 2fda997 | 2014-07-23 14:51:59 | [diff] [blame] | 61 | '<(DEPTH)/url/url.gyp:url_lib', |
[email protected] | ba5fcf16 | 2014-07-21 19:57:53 | [diff] [blame] | 62 | ], |
[email protected] | d66eac4 | 2014-07-14 23:48:30 | [diff] [blame] | 63 | 'sources': [ '<@(user_manager_chromeos_sources)' ], |
| 64 | }], |
[email protected] | d772c9a | 2014-07-04 13:48:07 | [diff] [blame] | 65 | ], |
merkulova | 793f302 | 2015-02-04 10:18:30 | [diff] [blame] | 66 | }, |
| 67 | { |
| 68 | # GN version: //components/user_manager:test_support |
| 69 | 'target_name': 'user_manager_test_support', |
| 70 | 'type': 'static_library', |
| 71 | 'conditions': [ |
| 72 | ['chromeos == 1', { |
| 73 | 'dependencies': [ |
| 74 | '<(DEPTH)/base/base.gyp:base', |
| 75 | '<(DEPTH)/base/base.gyp:test_support_base', |
| 76 | '<(DEPTH)/testing/gmock.gyp:gmock', |
| 77 | '<(DEPTH)/testing/gtest.gyp:gtest', |
| 78 | 'user_manager', |
| 79 | ], |
| 80 | 'sources': [ |
| 81 | 'user_manager/fake_user_manager.cc', |
| 82 | 'user_manager/fake_user_manager.h', |
| 83 | ], |
| 84 | }], |
| 85 | ] |
| 86 | },], |
[email protected] | d772c9a | 2014-07-04 13:48:07 | [diff] [blame] | 87 | } |