| 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") { | 11 config("ocmock_warnings") { |
| 12 # NSInvocation+OCMAdditions.m has some `- (void) foo; {...` | 12 # NSInvocation+OCMAdditions.m has some `- (void) foo; {...` |
| 13 cflags = [ "-Wno-semicolon-before-method-body" ] | 13 cflags = [ |
| 14 "-Wno-semicolon-before-method-body", |
| 15 "-Wno-undeclared-selector", |
| 16 ] |
| 14 } | 17 } |
| 15 | 18 |
| 16 source_set("ocmock") { | 19 source_set("ocmock") { |
| 17 testonly = true | 20 testonly = true |
| 18 | 21 |
| 19 sources = [ | 22 sources = [ |
| 20 # Helper for using with gtest. | 23 # Helper for using with gtest. |
| 21 "gtest_support.h", | 24 "gtest_support.h", |
| 22 "gtest_support.mm", | 25 "gtest_support.mm", |
| 23 | 26 |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 "OCMock/OCProtocolMockObject.h", | 73 "OCMock/OCProtocolMockObject.h", |
| 71 "OCMock/OCProtocolMockObject.m", | 74 "OCMock/OCProtocolMockObject.m", |
| 72 ] | 75 ] |
| 73 | 76 |
| 74 deps = [ | 77 deps = [ |
| 75 "//testing/gtest", | 78 "//testing/gtest", |
| 76 ] | 79 ] |
| 77 public_configs = [ ":ocmock_config" ] | 80 public_configs = [ ":ocmock_config" ] |
| 78 configs += [ ":ocmock_warnings" ] | 81 configs += [ ":ocmock_warnings" ] |
| 79 } | 82 } |
| OLD | NEW |