Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 38 lines (30 sloc) 1.191 kB
1390e5f @luislavena Cleanup extension building process and dependencies.
luislavena authored
1 # use rake-compiler for building the extension
2 require 'rake/extensiontask'
3
bbc0fff @luislavena Added post install message for Windows binaries.
luislavena authored
4 # NOTE: version used by cross compilation of Windows native extension
5 # It do not affect compilation under other operating systems
6 # The version indicated is the minimum DLL suggested for correct functionality
a6b9f9b @luislavena Update SQLite port to 3.7.13
luislavena authored
7 BINARY_VERSION = "3.7.13"
8 URL_VERSION = "3071300"
bbc0fff @luislavena Added post install message for Windows binaries.
luislavena authored
9
f8dd52d @luislavena Updated extension tasks to match newer structure.
luislavena authored
10 # build sqlite3_native C extension
11 Rake::ExtensionTask.new('sqlite3_native', HOE.spec) do |ext|
12 # where to locate the extension
13 ext.ext_dir = 'ext/sqlite3'
14
bd2d259 @luislavena Updated dependency on rake-compiler to 0.7.0
luislavena authored
15 # where native extension will be copied (matches makefile)
16 ext.lib_dir = "lib/sqlite3"
17
ca10111 @luislavena Always clean after you.
luislavena authored
18 # clean binary folders always
19 CLEAN.include("#{ext.lib_dir}/?.?")
20
f344924 @luislavena Build sqlite3_api C extension for cross compilation.
luislavena authored
21 # automatically add build options to avoid need of manual input
22 if RUBY_PLATFORM =~ /mswin|mingw/ then
f8dd52d @luislavena Updated extension tasks to match newer structure.
luislavena authored
23 # define target for extension (supporting fat binaries)
24 RUBY_VERSION =~ /(\d+\.\d+)/
25 ext.lib_dir = "lib/sqlite3/#{$1}"
30fdb0e @luislavena Renamed extconfig static option to avoid ruby conflicts
luislavena authored
26 ext.config_options << "--enable-local"
17608ff @luislavena Trigger cross-compilation anything except Windows.
luislavena authored
27 else
28 ext.cross_compile = true
35da3e5 @luislavena Strict versioning for mswin32 binary gems.
luislavena authored
29 ext.cross_platform = ['i386-mswin32-60', 'i386-mingw32']
30fdb0e @luislavena Renamed extconfig static option to avoid ruby conflicts
luislavena authored
30 ext.cross_config_options << "--enable-local"
f344924 @luislavena Build sqlite3_api C extension for cross compilation.
luislavena authored
31 end
32 end
1390e5f @luislavena Cleanup extension building process and dependencies.
luislavena authored
33
e7c3813 @luislavena Adapt Rakefiles to Hoe.
luislavena authored
34 # ensure things are compiled prior testing
35 task :test => [:compile]
f8dd52d @luislavena Updated extension tasks to match newer structure.
luislavena authored
36
37 # vim: syntax=ruby
Something went wrong with that request. Please try again.