OLD | NEW |
1 # Copyright 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 'variables': { | 6 'variables': { |
7 'chromium_code': 1, # Use higher warning level. | 7 'chromium_code': 1, |
8 }, | 8 }, |
9 'target_defaults': { | 9 'target_defaults': { |
10 'defines': ['MOJO_IMPLEMENTATION'], | 10 'defines': ['MOJO_IMPLEMENTATION'], |
11 }, | 11 }, |
12 'targets': [ | 12 'targets': [ |
13 { | 13 { |
14 'target_name': 'mojo', | 14 'target_name': 'mojo', |
15 'type': 'none', | 15 'type': 'none', |
| 16 'dependencies': [ |
| 17 'mojo_core', |
| 18 'mojo_core_unittests', |
| 19 ], |
| 20 }, |
| 21 { |
| 22 'target_name': 'mojo_core', |
| 23 'type': '<(component)', |
| 24 'dependencies': [ |
| 25 '../base/base.gyp:base', |
| 26 ], |
| 27 'sources': [ |
| 28 'public/system/core.h', |
| 29 'system/core.cc', |
| 30 'system/core_impl.cc', |
| 31 'system/core_impl.h', |
| 32 'system/dispatcher.cc', |
| 33 'system/dispatcher.h', |
| 34 'system/limits.h', |
| 35 'system/memory.cc', |
| 36 'system/memory.h', |
| 37 'system/message_pipe.cc', |
| 38 'system/message_pipe.h', |
| 39 'system/message_pipe_dispatcher.cc', |
| 40 'system/message_pipe_dispatcher.h', |
| 41 'system/simple_dispatcher.cc', |
| 42 'system/simple_dispatcher.h', |
| 43 'system/waiter.cc', |
| 44 'system/waiter.h', |
| 45 'system/waiter_list.cc', |
| 46 'system/waiter_list.h', |
| 47 ], |
| 48 'direct_dependent_settings': { |
| 49 'include_dirs': [ |
| 50 '..', |
| 51 ], |
| 52 }, |
| 53 }, |
| 54 { |
| 55 'target_name': 'mojo_core_unittests', |
| 56 'type': 'executable', |
| 57 'dependencies': [ |
| 58 '../base/base.gyp:run_all_unittests', |
| 59 '../testing/gtest.gyp:gtest', |
| 60 'mojo_core', |
| 61 ], |
| 62 'sources': [ |
| 63 'system/core_impl_unittest.cc', |
| 64 'system/core_test_base.cc', |
| 65 'system/core_test_base.h', |
| 66 'system/dispatcher_unittest.cc', |
| 67 'system/message_pipe_dispatcher_unittest.cc', |
| 68 'system/message_pipe_unittest.cc', |
| 69 'system/simple_dispatcher_unittest.cc', |
| 70 'system/test_utils.h', |
| 71 'system/waiter_list_unittest.cc', |
| 72 'system/waiter_test_utils.cc', |
| 73 'system/waiter_test_utils.h', |
| 74 'system/waiter_unittest.cc', |
| 75 ], |
16 }, | 76 }, |
17 ], | 77 ], |
18 } | 78 } |
OLD | NEW |