[macOS] Optimise framework imports (#3323)

This commit is contained in:
Dmitry Serov
2022-06-29 01:15:52 +01:00
committed by GitHub
parent e678f7c5f5
commit 7e278c453a
71 changed files with 103 additions and 98 deletions

View File

@@ -606,7 +606,6 @@
29B97325FDCFA39411CA2CEA /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; 29B97325FDCFA39411CA2CEA /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
2B9BA6C508B488FE586A0AB1 /* torrents.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = torrents.cc; sourceTree = "<group>"; }; 2B9BA6C508B488FE586A0AB1 /* torrents.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = torrents.cc; sourceTree = "<group>"; };
2B9BA6C508B488FE586A0AB3 /* torrents.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = torrents.h; sourceTree = "<group>"; }; 2B9BA6C508B488FE586A0AB3 /* torrents.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = torrents.h; sourceTree = "<group>"; };
32CA4F630368D1EE00C91783 /* Transmission_Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = Transmission_Prefix.pch; sourceTree = "<group>"; };
35F373000C2DA88F00DAA8F2 /* FilePriorityCell.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = FilePriorityCell.h; sourceTree = "<group>"; }; 35F373000C2DA88F00DAA8F2 /* FilePriorityCell.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = FilePriorityCell.h; sourceTree = "<group>"; };
35F373010C2DA88F00DAA8F2 /* FilePriorityCell.mm */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.objcpp; path = FilePriorityCell.mm; sourceTree = "<group>"; }; 35F373010C2DA88F00DAA8F2 /* FilePriorityCell.mm */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.objcpp; path = FilePriorityCell.mm; sourceTree = "<group>"; };
3C7A118D0D0B2EB800B5701F /* libnatpmp.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libnatpmp.a; sourceTree = BUILT_PRODUCTS_DIR; }; 3C7A118D0D0B2EB800B5701F /* libnatpmp.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libnatpmp.a; sourceTree = BUILT_PRODUCTS_DIR; };
@@ -1386,7 +1385,6 @@
080E96DDFE201D6D7F000001 /* Sources */ = { 080E96DDFE201D6D7F000001 /* Sources */ = {
isa = PBXGroup; isa = PBXGroup;
children = ( children = (
32CA4F630368D1EE00C91783 /* Transmission_Prefix.pch */,
29B97316FDCFA39411CA2CEA /* main.mm */, 29B97316FDCFA39411CA2CEA /* main.mm */,
C86BCD9828228A9600F45599 /* SparkleProxy.mm */, C86BCD9828228A9600F45599 /* SparkleProxy.mm */,
4DF0C5AA0899190500DD8943 /* Controller.h */, 4DF0C5AA0899190500DD8943 /* Controller.h */,
@@ -3627,14 +3625,17 @@
CODE_SIGN_IDENTITY = "-"; CODE_SIGN_IDENTITY = "-";
ENABLE_HARDENED_RUNTIME = YES; ENABLE_HARDENED_RUNTIME = YES;
FRAMEWORK_SEARCH_PATHS = macosx; FRAMEWORK_SEARCH_PATHS = macosx;
GCC_PREFIX_HEADER = macosx/Transmission_Prefix.pch;
HEADER_SEARCH_PATHS = ( HEADER_SEARCH_PATHS = (
"$(inherited)", "$(inherited)",
., .,
); );
LD_RUNPATH_SEARCH_PATHS = "@executable_path/../Frameworks"; LD_RUNPATH_SEARCH_PATHS = "@executable_path/../Frameworks";
OTHER_CFLAGS = "$(inherited)"; OTHER_CFLAGS = "$(inherited)";
OTHER_CPLUSPLUSFLAGS = "$(OTHER_CFLAGS)"; OTHER_CPLUSPLUSFLAGS = (
"$(OTHER_CFLAGS)",
"-fmodules",
"-fcxx-modules",
);
OTHER_LDFLAGS = "-lc++"; OTHER_LDFLAGS = "-lc++";
PRODUCT_NAME = Transmission; PRODUCT_NAME = Transmission;
SYSTEM_HEADER_SEARCH_PATHS = ( SYSTEM_HEADER_SEARCH_PATHS = (
@@ -3888,14 +3889,17 @@
CODE_SIGN_IDENTITY = "-"; CODE_SIGN_IDENTITY = "-";
ENABLE_HARDENED_RUNTIME = YES; ENABLE_HARDENED_RUNTIME = YES;
FRAMEWORK_SEARCH_PATHS = macosx; FRAMEWORK_SEARCH_PATHS = macosx;
GCC_PREFIX_HEADER = macosx/Transmission_Prefix.pch;
HEADER_SEARCH_PATHS = ( HEADER_SEARCH_PATHS = (
"$(inherited)", "$(inherited)",
., .,
); );
LD_RUNPATH_SEARCH_PATHS = "@executable_path/../Frameworks"; LD_RUNPATH_SEARCH_PATHS = "@executable_path/../Frameworks";
OTHER_CFLAGS = "$(inherited)"; OTHER_CFLAGS = "$(inherited)";
OTHER_CPLUSPLUSFLAGS = "$(OTHER_CFLAGS)"; OTHER_CPLUSPLUSFLAGS = (
"$(OTHER_CFLAGS)",
"-fmodules",
"-fcxx-modules",
);
OTHER_LDFLAGS = "-lc++"; OTHER_LDFLAGS = "-lc++";
PRODUCT_NAME = Transmission; PRODUCT_NAME = Transmission;
SYSTEM_HEADER_SEARCH_PATHS = ( SYSTEM_HEADER_SEARCH_PATHS = (
@@ -4082,14 +4086,17 @@
CODE_SIGN_IDENTITY = "-"; CODE_SIGN_IDENTITY = "-";
ENABLE_HARDENED_RUNTIME = YES; ENABLE_HARDENED_RUNTIME = YES;
FRAMEWORK_SEARCH_PATHS = macosx; FRAMEWORK_SEARCH_PATHS = macosx;
GCC_PREFIX_HEADER = macosx/Transmission_Prefix.pch;
HEADER_SEARCH_PATHS = ( HEADER_SEARCH_PATHS = (
"$(inherited)", "$(inherited)",
., .,
); );
LD_RUNPATH_SEARCH_PATHS = "@executable_path/../Frameworks"; LD_RUNPATH_SEARCH_PATHS = "@executable_path/../Frameworks";
OTHER_CFLAGS = "$(inherited)"; OTHER_CFLAGS = "$(inherited)";
OTHER_CPLUSPLUSFLAGS = "$(OTHER_CFLAGS)"; OTHER_CPLUSPLUSFLAGS = (
"$(OTHER_CFLAGS)",
"-fmodules",
"-fcxx-modules",
);
OTHER_LDFLAGS = "-lc++"; OTHER_LDFLAGS = "-lc++";
PRODUCT_NAME = Transmission; PRODUCT_NAME = Transmission;
SYSTEM_HEADER_SEARCH_PATHS = ( SYSTEM_HEADER_SEARCH_PATHS = (
@@ -4272,7 +4279,11 @@
INFOPLIST_FILE = "macosx/QuickLookPlugin/QuickLookPlugin-Info.plist"; INFOPLIST_FILE = "macosx/QuickLookPlugin/QuickLookPlugin-Info.plist";
INSTALL_PATH = /Library/QuickLook; INSTALL_PATH = /Library/QuickLook;
OTHER_CFLAGS = "$(inherited)"; OTHER_CFLAGS = "$(inherited)";
OTHER_CPLUSPLUSFLAGS = "$(OTHER_CFLAGS)"; OTHER_CPLUSPLUSFLAGS = (
"$(OTHER_CFLAGS)",
"-fcxx-modules",
"-fmodules",
);
OTHER_LDFLAGS = "-lc++"; OTHER_LDFLAGS = "-lc++";
PRODUCT_BUNDLE_IDENTIFIER = "org.m0k.transmission.${PRODUCT_NAME:rfc1034identifier}"; PRODUCT_BUNDLE_IDENTIFIER = "org.m0k.transmission.${PRODUCT_NAME:rfc1034identifier}";
PRODUCT_NAME = "$(TARGET_NAME)"; PRODUCT_NAME = "$(TARGET_NAME)";
@@ -4298,7 +4309,11 @@
INFOPLIST_FILE = "macosx/QuickLookPlugin/QuickLookPlugin-Info.plist"; INFOPLIST_FILE = "macosx/QuickLookPlugin/QuickLookPlugin-Info.plist";
INSTALL_PATH = /Library/QuickLook; INSTALL_PATH = /Library/QuickLook;
OTHER_CFLAGS = "$(inherited)"; OTHER_CFLAGS = "$(inherited)";
OTHER_CPLUSPLUSFLAGS = "$(OTHER_CFLAGS)"; OTHER_CPLUSPLUSFLAGS = (
"$(OTHER_CFLAGS)",
"-fcxx-modules",
"-fmodules",
);
OTHER_LDFLAGS = "-lc++"; OTHER_LDFLAGS = "-lc++";
PRODUCT_BUNDLE_IDENTIFIER = "org.m0k.transmission.${PRODUCT_NAME:rfc1034identifier}"; PRODUCT_BUNDLE_IDENTIFIER = "org.m0k.transmission.${PRODUCT_NAME:rfc1034identifier}";
PRODUCT_NAME = "$(TARGET_NAME)"; PRODUCT_NAME = "$(TARGET_NAME)";
@@ -4324,7 +4339,11 @@
INFOPLIST_FILE = "macosx/QuickLookPlugin/QuickLookPlugin-Info.plist"; INFOPLIST_FILE = "macosx/QuickLookPlugin/QuickLookPlugin-Info.plist";
INSTALL_PATH = /Library/QuickLook; INSTALL_PATH = /Library/QuickLook;
OTHER_CFLAGS = "$(inherited)"; OTHER_CFLAGS = "$(inherited)";
OTHER_CPLUSPLUSFLAGS = "$(OTHER_CFLAGS)"; OTHER_CPLUSPLUSFLAGS = (
"$(OTHER_CFLAGS)",
"-fcxx-modules",
"-fmodules",
);
OTHER_LDFLAGS = "-lc++"; OTHER_LDFLAGS = "-lc++";
PRODUCT_BUNDLE_IDENTIFIER = "org.m0k.transmission.${PRODUCT_NAME:rfc1034identifier}"; PRODUCT_BUNDLE_IDENTIFIER = "org.m0k.transmission.${PRODUCT_NAME:rfc1034identifier}";
PRODUCT_NAME = "$(TARGET_NAME)"; PRODUCT_NAME = "$(TARGET_NAME)";

View File

@@ -2,7 +2,7 @@
// It may be used under the MIT (SPDX: MIT) license. // It may be used under the MIT (SPDX: MIT) license.
// License text can be found in the licenses/ folder. // License text can be found in the licenses/ folder.
#import <Cocoa/Cocoa.h> #import <AppKit/AppKit.h>
@interface AboutWindowController : NSWindowController @interface AboutWindowController : NSWindowController

View File

@@ -2,7 +2,7 @@
// It may be used under the MIT (SPDX: MIT) license. // It may be used under the MIT (SPDX: MIT) license.
// License text can be found in the licenses/ folder. // License text can be found in the licenses/ folder.
#import <Cocoa/Cocoa.h> #import <AppKit/AppKit.h>
@class Controller; @class Controller;
@class Torrent; @class Torrent;

View File

@@ -2,7 +2,7 @@
// It may be used under the MIT (SPDX: MIT) license. // It may be used under the MIT (SPDX: MIT) license.
// License text can be found in the licenses/ folder. // License text can be found in the licenses/ folder.
#import <Cocoa/Cocoa.h> #import <AppKit/AppKit.h>
@class Controller; @class Controller;
@class Torrent; @class Torrent;

View File

@@ -2,7 +2,7 @@
// It may be used under the MIT (SPDX: MIT) license. // It may be used under the MIT (SPDX: MIT) license.
// License text can be found in the licenses/ folder. // License text can be found in the licenses/ folder.
#import <Cocoa/Cocoa.h> #import <AppKit/AppKit.h>
#include <libtransmission/transmission.h> #include <libtransmission/transmission.h>

View File

@@ -2,7 +2,7 @@
// It may be used under the MIT (SPDX: MIT) license. // It may be used under the MIT (SPDX: MIT) license.
// License text can be found in the licenses/ folder. // License text can be found in the licenses/ folder.
#import <Cocoa/Cocoa.h> #import <Foundation/Foundation.h>
#include <libtransmission/transmission.h> #include <libtransmission/transmission.h>

View File

@@ -2,7 +2,7 @@
// It may be used under the MIT (SPDX: MIT) license. // It may be used under the MIT (SPDX: MIT) license.
// License text can be found in the licenses/ folder. // License text can be found in the licenses/ folder.
#import <Cocoa/Cocoa.h> #import <Foundation/Foundation.h>
@class BlocklistDownloaderViewController; @class BlocklistDownloaderViewController;

View File

@@ -2,7 +2,7 @@
// It may be used under the MIT (SPDX: MIT) license. // It may be used under the MIT (SPDX: MIT) license.
// License text can be found in the licenses/ folder. // License text can be found in the licenses/ folder.
#import <Cocoa/Cocoa.h> #import <Foundation/Foundation.h>
#include <libtransmission/transmission.h> #include <libtransmission/transmission.h>

View File

@@ -2,7 +2,7 @@
// It may be used under the MIT (SPDX: MIT) license. // It may be used under the MIT (SPDX: MIT) license.
// License text can be found in the licenses/ folder. // License text can be found in the licenses/ folder.
#import <Cocoa/Cocoa.h> #import <AppKit/Appkit.h>
@interface BlocklistScheduler : NSObject @interface BlocklistScheduler : NSObject

View File

@@ -2,7 +2,7 @@
// It may be used under the MIT (SPDX: MIT) license. // It may be used under the MIT (SPDX: MIT) license.
// License text can be found in the licenses/ folder. // License text can be found in the licenses/ folder.
#import <Cocoa/Cocoa.h> #import <AppKit/AppKit.h>
@interface ButtonToolbarItem : NSToolbarItem @interface ButtonToolbarItem : NSToolbarItem

View File

@@ -8,6 +8,8 @@ else()
add_definitions(-fobjc-arc) add_definitions(-fobjc-arc)
endif() endif()
add_compile_options(-fmodules -fcxx-modules)
find_program(IBTOOL_EXECUTABLE ibtool REQUIRED) find_program(IBTOOL_EXECUTABLE ibtool REQUIRED)
find_program(ICONUTIL_EXECUTABLE iconutil REQUIRED) find_program(ICONUTIL_EXECUTABLE iconutil REQUIRED)
find_program(TIFFUTIL_EXECUTABLE tiffutil REQUIRED) find_program(TIFFUTIL_EXECUTABLE tiffutil REQUIRED)

View File

@@ -2,7 +2,7 @@
// It may be used under the MIT (SPDX: MIT) license. // It may be used under the MIT (SPDX: MIT) license.
// License text can be found in the licenses/ folder. // License text can be found in the licenses/ folder.
#import <Cocoa/Cocoa.h> #import <AppKit/AppKit.h>
@interface ColorTextField : NSTextField @interface ColorTextField : NSTextField

View File

@@ -2,7 +2,7 @@
// It may be used under the MIT (SPDX: MIT) license. // It may be used under the MIT (SPDX: MIT) license.
// License text can be found in the licenses/ folder. // License text can be found in the licenses/ folder.
#import <Cocoa/Cocoa.h> #import <AppKit/AppKit.h>
#import <Quartz/Quartz.h> #import <Quartz/Quartz.h>
#import <Sparkle/SUUpdaterDelegate.h> #import <Sparkle/SUUpdaterDelegate.h>

View File

@@ -2,11 +2,11 @@
// It may be used under the MIT (SPDX: MIT) license. // It may be used under the MIT (SPDX: MIT) license.
// License text can be found in the licenses/ folder. // License text can be found in the licenses/ folder.
#import <IOKit/IOMessage.h> @import IOKit;
#import <IOKit/pwr_mgt/IOPMLib.h> @import IOKit.pwr_mgt;
#import <Carbon/Carbon.h> @import Carbon;
#import <Sparkle/Sparkle.h> @import Sparkle;
#include <atomic> /* atomic, atomic_fetch_add_explicit, memory_order_relaxed */ #include <atomic> /* atomic, atomic_fetch_add_explicit, memory_order_relaxed */

View File

@@ -2,7 +2,7 @@
// It may be used under the MIT (SPDX: MIT) license. // It may be used under the MIT (SPDX: MIT) license.
// License text can be found in the licenses/ folder. // License text can be found in the licenses/ folder.
#import <Cocoa/Cocoa.h> #import <AppKit/AppKit.h>
#include <libtransmission/transmission.h> #include <libtransmission/transmission.h>

View File

@@ -2,7 +2,7 @@
// It may be used under the MIT (SPDX: MIT) license. // It may be used under the MIT (SPDX: MIT) license.
// License text can be found in the licenses/ folder. // License text can be found in the licenses/ folder.
#import <Cocoa/Cocoa.h> #import <AppKit/AppKit.h>
@interface DragOverlayView : NSView @interface DragOverlayView : NSView

View File

@@ -2,7 +2,7 @@
// It may be used under the MIT (SPDX: MIT) license. // It may be used under the MIT (SPDX: MIT) license.
// License text can be found in the licenses/ folder. // License text can be found in the licenses/ folder.
#import <Cocoa/Cocoa.h> #import <AppKit/AppKit.h>
#include <libtransmission/transmission.h> #include <libtransmission/transmission.h>

View File

@@ -6,7 +6,6 @@
#import "DragOverlayView.h" #import "DragOverlayView.h"
#import "NSStringAdditions.h" #import "NSStringAdditions.h"
#include <libtransmission/transmission.h>
#include <libtransmission/torrent-metainfo.h> #include <libtransmission/torrent-metainfo.h>
@interface DragOverlayWindow () @interface DragOverlayWindow ()

View File

@@ -2,7 +2,7 @@
// It may be used under the MIT (SPDX: MIT) license. // It may be used under the MIT (SPDX: MIT) license.
// License text can be found in the licenses/ folder. // License text can be found in the licenses/ folder.
#import <AppKit/AppKit.h> @import AppKit;
#import "ExpandedPathToIconTransformer.h" #import "ExpandedPathToIconTransformer.h"

View File

@@ -2,7 +2,7 @@
// It may be used under the MIT (SPDX: MIT) license. // It may be used under the MIT (SPDX: MIT) license.
// License text can be found in the licenses/ folder. // License text can be found in the licenses/ folder.
#import <Cocoa/Cocoa.h> #import <Foundation/Foundation.h>
@class Torrent; @class Torrent;

View File

@@ -2,6 +2,8 @@
// It may be used under the MIT (SPDX: MIT) license. // It may be used under the MIT (SPDX: MIT) license.
// License text can be found in the licenses/ folder. // License text can be found in the licenses/ folder.
@import AppKit;
#import "FileListNode.h" #import "FileListNode.h"
@interface FileListNode () @interface FileListNode ()

View File

@@ -2,7 +2,7 @@
// It may be used under the MIT (SPDX: MIT) license. // It may be used under the MIT (SPDX: MIT) license.
// License text can be found in the licenses/ folder. // License text can be found in the licenses/ folder.
#import <Cocoa/Cocoa.h> #import <AppKit/AppKit.h>
@interface FileNameCell : NSActionCell @interface FileNameCell : NSActionCell

View File

@@ -2,7 +2,7 @@
// It may be used under the MIT (SPDX: MIT) license. // It may be used under the MIT (SPDX: MIT) license.
// License text can be found in the licenses/ folder. // License text can be found in the licenses/ folder.
#import <Cocoa/Cocoa.h> #import <Foundation/Foundation.h>
@class Torrent; @class Torrent;
@class FileOutlineView; @class FileOutlineView;

View File

@@ -2,8 +2,6 @@
// It may be used under the MIT (SPDX: MIT) license. // It may be used under the MIT (SPDX: MIT) license.
// License text can be found in the licenses/ folder. // License text can be found in the licenses/ folder.
#import <Quartz/Quartz.h>
#import "FileOutlineController.h" #import "FileOutlineController.h"
#import "Torrent.h" #import "Torrent.h"
#import "FileListNode.h" #import "FileListNode.h"

View File

@@ -2,7 +2,7 @@
// It may be used under the MIT (SPDX: MIT) license. // It may be used under the MIT (SPDX: MIT) license.
// License text can be found in the licenses/ folder. // License text can be found in the licenses/ folder.
#import <Cocoa/Cocoa.h> #import <AppKit/AppKit.h>
@interface FileOutlineView : NSOutlineView @interface FileOutlineView : NSOutlineView

View File

@@ -2,7 +2,7 @@
// It may be used under the MIT (SPDX: MIT) license. // It may be used under the MIT (SPDX: MIT) license.
// License text can be found in the licenses/ folder. // License text can be found in the licenses/ folder.
#import <Cocoa/Cocoa.h> #import <AppKit/AppKit.h>
@interface FilePriorityCell : NSSegmentedCell @interface FilePriorityCell : NSSegmentedCell

View File

@@ -3,7 +3,7 @@
// License text can be found in the licenses/ folder. // License text can be found in the licenses/ folder.
// Created by Mitchell Livingston on 1/20/13. // Created by Mitchell Livingston on 1/20/13.
#import <Cocoa/Cocoa.h> #import <AppKit/AppKit.h>
@class FileListNode; @class FileListNode;
@class Torrent; @class Torrent;

View File

@@ -2,7 +2,7 @@
// It may be used under the MIT (SPDX: MIT) license. // It may be used under the MIT (SPDX: MIT) license.
// License text can be found in the licenses/ folder. // License text can be found in the licenses/ folder.
#import <Cocoa/Cocoa.h> #import <AppKit/AppKit.h>
#define FILTER_NONE @"None" #define FILTER_NONE @"None"
#define FILTER_ACTIVE @"Active" #define FILTER_ACTIVE @"Active"

View File

@@ -2,7 +2,7 @@
// It may be used under the MIT (SPDX: MIT) license. // It may be used under the MIT (SPDX: MIT) license.
// License text can be found in the licenses/ folder. // License text can be found in the licenses/ folder.
#import <Cocoa/Cocoa.h> #import <AppKit/AppKit.h>
@interface FilterBarView : NSView @interface FilterBarView : NSView

View File

@@ -2,7 +2,7 @@
// It may be used under the MIT (SPDX: MIT) license. // It may be used under the MIT (SPDX: MIT) license.
// License text can be found in the licenses/ folder. // License text can be found in the licenses/ folder.
#import <Cocoa/Cocoa.h> #import <AppKit/AppKit.h>
@interface FilterButton : NSButton @interface FilterButton : NSButton

View File

@@ -2,7 +2,7 @@
// It may be used under the MIT (SPDX: MIT) license. // It may be used under the MIT (SPDX: MIT) license.
// License text can be found in the licenses/ folder. // License text can be found in the licenses/ folder.
#import <Cocoa/Cocoa.h> #import <AppKit/AppKit.h>
#include <libtransmission/transmission.h> #include <libtransmission/transmission.h>

View File

@@ -2,7 +2,7 @@
// It may be used under the MIT (SPDX: MIT) license. // It may be used under the MIT (SPDX: MIT) license.
// License text can be found in the licenses/ folder. // License text can be found in the licenses/ folder.
#import <Cocoa/Cocoa.h> #import <AppKit/AppKit.h>
@interface GroupToolbarItem : NSToolbarItem @interface GroupToolbarItem : NSToolbarItem

View File

@@ -2,7 +2,7 @@
// It may be used under the MIT (SPDX: MIT) license. // It may be used under the MIT (SPDX: MIT) license.
// License text can be found in the licenses/ folder. // License text can be found in the licenses/ folder.
#import <Cocoa/Cocoa.h> #import <AppKit/AppKit.h>
@class Torrent; @class Torrent;

View File

@@ -2,7 +2,7 @@
// It may be used under the MIT (SPDX: MIT) license. // It may be used under the MIT (SPDX: MIT) license.
// License text can be found in the licenses/ folder. // License text can be found in the licenses/ folder.
#import <Cocoa/Cocoa.h> #import <Foundation/Foundation.h>
@interface GroupsPrefsController : NSObject @interface GroupsPrefsController : NSObject

View File

@@ -2,7 +2,7 @@
// It may be used under the MIT (SPDX: MIT) license. // It may be used under the MIT (SPDX: MIT) license.
// License text can be found in the licenses/ folder. // License text can be found in the licenses/ folder.
#import <Cocoa/Cocoa.h> #import <AppKit/AppKit.h>
#import "InfoViewController.h" #import "InfoViewController.h"

View File

@@ -2,8 +2,7 @@
// It may be used under the MIT (SPDX: MIT) license. // It may be used under the MIT (SPDX: MIT) license.
// License text can be found in the licenses/ folder. // License text can be found in the licenses/ folder.
#import <Cocoa/Cocoa.h> #import <AppKit/AppKit.h>
#import <Quartz/Quartz.h>
#import "InfoViewController.h" #import "InfoViewController.h"

View File

@@ -2,7 +2,7 @@
// It may be used under the MIT (SPDX: MIT) license. // It may be used under the MIT (SPDX: MIT) license.
// License text can be found in the licenses/ folder. // License text can be found in the licenses/ folder.
#import <Cocoa/Cocoa.h> #import <AppKit/AppKit.h>
#import "InfoViewController.h" #import "InfoViewController.h"

View File

@@ -2,7 +2,7 @@
// It may be used under the MIT (SPDX: MIT) license. // It may be used under the MIT (SPDX: MIT) license.
// License text can be found in the licenses/ folder. // License text can be found in the licenses/ folder.
#import <Cocoa/Cocoa.h> #import <AppKit/AppKit.h>
#import "InfoViewController.h" #import "InfoViewController.h"

View File

@@ -2,7 +2,7 @@
// It may be used under the MIT (SPDX: MIT) license. // It may be used under the MIT (SPDX: MIT) license.
// License text can be found in the licenses/ folder. // License text can be found in the licenses/ folder.
#import <Cocoa/Cocoa.h> #import <AppKit/AppKit.h>
#import "InfoViewController.h" #import "InfoViewController.h"

View File

@@ -2,7 +2,7 @@
// It may be used under the MIT (SPDX: MIT) license. // It may be used under the MIT (SPDX: MIT) license.
// License text can be found in the licenses/ folder. // License text can be found in the licenses/ folder.
#import <Cocoa/Cocoa.h> #import <AppKit/AppKit.h>
@interface InfoTextField : NSTextField @interface InfoTextField : NSTextField

View File

@@ -2,7 +2,7 @@
// It may be used under the MIT (SPDX: MIT) license. // It may be used under the MIT (SPDX: MIT) license.
// License text can be found in the licenses/ folder. // License text can be found in the licenses/ folder.
#import <Cocoa/Cocoa.h> #import <AppKit/AppKit.h>
#import "InfoViewController.h" #import "InfoViewController.h"

View File

@@ -2,7 +2,7 @@
// It may be used under the MIT (SPDX: MIT) license. // It may be used under the MIT (SPDX: MIT) license.
// License text can be found in the licenses/ folder. // License text can be found in the licenses/ folder.
#import <Cocoa/Cocoa.h> #import <Foundation/Foundation.h>
@class Torrent; @class Torrent;

View File

@@ -2,8 +2,7 @@
// It may be used under the MIT (SPDX: MIT) license. // It may be used under the MIT (SPDX: MIT) license.
// License text can be found in the licenses/ folder. // License text can be found in the licenses/ folder.
#import <Cocoa/Cocoa.h> #import <AppKit/AppKit.h>
#import <Quartz/Quartz.h>
@class Torrent; @class Torrent;

View File

@@ -2,7 +2,7 @@
// It may be used under the MIT (SPDX: MIT) license. // It may be used under the MIT (SPDX: MIT) license.
// License text can be found in the licenses/ folder. // License text can be found in the licenses/ folder.
#import <Cocoa/Cocoa.h> #import <AppKit/AppKit.h>
@interface MessageWindowController : NSWindowController @interface MessageWindowController : NSWindowController

View File

@@ -2,7 +2,7 @@
// It may be used under the MIT (SPDX: MIT) license. // It may be used under the MIT (SPDX: MIT) license.
// License text can be found in the licenses/ folder. // License text can be found in the licenses/ folder.
#import <Cocoa/Cocoa.h> #import <AppKit/AppKit.h>
@interface NSImage (NSImageAdditions) @interface NSImage (NSImageAdditions)

View File

@@ -2,7 +2,7 @@
// It may be used under the MIT (SPDX: MIT) license. // It may be used under the MIT (SPDX: MIT) license.
// License text can be found in the licenses/ folder. // License text can be found in the licenses/ folder.
#import <Cocoa/Cocoa.h> #import <AppKit/AppKit.h>
@interface PeerProgressIndicatorCell : NSLevelIndicatorCell @interface PeerProgressIndicatorCell : NSLevelIndicatorCell

View File

@@ -2,7 +2,7 @@
// It may be used under the MIT (SPDX: MIT) license. // It may be used under the MIT (SPDX: MIT) license.
// License text can be found in the licenses/ folder. // License text can be found in the licenses/ folder.
#import <Cocoa/Cocoa.h> #import <AppKit/AppKit.h>
@interface PeerTableView : NSTableView @interface PeerTableView : NSTableView

View File

@@ -2,7 +2,7 @@
// It may be used under the MIT (SPDX: MIT) license. // It may be used under the MIT (SPDX: MIT) license.
// License text can be found in the licenses/ folder. // License text can be found in the licenses/ folder.
#import <Cocoa/Cocoa.h> #import <AppKit/AppKit.h>
@class Torrent; @class Torrent;

View File

@@ -2,7 +2,7 @@
// It may be used under the MIT (SPDX: MIT) license. // It may be used under the MIT (SPDX: MIT) license.
// License text can be found in the licenses/ folder. // License text can be found in the licenses/ folder.
#import <Cocoa/Cocoa.h> #import <AppKit/AppKit.h>
@interface PredicateEditorRowTemplateAny : NSPredicateEditorRowTemplate @interface PredicateEditorRowTemplateAny : NSPredicateEditorRowTemplate

View File

@@ -2,8 +2,8 @@
// It may be used under the MIT (SPDX: MIT) license. // It may be used under the MIT (SPDX: MIT) license.
// License text can be found in the licenses/ folder. // License text can be found in the licenses/ folder.
#import <Cocoa/Cocoa.h>
#import "PortChecker.h" #import "PortChecker.h"
#import <AppKit/AppKit.h>
#include <libtransmission/transmission.h> #include <libtransmission/transmission.h>

View File

@@ -2,11 +2,7 @@
// It may be used under the MIT (SPDX: MIT) license. // It may be used under the MIT (SPDX: MIT) license.
// License text can be found in the licenses/ folder. // License text can be found in the licenses/ folder.
#import <Foundation/Foundation.h>
#import <Sparkle/Sparkle.h> #import <Sparkle/Sparkle.h>
#include <libtransmission/transmission.h>
#include <libtransmission/utils.h> #include <libtransmission/utils.h>
#import "VDKQueue.h" #import "VDKQueue.h"

View File

@@ -2,7 +2,7 @@
// It may be used under the MIT (SPDX: MIT) license. // It may be used under the MIT (SPDX: MIT) license.
// License text can be found in the licenses/ folder. // License text can be found in the licenses/ folder.
#import <Cocoa/Cocoa.h> #import <AppKit/AppKit.h>
@interface PrefsWindow : NSWindow @interface PrefsWindow : NSWindow

View File

@@ -2,7 +2,6 @@
// It may be used under the MIT (SPDX: MIT) license. // It may be used under the MIT (SPDX: MIT) license.
// License text can be found in the licenses/ folder. // License text can be found in the licenses/ folder.
#import <Foundation/Foundation.h>
#import <AppKit/AppKit.h> #import <AppKit/AppKit.h>
@interface ProgressGradients : NSObject @interface ProgressGradients : NSObject

View File

@@ -1,11 +1,9 @@
#import <Cocoa/Cocoa.h> @import AppKit;
#import <CoreFoundation/CFPlugInCOM.h> @import CoreFoundation;
#import <QuickLook/QuickLook.h> @import QuickLook;
#include <string> #include <string>
#include <libtransmission/transmission.h>
#include <libtransmission/torrent-metainfo.h> #include <libtransmission/torrent-metainfo.h>
#import "NSStringAdditions.h" #import "NSStringAdditions.h"

View File

@@ -1,6 +1,5 @@
#import <CoreFoundation/CoreFoundation.h> @import CoreFoundation;
#import <CoreFoundation/CFPlugInCOM.h> @import QuickLook;
#import <QuickLook/QuickLook.h>
QL_EXTERN_C_BEGIN QL_EXTERN_C_BEGIN
OSStatus GenerateThumbnailForURL(void* thisInterface, QLThumbnailRequestRef thumbnail, CFURLRef url, CFStringRef contentTypeUTI, CFDictionaryRef options, CGSize maxSize); OSStatus GenerateThumbnailForURL(void* thisInterface, QLThumbnailRequestRef thumbnail, CFURLRef url, CFStringRef contentTypeUTI, CFDictionaryRef options, CGSize maxSize);

View File

@@ -2,8 +2,8 @@
// It may be used under the MIT (SPDX: MIT) license. // It may be used under the MIT (SPDX: MIT) license.
// License text can be found in the licenses/ folder. // License text can be found in the licenses/ folder.
#import <objc/runtime.h> @import ObjectiveC;
#import <AppKit/AppKit.h> @import AppKit;
void SUUpdater_checkForUpdates(id self, SEL _cmd, ...) void SUUpdater_checkForUpdates(id self, SEL _cmd, ...)
{ {

View File

@@ -2,7 +2,7 @@
// It may be used under the MIT (SPDX: MIT) license. // It may be used under the MIT (SPDX: MIT) license.
// License text can be found in the licenses/ folder. // License text can be found in the licenses/ folder.
#import <Cocoa/Cocoa.h> #import <AppKit/AppKit.h>
#include <libtransmission/transmission.h> #include <libtransmission/transmission.h>

View File

@@ -2,7 +2,7 @@
// It may be used under the MIT (SPDX: MIT) license. // It may be used under the MIT (SPDX: MIT) license.
// License text can be found in the licenses/ folder. // License text can be found in the licenses/ folder.
#import <Cocoa/Cocoa.h> #import <AppKit/AppKit.h>
#include <libtransmission/transmission.h> #include <libtransmission/transmission.h>

View File

@@ -2,8 +2,6 @@
// It may be used under the MIT (SPDX: MIT) license. // It may be used under the MIT (SPDX: MIT) license.
// License text can be found in the licenses/ folder. // License text can be found in the licenses/ folder.
#include <libtransmission/transmission.h>
#import "StatusBarController.h" #import "StatusBarController.h"
#import "NSStringAdditions.h" #import "NSStringAdditions.h"

View File

@@ -2,7 +2,7 @@
// It may be used under the MIT (SPDX: MIT) license. // It may be used under the MIT (SPDX: MIT) license.
// License text can be found in the licenses/ folder. // License text can be found in the licenses/ folder.
#import <Cocoa/Cocoa.h> #import <AppKit/AppKit.h>
@interface StatusBarView : NSView @interface StatusBarView : NSView

View File

@@ -2,7 +2,7 @@
// It may be used under the MIT (SPDX: MIT) license. // It may be used under the MIT (SPDX: MIT) license.
// License text can be found in the licenses/ folder. // License text can be found in the licenses/ folder.
#import <Cocoa/Cocoa.h> #import <AppKit/AppKit.h>
@interface ToolbarSegmentedCell : NSSegmentedCell @interface ToolbarSegmentedCell : NSSegmentedCell

View File

@@ -2,7 +2,7 @@
// It may be used under the MIT (SPDX: MIT) license. // It may be used under the MIT (SPDX: MIT) license.
// License text can be found in the licenses/ folder. // License text can be found in the licenses/ folder.
#import <Cocoa/Cocoa.h> #import <Foundation/Foundation.h>
#import <Quartz/Quartz.h> #import <Quartz/Quartz.h>
#include <libtransmission/transmission.h> #include <libtransmission/transmission.h>

View File

@@ -2,7 +2,7 @@
// It may be used under the MIT (SPDX: MIT) license. // It may be used under the MIT (SPDX: MIT) license.
// License text can be found in the licenses/ folder. // License text can be found in the licenses/ folder.
#import <Cocoa/Cocoa.h> #import <Foundation/Foundation.h>
@class Torrent; @class Torrent;

View File

@@ -2,7 +2,7 @@
// It may be used under the MIT (SPDX: MIT) license. // It may be used under the MIT (SPDX: MIT) license.
// License text can be found in the licenses/ folder. // License text can be found in the licenses/ folder.
#import <Cocoa/Cocoa.h> #import <AppKit/AppKit.h>
#include <libtransmission/transmission.h> #include <libtransmission/transmission.h>

View File

@@ -2,7 +2,7 @@
// It may be used under the MIT (SPDX: MIT) license. // It may be used under the MIT (SPDX: MIT) license.
// License text can be found in the licenses/ folder. // License text can be found in the licenses/ folder.
#import <Cocoa/Cocoa.h> #import <AppKit/AppKit.h>
@interface TrackerCell : NSActionCell @interface TrackerCell : NSActionCell

View File

@@ -2,7 +2,7 @@
// It may be used under the MIT (SPDX: MIT) license. // It may be used under the MIT (SPDX: MIT) license.
// License text can be found in the licenses/ folder. // License text can be found in the licenses/ folder.
#import <Cocoa/Cocoa.h> #import <Foundation/Foundation.h>
#include <libtransmission/transmission.h> #include <libtransmission/transmission.h>

View File

@@ -2,7 +2,7 @@
// It may be used under the MIT (SPDX: MIT) license. // It may be used under the MIT (SPDX: MIT) license.
// License text can be found in the licenses/ folder. // License text can be found in the licenses/ folder.
#import <Cocoa/Cocoa.h> #import <AppKit/AppKit.h>
@class Torrent; @class Torrent;

View File

@@ -1,3 +0,0 @@
#ifdef __OBJC__
#import <Cocoa/Cocoa.h>
#endif

View File

@@ -2,7 +2,7 @@
// It may be used under the MIT (SPDX: MIT) license. // It may be used under the MIT (SPDX: MIT) license.
// License text can be found in the licenses/ folder. // License text can be found in the licenses/ folder.
#import <Cocoa/Cocoa.h> #import <AppKit/AppKit.h>
@interface URLSheetWindowController : NSWindowController @interface URLSheetWindowController : NSWindowController

View File

@@ -2,7 +2,7 @@
// It may be used under the MIT (SPDX: MIT) license. // It may be used under the MIT (SPDX: MIT) license.
// License text can be found in the licenses/ folder. // License text can be found in the licenses/ folder.
#import <Cocoa/Cocoa.h> #import <AppKit/AppKit.h>
@interface WebSeedTableView : NSTableView @interface WebSeedTableView : NSTableView

View File

@@ -2,7 +2,7 @@
// It may be used under the MIT (SPDX: MIT) license. // It may be used under the MIT (SPDX: MIT) license.
// License text can be found in the licenses/ folder. // License text can be found in the licenses/ folder.
#import <Cocoa/Cocoa.h> @import AppKit;
int main(int argc, char** argv) int main(int argc, char** argv)
{ {