Skip to content
This repository was archived by the owner on Apr 21, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 12 additions & 5 deletions build/secondary/third_party/ocmock/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,18 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

assert(is_ios)

ocmock_path = "//third_party/ocmock/Source"

# OCMock headers use `#import <OCMock/Foo.h>`.
config("ocmock_config") {
include_dirs = [ "$ocmock_path" ]
}

# This is a static library so it can be used by xcode's build system too.
static_library("ocmock") {
source_set("ocmock_src") {
configs -= [ "//build/config/compiler:chromium_code" ]
all_dependent_configs = [ ":ocmock_config" ]
cflags = [
"-fvisibility=default",
"-mios-simulator-version-min=$ios_testing_deployment_target",
"-Wno-misleading-indentation",
]
sources = [
Expand Down Expand Up @@ -92,3 +88,14 @@ static_library("ocmock") {
]
}

# This is a static library so it can be used by xcode's build system too.
static_library("ocmock") {
if (is_ios) {
cflags = [
"-mios-simulator-version-min=$ios_testing_deployment_target",
]
}
public_deps = [
":ocmock_src",
]
}