OLD | NEW |
1 # Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2015 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 assert(is_mac || is_ios) | 5 assert(is_mac || is_ios) |
6 | 6 |
7 config("ocmock_config") { | 7 config("ocmock_config") { |
8 include_dirs = [ "//third_party/ocmock" ] | 8 include_dirs = [ "//third_party/ocmock" ] |
9 } | 9 } |
10 | 10 |
| 11 config("ocmock_warnings") { |
| 12 # NSInvocation+OCMAdditions.m has some `- (void) foo; {...` |
| 13 cflags = [ "-Wno-semicolon-before-method-body" ] |
| 14 } |
| 15 |
11 source_set("ocmock") { | 16 source_set("ocmock") { |
12 testonly = true | 17 testonly = true |
13 | 18 |
14 sources = [ | 19 sources = [ |
15 # Helper for using with gtest. | 20 # Helper for using with gtest. |
16 "gtest_support.h", | 21 "gtest_support.h", |
17 "gtest_support.mm", | 22 "gtest_support.mm", |
18 | 23 |
19 # Some extra features to make using OCMock easier. | 24 # Some extra features to make using OCMock easier. |
20 "ocmock_extensions.h", | 25 "ocmock_extensions.h", |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 "OCMock/OCPartialMockRecorder.h", | 68 "OCMock/OCPartialMockRecorder.h", |
64 "OCMock/OCPartialMockRecorder.m", | 69 "OCMock/OCPartialMockRecorder.m", |
65 "OCMock/OCProtocolMockObject.h", | 70 "OCMock/OCProtocolMockObject.h", |
66 "OCMock/OCProtocolMockObject.m", | 71 "OCMock/OCProtocolMockObject.m", |
67 ] | 72 ] |
68 | 73 |
69 deps = [ | 74 deps = [ |
70 "//testing/gtest", | 75 "//testing/gtest", |
71 ] | 76 ] |
72 public_configs = [ ":ocmock_config" ] | 77 public_configs = [ ":ocmock_config" ] |
| 78 configs += [ ":ocmock_warnings" ] |
73 } | 79 } |
OLD | NEW |