38 lines
1.8 KiB
Ruby
38 lines
1.8 KiB
Ruby
Pod::Spec.new do |s|
|
|
s.name = "UnityLibrary"
|
|
s.version = "0.0.1"
|
|
s.summary = "Unity as a Library integration"
|
|
s.description = "Unity as a Library integration for Flutter"
|
|
s.homepage = "https://unity.com/"
|
|
s.license = { :type => "Unity" }
|
|
s.author = { "Unity Technologies" => "unity@unity3d.com" }
|
|
s.platform = :ios, "12.0"
|
|
s.source = { :git => "https://github.com/Unity-Technologies/uaal-example.git" }
|
|
s.source_files = "Classes/**/*.{h,m,mm,swift}", "Libraries/**/*.{h,m,mm,swift}", "PluginBase/**/*.{h,m,mm,swift}", "UnityFramework/**/*.{h,m,mm,swift}"
|
|
s.public_header_files = "Classes/**/*.h", "Libraries/**/*.h", "PluginBase/**/*.h", "UnityFramework/**/*.h"
|
|
s.resources = "Data/**/*", "*.meta"
|
|
# 添加排除冲突的资源
|
|
s.exclude_files = ["Data/Resources/**/*", "Data/Managed/Resources/**/*"]
|
|
s.frameworks = "UnityFramework"
|
|
s.vendored_frameworks = [
|
|
"Frameworks/UnityFramework.framework"
|
|
]
|
|
if File.exist?("#{s.name}/Frameworks/com.easyar.sense/Runtime/BindingNR/Apple/iOS/ios-arm64/easyar.framework")
|
|
s.vendored_frameworks += ["Frameworks/com.easyar.sense/Runtime/BindingNR/Apple/iOS/ios-arm64/easyar.framework"]
|
|
end
|
|
s.vendored_libraries = [
|
|
"Libraries/**/*.a"
|
|
]
|
|
s.module_name = "UnityLibrary"
|
|
s.xcconfig = {
|
|
"DEFINES_MODULE" => "YES",
|
|
"FRAMEWORK_SEARCH_PATHS" => "\"${PODS_ROOT}/UnityLibrary/Frameworks\" \"${PODS_ROOT}/UnityLibrary/Frameworks/com.easyar.sense/Runtime/BindingNR/Apple/iOS/ios-arm64\"",
|
|
"LIBRARY_SEARCH_PATHS" => "\"${PODS_ROOT}/UnityLibrary/Libraries\"",
|
|
"OTHER_LDFLAGS" => "\"$(inherited) -framework UnityFramework\"",
|
|
"ENABLE_BITCODE" => "NO",
|
|
"CLANG_ENABLE_MODULES" => "YES",
|
|
"SWIFT_INCLUDE_PATHS" => "\"${PODS_ROOT}/UnityLibrary/Frameworks/UnityFramework.framework/Headers\""
|
|
}
|
|
|
|
end
|