Skip to content

Commit

Permalink
Merge 681fb5b into 87dc191
Browse files Browse the repository at this point in the history
  • Loading branch information
tnek committed Sep 8, 2021
2 parents 87dc191 + 681fb5b commit 816ddb4
Show file tree
Hide file tree
Showing 4 changed files with 150 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@ Pods
Santa.xcodeproj/*
Santa.xcworkspace/*
CoverageData/*
*.tulsiconf-user
xcuserdata
tulsigen-*
4 changes: 4 additions & 0 deletions docs/development/building.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,10 @@ useful to use Xcode for actually working on the code. If you'd like to use Xcode
you can use [Tulsi](https://tulsi.bazel.build) to generate an `.xcodeproj` from
the BUILD file which will use Bazel for actually doing the builds.

```sh
generate_xcodeproj.sh santa.tulsiproj
```

#### Debugging

Xcode and lldb can be used to debug Santa, similarly to any other project, with
Expand Down
122 changes: 122 additions & 0 deletions santa.tulsiproj/Configs/Santa.tulsigen
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
{
"additionalFilePaths" : [
"Source/santa/BUILD",
"Source/santactl/BUILD",
"Source/santabundleservice/BUILD",
"Source/santa_driver/BUILD",
"Source/common/BUILD",
"Source/santad/BUILD",
"/BUILD",
"Source/santasyncservice/BUILD"
],
"buildTargets" : [
"//:unit_tests",
"//Source/santa:Santa",
"//Source/santa_driver:kernel_tests_bin",
"//Source/santabundleservice:santabundleservice",
"//Source/santactl:santactl",
"//Source/santad:com.google.santa.daemon",
"//Source/santasyncservice:santasyncservice"
],
"optionSet" : {
"BazelBuildOptionsDebug" : {
"p" : "$(inherited)"
},
"BazelBuildOptionsRelease" : {
"p" : "$(inherited)"
},
"BazelBuildStartupOptionsDebug" : {
"p" : "$(inherited)"
},
"BazelBuildStartupOptionsRelease" : {
"p" : "$(inherited)"
},
"BuildActionPostActionScript" : {
"p" : "$(inherited)"
},
"BuildActionPreActionScript" : {
"p" : "$(inherited)"
},
"CommandlineArguments" : {
"p" : "$(inherited)"
},
"EnvironmentVariables" : {
"p" : "$(inherited)"
},
"LaunchActionPostActionScript" : {
"p" : "$(inherited)"
},
"LaunchActionPreActionScript" : {
"p" : "$(inherited)"
},
"ProjectGenerationBazelStartupOptions" : {
"p" : "$(inherited)"
},
"TestActionPostActionScript" : {
"p" : "$(inherited)"
},
"TestActionPreActionScript" : {
"p" : "$(inherited)"
}
},
"projectName" : "santa",
"sourceFilters" : [
"Source/...",
"Source/common",
"Source/santa",
"Source/santa/Resources",
"Source/santabundleservice",
"Source/santactl",
"Source/santactl/Commands",
"Source/santactl/Commands/sync",
"Source/santad",
"Source/santad/DataLayer",
"Source/santad/EventProviders",
"Source/santad/Logs",
"external/...",
"external/FMDB",
"external/FMDB/src",
"external/FMDB/src/fmdb",
"external/MOLAuthenticatingURLSession",
"external/MOLAuthenticatingURLSession/Source",
"external/MOLAuthenticatingURLSession/Source/MOLAuthenticatingURLSession",
"external/MOLCertificate",
"external/MOLCertificate/Source",
"external/MOLCertificate/Source/MOLCertificate",
"external/MOLCodesignChecker",
"external/MOLCodesignChecker/Source",
"external/MOLCodesignChecker/Source/MOLCodesignChecker",
"external/MOLXPCConnection",
"external/MOLXPCConnection/Source",
"external/MOLXPCConnection/Source/MOLXPCConnection",
"external/bazel_skylib",
"external/bazel_skylib/lib",
"external/bazel_skylib/rules",
"external/bazel_tools",
"external/bazel_tools/tools",
"external/bazel_tools/tools/build_defs",
"external/bazel_tools/tools/build_defs/cc",
"external/build_bazel_apple_support",
"external/build_bazel_apple_support/lib",
"external/build_bazel_rules_apple",
"external/build_bazel_rules_apple/apple",
"external/build_bazel_rules_apple/apple/internal",
"external/build_bazel_rules_apple/apple/internal/aspects",
"external/build_bazel_rules_apple/apple/internal/partials",
"external/build_bazel_rules_apple/apple/internal/partials/support",
"external/build_bazel_rules_apple/apple/internal/resource_actions",
"external/build_bazel_rules_apple/apple/internal/resource_rules",
"external/build_bazel_rules_apple/apple/internal/testing",
"external/build_bazel_rules_apple/apple/internal/utils",
"external/build_bazel_rules_swift",
"external/build_bazel_rules_swift/swift",
"external/build_bazel_rules_swift/swift/internal",
"external/rules_cc",
"external/rules_cc/cc",
"external/rules_cc/cc/private",
"external/rules_cc/cc/private/rules_impl",
"external/rules_proto",
"external/rules_proto/proto",
"external/rules_proto/proto/private"
]
}
21 changes: 21 additions & 0 deletions santa.tulsiproj/project.tulsiconf
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"configDefaults" : {
"optionSet" : {
"ALWAYS_SEARCH_USER_PATHS" : {
"p" : "YES"
}
}
},
"packages" : [
"",
"Source/common",
"Source/santa",
"Source/santa_driver",
"Source/santabundleservice",
"Source/santactl",
"Source/santad",
"Source/santasyncservice"
],
"projectName" : "santa",
"workspaceRoot" : ".."
}

0 comments on commit 816ddb4

Please sign in to comment.