Skip to content

Commit

Permalink
Merge pull request #28 from Schlabbi/master
Browse files Browse the repository at this point in the history
Add subspec for math functions.
  • Loading branch information
simolus3 authored Aug 15, 2024
2 parents d7a0ccc + 6b125d2 commit b0a7d8c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ To use SQLite in your project, add `pod 'sqlite3'` to your Podfile. However, as
- [STAT4 Enhanced ANALYZE and query planner](https://sqlite.org/compile.html#enable_stat4): `pod 'sqlite3/stat4'`
- [Unlock-Notify API](https://www.sqlite.org/unlock_notify.html): `pod 'sqlite3/unlock_notify'`
- [DBSTAT](https://www.sqlite.org/dbstat.html): `pod 'sqlite3/dbstatvtab'`
- [Math](https://www.sqlite.org/lang_mathfunc.html): `pod 'sqlite3/math'`

## License

Expand Down
8 changes: 7 additions & 1 deletion sqlite3.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'sqlite3'
s.version = '3.46.1'
s.version = '3.46.1+1'
s.license = { :type => 'Public Domain', :text => <<-LICENSE
All of the code and documentation in SQLite has been dedicated to the public domain by the authors.
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.
Expand Down Expand Up @@ -162,4 +162,10 @@ CMD
ss.dependency 'sqlite3/common'
ss.source_files = "#{archive_name}/ext/misc/spellfix.c"
end

# Math extension
s.subspec 'math' do |ss|
ss.dependency 'sqlite3/common'
ss.pod_target_xcconfig = { 'OTHER_CFLAGS' => '$(inherited) -DSQLITE_ENABLE_MATH_FUNCTIONS=1' }
end
end

0 comments on commit b0a7d8c

Please sign in to comment.