forked from veloce/capacitor-stockfish
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCapacitorScan.podspec
28 lines (26 loc) · 1.04 KB
/
CapacitorScan.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
require 'json'
package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
Pod::Spec.new do |s|
s.name = 'CapacitorScan'
s.version = package['version']
s.summary = package['description']
s.license = package['license']
s.homepage = package['repository']['url']
s.author = package['author']
s.platform = :ios
s.source = { :git => package['repository']['url'], :tag => s.version.to_s }
s.source_files = 'ios/Plugin/**/*.{swift,h,hpp,m,c,cc,mm,cpp}', 'scan/src/**/*.{h,hpp,cpp}', 'lib/*.h'
s.public_header_files = 'ios/Plugin/**/*.{h}'
s.exclude_files = 'scan/src/Makefile'
s.ios.deployment_target = '13.0'
s.dependency 'Capacitor'
s.swift_version = '5.1'
s.compiler_flags = '-fmodules -fcxx-modules'
s.xcconfig = {
'CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES' => 'YES',
'CLANG_CXX_LANGUAGE_STANDARD' => 'c++14',
'CLANG_CXX_LIBRARY' => 'libc++',
'OTHER_CPLUSPLUSFLAGS' => '-fexceptions -std=c++14 -DHAVE_PTHREAD=1 -O3',
'OTHER_LDFLAGS' => '-fexceptions -std=c++14 -DHAVE_PTHREAD=1 -O3'
}
end