mid smth
This commit is contained in:
1 parent
7a0a09c2a1
commit
0af2d75754
18 files changed
+509
-37
No files matched your search
@@ -18,6 +18,23 @@
|
||||
<string>1</string>
|
||||
<key>UILaunchScreen</key>
|
||||
<dict/>
|
||||
<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>
|
||||
</dict>
|
||||
</array>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>UISupportedInterfaceOrientations</key>
|
||||
<array>
|
||||
<string>UIInterfaceOrientationPortrait</string>
|
||||
|
||||
@@ -5,10 +5,76 @@ targets:
|
||||
ogs-chkgfx:
|
||||
type: application
|
||||
platform: iOS
|
||||
deploymentTarget: "15.0"
|
||||
deploymentTarget: "15.6"
|
||||
sources:
|
||||
- path: Assets.xcassets
|
||||
- path: src
|
||||
- path: ../../components/render/ios
|
||||
- path: ../../components/raybri
|
||||
- path: ../../components/other
|
||||
- path: ../../components/chkgfx/chkgfx.swift
|
||||
- path: ../../components/chkgfx/chkgfxVM.swift
|
||||
- path: ../../components/chkgfx/ios/view/ChkgfxView.swift
|
||||
dependencies:
|
||||
- framework: Frameworks/raylib.xcframework
|
||||
embed: true
|
||||
- framework: Frameworks/libEGL.xcframework
|
||||
embed: true
|
||||
- framework: Frameworks/libGLESv2.xcframework
|
||||
embed: true
|
||||
- sdk: UIKit.framework
|
||||
- sdk: SwiftUI.framework
|
||||
- sdk: QuartzCore.framework
|
||||
- sdk: CoreGraphics.framework
|
||||
- sdk: Foundation.framework
|
||||
settings:
|
||||
base:
|
||||
INFOPLIST_FILE: Info.plist
|
||||
PRODUCT_BUNDLE_IDENTIFIER: org.opengamestudio.chkgfx
|
||||
SWIFT_OBJC_BRIDGING_HEADER: ../../components/other/other-Bridging-Header.h
|
||||
HEADER_SEARCH_PATHS:
|
||||
- "$(SRCROOT)/../../components"
|
||||
- "$(SRCROOT)/../../components/raybri"
|
||||
- "$(SRCROOT)/../../components/render"
|
||||
- "$(SRCROOT)/../../components/render/ios"
|
||||
- "$(SRCROOT)/../../components/other"
|
||||
- "$(SRCROOT)/Frameworks/raylib.xcframework/ios-arm64_x86_64-simulator/raylib.framework/Headers"
|
||||
- "$(SRCROOT)/Frameworks/raylib.xcframework/ios-arm64/raylib.framework/Headers"
|
||||
- "$(SRCROOT)/Frameworks/libEGL.xcframework/ios-arm64_x86_64-simulator/Headers"
|
||||
- "$(SRCROOT)/Frameworks/libEGL.xcframework/ios-arm64/Headers"
|
||||
- "$(SRCROOT)/Frameworks/libGLESv2.xcframework/ios-arm64_x86_64-simulator/Headers"
|
||||
- "$(SRCROOT)/Frameworks/libGLESv2.xcframework/ios-arm64/Headers"
|
||||
USER_HEADER_SEARCH_PATHS:
|
||||
- "$(SRCROOT)/../../components/raybri"
|
||||
- "$(SRCROOT)/../../components/render/ios"
|
||||
- "$(SRCROOT)/Frameworks/raylib.xcframework/ios-arm64_x86_64-simulator/raylib.framework/Headers"
|
||||
- "$(SRCROOT)/Frameworks/raylib.xcframework/ios-arm64/raylib.framework/Headers"
|
||||
GCC_PREPROCESSOR_DEFINITIONS:
|
||||
- PLATFORM_IOS=1
|
||||
- GRAPHICS_API_OPENGL_ES3=1
|
||||
- GL_GLEXT_PROTOTYPES=1
|
||||
OTHER_LDFLAGS:
|
||||
- "-ObjC"
|
||||
FRAMEWORK_SEARCH_PATHS:
|
||||
- "$(SRCROOT)/Frameworks"
|
||||
- "$(SRCROOT)/Frameworks/raylib.xcframework/ios-arm64_x86_64-simulator"
|
||||
- "$(SRCROOT)/Frameworks/raylib.xcframework/ios-arm64"
|
||||
- "$(SRCROOT)/Frameworks/libEGL.xcframework/ios-arm64_x86_64-simulator"
|
||||
- "$(SRCROOT)/Frameworks/libEGL.xcframework/ios-arm64"
|
||||
- "$(SRCROOT)/Frameworks/libGLESv2.xcframework/ios-arm64_x86_64-simulator"
|
||||
- "$(SRCROOT)/Frameworks/libGLESv2.xcframework/ios-arm64"
|
||||
LD_RUNPATH_SEARCH_PATHS:
|
||||
- "$(inherited) @executable_path/Frameworks"
|
||||
postBuildScripts:
|
||||
- name: Copy res
|
||||
script: |
|
||||
# Mirror the macOS packaging: the shared res/ tree (symlinks
|
||||
# dereferenced) lands in the app bundle root, so the model is
|
||||
# at <bundle>/cube/cube.gltf
|
||||
RES="${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
|
||||
mkdir -p "$RES"
|
||||
cp -R -L "${SRCROOT}/../../res/." "$RES/"
|
||||
inputFiles:
|
||||
- "$(SRCROOT)/../../res"
|
||||
outputFiles:
|
||||
- "$(TARGET_BUILD_DIR)/$(UNLOCALIZED_RESOURCES_FOLDER_PATH)/cube/cube.gltf"
|
||||
@@ -1,19 +0,0 @@
|
||||
import UIKit
|
||||
|
||||
final class AppDelegate:
|
||||
NSObject,
|
||||
UIApplicationDelegate
|
||||
{
|
||||
let chkgfx = ChkgfxComponent()
|
||||
let chkgfxVM = ChkgfxVM()
|
||||
|
||||
func application(
|
||||
_ application: UIApplication,
|
||||
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? = nil
|
||||
) -> Bool {
|
||||
otherSetupConsoleLogging(chkgfx.ctrl, "Chkgfx")
|
||||
chkgfx.setup()
|
||||
|
||||
return true
|
||||
}
|
||||
}
|
||||
@@ -1,12 +0,0 @@
|
||||
import SwiftUI
|
||||
|
||||
@main
|
||||
struct ChkgfxApp: App {
|
||||
@UIApplicationDelegateAdaptor(AppDelegate.self) private var appDelegate
|
||||
|
||||
var body: some Scene {
|
||||
WindowGroup {
|
||||
ChkgfxView(appDelegate.chkgfxVM)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
../../../../components/chkgfx/chkgfx.swift
|
||||
@@ -1 +0,0 @@
|
||||
../../../../components/chkgfx/chkgfxVM.swift
|
||||
@@ -1 +0,0 @@
|
||||
../../../../../components/chkgfx/ios/view/ChkgfxView.swift
|
||||
@@ -1 +0,0 @@
|
||||
../../../../components/other/other.swift
|
||||
Reference in new issue
Block a user