|
| 1 | +sdkBase = "ActiveCaptainCommunitySDK/ActiveCaptainCommunitySDK" |
| 2 | +cppBase = "#{sdkBase}/cpp/acdb" |
| 3 | +submoduleBase = "#{cppBase}/submodules" |
| 4 | + |
| 5 | +Pod::Spec.new do |spec| |
| 6 | + |
| 7 | + spec.name = "ActiveCaptainCommunitySDK" |
| 8 | + spec.version = "2.0.0" |
| 9 | + spec.summary = "Garmin ActiveCaptain Community SDK" |
| 10 | + spec.description = <<-DESC |
| 11 | + SDK for maintaining and retrieving data from Garmin ActiveCaptain Community SQLite database. |
| 12 | + DESC |
| 13 | + |
| 14 | + spec.homepage = "https://activecaptain.garmin.com/Developer" |
| 15 | + spec.license = "Apache License, Version 2.0" |
| 16 | + spec.author = "Garmin Ltd." |
| 17 | + |
| 18 | + spec.platform = :ios |
| 19 | + |
| 20 | + spec.source = { :git => "https://github.com/garmin/ActiveCaptainCommunitySDK-ios.git", :tag => "v2.0.0", :submodules => true } |
| 21 | + |
| 22 | + spec.ios.deployment_target = '12.0' |
| 23 | + spec.source_files = "#{sdkBase}/*.{h,m,mm}", "#{cppBase}/*.{c,cpp}", "#{cppBase}/{Adapters,DTO,Json,Navionics,Presentation,Presentation/Field,Presentation/Section,Queries,Thirdparty,Thirdparty/Navionics/Extensions}/*.{c,cpp}", "#{submoduleBase}/SQLiteCpp/sqlite3/sqlite3.c", "#{submoduleBase}/SQLiteCpp/src/*.cpp" |
| 24 | + spec.exclude_files = "#{cppBase}/Thirdparty/FileUtilWindows.cpp" |
| 25 | + spec.preserve_paths = "#{cppBase}/Include/**/*.{h,hpp}", "#{cppBase}/Navionics/**/*.{h,hpp}", "#{cppBase}/submodules/**/*.{h,hpp}", "#{cppBase}/Thirdparty/**/*.{h,hpp}" |
| 26 | + spec.public_header_files = "#{sdkBase}/*.h" |
| 27 | + spec.resource_bundles = { |
| 28 | + 'ActiveCaptainCommunitySDK' => ["#{sdkBase}/assets/acdb/img/*.png", "#{sdkBase}/assets/acdb/img/map/*.bmp"] |
| 29 | + } |
| 30 | + spec.compiler_flags = "-DSQLITE_ENABLE_FTS5 -DSQLITE_ENABLE_RTREE -DSQLITE_TEMP_STORE=3" |
| 31 | + spec.requires_arc = true |
| 32 | + |
| 33 | + spec.pod_target_xcconfig = { |
| 34 | + 'HEADER_SEARCH_PATHS' => '"$(inherited)" "$(PODS_TARGET_SRCROOT)/ActiveCaptainCommunitySDK/ActiveCaptainCommunitySDK/cpp/acdb/Include/Private" "$(PODS_TARGET_SRCROOT)/ActiveCaptainCommunitySDK/ActiveCaptainCommunitySDK/cpp/acdb/Include/Private/Acdb" "$(PODS_TARGET_SRCROOT)/ActiveCaptainCommunitySDK/ActiveCaptainCommunitySDK/cpp/acdb/Include/Public" "$(PODS_TARGET_SRCROOT)/ActiveCaptainCommunitySDK/ActiveCaptainCommunitySDK/cpp/acdb/Include/Public/Acdb" "$(PODS_TARGET_SRCROOT)/ActiveCaptainCommunitySDK/ActiveCaptainCommunitySDK/cpp/acdb/Navionics" "$(PODS_TARGET_SRCROOT)/ActiveCaptainCommunitySDK/ActiveCaptainCommunitySDK/cpp/acdb/Navionics/Stubs" "$(PODS_TARGET_SRCROOT)/ActiveCaptainCommunitySDK/ActiveCaptainCommunitySDK/cpp/acdb/submodules/mustache" "$(PODS_TARGET_SRCROOT)/ActiveCaptainCommunitySDK/ActiveCaptainCommunitySDK/cpp/acdb/submodules/rapidjson/include" "$(PODS_TARGET_SRCROOT)/ActiveCaptainCommunitySDK/ActiveCaptainCommunitySDK/cpp/acdb/submodules/SQLiteCpp/include" "$(PODS_TARGET_SRCROOT)/ActiveCaptainCommunitySDK/ActiveCaptainCommunitySDK/cpp/acdb/submodules/SQLiteCpp/sqlite3" "$(PODS_TARGET_SRCROOT)/ActiveCaptainCommunitySDK/ActiveCaptainCommunitySDK/cpp/acdb/Thirdparty/Include/Private" "$(PODS_TARGET_SRCROOT)/ActiveCaptainCommunitySDK/ActiveCaptainCommunitySDK/cpp/acdb/Thirdparty/Navionics/Extensions"', |
| 35 | + 'USER_HEADER_SEARCH_PATHS' => '"$(PODS_TARGET_SRCROOT)"', |
| 36 | + 'USE_HEADERMAP' => 'NO', |
| 37 | + 'ALWAYS_SEARCH_USER_PATHS' => 'NO' |
| 38 | + } |
| 39 | +end |
0 commit comments