Skip to content

Commit b0a7d8c

Browse files
authored
Merge pull request #28 from Schlabbi/master
Add subspec for math functions.
2 parents d7a0ccc + 6b125d2 commit b0a7d8c

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

README.markdown

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ To use SQLite in your project, add `pod 'sqlite3'` to your Podfile. However, as
3636
- [STAT4 Enhanced ANALYZE and query planner](https://sqlite.org/compile.html#enable_stat4): `pod 'sqlite3/stat4'`
3737
- [Unlock-Notify API](https://www.sqlite.org/unlock_notify.html): `pod 'sqlite3/unlock_notify'`
3838
- [DBSTAT](https://www.sqlite.org/dbstat.html): `pod 'sqlite3/dbstatvtab'`
39+
- [Math](https://www.sqlite.org/lang_mathfunc.html): `pod 'sqlite3/math'`
3940

4041
## License
4142

sqlite3.podspec

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'sqlite3'
3-
s.version = '3.46.1'
3+
s.version = '3.46.1+1'
44
s.license = { :type => 'Public Domain', :text => <<-LICENSE
55
All of the code and documentation in SQLite has been dedicated to the public domain by the authors.
66
All code authors, and representatives of the companies they work for, have signed affidavits dedicating their contributions to the public domain and originals of those signed affidavits are stored in a firesafe at the main offices of Hwaci.
@@ -162,4 +162,10 @@ CMD
162162
ss.dependency 'sqlite3/common'
163163
ss.source_files = "#{archive_name}/ext/misc/spellfix.c"
164164
end
165+
166+
# Math extension
167+
s.subspec 'math' do |ss|
168+
ss.dependency 'sqlite3/common'
169+
ss.pod_target_xcconfig = { 'OTHER_CFLAGS' => '$(inherited) -DSQLITE_ENABLE_MATH_FUNCTIONS=1' }
170+
end
165171
end

0 commit comments

Comments
 (0)