Merge pull request #74 from microsoft/feature/spm-manifest
Add SwiftPM manifest
This commit is contained in:
Коммит
f45707c063
|
@ -0,0 +1,41 @@
|
|||
// swift-tools-version:5.0
|
||||
|
||||
import PackageDescription
|
||||
|
||||
let package = Package(
|
||||
name: "PLCrashReporter",
|
||||
products: [
|
||||
.library(name: "CrashReporter", targets: ["CrashReporter"])
|
||||
],
|
||||
targets: [
|
||||
.target(
|
||||
name: "CrashReporter",
|
||||
path: "",
|
||||
exclude: [
|
||||
"Source/dwarf_opstream.hpp",
|
||||
"Source/dwarf_stack.hpp",
|
||||
"Source/PLCrashAsyncDwarfCFAState.hpp",
|
||||
"Source/PLCrashAsyncDwarfCIE.hpp",
|
||||
"Source/PLCrashAsyncDwarfEncoding.hpp",
|
||||
"Source/PLCrashAsyncDwarfExpression.hpp",
|
||||
"Source/PLCrashAsyncDwarfFDE.hpp",
|
||||
"Source/PLCrashAsyncDwarfPrimitives.hpp",
|
||||
"Source/PLCrashAsyncLinkedList.hpp",
|
||||
"Source/PLCrashReport.proto"
|
||||
],
|
||||
sources: [
|
||||
"Source",
|
||||
"Dependencies/protobuf-c"
|
||||
],
|
||||
cSettings: [
|
||||
.define("PLCR_PRIVATE"),
|
||||
.define("PLCF_RELEASE_BUILD"),
|
||||
.define("PLCRASHREPORTER_PREFIX", to: ""),
|
||||
.headerSearchPath("Dependencies/protobuf-c")
|
||||
],
|
||||
linkerSettings: [
|
||||
.linkedFramework("Foundation")
|
||||
]
|
||||
)
|
||||
]
|
||||
)
|
|
@ -45,7 +45,7 @@
|
|||
*
|
||||
* @sa mach_exceptions
|
||||
*/
|
||||
#if !TARGET_OS_IPHONE
|
||||
#if !TARGET_OS_IPHONE && !SWIFT_PACKAGE
|
||||
/* If true, the mach_exc* APIs are available. */
|
||||
# define PL_MACH64_EXC_API 1
|
||||
|
||||
|
|
|
@ -42,7 +42,10 @@
|
|||
#endif
|
||||
|
||||
#if defined(__cplusplus)
|
||||
# if defined(PLCRASHREPORTER_PREFIX)
|
||||
# define NO_OTHER_MACRO_STARTS_WITH_THIS_NAME_
|
||||
# define IS_EMPTY_(name) defined(NO_OTHER_MACRO_STARTS_WITH_THIS_NAME_ ## name)
|
||||
# define IS_EMPTY(name) IS_EMPTY_(name)
|
||||
# if defined(PLCRASHREPORTER_PREFIX) && !IS_EMPTY(PLCRASHREPORTER_PREFIX)
|
||||
/** @internal Define the plcrash namespace, automatically inserting an inline namespace containing the configured PLCRASHREPORTER_PREFIX, if any. */
|
||||
# define PLCR_CPP_BEGIN_NS namespace plcrash { inline namespace PLCRASHREPORTER_PREFIX {
|
||||
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
../Source/CrashReporter.h
|
|
@ -0,0 +1 @@
|
|||
../Source/PLCrashFeatureConfig.h
|
|
@ -0,0 +1 @@
|
|||
../Source/PLCrashMacros.h
|
|
@ -0,0 +1 @@
|
|||
../Source/PLCrashNamespace.h
|
|
@ -0,0 +1 @@
|
|||
../Source/PLCrashReport.h
|
|
@ -0,0 +1 @@
|
|||
../Source/PLCrashReportApplicationInfo.h
|
|
@ -0,0 +1 @@
|
|||
../Source/PLCrashReportBinaryImageInfo.h
|
|
@ -0,0 +1 @@
|
|||
../Source/PLCrashReportExceptionInfo.h
|
|
@ -0,0 +1 @@
|
|||
../Source/PLCrashReportFormatter.h
|
|
@ -0,0 +1 @@
|
|||
../Source/PLCrashReportMachExceptionInfo.h
|
|
@ -0,0 +1 @@
|
|||
../Source/PLCrashReportMachineInfo.h
|
|
@ -0,0 +1 @@
|
|||
../Source/PLCrashReportProcessInfo.h
|
|
@ -0,0 +1 @@
|
|||
../Source/PLCrashReportProcessorInfo.h
|
|
@ -0,0 +1 @@
|
|||
../Source/PLCrashReportRegisterInfo.h
|
|
@ -0,0 +1 @@
|
|||
../Source/PLCrashReportSignalInfo.h
|
|
@ -0,0 +1 @@
|
|||
../Source/PLCrashReportStackFrameInfo.h
|
|
@ -0,0 +1 @@
|
|||
../Source/PLCrashReportSymbolInfo.h
|
|
@ -0,0 +1 @@
|
|||
../Source/PLCrashReportSystemInfo.h
|
|
@ -0,0 +1 @@
|
|||
../Source/PLCrashReportTextFormatter.h
|
|
@ -0,0 +1 @@
|
|||
../Source/PLCrashReportThreadInfo.h
|
|
@ -0,0 +1 @@
|
|||
../Source/PLCrashReporter.h
|
|
@ -0,0 +1 @@
|
|||
../Source/PLCrashReporterConfig.h
|
Загрузка…
Ссылка в новой задаче