Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 18bca70

Browse files
authored
dynamic ocmock (#404)
1 parent 236a746 commit 18bca70

File tree

1 file changed

+12
-0
lines changed
  • build/secondary/third_party/ocmock

1 file changed

+12
-0
lines changed

build/secondary/third_party/ocmock/BUILD.gn

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ source_set("ocmock_src") {
1818
"-fvisibility=default",
1919
"-Wno-misleading-indentation",
2020
]
21+
if (is_ios) {
22+
cflags += [ "-mios-simulator-version-min=$ios_testing_deployment_target" ]
23+
}
24+
2125
sources = [
2226
"$ocmock_path/OCMock/NSInvocation+OCMAdditions.h",
2327
"$ocmock_path/OCMock/NSInvocation+OCMAdditions.m",
@@ -92,6 +96,14 @@ source_set("ocmock_src") {
9296
"$ocmock_path/OCMock/OCProtocolMockObject.h",
9397
"$ocmock_path/OCMock/OCProtocolMockObject.m",
9498
]
99+
100+
libs = [ "Foundation.framework" ]
101+
}
102+
103+
shared_library("ocmock_shared") {
104+
deps = [ ":ocmock_src" ]
105+
cflags = [ "-fvisibility=default" ]
106+
ldflags = [ "-Wl,-install_name,@rpath/Frameworks/libocmock_shared.dylib" ]
95107
}
96108

97109
# Generates a static library, used in iOS unit test targets

0 commit comments

Comments
 (0)