Skip to content

Commit

Permalink
Add Bazel support (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
russellhancox authored Sep 4, 2018
1 parent 49455a2 commit e983780
Show file tree
Hide file tree
Showing 9 changed files with 78 additions and 467 deletions.
4 changes: 1 addition & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
.DS_Store
*/build/*
Pods
xcuserdata
xcuserdata/*
bazel-*
31 changes: 31 additions & 0 deletions BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# NOTE: If you try and build this rule standalone it will fail, because
# Bazel will attempt to compile it for iOS by default. Including it as a
# dependency in a macos_* rule works fine.
objc_library(
name = "MOLCertificate",
srcs = ["Source/MOLCertificate/MOLCertificate.m"],
hdrs = ["Source/MOLCertificate/MOLCertificate.h"],
includes = ["Source"],
sdk_frameworks = [
"Foundation",
"Security",
],
visibility = ["//visibility:public"],
)

objc_library(
name = "MOLCertificateTestsLib",
srcs = glob(["Tests/MOLCertificateTest.m"]),
resources = glob([
"Tests/*.pem",
"Tests/*.crt",
]),
deps = [":MOLCertificate"],
)

load("@build_bazel_rules_apple//apple:macos.bzl", "macos_unit_test")
macos_unit_test(
name = "MOLCertificateTests",
minimum_os_version = "10.9",
deps = [":MOLCertificateTestsLib"],
)
2 changes: 1 addition & 1 deletion MOLCertificate.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'MOLCertificate'
s.version = '1.9'
s.version = '2.0'
s.platform = :osx, '10.9'
s.license = { :type => 'Apache', :file => 'LICENSE' }
s.homepage = 'https://github.com/google/macops-molcertificate'
Expand Down
Loading

0 comments on commit e983780

Please sign in to comment.