File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
build/secondary/third_party/ocmock Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments