Skip to content

Commit e4b5b18

Browse files
author
温泉
committed
合并 subspec
1 parent 2b3e73d commit e4b5b18

File tree

1 file changed

+6
-15
lines changed

1 file changed

+6
-15
lines changed

SensorsAnalyticsEncrypt.podspec

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,11 @@ Pod::Spec.new do |s|
77
s.license = { :type => "Boost Software License, Version 1.0" }
88
s.author = { "Quan Wen" => "wenquan@sensorsdata.cn" }
99
s.platform = :ios, "8.0"
10-
11-
# Cryptopp 加密库的桥接文件
12-
s.subspec 'ECC' do |c|
13-
c.source_files = "SensorsAnalyticsEncrypt/ECC/**/*.{h,mm}"
14-
c.public_header_files = "SensorsAnalyticsEncrypt/ECC/SACryptoppECC.h"
15-
end
16-
17-
# 预置的 Cryptopp 加密库
18-
s.subspec 'SACryptopp' do |f|
19-
f.source_files = "SensorsAnalyticsEncrypt/SACryptopp/**/*.{h,cpp}"
20-
# -DCRYPTOPP_DISABLE_ASM=1 为了解决在模拟器上编译报错的问题
21-
# issue:https://github.com/weidai11/cryptopp/issues/933
22-
# CMake:https://www.cryptopp.com/wiki/CMake
23-
f.pod_target_xcconfig = { 'GCC_PREPROCESSOR_DEFINITIONS' => 'SENSORS_ANALYTICS_ENABLE_CUSTOM_CRYPTOPP=1', 'OTHER_CPLUSPLUSFLAGS[sdk=iphonesimulator*]' => '$(OTHER_CFLAGS) -DCRYPTOPP_DISABLE_ASM=1', 'GCC_WARN_INHIBIT_ALL_WARNINGS' => 'YES'}
24-
end
10+
s.source_files = "SensorsAnalyticsEncrypt/**/*.{h,mm,cpp}"
11+
s.public_header_files = "SensorsAnalyticsEncrypt/ECC/SACryptoppECC.h"
12+
# -DCRYPTOPP_DISABLE_ASM=1 为了解决在模拟器上编译报错的问题
13+
# issue:https://github.com/weidai11/cryptopp/issues/933
14+
# CMake:https://www.cryptopp.com/wiki/CMake
15+
s.pod_target_xcconfig = { 'GCC_PREPROCESSOR_DEFINITIONS' => 'SENSORS_ANALYTICS_ENABLE_CUSTOM_CRYPTOPP=1', 'OTHER_CPLUSPLUSFLAGS[sdk=iphonesimulator*]' => '$(OTHER_CFLAGS) -DCRYPTOPP_DISABLE_ASM=1', 'GCC_WARN_INHIBIT_ALL_WARNINGS' => 'YES'}
2516

2617
end

0 commit comments

Comments
 (0)