Skip to content

Commit

Permalink
Fix layering issue for imported module
Browse files Browse the repository at this point in the history
  • Loading branch information
mlw committed Sep 13, 2023
1 parent ff6bf07 commit ec58d7a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 13 deletions.
21 changes: 8 additions & 13 deletions Source/common/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,10 @@ objc_library(
],
)

# Note: `srcs`/`hdrs` are left unspecified here because `defines` from the
# `SNTBlockMessage_SantaGUI` target do not propagate to `deps`.
objc_library(
name = "SNTBlockMessage_CommonDeps",
name = "SNTBlockMessage",
srcs = ["SNTBlockMessage.m"],
hdrs = ["SNTBlockMessage.h"],
deps = [
":SNTConfigurator",
":SNTFileAccessEvent",
Expand All @@ -106,22 +106,17 @@ objc_library(
],
)

objc_library(
name = "SNTBlockMessage",
srcs = ["SNTBlockMessage.m"],
hdrs = ["SNTBlockMessage.h"],
deps = [
":SNTBlockMessage_CommonDeps",
],
)

objc_library(
name = "SNTBlockMessage_SantaGUI",
srcs = ["SNTBlockMessage.m"],
hdrs = ["SNTBlockMessage.h"],
defines = ["SANTAGUI"],
deps = [
":SNTBlockMessage_CommonDeps",
":SNTConfigurator",
":SNTFileAccessEvent",
":SNTLogging",
":SNTStoredEvent",
":SNTSystemInfo",
],
)

Expand Down
8 changes: 8 additions & 0 deletions Source/gui/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,21 @@ swift_library(
],
)

objc_library(
name = "SecurityInterfaceImport",
sdk_frameworks = [
"SecurityInterface",
],
)

swift_library(
name = "SNTFileAccessMessageWindowView",
srcs = [
"SNTFileAccessMessageWindowView.swift",
],
generates_header = 1,
deps = [
":SecurityInterfaceImport",
"//Source/common:SNTFileAccessEvent",
],
)
Expand Down

0 comments on commit ec58d7a

Please sign in to comment.