1Pod::Spec.new do |s| 2 s.name = 'TensorFlowLiteTaskText' 3 s.version = '${TFLS_BUILD_VERSION}' 4 s.authors = 'Google Inc.' 5 s.license = { :type => 'Apache' } 6 s.homepage = 'https://github.com/tensorflow/tflite-support' 7 s.source = { :http => '${TFLS_DOWNLOAD_URL}' } 8 s.summary = 'TensorFlow Lite Task Library - Text' 9 s.description = 'The Natural Language APIs of the TFLite Task Library' 10 11 s.ios.deployment_target = '9.0' 12 13 s.module_name = 'TensorFlowLiteTaskText' 14 s.static_framework = true 15 16 s.dependency 'GoogleToolboxForMac', '2.2.1' 17 18 objc_dir = 'tensorflow_lite_support/ios/task/text/' 19 s.public_header_files = [ 20 objc_dir + 'apis/*.h', 21 objc_dir + '{nlclassifier,qa}/Sources/*.h' 22 ] 23 24 cc_dir = 'tensorflow_lite_support/cc/task/text/' 25 s.source_files = [ 26 cc_dir + '{nlclassifier,qa}/*_c_api*.h', 27 objc_dir + 'apis/*.h', 28 objc_dir + '{nlclassifier,qa}/Sources/*.{h,m,mm}' 29 ] 30 s.module_map = objc_dir + 'apis/framework.modulemap' 31 s.pod_target_xcconfig = { 32 'HEADER_SEARCH_PATHS' => 33 '"${PODS_TARGET_SRCROOT}" ' + 34 '"${PODS_TARGET_SRCROOT}/' + cc_dir + 'nlclassifier" ' + 35 '"${PODS_TARGET_SRCROOT}/' + cc_dir + 'qa" ' + 36 '"${PODS_TARGET_SRCROOT}/' + objc_dir + 'apis" ' + 37 '"${PODS_TARGET_SRCROOT}/' + objc_dir + 'nlclassifier/Sources" ' + 38 '"${PODS_TARGET_SRCROOT}/' + objc_dir + 'qa/Sources"', 39 'VALID_ARCHS' => 'x86_64 armv7 arm64', 40 } 41 42 s.library = 'c++' 43 s.vendored_frameworks = 'Frameworks/TensorFlowLiteTaskTextC.framework' 44end 45