mirror of
https://github.com/Karmaz95/Snake_Apple.git
synced 2026-03-30 14:00:16 +02:00
Bare Kernel Extension project ready to compile
This commit is contained in:
151
X. NU/custom/HelloKext/HelloWorldKext.xcodeproj/project.pbxproj
Normal file
151
X. NU/custom/HelloKext/HelloWorldKext.xcodeproj/project.pbxproj
Normal file
@@ -0,0 +1,151 @@
|
||||
// Contents for HelloWorldKext.xcodeproj/project.pbxproj
|
||||
// Save this as a plain text file
|
||||
{
|
||||
archiveVersion = 1;
|
||||
classes = {
|
||||
};
|
||||
objectVersion = 46;
|
||||
objects = {
|
||||
/* Begin PBXBuildFile section */
|
||||
8D01CCC80486CAD60068D4B7 /* HelloWorld.c in Sources */ = {
|
||||
isa = PBXBuildFile;
|
||||
fileRef = 08FB77B2FE8417CDC02AAC07 /* HelloWorld.c */;
|
||||
};
|
||||
/* End PBXBuildFile section */
|
||||
|
||||
/* Begin PBXFileReference section */
|
||||
08FB77B2FE8417CDC02AAC07 /* HelloWorld.c */ = {
|
||||
isa = PBXFileReference;
|
||||
fileEncoding = 4;
|
||||
lastKnownFileType = sourcecode.c.c;
|
||||
path = src/HelloWorld.c;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
8D01CCD10486CAD60068D4B7 /* Info.plist */ = {
|
||||
isa = PBXFileReference;
|
||||
fileEncoding = 4;
|
||||
lastKnownFileType = text.plist.xml;
|
||||
path = src/Info.plist;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
8D01CCD20486CAD60068D4B7 /* HelloWorld.kext */ = {
|
||||
isa = PBXFileReference;
|
||||
explicitFileType = wrapper.cfbundle;
|
||||
includeInIndex = 0;
|
||||
path = HelloWorld.kext;
|
||||
sourceTree = BUILT_PRODUCTS_DIR;
|
||||
};
|
||||
/* End PBXFileReference section */
|
||||
|
||||
/* Begin PBXGroup section */
|
||||
089C166AFE841209C02AAC07 /* HelloWorld */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
08FB77B2FE8417CDC02AAC07 /* HelloWorld.c */,
|
||||
8D01CCD10486CAD60068D4B7 /* Info.plist */,
|
||||
19C28FB6FE9D52B211CA2CBB /* Products */,
|
||||
);
|
||||
name = HelloWorld;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
19C28FB6FE9D52B211CA2CBB /* Products */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
8D01CCD20486CAD60068D4B7 /* HelloWorld.kext */,
|
||||
);
|
||||
name = Products;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
/* End PBXGroup section */
|
||||
|
||||
/* Begin PBXNativeTarget section */
|
||||
8D01CCC60486CAD60068D4B7 /* HelloWorld */ = {
|
||||
isa = PBXNativeTarget;
|
||||
buildConfigurationList = 1DEB91D908733DB10010E9CD /* Build configuration list */;
|
||||
buildPhases = (
|
||||
8D01CCC90486CAD60068D4B7 /* Sources */,
|
||||
);
|
||||
buildRules = (
|
||||
);
|
||||
dependencies = (
|
||||
);
|
||||
name = HelloWorld;
|
||||
productInstallPath = "$(HOME)/Library/Bundles";
|
||||
productName = HelloWorld;
|
||||
productReference = 8D01CCD20486CAD60068D4B7 /* HelloWorld.kext */;
|
||||
productType = "com.apple.product-type.bundle";
|
||||
};
|
||||
/* End PBXNativeTarget section */
|
||||
|
||||
/* Begin PBXProject section */
|
||||
089C1669FE841209C02AAC07 /* Project object */ = {
|
||||
isa = PBXProject;
|
||||
buildConfigurationList = 1DEB91DD08733DB10010E9CD /* Build configuration list for PBXProject "HelloWorld" */;
|
||||
compatibilityVersion = "Xcode 3.2";
|
||||
developmentRegion = English;
|
||||
hasScannedForEncodings = 1;
|
||||
knownRegions = (
|
||||
English,
|
||||
Japanese,
|
||||
French,
|
||||
German
|
||||
);
|
||||
mainGroup = 089C166AFE841209C02AAC07 /* HelloWorld */;
|
||||
projectDirPath = "";
|
||||
projectRoot = "";
|
||||
targets = (
|
||||
8D01CCC60486CAD60068D4B7 /* HelloWorld */,
|
||||
);
|
||||
};
|
||||
/* End PBXProject section */
|
||||
|
||||
/* Begin XCBuildConfiguration section */
|
||||
1DEB91DA08733DB10010E9CD /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ARCHS = "$(ARCHS_STANDARD_64_BIT)";
|
||||
GCC_MODEL_TUNING = G5;
|
||||
GCC_WARN_ABOUT_RETURN_TYPE = YES;
|
||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||
INFOPLIST_FILE = src/Info.plist;
|
||||
INSTALL_PATH = "$(HOME)/Library/Bundles";
|
||||
PRODUCT_NAME = HelloWorld;
|
||||
SDKROOT = macosx;
|
||||
WRAPPER_EXTENSION = kext;
|
||||
};
|
||||
name = Release;
|
||||
};
|
||||
1DEB91DE08733DB10010E9CD /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ARCHS = "$(ARCHS_STANDARD_64_BIT)";
|
||||
GCC_C_LANGUAGE_STANDARD = gnu99;
|
||||
GCC_WARN_ABOUT_RETURN_TYPE = YES;
|
||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||
SDKROOT = macosx;
|
||||
};
|
||||
name = Release;
|
||||
};
|
||||
/* End XCBuildConfiguration section */
|
||||
|
||||
/* Begin XCConfigurationList section */
|
||||
1DEB91D908733DB10010E9CD /* Build configuration list for PBXNativeTarget "HelloWorld" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
1DEB91DA08733DB10010E9CD /* Release */,
|
||||
);
|
||||
defaultConfigurationIsVisible = 0;
|
||||
defaultConfigurationName = Release;
|
||||
};
|
||||
1DEB91DD08733DB10010E9CD /* Build configuration list for PBXProject "HelloWorld" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
1DEB91DE08733DB10010E9CD /* Release */,
|
||||
);
|
||||
defaultConfigurationIsVisible = 0;
|
||||
defaultConfigurationName = Release;
|
||||
};
|
||||
/* End XCConfigurationList section */
|
||||
};
|
||||
rootObject = 089C1669FE841209C02AAC07 /* Project object */;
|
||||
}
|
||||
14
X. NU/custom/HelloKext/src/HelloWorld.c
Normal file
14
X. NU/custom/HelloKext/src/HelloWorld.c
Normal file
@@ -0,0 +1,14 @@
|
||||
#include <mach/mach_types.h>
|
||||
|
||||
kern_return_t HelloWorld_start(kmod_info_t * ki, void *d);
|
||||
kern_return_t HelloWorld_stop(kmod_info_t *ki, void *d);
|
||||
|
||||
kern_return_t HelloWorld_start(kmod_info_t * ki, void *d)
|
||||
{
|
||||
return KERN_SUCCESS;
|
||||
}
|
||||
|
||||
kern_return_t HelloWorld_stop(kmod_info_t *ki, void *d)
|
||||
{
|
||||
return KERN_SUCCESS;
|
||||
}
|
||||
51
X. NU/custom/HelloKext/src/Info.plist
Normal file
51
X. NU/custom/HelloKext/src/Info.plist
Normal file
@@ -0,0 +1,51 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>BuildMachineOSBuild</key>
|
||||
<string>23H124</string>
|
||||
<key>CFBundleDevelopmentRegion</key>
|
||||
<string>en</string>
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>HelloWorld</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>crimson.HelloWorld</string>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundleName</key>
|
||||
<string>HelloWorld</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>KEXT</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>1.0</string>
|
||||
<key>CFBundleSupportedPlatforms</key>
|
||||
<array>
|
||||
<string>MacOSX</string>
|
||||
</array>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1</string>
|
||||
<key>DTCompiler</key>
|
||||
<string>com.apple.compilers.llvm.clang.1_0</string>
|
||||
<key>DTPlatformBuild</key>
|
||||
<string>24B75</string>
|
||||
<key>DTPlatformName</key>
|
||||
<string>macosx</string>
|
||||
<key>DTPlatformVersion</key>
|
||||
<string>15.1</string>
|
||||
<key>DTSDKBuild</key>
|
||||
<string>24B75</string>
|
||||
<key>DTSDKName</key>
|
||||
<string>macosx15.1</string>
|
||||
<key>DTXcode</key>
|
||||
<string>1610</string>
|
||||
<key>DTXcodeBuild</key>
|
||||
<string>16B40</string>
|
||||
<key>LSMinimumSystemVersion</key>
|
||||
<string>15.1</string>
|
||||
<key>OSBundleLibraries</key>
|
||||
<dict>
|
||||
<key>com.apple.kpi.libkern</key>
|
||||
<string>20.0.0</string>
|
||||
</dict>
|
||||
</dict>
|
||||
</plist>
|
||||
Reference in New Issue
Block a user