Index: mojo/mojo.gyp |
diff --git a/mojo/mojo.gyp b/mojo/mojo.gyp |
index e323d28810962ef494114626d4fe279bd768f9d4..dd14016e2ff887f188ce246769ea931c6b323cc3 100644 |
--- a/mojo/mojo.gyp |
+++ b/mojo/mojo.gyp |
@@ -4,7 +4,7 @@ |
{ |
'variables': { |
- 'chromium_code': 1, # Use higher warning level. |
+ 'chromium_code': 1, |
}, |
'target_defaults': { |
'defines': ['MOJO_IMPLEMENTATION'], |
@@ -14,7 +14,66 @@ |
'target_name': 'mojo', |
'type': 'none', |
'dependencies': [ |
+ 'mojo_core', |
+ 'mojo_core_unittests', |
darin (slow to review)
2013/09/24 22:48:19
It might be nice to only have mojo_unittests inste
viettrungluu
2013/09/26 17:59:15
Pros of having more unit test binaries:
- smaller,
|
'mojo_message', |
+ 'mojo_unittests', |
+ ], |
+ }, |
+ { |
+ 'target_name': 'mojo_core', |
darin (slow to review)
2013/09/24 22:48:19
should this be mojo_system instead to match the mo
viettrungluu
2013/09/26 17:59:15
Done.
|
+ 'type': '<(component)', |
+ 'dependencies': [ |
+ '../base/base.gyp:base', |
+ ], |
+ 'sources': [ |
+ 'public/system/core.h', |
+ 'system/core.cc', |
+ 'system/core_impl.cc', |
+ 'system/core_impl.h', |
+ 'system/dispatcher.cc', |
+ 'system/dispatcher.h', |
+ 'system/limits.h', |
+ 'system/memory.cc', |
+ 'system/memory.h', |
+ 'system/message_pipe.cc', |
+ 'system/message_pipe.h', |
+ 'system/message_pipe_dispatcher.cc', |
+ 'system/message_pipe_dispatcher.h', |
+ 'system/simple_dispatcher.cc', |
+ 'system/simple_dispatcher.h', |
+ 'system/waiter.cc', |
+ 'system/waiter.h', |
+ 'system/waiter_list.cc', |
+ 'system/waiter_list.h', |
+ ], |
+ 'direct_dependent_settings': { |
+ 'include_dirs': [ |
+ '..', |
+ ], |
+ }, |
+ }, |
+ { |
+ 'target_name': 'mojo_core_unittests', |
+ 'type': 'executable', |
+ 'dependencies': [ |
+ '../base/base.gyp:run_all_unittests', |
+ '../testing/gtest.gyp:gtest', |
+ 'mojo_core', |
+ ], |
+ 'sources': [ |
+ 'system/core_impl_unittest.cc', |
+ 'system/core_test_base.cc', |
+ 'system/core_test_base.h', |
+ 'system/dispatcher_unittest.cc', |
+ 'system/message_pipe_dispatcher_unittest.cc', |
+ 'system/message_pipe_unittest.cc', |
+ 'system/simple_dispatcher_unittest.cc', |
+ 'system/test_utils.h', |
+ 'system/waiter_list_unittest.cc', |
+ 'system/waiter_test_utils.cc', |
+ 'system/waiter_test_utils.h', |
+ 'system/waiter_unittest.cc', |
], |
}, |
{ |