-
Notifications
You must be signed in to change notification settings - Fork 112
Expand file tree
/
Copy pathborndotcom-react-native-godot.podspec
More file actions
38 lines (31 loc) · 1.29 KB
/
borndotcom-react-native-godot.podspec
File metadata and controls
38 lines (31 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
require "json"
# Load the package.json once so we can reuse its data.
package = JSON.parse(File.read(File.join(__dir__, "package.json")))
# Load the helper that computes the pre‑built path.
require_relative "./prebuilt-utils.rb"
Pod::Spec.new do |s|
s.name = "borndotcom-react-native-godot"
s.version = package["version"]
s.summary = package["summary"]
s.description = package["description"]
s.homepage = package["homepage"]
s.license = package["license"]
s.platforms = { :ios => "14.0" }
s.author = package["author"]
s.source = { :git => package["repository"], :tag => "#{s.version}" }
s.frameworks = 'AVFAudio'
# Vendored frameworks are taken from the pre‑built location.
# Using the helper ensures the path stays in sync with package.json.
s.vendored_frameworks = [
File.join(prebuilt_path("libgodot"), "libgodot.xcframework"),
File.join(prebuilt_path("libgodot-cpp"), "libgodot-cpp.xcframework")
]
s.weak_frameworks = 'libgodot'
s.subspec 'Common' do |cs|
cs.header_mappings_dir = 'common/include'
cs.source_files = ["common/**/*.{h,hpp,c,cpp,inc}"]
end
s.source_files = ["ios/**/*.{h,hpp,cpp,m,mm,swift}"]
s.header_mappings_dir = 'ios'
install_modules_dependencies(s)
end