diff options
author | dianshi <arturs.artamonovs@protonmail.com> | 2023-06-24 08:33:07 +0100 |
---|---|---|
committer | dianshi <arturs.artamonovs@protonmail.com> | 2023-06-24 08:33:07 +0100 |
commit | e46a011e0289d58e77145577dcc5ae850f41e30d (patch) | |
tree | b121345036e78d77832967f325d6cde93a67cf47 | |
parent | be866bf22b370f5d525b91dee6719394d5f7baa9 (diff) | |
download | r820sdr-init-e46a011e0289d58e77145577dcc5ae850f41e30d.tar.gz r820sdr-init-e46a011e0289d58e77145577dcc5ae850f41e30d.zip |
Creating compiling Register Watch
-rw-r--r-- | RegisterWatch/main.swift | 13 | ||||
-rw-r--r-- | hardware/r820.swift | 1 | ||||
-rw-r--r-- | r820sdr-init.xcodeproj/project.pbxproj | 297 | ||||
-rw-r--r-- | r820sdr/main.swift | 4 |
4 files changed, 311 insertions, 4 deletions
diff --git a/RegisterWatch/main.swift b/RegisterWatch/main.swift new file mode 100644 index 0000000..41871f2 --- /dev/null +++ b/RegisterWatch/main.swift @@ -0,0 +1,13 @@ +// +// main.swift +// RegisterWatch +// +// Created by Jacky Jack on 24/06/2023. +// + +import Foundation + +print("Register Watch") + + + diff --git a/hardware/r820.swift b/hardware/r820.swift index 366f784..a8fc702 100644 --- a/hardware/r820.swift +++ b/hardware/r820.swift @@ -8,6 +8,7 @@ //https://www.kodeco.com/7181017-unsafe-swift-using-pointers-and-interacting-with-c import Foundation +import r820sdr_init public class R820API { diff --git a/r820sdr-init.xcodeproj/project.pbxproj b/r820sdr-init.xcodeproj/project.pbxproj index 14de209..f7e3f67 100644 --- a/r820sdr-init.xcodeproj/project.pbxproj +++ b/r820sdr-init.xcodeproj/project.pbxproj @@ -8,6 +8,24 @@ /* Begin PBXBuildFile section */ 8D77338F27E136D4001E36AA /* r820.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8D77338E27E136D4001E36AA /* r820.swift */; }; + 8DAE47F22A46C82A00185BEA /* cmd_parse.c in Sources */ = {isa = PBXBuildFile; fileRef = 8DAE47B32A463A4E00185BEA /* cmd_parse.c */; }; + 8DAE47F32A46C82A00185BEA /* cmd.c in Sources */ = {isa = PBXBuildFile; fileRef = 8DAE47AE2A463A4E00185BEA /* cmd.c */; }; + 8DAE47F42A46C87B00185BEA /* cmd.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8DAE47B22A463A4E00185BEA /* cmd.swift */; }; + 8DAE47F52A46C89800185BEA /* cmd_parse.h in Headers */ = {isa = PBXBuildFile; fileRef = 8DAE47B42A463A4E00185BEA /* cmd_parse.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 8DAE47F62A46C89800185BEA /* cmd-Bridging-Header.h in Headers */ = {isa = PBXBuildFile; fileRef = 8DAE47AF2A463A4E00185BEA /* cmd-Bridging-Header.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 8DAE47F72A46C89800185BEA /* cmd.h in Headers */ = {isa = PBXBuildFile; fileRef = 8DAE47AD2A463A4E00185BEA /* cmd.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 8DAE47F82A46C89800185BEA /* debug.h in Headers */ = {isa = PBXBuildFile; fileRef = 8DAE47B12A463A4E00185BEA /* debug.h */; }; + 8DAE47F92A46C89800185BEA /* queue.h in Headers */ = {isa = PBXBuildFile; fileRef = 8DAE47B02A463A4E00185BEA /* queue.h */; }; + 8DAE480C2A46CEBF00185BEA /* main.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8DAE480B2A46CEBF00185BEA /* main.swift */; }; + 8DAE48102A46CED700185BEA /* libcmd.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 8DAE47EE2A46C81A00185BEA /* libcmd.a */; }; + 8DAE48112A46CED700185BEA /* libr820.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 8DCBA89527DA5E330064EEA9 /* libr820.a */; }; + 8DAE48122A46CED700185BEA /* libusb.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 8DCBA87727DA59FD0064EEA9 /* libusb.a */; }; + 8DAE48142A46CEFC00185BEA /* CmdTool.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8DAE47A72A463A4600185BEA /* CmdTool.swift */; }; + 8DAE48152A46CEFC00185BEA /* Term.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8DAE47BE2A463A5600185BEA /* Term.swift */; }; + 8DAE48162A46CEFC00185BEA /* TermIO.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8DAE47BD2A463A5600185BEA /* TermIO.swift */; }; + 8DAE48182A46D03E00185BEA /* rtl-sdr_export.h in Headers */ = {isa = PBXBuildFile; fileRef = 8DCBA8AB27DA5EA70064EEA9 /* rtl-sdr_export.h */; }; + 8DAE48192A46D03E00185BEA /* rtl-sdr.h in Headers */ = {isa = PBXBuildFile; fileRef = 8DCBA8B127DA5EA70064EEA9 /* rtl-sdr.h */; }; + 8DAE48242A46D25900185BEA /* r820.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8D77338E27E136D4001E36AA /* r820.swift */; }; 8DCBA7FD27DA47130064EEA9 /* main.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8DCBA7FC27DA47130064EEA9 /* main.swift */; }; 8DCBA85727DA51230064EEA9 /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8DCBA84A27DA50760064EEA9 /* Security.framework */; }; 8DCBA85827DA512B0064EEA9 /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8DCBA84C27DA507D0064EEA9 /* CoreFoundation.framework */; }; @@ -74,6 +92,20 @@ /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ + 8DAE481C2A46D0AE00185BEA /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 8DCBA7F127DA47130064EEA9 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 8DCBA89427DA5E330064EEA9; + remoteInfo = r820; + }; + 8DAE48202A46D0D800185BEA /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 8DCBA7F127DA47130064EEA9 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 8DCBA87627DA59FD0064EEA9; + remoteInfo = libusb.a; + }; 8DCBA8CB27DA63190064EEA9 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 8DCBA7F127DA47130064EEA9 /* Project object */; @@ -91,6 +123,15 @@ /* End PBXContainerItemProxy section */ /* Begin PBXCopyFilesBuildPhase section */ + 8DAE48072A46CEBF00185BEA /* CopyFiles */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = /usr/share/man/man1/; + dstSubfolderSpec = 0; + files = ( + ); + runOnlyForDeploymentPostprocessing = 1; + }; 8DCBA7F727DA47130064EEA9 /* CopyFiles */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; @@ -104,6 +145,22 @@ /* Begin PBXFileReference section */ 8D77338E27E136D4001E36AA /* r820.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = r820.swift; sourceTree = "<group>"; }; + 8DAE47A72A463A4600185BEA /* CmdTool.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CmdTool.swift; sourceTree = "<group>"; }; + 8DAE47A82A463A4600185BEA /* main.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = main.swift; sourceTree = "<group>"; }; + 8DAE47A92A463A4600185BEA /* ClearScreen.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ClearScreen.swift; sourceTree = "<group>"; }; + 8DAE47AD2A463A4E00185BEA /* cmd.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = cmd.h; sourceTree = "<group>"; }; + 8DAE47AE2A463A4E00185BEA /* cmd.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = cmd.c; sourceTree = "<group>"; }; + 8DAE47AF2A463A4E00185BEA /* cmd-Bridging-Header.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "cmd-Bridging-Header.h"; sourceTree = "<group>"; }; + 8DAE47B02A463A4E00185BEA /* queue.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = queue.h; sourceTree = "<group>"; }; + 8DAE47B12A463A4E00185BEA /* debug.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = debug.h; sourceTree = "<group>"; }; + 8DAE47B22A463A4E00185BEA /* cmd.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = cmd.swift; sourceTree = "<group>"; }; + 8DAE47B32A463A4E00185BEA /* cmd_parse.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = cmd_parse.c; sourceTree = "<group>"; }; + 8DAE47B42A463A4E00185BEA /* cmd_parse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = cmd_parse.h; sourceTree = "<group>"; }; + 8DAE47BD2A463A5600185BEA /* TermIO.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TermIO.swift; sourceTree = "<group>"; }; + 8DAE47BE2A463A5600185BEA /* Term.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Term.swift; sourceTree = "<group>"; }; + 8DAE47EE2A46C81A00185BEA /* libcmd.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libcmd.a; sourceTree = BUILT_PRODUCTS_DIR; }; + 8DAE48092A46CEBF00185BEA /* RegisterWatch */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = RegisterWatch; sourceTree = BUILT_PRODUCTS_DIR; }; + 8DAE480B2A46CEBF00185BEA /* main.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = main.swift; sourceTree = "<group>"; }; 8DCBA7F927DA47130064EEA9 /* r820sdr-init */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = "r820sdr-init"; sourceTree = BUILT_PRODUCTS_DIR; }; 8DCBA7FC27DA47130064EEA9 /* main.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = main.swift; sourceTree = "<group>"; }; 8DCBA80927DA48DD0064EEA9 /* descriptor.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = descriptor.c; sourceTree = "<group>"; }; @@ -152,6 +209,23 @@ /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ + 8DAE47EC2A46C81A00185BEA /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 8DAE48062A46CEBF00185BEA /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 8DAE48102A46CED700185BEA /* libcmd.a in Frameworks */, + 8DAE48112A46CED700185BEA /* libr820.a in Frameworks */, + 8DAE48122A46CED700185BEA /* libusb.a in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; 8DCBA7F627DA47130064EEA9 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; @@ -192,11 +266,57 @@ /* End PBXFrameworksBuildPhase section */ /* Begin PBXGroup section */ + 8DAE47A32A4639A800185BEA /* LibTerm */ = { + isa = PBXGroup; + children = ( + 8DAE47BE2A463A5600185BEA /* Term.swift */, + 8DAE47BD2A463A5600185BEA /* TermIO.swift */, + ); + path = LibTerm; + sourceTree = "<group>"; + }; + 8DAE47A42A4639C700185BEA /* cmd */ = { + isa = PBXGroup; + children = ( + 8DAE47B32A463A4E00185BEA /* cmd_parse.c */, + 8DAE47B42A463A4E00185BEA /* cmd_parse.h */, + 8DAE47AF2A463A4E00185BEA /* cmd-Bridging-Header.h */, + 8DAE47AE2A463A4E00185BEA /* cmd.c */, + 8DAE47AD2A463A4E00185BEA /* cmd.h */, + 8DAE47B22A463A4E00185BEA /* cmd.swift */, + 8DAE47B12A463A4E00185BEA /* debug.h */, + 8DAE47B02A463A4E00185BEA /* queue.h */, + ); + path = cmd; + sourceTree = "<group>"; + }; + 8DAE47A52A4639FD00185BEA /* CmdLine */ = { + isa = PBXGroup; + children = ( + 8DAE47A92A463A4600185BEA /* ClearScreen.swift */, + 8DAE47A72A463A4600185BEA /* CmdTool.swift */, + 8DAE47A82A463A4600185BEA /* main.swift */, + ); + path = CmdLine; + sourceTree = "<group>"; + }; + 8DAE480A2A46CEBF00185BEA /* RegisterWatch */ = { + isa = PBXGroup; + children = ( + 8DAE480B2A46CEBF00185BEA /* main.swift */, + ); + path = RegisterWatch; + sourceTree = "<group>"; + }; 8DCBA7F027DA47130064EEA9 = { isa = PBXGroup; children = ( + 8DAE47A52A4639FD00185BEA /* CmdLine */, + 8DAE47A42A4639C700185BEA /* cmd */, + 8DAE47A32A4639A800185BEA /* LibTerm */, 8DCBA80327DA477C0064EEA9 /* hardware */, 8DCBA7FB27DA47130064EEA9 /* r820sdr */, + 8DAE480A2A46CEBF00185BEA /* RegisterWatch */, 8DCBA7FA27DA47130064EEA9 /* Products */, 8DCBA84327DA4E9D0064EEA9 /* Frameworks */, ); @@ -209,6 +329,8 @@ 8DCBA85227DA50E00064EEA9 /* libusb.dylib */, 8DCBA87727DA59FD0064EEA9 /* libusb.a */, 8DCBA89527DA5E330064EEA9 /* libr820.a */, + 8DAE47EE2A46C81A00185BEA /* libcmd.a */, + 8DAE48092A46CEBF00185BEA /* RegisterWatch */, ); name = Products; sourceTree = "<group>"; @@ -335,6 +457,27 @@ /* End PBXGroup section */ /* Begin PBXHeadersBuildPhase section */ + 8DAE47EA2A46C81A00185BEA /* Headers */ = { + isa = PBXHeadersBuildPhase; + buildActionMask = 2147483647; + files = ( + 8DAE47F62A46C89800185BEA /* cmd-Bridging-Header.h in Headers */, + 8DAE47F72A46C89800185BEA /* cmd.h in Headers */, + 8DAE47F52A46C89800185BEA /* cmd_parse.h in Headers */, + 8DAE47F82A46C89800185BEA /* debug.h in Headers */, + 8DAE47F92A46C89800185BEA /* queue.h in Headers */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 8DAE48172A46D02900185BEA /* Headers */ = { + isa = PBXHeadersBuildPhase; + buildActionMask = 2147483647; + files = ( + 8DAE48192A46D03E00185BEA /* rtl-sdr.h in Headers */, + 8DAE48182A46D03E00185BEA /* rtl-sdr_export.h in Headers */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; 8DCBA82427DA4D310064EEA9 /* Headers */ = { isa = PBXHeadersBuildPhase; buildActionMask = 2147483647; @@ -395,6 +538,43 @@ /* End PBXHeadersBuildPhase section */ /* Begin PBXNativeTarget section */ + 8DAE47ED2A46C81A00185BEA /* cmd */ = { + isa = PBXNativeTarget; + buildConfigurationList = 8DAE47EF2A46C81A00185BEA /* Build configuration list for PBXNativeTarget "cmd" */; + buildPhases = ( + 8DAE47EA2A46C81A00185BEA /* Headers */, + 8DAE47EB2A46C81A00185BEA /* Sources */, + 8DAE47EC2A46C81A00185BEA /* Frameworks */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = cmd; + productName = cmd; + productReference = 8DAE47EE2A46C81A00185BEA /* libcmd.a */; + productType = "com.apple.product-type.library.static"; + }; + 8DAE48082A46CEBF00185BEA /* RegisterWatch */ = { + isa = PBXNativeTarget; + buildConfigurationList = 8DAE480D2A46CEBF00185BEA /* Build configuration list for PBXNativeTarget "RegisterWatch" */; + buildPhases = ( + 8DAE48172A46D02900185BEA /* Headers */, + 8DAE48052A46CEBF00185BEA /* Sources */, + 8DAE48062A46CEBF00185BEA /* Frameworks */, + 8DAE48072A46CEBF00185BEA /* CopyFiles */, + ); + buildRules = ( + ); + dependencies = ( + 8DAE481D2A46D0AE00185BEA /* PBXTargetDependency */, + 8DAE48212A46D0D800185BEA /* PBXTargetDependency */, + ); + name = RegisterWatch; + productName = RegisterWatch; + productReference = 8DAE48092A46CEBF00185BEA /* RegisterWatch */; + productType = "com.apple.product-type.tool"; + }; 8DCBA7F827DA47130064EEA9 /* r820sdr-init */ = { isa = PBXNativeTarget; buildConfigurationList = 8DCBA80027DA47130064EEA9 /* Build configuration list for PBXNativeTarget "r820sdr-init" */; @@ -473,9 +653,15 @@ isa = PBXProject; attributes = { BuildIndependentTargetsInParallel = 1; - LastSwiftUpdateCheck = 1320; + LastSwiftUpdateCheck = 1430; LastUpgradeCheck = 1320; TargetAttributes = { + 8DAE47ED2A46C81A00185BEA = { + CreatedOnToolsVersion = 14.3.1; + }; + 8DAE48082A46CEBF00185BEA = { + CreatedOnToolsVersion = 14.3.1; + }; 8DCBA7F827DA47130064EEA9 = { CreatedOnToolsVersion = 13.2.1; LastSwiftMigration = 1320; @@ -508,11 +694,35 @@ 8DCBA85127DA50E00064EEA9 /* libusb */, 8DCBA87627DA59FD0064EEA9 /* libusb.a */, 8DCBA89427DA5E330064EEA9 /* r820 */, + 8DAE47ED2A46C81A00185BEA /* cmd */, + 8DAE48082A46CEBF00185BEA /* RegisterWatch */, ); }; /* End PBXProject section */ /* Begin PBXSourcesBuildPhase section */ + 8DAE47EB2A46C81A00185BEA /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 8DAE47F42A46C87B00185BEA /* cmd.swift in Sources */, + 8DAE47F22A46C82A00185BEA /* cmd_parse.c in Sources */, + 8DAE47F32A46C82A00185BEA /* cmd.c in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 8DAE48052A46CEBF00185BEA /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 8DAE48242A46D25900185BEA /* r820.swift in Sources */, + 8DAE48142A46CEFC00185BEA /* CmdTool.swift in Sources */, + 8DAE48152A46CEFC00185BEA /* Term.swift in Sources */, + 8DAE48162A46CEFC00185BEA /* TermIO.swift in Sources */, + 8DAE480C2A46CEBF00185BEA /* main.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; 8DCBA7F527DA47130064EEA9 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; @@ -570,6 +780,16 @@ /* End PBXSourcesBuildPhase section */ /* Begin PBXTargetDependency section */ + 8DAE481D2A46D0AE00185BEA /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 8DCBA89427DA5E330064EEA9 /* r820 */; + targetProxy = 8DAE481C2A46D0AE00185BEA /* PBXContainerItemProxy */; + }; + 8DAE48212A46D0D800185BEA /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 8DCBA87627DA59FD0064EEA9 /* libusb.a */; + targetProxy = 8DAE48202A46D0D800185BEA /* PBXContainerItemProxy */; + }; 8DCBA8CC27DA63190064EEA9 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 8DCBA87627DA59FD0064EEA9 /* libusb.a */; @@ -583,6 +803,59 @@ /* End PBXTargetDependency section */ /* Begin XCBuildConfiguration section */ + 8DAE47F02A46C81A00185BEA /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ARCHS = arm64; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; + CODE_SIGN_STYLE = Automatic; + EXECUTABLE_PREFIX = lib; + MACOSX_DEPLOYMENT_TARGET = 13.3; + PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = macosx13.3; + SKIP_INSTALL = YES; + "SWIFT_OBJC_BRIDGING_HEADER[arch=*]" = "cmd/cmd-Bridging-Header.h"; + SWIFT_VERSION = 5.0; + }; + name = Debug; + }; + 8DAE47F12A46C81A00185BEA /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; + CODE_SIGN_STYLE = Automatic; + EXECUTABLE_PREFIX = lib; + MACOSX_DEPLOYMENT_TARGET = 13.3; + PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = macosx13.3; + SKIP_INSTALL = YES; + "SWIFT_OBJC_BRIDGING_HEADER[arch=*]" = "cmd/cmd-Bridging-Header.h"; + SWIFT_VERSION = 5.0; + }; + name = Release; + }; + 8DAE480E2A46CEBF00185BEA /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; + CODE_SIGN_STYLE = Automatic; + MACOSX_DEPLOYMENT_TARGET = 13.3; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + }; + name = Debug; + }; + 8DAE480F2A46CEBF00185BEA /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; + CODE_SIGN_STYLE = Automatic; + MACOSX_DEPLOYMENT_TARGET = 13.3; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + }; + name = Release; + }; 8DCBA7FE27DA47130064EEA9 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { @@ -702,6 +975,7 @@ isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_MODULES = YES; + "CODE_SIGN_IDENTITY[sdk=macosx*]" = "-"; CODE_SIGN_STYLE = Automatic; DEVELOPMENT_TEAM = 53B26AJZ4Z; ENABLE_HARDENED_RUNTIME = YES; @@ -710,6 +984,7 @@ "@executable_path/../Frameworks", "@loader_path/../Frameworks", ); + MACOSX_DEPLOYMENT_TARGET = 13.3; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_OBJC_BRIDGING_HEADER = "hardware/src/r820/src/r820sdr-Bridging-Header.h"; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; @@ -721,6 +996,7 @@ isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_MODULES = YES; + "CODE_SIGN_IDENTITY[sdk=macosx*]" = "-"; CODE_SIGN_STYLE = Automatic; DEVELOPMENT_TEAM = 53B26AJZ4Z; ENABLE_HARDENED_RUNTIME = YES; @@ -729,6 +1005,7 @@ "@executable_path/../Frameworks", "@loader_path/../Frameworks", ); + MACOSX_DEPLOYMENT_TARGET = 13.3; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_OBJC_BRIDGING_HEADER = "hardware/src/r820/src/r820sdr-Bridging-Header.h"; SWIFT_VERSION = 5.0; @@ -820,6 +1097,24 @@ /* End XCBuildConfiguration section */ /* Begin XCConfigurationList section */ + 8DAE47EF2A46C81A00185BEA /* Build configuration list for PBXNativeTarget "cmd" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 8DAE47F02A46C81A00185BEA /* Debug */, + 8DAE47F12A46C81A00185BEA /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 8DAE480D2A46CEBF00185BEA /* Build configuration list for PBXNativeTarget "RegisterWatch" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 8DAE480E2A46CEBF00185BEA /* Debug */, + 8DAE480F2A46CEBF00185BEA /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; 8DCBA7F427DA47130064EEA9 /* Build configuration list for PBXProject "r820sdr-init" */ = { isa = XCConfigurationList; buildConfigurations = ( diff --git a/r820sdr/main.swift b/r820sdr/main.swift index 8f048db..8b122ee 100644 --- a/r820sdr/main.swift +++ b/r820sdr/main.swift @@ -8,12 +8,10 @@ import Foundation - - print("Hello, World!") //var dev:UnsafePointer<rtlsdr_dev> = 0 -var devPtr: UnsafePointer<OpaquePointer?> +//var devPtr: UnsafePointer<OpaquePointer?> var dev:OpaquePointer? let count = rtlsdr_get_device_count() |