Build with both systems

This commit is contained in:
Ali 2020-02-19 04:58:49 +04:00
parent 1e742ea3f9
commit c274acfe07
16 changed files with 88 additions and 86 deletions

View file

@ -12,16 +12,10 @@ static_library(
name = "OverlayStatusController",
srcs = glob([
"Sources/**/*.swift",
"Impl/**/*.m",
]),
headers = glob([
"Impl/**/*.h",
]),
exported_headers = glob([
"Impl/**/*.h",
]),
deps = [
"//submodules/Display:Display#shared",
"//submodules/OverlayStatusController/Impl:OverlayStatusControllerImpl",
],
frameworks = [
"$SDKROOT/System/Library/Frameworks/Foundation.framework",

View file

@ -1,8 +1,18 @@
load("@build_bazel_rules_swift//swift:swift.bzl", "swift_library")
filegroup(
name = "OverlayStatusControllerResources",
srcs = glob([
"Resources/**/*",
], exclude = ["Resources/**/.*"]),
)
swift_library(
name = "OverlayStatusController",
module_name = "OverlayStatusController",
data = [
":OverlayStatusControllerResources",
],
srcs = glob([
"Sources/**/*.swift",
]),

View file

@ -0,0 +1,15 @@
load("//Config:buck_rule_macros.bzl", "static_library")
static_library(
name = "OverlayStatusControllerImpl",
srcs = glob([
"Sources/**/*.m",
]),
exported_headers = glob([
"Sources/**/*.h",
]),
frameworks = [
"$SDKROOT/System/Library/Frameworks/Foundation.framework",
"$SDKROOT/System/Library/Frameworks/UIKit.framework",
],
)

View file

@ -11,8 +11,6 @@ objc_library(
includes = [
"Sources",
],
deps = [
],
visibility = [
"//visibility:public",
],