-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathslark.podspec
70 lines (52 loc) · 2.72 KB
/
slark.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
Pod::Spec.new do |s|
s.name = "slark"
s.version = "0.0.1"
s.summary = "iOS and Android Video Player"
s.ios.deployment_target = '16.3'
s.description = <<-DESC
slark is a cross platform player that supports iOS and Android
DESC
s.homepage = "https://github.com/Nevermore1994/slark"
s.license = { :type => "MIT", :file => "LICENSE" }
s.author = { "Nevermore-" => "[email protected]" }
s.source = { :git => "https://github.com/Nevermore1994/slark.git", :tag => "#{s.version}" }
s.libraries = 'c++'
s.source_files = 'src/base/**/*.hpp',
'src/base/**/*.h',
'src/base/**/*.cpp',
'src/base/**/*.mm',
'src/core/**/*.hpp',
'src/core/**/*.h',
'src/core/**/*.cpp',
'src/core/**/*.mm',
'src/third_party/**/*.h',
'src/interface/iOS/*.h',
'src/interface/iOS/*.cpp',
'src/interface/iOS/*.mm'
s.public_header_files = 'src/**/*.hpp', 'src/**/*.h'
s.requires_arc = true
s.pod_target_xcconfig = { 'ONLY_ACTIVE_ARCH' => 'YES' }
s.pod_target_xcconfig = {
'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64',
'HEADER_SEARCH_PATHS' => '"$(inherited)" "$(PODS_TARGET_SRCROOT)/include"',
'USER_HEADER_SEARCH_PATHS' => '"$(PODS_TARGET_SRCROOT)"'\
'"$(PODS_TARGET_SRCROOT)/base"' \
'"$(PODS_TARGET_SRCROOT)/base/platform/iOS"' \
'"$(PODS_TARGET_SRCROOT)/core"' \
'"$(PODS_TARGET_SRCROOT)/core/audio"' \
'"$(PODS_TARGET_SRCROOT)/core/codec"' \
'"$(PODS_TARGET_SRCROOT)/core/muxer"' \
'"$(PODS_TARGET_SRCROOT)/core/platform/iOS"' \
'"$(PODS_TARGET_SRCROOT)/interface/platform/iOS"'
}
s.user_target_xcconfig = {
'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64'
}
s.xcconfig = {
'CLANG_C_LANGUAGE_STANDARD' => 'c17',
'CLANG_CXX_LANGUAGE_STANDARD' => 'c++23',
"GCC_PREPROCESSOR_DEFINITIONS" => 'SLARK_IOS=1 GLES_SILENCE_DEPRECATION=1',
'OTHER_CPLUSPLUSFLAGS' => '-Wall -Wextra -Wpedantic -Wcast-align -Wcast-qual -Wconversion -Wdisabled-optimization -Wendif-labels -Wfloat-equal -Winit-self -Winline -Wmissing-include-dirs -Wnon-virtual-dtor -Wold-style-cast -Woverloaded-virtual -Wpacked -Wpointer-arith -Wredundant-decls -Wshadow -Wsign-promo -Wvariadic-macros -Wwrite-strings -Wno-variadic-macros -Wno-unknown-pragmas'
}
s.frameworks = 'Foundation', 'AVFoundation', 'VideoToolBox', 'AudioToolBox', 'CoreMedia'
end