Skip to content

Commit

Permalink
Add SPM support
Browse files Browse the repository at this point in the history
  • Loading branch information
MatkovIvan committed Apr 30, 2020
1 parent 11f11ca commit 0081eb3
Show file tree
Hide file tree
Showing 25 changed files with 57 additions and 7 deletions.
14 changes: 7 additions & 7 deletions CrashReporter.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1788,7 +1788,6 @@
isa = PBXGroup;
children = (
05CD33520EE9457D000FDE88 /* CrashReporter.exp */,
C2620D482451D28B00B11E68 /* CrashReporter.modulemap */,
C2F7F26A2451F796002BD8BF /* Default-568h@2x.png */,
C2F7F2302451F081002BD8BF /* DemoCrash-iOS-Info.plist */,
05F40CE90EF7AB80008050CF /* DemoCrash-macOS-Info.plist */,
Expand All @@ -1806,6 +1805,7 @@
children = (
05CD31890EE93A90000FDE88 /* CrashReporter.h */,
05CD318A0EE93A90000FDE88 /* CrashReporter.m */,
C2620D482451D28B00B11E68 /* CrashReporter.modulemap */,
054F51070EEC73C80034B184 /* PLCrashReporter.h */,
05F40ACA0EF7379F008050CF /* PLCrashReporter.m */,
05BEC43417BF1CB10082CBFB /* PLCrashReporterConfig.h */,
Expand Down Expand Up @@ -3377,7 +3377,7 @@
GENERATE_MASTER_OBJECT_FILE = YES;
INFOPLIST_FILE = Resources/Info.plist;
MACH_O_TYPE = staticlib;
MODULEMAP_FILE = Resources/CrashReporter.modulemap;
MODULEMAP_FILE = Source/CrashReporter.modulemap;
OTHER_LDFLAGS = "-ObjC";
SDKROOT = iphoneos;
SUPPORTS_MACCATALYST = NO;
Expand All @@ -3397,7 +3397,7 @@
GENERATE_MASTER_OBJECT_FILE = YES;
INFOPLIST_FILE = Resources/Info.plist;
MACH_O_TYPE = staticlib;
MODULEMAP_FILE = Resources/CrashReporter.modulemap;
MODULEMAP_FILE = Source/CrashReporter.modulemap;
OTHER_LDFLAGS = "-ObjC";
SDKROOT = iphoneos;
SUPPORTS_MACCATALYST = NO;
Expand Down Expand Up @@ -3588,7 +3588,7 @@
GENERATE_MASTER_OBJECT_FILE = YES;
INFOPLIST_FILE = Resources/Info.plist;
MACH_O_TYPE = mh_dylib;
MODULEMAP_FILE = Resources/CrashReporter.modulemap;
MODULEMAP_FILE = Source/CrashReporter.modulemap;
OTHER_CFLAGS = (
"$(inherited)",
"-DPLCF_MIN_MACOSX_SDK=$(PL_MIN_MACOSX_SDK)",
Expand All @@ -3607,7 +3607,7 @@
GENERATE_MASTER_OBJECT_FILE = YES;
INFOPLIST_FILE = Resources/Info.plist;
MACH_O_TYPE = mh_dylib;
MODULEMAP_FILE = Resources/CrashReporter.modulemap;
MODULEMAP_FILE = Source/CrashReporter.modulemap;
OTHER_CFLAGS = (
"$(inherited)",
"-DPLCF_MIN_MACOSX_SDK=$(PL_MIN_MACOSX_SDK)",
Expand Down Expand Up @@ -3724,7 +3724,7 @@
GENERATE_MASTER_OBJECT_FILE = YES;
INFOPLIST_FILE = Resources/Info.plist;
MACH_O_TYPE = staticlib;
MODULEMAP_FILE = Resources/CrashReporter.modulemap;
MODULEMAP_FILE = Source/CrashReporter.modulemap;
OTHER_LDFLAGS = "-ObjC";
SDKROOT = appletvos;
};
Expand All @@ -3741,7 +3741,7 @@
GENERATE_MASTER_OBJECT_FILE = YES;
INFOPLIST_FILE = Resources/Info.plist;
MACH_O_TYPE = staticlib;
MODULEMAP_FILE = Resources/CrashReporter.modulemap;
MODULEMAP_FILE = Source/CrashReporter.modulemap;
OTHER_LDFLAGS = "-ObjC";
SDKROOT = appletvos;
};
Expand Down
28 changes: 28 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
// swift-tools-version:5.0

import PackageDescription

let package = Package(
name: "PLCrashReporter",
products: [
.library(name: "CrashReporter", targets: ["CrashReporter"])
],
targets: [
.target(
name: "CrashReporter",
path: "",
exclude: ["*Tests.m*"],
sources: [
"Source",
"Dependencies"
],
cSettings: [
.define("PLCR_PRIVATE"),
.define("PLCF_RELEASE_BUILD")
],
linkerSettings: [
.linkedFramework("Foundation")
]
)
]
)
File renamed without changes.
1 change: 1 addition & 0 deletions include/CrashReporter.h
1 change: 1 addition & 0 deletions include/PLCrashFeatureConfig.h
1 change: 1 addition & 0 deletions include/PLCrashMacros.h
1 change: 1 addition & 0 deletions include/PLCrashNamespace.h
1 change: 1 addition & 0 deletions include/PLCrashReport.h
1 change: 1 addition & 0 deletions include/PLCrashReportApplicationInfo.h
1 change: 1 addition & 0 deletions include/PLCrashReportBinaryImageInfo.h
1 change: 1 addition & 0 deletions include/PLCrashReportExceptionInfo.h
1 change: 1 addition & 0 deletions include/PLCrashReportFormatter.h
1 change: 1 addition & 0 deletions include/PLCrashReportMachExceptionInfo.h
1 change: 1 addition & 0 deletions include/PLCrashReportMachineInfo.h
1 change: 1 addition & 0 deletions include/PLCrashReportProcessInfo.h
1 change: 1 addition & 0 deletions include/PLCrashReportProcessorInfo.h
1 change: 1 addition & 0 deletions include/PLCrashReportRegisterInfo.h
1 change: 1 addition & 0 deletions include/PLCrashReportSignalInfo.h
1 change: 1 addition & 0 deletions include/PLCrashReportStackFrameInfo.h
1 change: 1 addition & 0 deletions include/PLCrashReportSymbolInfo.h
1 change: 1 addition & 0 deletions include/PLCrashReportSystemInfo.h
1 change: 1 addition & 0 deletions include/PLCrashReportTextFormatter.h
1 change: 1 addition & 0 deletions include/PLCrashReportThreadInfo.h
1 change: 1 addition & 0 deletions include/PLCrashReporter.h
1 change: 1 addition & 0 deletions include/PLCrashReporterConfig.h

0 comments on commit 0081eb3

Please sign in to comment.