| 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, # Use higher warning level. |
| 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_message', | |
| 18 ], | |
| 19 }, | |
| 20 { | |
| 21 'target_name': 'mojo_message', | |
| 22 'type': 'static_library', | |
| 23 'include_dirs': [ | |
| 24 '..', | |
| 25 ], | |
| 26 'sources': [ | |
| 27 'public/libs/message/message.cc', | |
| 28 'public/libs/message/message.h', | |
| 29 'public/libs/message/message_builder.cc', | |
| 30 'public/libs/message/message_builder.h', | |
| 31 ], | |
| 32 }, | |
| 33 { | |
| 34 'target_name': 'mojo_unittests', | |
| 35 'type': 'executable', | |
| 36 'dependencies': [ | |
| 37 'mojo_message', | |
| 38 '../base/base.gyp:run_all_unittests', | |
| 39 '../testing/gtest.gyp:gtest', | |
| 40 ], | |
| 41 'include_dirs': [ | |
| 42 '..' | |
| 43 ], | |
| 44 'sources': [ | |
| 45 'public/libs/message/message_unittest.cc', | |
| 46 ], | |
| 47 }, | 16 }, |
| 48 ], | 17 ], |
| 49 } | 18 } |
| OLD | NEW |