-
Notifications
You must be signed in to change notification settings - Fork 0
/
AestesisTess.podspec
42 lines (34 loc) · 1.69 KB
/
AestesisTess.podspec
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
39
40
41
42
# https://stackoverflow.com/questions/31445691/making-a-cocoapod-from-an-existing-xcode-project
# https://github.com/CocoaPods/Xcodeproj
require 'xcodeproj'
project = Xcodeproj::Project.open('LibTess.xcodeproj')
targetIOS = project.targets.select { |target| target.name == 'tessIOS' }.first
targetOSX = project.targets.select { |target| target.name == 'tessOSX' }.first
def self.relative_file_paths(build_phase)
folder_path_length = __dir__.length + 1 # add '/' to the end
paths = build_phase.files_references.map{ |f| f.real_path.to_s[folder_path_length..-1] }
puts build_phase, paths
return paths
end
Pod::Spec.new do |s|
s.name = "AestesisTess"
s.version = "1.0.24"
s.summary = "libtess cocoa pod"
s.description = <<-DESC
libtess cocoa pod framework
DESC
s.homepage = "https://github.com/aestesis/flutter.alib.tess"
s.license = "MIT"
s.author = { "aestesis" => "[email protected]" }
s.source = { :git => "https://github.com/aestesis/flutter.alib.tess.git", :tag => "v" + s.version.to_s }
s.osx.deployment_target = "12.0"
s.ios.deployment_target = "12.0"
s.requires_arc = true
headers = ['glu/include/GL/glext.h', 'glu/src/libtess.exclude/priorityq-heap.c.h']
headersIOS = (self.relative_file_paths targetIOS.headers_build_phase)
headersOSX = (self.relative_file_paths targetOSX.headers_build_phase)
s.ios.source_files = (self.relative_file_paths targetIOS.source_build_phase) + headersIOS + headers
s.osx.source_files = (self.relative_file_paths targetOSX.source_build_phase) + headersOSX + headers
s.public_header_files = ['shared/export.h']
s.swift_version = '5.0'
end