Unnamed: 0
int64
0
0
repo_id
stringlengths
5
186
file_path
stringlengths
15
223
content
stringlengths
1
32.8M
0
repos/xmake/xmake/templates/objc++
repos/xmake/xmake/templates/objc++/framework/template.lua
template("xcode.framework") add_configfiles("xmake.lua")
0
repos/xmake/xmake/templates/objc++/framework
repos/xmake/xmake/templates/objc++/framework/project/xmake.lua
add_rules("mode.debug", "mode.release") target("${TARGETNAME}") add_rules("xcode.framework") add_files("src/*.mm") add_files("src/Info.plist") add_headerfiles("src/*.h") ${FAQ}
0
repos/xmake/xmake/templates/objc++/framework/project
repos/xmake/xmake/templates/objc++/framework/project/src/Info.plist
<?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>CFBundleDevelopmentRegion</key> <string>$(DEVELOPMENT_LANGUAGE)</string> <key>CFBundleExecutable</key> <string>$(EXECUTABLE_NAME)</string> <key>CFBundleIdentifier</key> <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string> <key>CFBundleInfoDictionaryVersion</key> <string>6.0</string> <key>CFBundleName</key> <string>$(PRODUCT_NAME)</string> <key>CFBundlePackageType</key> <string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string> <key>CFBundleShortVersionString</key> <string>1.0</string> <key>CFBundleVersion</key> <string>$(CURRENT_PROJECT_VERSION)</string> <key>NSHumanReadableCopyright</key> <string>Copyright © 2020 tboox. All rights reserved.</string> </dict> </plist>
0
repos/xmake/xmake/templates/objc++/framework/project
repos/xmake/xmake/templates/objc++/framework/project/src/test.h
#import <Foundation/Foundation.h> FOUNDATION_EXPORT int add(int a, int b);
0
repos/xmake/xmake/templates/objc++
repos/xmake/xmake/templates/objc++/console/template.lua
template("console") add_configfiles("xmake.lua")
0
repos/xmake/xmake/templates/objc++/console
repos/xmake/xmake/templates/objc++/console/project/xmake.lua
-- add modes: debug and release add_rules("mode.debug", "mode.release") -- add target target("${TARGETNAME}") -- set kind set_kind("binary") -- add files add_files("src/*.mm") ${FAQ}
0
repos/xmake/xmake/templates/objc++
repos/xmake/xmake/templates/objc++/bundle/template.lua
template("xcode.bundle") add_configfiles("xmake.lua")
0
repos/xmake/xmake/templates/objc++/bundle
repos/xmake/xmake/templates/objc++/bundle/project/xmake.lua
add_rules("mode.debug", "mode.release") target("${TARGETNAME}") add_rules("xcode.bundle") add_files("src/*.mm") add_files("src/Info.plist") add_headerfiles("src/*.h") ${FAQ}
0
repos/xmake/xmake/templates/objc++/bundle/project
repos/xmake/xmake/templates/objc++/bundle/project/src/Info.plist
<?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>CFBundleDevelopmentRegion</key> <string>$(DEVELOPMENT_LANGUAGE)</string> <key>CFBundleExecutable</key> <string>$(EXECUTABLE_NAME)</string> <key>CFBundleIdentifier</key> <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string> <key>CFBundleInfoDictionaryVersion</key> <string>6.0</string> <key>CFBundleName</key> <string>$(PRODUCT_NAME)</string> <key>CFBundlePackageType</key> <string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string> <key>CFBundleShortVersionString</key> <string>1.0</string> <key>CFBundleVersion</key> <string>$(CURRENT_PROJECT_VERSION)</string> <key>NSHumanReadableCopyright</key> <string>Copyright © 2020 tboox. All rights reserved.</string> </dict> </plist>
0
repos/xmake/xmake/templates/objc++/bundle/project
repos/xmake/xmake/templates/objc++/bundle/project/src/test.h
#import <Foundation/Foundation.h> FOUNDATION_EXPORT int add(int a, int b);
0
repos/xmake/xmake/templates/objc
repos/xmake/xmake/templates/objc/framework/template.lua
template("xcode.framework") add_configfiles("xmake.lua")
0
repos/xmake/xmake/templates/objc/framework
repos/xmake/xmake/templates/objc/framework/project/xmake.lua
add_rules("mode.debug", "mode.release") target("${TARGETNAME}") add_rules("xcode.framework") add_files("src/*.m") add_files("src/Info.plist") add_headerfiles("src/*.h") ${FAQ}
0
repos/xmake/xmake/templates/objc/framework/project
repos/xmake/xmake/templates/objc/framework/project/src/Info.plist
<?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>CFBundleDevelopmentRegion</key> <string>$(DEVELOPMENT_LANGUAGE)</string> <key>CFBundleExecutable</key> <string>$(EXECUTABLE_NAME)</string> <key>CFBundleIdentifier</key> <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string> <key>CFBundleInfoDictionaryVersion</key> <string>6.0</string> <key>CFBundleName</key> <string>$(PRODUCT_NAME)</string> <key>CFBundlePackageType</key> <string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string> <key>CFBundleShortVersionString</key> <string>1.0</string> <key>CFBundleVersion</key> <string>$(CURRENT_PROJECT_VERSION)</string> <key>NSHumanReadableCopyright</key> <string>Copyright © 2020 tboox. All rights reserved.</string> </dict> </plist>
0
repos/xmake/xmake/templates/objc/framework/project
repos/xmake/xmake/templates/objc/framework/project/src/test.h
#import <Foundation/Foundation.h> FOUNDATION_EXPORT int add(int a, int b);
0
repos/xmake/xmake/templates/objc
repos/xmake/xmake/templates/objc/console/template.lua
template("console") add_configfiles("xmake.lua")
0
repos/xmake/xmake/templates/objc/console
repos/xmake/xmake/templates/objc/console/project/xmake.lua
-- add modes: debug and release add_rules("mode.debug", "mode.release") -- add target target("${TARGETNAME}") -- set kind set_kind("binary") -- add files add_files("src/*.m") ${FAQ}
0
repos/xmake/xmake/templates/objc
repos/xmake/xmake/templates/objc/iosapp_with_framework/template.lua
template("xcode.iosapp_with_framework") add_configfiles("xmake.lua")
0
repos/xmake/xmake/templates/objc/iosapp_with_framework
repos/xmake/xmake/templates/objc/iosapp_with_framework/project/xmake.lua
add_rules("mode.debug", "mode.release") target("test") add_rules("xcode.framework") add_files("src/framework/test.m") add_files("src/framework/Info.plist") add_headerfiles("src/framework/test.h") target("${TARGETNAME}") add_rules("xcode.application") add_deps("test") add_files("src/app/*.m", "src/app/**.storyboard", "src/app/*.xcassets") add_files("src/app/Info.plist")
0
repos/xmake/xmake/templates/objc/iosapp_with_framework/project/src
repos/xmake/xmake/templates/objc/iosapp_with_framework/project/src/framework/Info.plist
<?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>CFBundleDevelopmentRegion</key> <string>$(DEVELOPMENT_LANGUAGE)</string> <key>CFBundleExecutable</key> <string>$(EXECUTABLE_NAME)</string> <key>CFBundleIdentifier</key> <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string> <key>CFBundleInfoDictionaryVersion</key> <string>6.0</string> <key>CFBundleName</key> <string>$(PRODUCT_NAME)</string> <key>CFBundlePackageType</key> <string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string> <key>CFBundleShortVersionString</key> <string>1.0</string> <key>CFBundleVersion</key> <string>$(CURRENT_PROJECT_VERSION)</string> <key>NSHumanReadableCopyright</key> <string>Copyright © 2020 tboox. All rights reserved.</string> </dict> </plist>
0
repos/xmake/xmake/templates/objc/iosapp_with_framework/project/src
repos/xmake/xmake/templates/objc/iosapp_with_framework/project/src/framework/test.h
#import <Foundation/Foundation.h> FOUNDATION_EXPORT int add(int a, int b);
0
repos/xmake/xmake/templates/objc/iosapp_with_framework/project/src
repos/xmake/xmake/templates/objc/iosapp_with_framework/project/src/app/SceneDelegate.h
// // SceneDelegate.h // test5 // // Created by ruki on 2020/4/8. // Copyright © 2020 tboox. All rights reserved. // #import <UIKit/UIKit.h> @interface SceneDelegate : UIResponder <UIWindowSceneDelegate> @property (strong, nonatomic) UIWindow * window; @end
0
repos/xmake/xmake/templates/objc/iosapp_with_framework/project/src
repos/xmake/xmake/templates/objc/iosapp_with_framework/project/src/app/Info.plist
<?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>CFBundleDevelopmentRegion</key> <string>$(DEVELOPMENT_LANGUAGE)</string> <key>CFBundleExecutable</key> <string>$(EXECUTABLE_NAME)</string> <key>CFBundleIdentifier</key> <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string> <key>CFBundleInfoDictionaryVersion</key> <string>6.0</string> <key>CFBundleName</key> <string>$(PRODUCT_NAME)</string> <key>CFBundleDisplayName</key> <string>$(PRODUCT_DISPLAY_NAME)</string> <key>CFBundlePackageType</key> <string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string> <key>CFBundleShortVersionString</key> <string>1.0</string> <key>CFBundleVersion</key> <string>1</string> <key>LSRequiresIPhoneOS</key> <true/> <key>UIApplicationSceneManifest</key> <dict> <key>UIApplicationSupportsMultipleScenes</key> <false/> <key>UISceneConfigurations</key> <dict> <key>UIWindowSceneSessionRoleApplication</key> <array> <dict> <key>UISceneConfigurationName</key> <string>Default Configuration</string> <key>UISceneDelegateClassName</key> <string>SceneDelegate</string> <key>UISceneStoryboardFile</key> <string>Main</string> </dict> </array> </dict> </dict> <key>UILaunchStoryboardName</key> <string>LaunchScreen</string> <key>UIMainStoryboardFile</key> <string>Main</string> <key>UIRequiredDeviceCapabilities</key> <array> <string>armv7</string> </array> <key>UISupportedInterfaceOrientations</key> <array> <string>UIInterfaceOrientationPortrait</string> <string>UIInterfaceOrientationLandscapeLeft</string> <string>UIInterfaceOrientationLandscapeRight</string> </array> <key>UISupportedInterfaceOrientations~ipad</key> <array> <string>UIInterfaceOrientationPortrait</string> <string>UIInterfaceOrientationPortraitUpsideDown</string> <string>UIInterfaceOrientationLandscapeLeft</string> <string>UIInterfaceOrientationLandscapeRight</string> </array> </dict> </plist>
0
repos/xmake/xmake/templates/objc/iosapp_with_framework/project/src
repos/xmake/xmake/templates/objc/iosapp_with_framework/project/src/app/ViewController.h
// // ViewController.h // test5 // // Created by ruki on 2020/4/8. // Copyright © 2020 tboox. All rights reserved. // #import <UIKit/UIKit.h> @interface ViewController : UIViewController @end
0
repos/xmake/xmake/templates/objc/iosapp_with_framework/project/src
repos/xmake/xmake/templates/objc/iosapp_with_framework/project/src/app/AppDelegate.h
// // AppDelegate.h // test5 // // Created by ruki on 2020/4/8. // Copyright © 2020 tboox. All rights reserved. // #import <UIKit/UIKit.h> @interface AppDelegate : UIResponder <UIApplicationDelegate> @end
0
repos/xmake/xmake/templates/objc/iosapp_with_framework/project/src/app
repos/xmake/xmake/templates/objc/iosapp_with_framework/project/src/app/Assets.xcassets/Contents.json
{ "info" : { "version" : 1, "author" : "xcode" } }
0
repos/xmake/xmake/templates/objc/iosapp_with_framework/project/src/app/Assets.xcassets
repos/xmake/xmake/templates/objc/iosapp_with_framework/project/src/app/Assets.xcassets/AppIcon.appiconset/Contents.json
{ "images" : [ { "idiom" : "iphone", "size" : "20x20", "scale" : "2x" }, { "idiom" : "iphone", "size" : "20x20", "scale" : "3x" }, { "idiom" : "iphone", "size" : "29x29", "scale" : "2x" }, { "idiom" : "iphone", "size" : "29x29", "scale" : "3x" }, { "idiom" : "iphone", "size" : "40x40", "scale" : "2x" }, { "idiom" : "iphone", "size" : "40x40", "scale" : "3x" }, { "idiom" : "iphone", "size" : "60x60", "scale" : "2x" }, { "idiom" : "iphone", "size" : "60x60", "scale" : "3x" }, { "idiom" : "ipad", "size" : "20x20", "scale" : "1x" }, { "idiom" : "ipad", "size" : "20x20", "scale" : "2x" }, { "idiom" : "ipad", "size" : "29x29", "scale" : "1x" }, { "idiom" : "ipad", "size" : "29x29", "scale" : "2x" }, { "idiom" : "ipad", "size" : "40x40", "scale" : "1x" }, { "idiom" : "ipad", "size" : "40x40", "scale" : "2x" }, { "idiom" : "ipad", "size" : "76x76", "scale" : "1x" }, { "idiom" : "ipad", "size" : "76x76", "scale" : "2x" }, { "idiom" : "ipad", "size" : "83.5x83.5", "scale" : "2x" }, { "idiom" : "ios-marketing", "size" : "1024x1024", "scale" : "1x" } ], "info" : { "version" : 1, "author" : "xcode" } }
0
repos/xmake/xmake/templates/objc
repos/xmake/xmake/templates/objc/macapp_with_framework/template.lua
template("xcode.macapp_with_framework") add_configfiles("xmake.lua")
0
repos/xmake/xmake/templates/objc/macapp_with_framework
repos/xmake/xmake/templates/objc/macapp_with_framework/project/xmake.lua
add_rules("mode.debug", "mode.release") target("test") add_rules("xcode.framework") add_files("src/framework/test.m") add_files("src/framework/Info.plist") add_headerfiles("src/framework/test.h") target("${TARGETNAME}") add_rules("xcode.application") add_deps("test") add_files("src/app/*.m", "src/app/**.storyboard", "src/app/*.xcassets") add_files("src/app/Info.plist")
0
repos/xmake/xmake/templates/objc/macapp_with_framework/project/src
repos/xmake/xmake/templates/objc/macapp_with_framework/project/src/framework/Info.plist
<?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>CFBundleDevelopmentRegion</key> <string>$(DEVELOPMENT_LANGUAGE)</string> <key>CFBundleExecutable</key> <string>$(EXECUTABLE_NAME)</string> <key>CFBundleIdentifier</key> <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string> <key>CFBundleInfoDictionaryVersion</key> <string>6.0</string> <key>CFBundleName</key> <string>$(PRODUCT_NAME)</string> <key>CFBundlePackageType</key> <string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string> <key>CFBundleShortVersionString</key> <string>1.0</string> <key>CFBundleVersion</key> <string>$(CURRENT_PROJECT_VERSION)</string> <key>NSHumanReadableCopyright</key> <string>Copyright © 2020 tboox. All rights reserved.</string> </dict> </plist>
0
repos/xmake/xmake/templates/objc/macapp_with_framework/project/src
repos/xmake/xmake/templates/objc/macapp_with_framework/project/src/framework/test.h
#import <Foundation/Foundation.h> FOUNDATION_EXPORT int add(int a, int b);
0
repos/xmake/xmake/templates/objc/macapp_with_framework/project/src
repos/xmake/xmake/templates/objc/macapp_with_framework/project/src/app/Info.plist
<?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>CFBundleDevelopmentRegion</key> <string>$(DEVELOPMENT_LANGUAGE)</string> <key>CFBundleExecutable</key> <string>$(EXECUTABLE_NAME)</string> <key>CFBundleIconFile</key> <string></string> <key>CFBundleIdentifier</key> <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string> <key>CFBundleInfoDictionaryVersion</key> <string>6.0</string> <key>CFBundleName</key> <string>$(PRODUCT_NAME)</string> <key>CFBundleDisplayName</key> <string>$(PRODUCT_DISPLAY_NAME)</string> <key>CFBundlePackageType</key> <string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string> <key>CFBundleShortVersionString</key> <string>1.0</string> <key>CFBundleVersion</key> <string>1</string> <key>LSMinimumSystemVersion</key> <string>$(MACOSX_DEPLOYMENT_TARGET)</string> <key>NSHumanReadableCopyright</key> <string>Copyright © 2020 tboox. All rights reserved.</string> <key>NSMainStoryboardFile</key> <string>Main</string> <key>NSPrincipalClass</key> <string>NSApplication</string> <key>NSSupportsAutomaticTermination</key> <true/> <key>NSSupportsSuddenTermination</key> <true/> </dict> </plist>
0
repos/xmake/xmake/templates/objc/macapp_with_framework/project/src
repos/xmake/xmake/templates/objc/macapp_with_framework/project/src/app/ViewController.h
// // ViewController.h // test3 // // Created by ruki on 2020/4/4. // Copyright © 2020 tboox. All rights reserved. // #import <Cocoa/Cocoa.h> @interface ViewController : NSViewController @end
0
repos/xmake/xmake/templates/objc/macapp_with_framework/project/src
repos/xmake/xmake/templates/objc/macapp_with_framework/project/src/app/AppDelegate.h
// // AppDelegate.h // test3 // // Created by ruki on 2020/4/4. // Copyright © 2020 tboox. All rights reserved. // #import <Cocoa/Cocoa.h> @interface AppDelegate : NSObject <NSApplicationDelegate> @end
0
repos/xmake/xmake/templates/objc/macapp_with_framework/project/src
repos/xmake/xmake/templates/objc/macapp_with_framework/project/src/app/test.entitlements
<?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>com.apple.security.app-sandbox</key> <true/> <key>com.apple.security.files.user-selected.read-only</key> <true/> </dict> </plist>
0
repos/xmake/xmake/templates/objc/macapp_with_framework/project/src/app
repos/xmake/xmake/templates/objc/macapp_with_framework/project/src/app/Assets.xcassets/Contents.json
{ "info" : { "version" : 1, "author" : "xcode" } }
0
repos/xmake/xmake/templates/objc/macapp_with_framework/project/src/app/Assets.xcassets
repos/xmake/xmake/templates/objc/macapp_with_framework/project/src/app/Assets.xcassets/AppIcon.appiconset/Contents.json
{ "images" : [ { "idiom" : "mac", "size" : "16x16", "scale" : "1x" }, { "idiom" : "mac", "size" : "16x16", "scale" : "2x" }, { "idiom" : "mac", "size" : "32x32", "scale" : "1x" }, { "idiom" : "mac", "size" : "32x32", "scale" : "2x" }, { "idiom" : "mac", "size" : "128x128", "scale" : "1x" }, { "idiom" : "mac", "size" : "128x128", "scale" : "2x" }, { "idiom" : "mac", "size" : "256x256", "scale" : "1x" }, { "idiom" : "mac", "size" : "256x256", "scale" : "2x" }, { "idiom" : "mac", "size" : "512x512", "scale" : "1x" }, { "idiom" : "mac", "size" : "512x512", "scale" : "2x" } ], "info" : { "version" : 1, "author" : "xcode" } }
0
repos/xmake/xmake/templates/objc
repos/xmake/xmake/templates/objc/macapp/template.lua
template("xcode.macapp") add_configfiles("xmake.lua")
0
repos/xmake/xmake/templates/objc/macapp
repos/xmake/xmake/templates/objc/macapp/project/xmake.lua
add_rules("mode.debug", "mode.release") target("${TARGETNAME}") add_rules("xcode.application") add_files("src/*.m", "src/**.storyboard", "src/*.xcassets") add_files("src/Info.plist")
0
repos/xmake/xmake/templates/objc/macapp/project
repos/xmake/xmake/templates/objc/macapp/project/src/Info.plist
<?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>CFBundleDevelopmentRegion</key> <string>$(DEVELOPMENT_LANGUAGE)</string> <key>CFBundleExecutable</key> <string>$(EXECUTABLE_NAME)</string> <key>CFBundleIconFile</key> <string></string> <key>CFBundleIdentifier</key> <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string> <key>CFBundleInfoDictionaryVersion</key> <string>6.0</string> <key>CFBundleName</key> <string>$(PRODUCT_NAME)</string> <key>CFBundleDisplayName</key> <string>$(PRODUCT_DISPLAY_NAME)</string> <key>CFBundlePackageType</key> <string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string> <key>CFBundleShortVersionString</key> <string>1.0</string> <key>CFBundleVersion</key> <string>1</string> <key>LSMinimumSystemVersion</key> <string>$(MACOSX_DEPLOYMENT_TARGET)</string> <key>NSHumanReadableCopyright</key> <string>Copyright © 2020 tboox. All rights reserved.</string> <key>NSMainStoryboardFile</key> <string>Main</string> <key>NSPrincipalClass</key> <string>NSApplication</string> <key>NSSupportsAutomaticTermination</key> <true/> <key>NSSupportsSuddenTermination</key> <true/> </dict> </plist>
0
repos/xmake/xmake/templates/objc/macapp/project
repos/xmake/xmake/templates/objc/macapp/project/src/ViewController.h
// // ViewController.h // test3 // // Created by ruki on 2020/4/4. // Copyright © 2020 tboox. All rights reserved. // #import <Cocoa/Cocoa.h> @interface ViewController : NSViewController @end
0
repos/xmake/xmake/templates/objc/macapp/project
repos/xmake/xmake/templates/objc/macapp/project/src/AppDelegate.h
// // AppDelegate.h // test3 // // Created by ruki on 2020/4/4. // Copyright © 2020 tboox. All rights reserved. // #import <Cocoa/Cocoa.h> @interface AppDelegate : NSObject <NSApplicationDelegate> @end
0
repos/xmake/xmake/templates/objc/macapp/project
repos/xmake/xmake/templates/objc/macapp/project/src/test.entitlements
<?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>com.apple.security.app-sandbox</key> <true/> <key>com.apple.security.files.user-selected.read-only</key> <true/> </dict> </plist>
0
repos/xmake/xmake/templates/objc/macapp/project/src
repos/xmake/xmake/templates/objc/macapp/project/src/Assets.xcassets/Contents.json
{ "info" : { "version" : 1, "author" : "xcode" } }
0
repos/xmake/xmake/templates/objc/macapp/project/src/Assets.xcassets
repos/xmake/xmake/templates/objc/macapp/project/src/Assets.xcassets/AppIcon.appiconset/Contents.json
{ "images" : [ { "idiom" : "mac", "size" : "16x16", "scale" : "1x" }, { "idiom" : "mac", "size" : "16x16", "scale" : "2x" }, { "idiom" : "mac", "size" : "32x32", "scale" : "1x" }, { "idiom" : "mac", "size" : "32x32", "scale" : "2x" }, { "idiom" : "mac", "size" : "128x128", "scale" : "1x" }, { "idiom" : "mac", "size" : "128x128", "scale" : "2x" }, { "idiom" : "mac", "size" : "256x256", "scale" : "1x" }, { "idiom" : "mac", "size" : "256x256", "scale" : "2x" }, { "idiom" : "mac", "size" : "512x512", "scale" : "1x" }, { "idiom" : "mac", "size" : "512x512", "scale" : "2x" } ], "info" : { "version" : 1, "author" : "xcode" } }
0
repos/xmake/xmake/templates/objc
repos/xmake/xmake/templates/objc/iosapp/template.lua
template("xcode.iosapp") add_configfiles("xmake.lua")
0
repos/xmake/xmake/templates/objc/iosapp
repos/xmake/xmake/templates/objc/iosapp/project/xmake.lua
add_rules("mode.debug", "mode.release") target("${TARGETNAME}") add_rules("xcode.application") add_files("src/*.m", "src/**.storyboard", "src/*.xcassets") add_files("src/Info.plist")
0
repos/xmake/xmake/templates/objc/iosapp/project
repos/xmake/xmake/templates/objc/iosapp/project/src/SceneDelegate.h
// // SceneDelegate.h // test5 // // Created by ruki on 2020/4/8. // Copyright © 2020 tboox. All rights reserved. // #import <UIKit/UIKit.h> @interface SceneDelegate : UIResponder <UIWindowSceneDelegate> @property (strong, nonatomic) UIWindow * window; @end
0
repos/xmake/xmake/templates/objc/iosapp/project
repos/xmake/xmake/templates/objc/iosapp/project/src/Info.plist
<?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>CFBundleDevelopmentRegion</key> <string>$(DEVELOPMENT_LANGUAGE)</string> <key>CFBundleExecutable</key> <string>$(EXECUTABLE_NAME)</string> <key>CFBundleIdentifier</key> <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string> <key>CFBundleInfoDictionaryVersion</key> <string>6.0</string> <key>CFBundleName</key> <string>$(PRODUCT_NAME)</string> <key>CFBundleDisplayName</key> <string>$(PRODUCT_DISPLAY_NAME)</string> <key>CFBundlePackageType</key> <string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string> <key>CFBundleShortVersionString</key> <string>1.0</string> <key>CFBundleVersion</key> <string>1</string> <key>LSRequiresIPhoneOS</key> <true/> <key>UIApplicationSceneManifest</key> <dict> <key>UIApplicationSupportsMultipleScenes</key> <false/> <key>UISceneConfigurations</key> <dict> <key>UIWindowSceneSessionRoleApplication</key> <array> <dict> <key>UISceneConfigurationName</key> <string>Default Configuration</string> <key>UISceneDelegateClassName</key> <string>SceneDelegate</string> <key>UISceneStoryboardFile</key> <string>Main</string> </dict> </array> </dict> </dict> <key>UILaunchStoryboardName</key> <string>LaunchScreen</string> <key>UIMainStoryboardFile</key> <string>Main</string> <key>UIRequiredDeviceCapabilities</key> <array> <string>armv7</string> </array> <key>UISupportedInterfaceOrientations</key> <array> <string>UIInterfaceOrientationPortrait</string> <string>UIInterfaceOrientationLandscapeLeft</string> <string>UIInterfaceOrientationLandscapeRight</string> </array> <key>UISupportedInterfaceOrientations~ipad</key> <array> <string>UIInterfaceOrientationPortrait</string> <string>UIInterfaceOrientationPortraitUpsideDown</string> <string>UIInterfaceOrientationLandscapeLeft</string> <string>UIInterfaceOrientationLandscapeRight</string> </array> </dict> </plist>
0
repos/xmake/xmake/templates/objc/iosapp/project
repos/xmake/xmake/templates/objc/iosapp/project/src/ViewController.h
// // ViewController.h // test5 // // Created by ruki on 2020/4/8. // Copyright © 2020 tboox. All rights reserved. // #import <UIKit/UIKit.h> @interface ViewController : UIViewController @end
0
repos/xmake/xmake/templates/objc/iosapp/project
repos/xmake/xmake/templates/objc/iosapp/project/src/AppDelegate.h
// // AppDelegate.h // test5 // // Created by ruki on 2020/4/8. // Copyright © 2020 tboox. All rights reserved. // #import <UIKit/UIKit.h> @interface AppDelegate : UIResponder <UIApplicationDelegate> @end
0
repos/xmake/xmake/templates/objc/iosapp/project/src
repos/xmake/xmake/templates/objc/iosapp/project/src/Assets.xcassets/Contents.json
{ "info" : { "version" : 1, "author" : "xcode" } }
0
repos/xmake/xmake/templates/objc/iosapp/project/src/Assets.xcassets
repos/xmake/xmake/templates/objc/iosapp/project/src/Assets.xcassets/AppIcon.appiconset/Contents.json
{ "images" : [ { "idiom" : "iphone", "size" : "20x20", "scale" : "2x" }, { "idiom" : "iphone", "size" : "20x20", "scale" : "3x" }, { "idiom" : "iphone", "size" : "29x29", "scale" : "2x" }, { "idiom" : "iphone", "size" : "29x29", "scale" : "3x" }, { "idiom" : "iphone", "size" : "40x40", "scale" : "2x" }, { "idiom" : "iphone", "size" : "40x40", "scale" : "3x" }, { "idiom" : "iphone", "size" : "60x60", "scale" : "2x" }, { "idiom" : "iphone", "size" : "60x60", "scale" : "3x" }, { "idiom" : "ipad", "size" : "20x20", "scale" : "1x" }, { "idiom" : "ipad", "size" : "20x20", "scale" : "2x" }, { "idiom" : "ipad", "size" : "29x29", "scale" : "1x" }, { "idiom" : "ipad", "size" : "29x29", "scale" : "2x" }, { "idiom" : "ipad", "size" : "40x40", "scale" : "1x" }, { "idiom" : "ipad", "size" : "40x40", "scale" : "2x" }, { "idiom" : "ipad", "size" : "76x76", "scale" : "1x" }, { "idiom" : "ipad", "size" : "76x76", "scale" : "2x" }, { "idiom" : "ipad", "size" : "83.5x83.5", "scale" : "2x" }, { "idiom" : "ios-marketing", "size" : "1024x1024", "scale" : "1x" } ], "info" : { "version" : 1, "author" : "xcode" } }
0
repos/xmake/xmake/templates/objc
repos/xmake/xmake/templates/objc/bundle/template.lua
template("xcode.bundle") add_configfiles("xmake.lua")
0
repos/xmake/xmake/templates/objc/bundle
repos/xmake/xmake/templates/objc/bundle/project/xmake.lua
add_rules("mode.debug", "mode.release") target("${TARGETNAME}") add_rules("xcode.bundle") add_files("src/*.m") add_files("src/Info.plist") add_headerfiles("src/*.h") ${FAQ}
0
repos/xmake/xmake/templates/objc/bundle/project
repos/xmake/xmake/templates/objc/bundle/project/src/Info.plist
<?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>CFBundleDevelopmentRegion</key> <string>$(DEVELOPMENT_LANGUAGE)</string> <key>CFBundleExecutable</key> <string>$(EXECUTABLE_NAME)</string> <key>CFBundleIdentifier</key> <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string> <key>CFBundleInfoDictionaryVersion</key> <string>6.0</string> <key>CFBundleName</key> <string>$(PRODUCT_NAME)</string> <key>CFBundlePackageType</key> <string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string> <key>CFBundleShortVersionString</key> <string>1.0</string> <key>CFBundleVersion</key> <string>$(CURRENT_PROJECT_VERSION)</string> <key>NSHumanReadableCopyright</key> <string>Copyright © 2020 tboox. All rights reserved.</string> </dict> </plist>
0
repos/xmake/xmake/templates/objc/bundle/project
repos/xmake/xmake/templates/objc/bundle/project/src/test.h
#import <Foundation/Foundation.h> FOUNDATION_EXPORT int add(int a, int b);
0
repos/xmake/xmake/templates/zig
repos/xmake/xmake/templates/zig/shared/template.lua
template("shared") add_configfiles("xmake.lua")
0
repos/xmake/xmake/templates/zig/shared
repos/xmake/xmake/templates/zig/shared/project/xmake.lua
add_rules("mode.debug", "mode.release") target("${TARGETNAME}") set_kind("shared") add_files("src/test.zig") target("${TARGETNAME}_demo") set_kind("binary") add_deps("${TARGETNAME}") add_files("src/main.zig") ${FAQ}
0
repos/xmake/xmake/templates/zig/shared/project
repos/xmake/xmake/templates/zig/shared/project/src/main.zig
const std = @import("std"); extern fn add(a: i32, b: i32) i32; pub fn main() !void { const stdout = std.io.getStdOut().writer(); try stdout.print("Hello, {s} - {d}!\n", .{"world", add(1, 1)}); }
0
repos/xmake/xmake/templates/zig/shared/project
repos/xmake/xmake/templates/zig/shared/project/src/test.zig
export fn add(a: i32, b: i32) i32 { return a + b; }
0
repos/xmake/xmake/templates/zig
repos/xmake/xmake/templates/zig/static/template.lua
template("static") add_configfiles("xmake.lua")
0
repos/xmake/xmake/templates/zig/static
repos/xmake/xmake/templates/zig/static/project/xmake.lua
add_rules("mode.debug", "mode.release") target("${TARGETNAME}") set_kind("static") add_files("src/test.zig") target("${TARGETNAME}_demo") set_kind("binary") add_deps("${TARGETNAME}") add_files("src/main.zig") ${FAQ}
0
repos/xmake/xmake/templates/zig/static/project
repos/xmake/xmake/templates/zig/static/project/src/main.zig
const std = @import("std"); extern fn add(a: i32, b: i32) i32; pub fn main() !void { const stdout = std.io.getStdOut().writer(); try stdout.print("Hello, {s} - {d}!\n", .{"world", add(1, 1)}); }
0
repos/xmake/xmake/templates/zig/static/project
repos/xmake/xmake/templates/zig/static/project/src/test.zig
export fn add(a: i32, b: i32) i32 { return a + b; }
0
repos/xmake/xmake/templates/zig
repos/xmake/xmake/templates/zig/console/template.lua
template("console") add_configfiles("xmake.lua")
0
repos/xmake/xmake/templates/zig/console
repos/xmake/xmake/templates/zig/console/project/xmake.lua
add_rules("mode.debug", "mode.release") target("${TARGETNAME}") set_kind("binary") add_files("src/*.zig") ${FAQ}
0
repos/xmake/xmake/templates/zig/console/project
repos/xmake/xmake/templates/zig/console/project/src/main.zig
const std = @import("std"); pub fn main() !void { const stdout = std.io.getStdOut().writer(); try stdout.print("Hello, {s}!\n", .{"world"}); }
0
repos/xmake/xmake/templates/zig/console/project
repos/xmake/xmake/templates/zig/console/project/src/test.zig
const std = @import("std"); pub fn hello() !void { const stdout = std.io.getStdOut().writer(); try stdout.print("Hello, {s}!\n", .{"world"}); }
0
repos/xmake/xmake/templates/vala
repos/xmake/xmake/templates/vala/shared/template.lua
template("shared") add_configfiles("xmake.lua")
0
repos/xmake/xmake/templates/vala/shared
repos/xmake/xmake/templates/vala/shared/project/xmake.lua
add_rules("mode.release", "mode.debug") add_requires("glib") target("mymath") set_kind("shared") add_rules("vala") add_files("src/mymath.vala") add_values("vala.header", "mymath.h") add_values("vala.vapi", "mymath-1.0.vapi") add_packages("glib") target("${TARGETNAME}") set_kind("binary") add_deps("mymath") add_rules("vala") add_files("src/main.vala") add_packages("glib")
0
repos/xmake/xmake/templates/vala
repos/xmake/xmake/templates/vala/static/template.lua
template("static") add_configfiles("xmake.lua")
0
repos/xmake/xmake/templates/vala/static
repos/xmake/xmake/templates/vala/static/project/xmake.lua
add_rules("mode.release", "mode.debug") add_requires("glib") target("mymath") set_kind("static") add_rules("vala") add_files("src/mymath.vala") add_values("vala.header", "mymath.h") add_values("vala.vapi", "mymath-1.0.vapi") add_packages("glib") target("${TARGETNAME}") set_kind("binary") add_deps("mymath") add_rules("vala") add_files("src/main.vala") add_packages("glib")
0
repos/xmake/xmake/templates/vala
repos/xmake/xmake/templates/vala/console/template.lua
template("console") add_configfiles("xmake.lua")
0
repos/xmake/xmake/templates/vala/console
repos/xmake/xmake/templates/vala/console/project/xmake.lua
add_rules("mode.debug", "mode.release") add_requires("lua", "glib") target("${TARGETNAME}") set_kind("binary") add_rules("vala") add_files("src/*.vala") add_packages("lua", "glib") add_values("vala.packages", "lua") ${FAQ}
0
repos/xmake/xmake/templates/rust
repos/xmake/xmake/templates/rust/static/template.lua
template("static") add_configfiles("xmake.lua")
0
repos/xmake/xmake/templates/rust/static
repos/xmake/xmake/templates/rust/static/project/xmake.lua
target("foo") set_kind("static") add_files("src/foo.rs") target("${TARGETNAME}_demo") set_kind("binary") add_deps("foo") add_files("src/main.rs") ${FAQ}
0
repos/xmake/xmake/templates/rust/static/project
repos/xmake/xmake/templates/rust/static/project/src/foo.rs
pub fn add(a: i32, b: i32) -> i32 { return a + b; }
0
repos/xmake/xmake/templates/rust/static/project
repos/xmake/xmake/templates/rust/static/project/src/main.rs
extern crate foo; fn main() { println!("hello xmake!"); println!("add: {}", foo::add(1, 1)); }
0
repos/xmake/xmake/templates/rust
repos/xmake/xmake/templates/rust/console/template.lua
template("console") add_configfiles("xmake.lua")
0
repos/xmake/xmake/templates/rust/console
repos/xmake/xmake/templates/rust/console/project/xmake.lua
add_rules("mode.debug", "mode.release") target("${TARGETNAME}") set_kind("binary") add_files("src/main.rs") ${FAQ}
0
repos/xmake/xmake/templates/rust/console/project
repos/xmake/xmake/templates/rust/console/project/src/main.rs
fn main() { println!("hello xmake!"); }
0
repos/xmake/xmake/templates/c
repos/xmake/xmake/templates/c/shared/template.lua
template("shared") add_configfiles("xmake.lua")
0
repos/xmake/xmake/templates/c/shared
repos/xmake/xmake/templates/c/shared/project/xmake.lua
add_rules("mode.debug", "mode.release") target("foo") set_kind("shared") add_files("src/foo.c") target("${TARGETNAME}") set_kind("binary") add_deps("foo") add_files("src/main.c") ${FAQ}
0
repos/xmake/xmake/templates/c/shared/project
repos/xmake/xmake/templates/c/shared/project/src/main.c
#include "foo.h" #include <stdio.h> int main(int argc, char** argv) { printf("add(1, 2) = %d\n", add(1, 2)); return 0; }
0
repos/xmake/xmake/templates/c/shared/project
repos/xmake/xmake/templates/c/shared/project/src/foo.h
#if defined(_WIN32) # define __export __declspec(dllexport) #elif defined(__GNUC__) && ((__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3)) # define __export __attribute__((visibility("default"))) #else # define __export #endif __export int add(int a, int b);
0
repos/xmake/xmake/templates/c/shared/project
repos/xmake/xmake/templates/c/shared/project/src/foo.c
#include "foo.h" int add(int a, int b) { return a + b; }
0
repos/xmake/xmake/templates/c
repos/xmake/xmake/templates/c/static/template.lua
template("static") add_configfiles("xmake.lua")
0
repos/xmake/xmake/templates/c/static
repos/xmake/xmake/templates/c/static/project/xmake.lua
add_rules("mode.debug", "mode.release") target("foo") set_kind("static") add_files("src/foo.c") target("${TARGETNAME}") set_kind("binary") add_deps("foo") add_files("src/main.c") ${FAQ}
0
repos/xmake/xmake/templates/c/static/project
repos/xmake/xmake/templates/c/static/project/src/main.c
#include "foo.h" #include <stdio.h> int main(int argc, char** argv) { printf("add(1, 2) = %d\n", add(1, 2)); return 0; }
0
repos/xmake/xmake/templates/c/static/project
repos/xmake/xmake/templates/c/static/project/src/foo.h
int add(int a, int b);
0
repos/xmake/xmake/templates/c/static/project
repos/xmake/xmake/templates/c/static/project/src/foo.c
#include "foo.h" int add(int a, int b) { return a + b; }
0
repos/xmake/xmake/templates/c
repos/xmake/xmake/templates/c/module.binary/template.lua
template("module.binary") add_configfiles("xmake.lua")
0
repos/xmake/xmake/templates/c/module.binary
repos/xmake/xmake/templates/c/module.binary/project/xmake.lua
add_rules("mode.debug", "mode.release") add_moduledirs("modules") target("${TARGETNAME}") set_kind("binary") add_files("src/*.c") on_config(function (target) import("binary.bar") print("binary: 1 + 1 = %s", bar.add(1, 1)) print("binary: 1 - 1 = %s", bar.sub(1, 1)) end) ${FAQ}
0
repos/xmake/xmake/templates/c/module.binary/project/modules/binary
repos/xmake/xmake/templates/c/module.binary/project/modules/binary/bar/xmake.lua
add_rules("mode.debug", "mode.release") target("add") add_rules("module.binary") add_files("src/add.c") target("sub") add_rules("module.binary") add_files("src/sub.c")
0
repos/xmake/xmake/templates/c/module.binary/project/modules/binary/bar
repos/xmake/xmake/templates/c/module.binary/project/modules/binary/bar/src/sub.c
#include <stdio.h> #include <stdlib.h> int main(int argc, char** argv) { int a = atoi(argv[1]); int b = atoi(argv[2]); printf("%d", a - b); return 0; }
0
repos/xmake/xmake/templates/c/module.binary/project/modules/binary/bar
repos/xmake/xmake/templates/c/module.binary/project/modules/binary/bar/src/add.c
#include <stdio.h> #include <stdlib.h> int main(int argc, char** argv) { int a = atoi(argv[1]); int b = atoi(argv[2]); printf("%d", a + b); return 0; }
0
repos/xmake/xmake/templates/c/module.binary/project
repos/xmake/xmake/templates/c/module.binary/project/src/main.c
#include <stdio.h> int main(int argc, char** argv) { printf("hello world!\n"); return 0; }
0
repos/xmake/xmake/templates/c
repos/xmake/xmake/templates/c/console/template.lua
template("console") add_configfiles("xmake.lua")
0
repos/xmake/xmake/templates/c/console
repos/xmake/xmake/templates/c/console/project/xmake.lua
add_rules("mode.debug", "mode.release") target("${TARGETNAME}") set_kind("binary") add_files("src/*.c") ${FAQ}
0
repos/xmake/xmake/templates/c/console/project
repos/xmake/xmake/templates/c/console/project/src/main.c
#include <stdio.h> int main(int argc, char** argv) { printf("hello world!\n"); return 0; }