Don't include compiled extension in gem; configure extconf.rb to compile and install into the correct location. Fixes #4.

This commit is contained in:
Patrick Mahoney 2013-02-19 13:56:53 -06:00
parent 5aba20cdf7
commit a93775fe24
3 changed files with 2 additions and 4 deletions

View File

@ -33,8 +33,6 @@ pkg = Gem::PackageTask.new(gemspec) do |p|
p.gem_spec = gemspec
end
task :gem => :compile
Rake::VersionTask.new do |t|
t.with_git_tag = true
end

View File

@ -11,4 +11,4 @@ have_header('pthread.h')
have_type('pthread_mutex_t', 'pthread.h')
have_type('pthread_mutexattr_t', 'pthread.h')
create_makefile('helper')
create_makefile('process_shared/posix/helper')

View File

@ -9,7 +9,7 @@ Gem::Specification.new do |s|
s.author = 'Patrick Mahoney'
s.email = 'pat@polycrystal.org'
s.homepage = 'https://github.com/pmahoney/process_shared'
s.files = Dir['lib/**/*.rb', 'lib/**/libpsem*', 'ext/**/*.{c,h,rb}', 'spec/**/*.rb']
s.files = Dir['lib/**/*.rb', 'ext/**/*.{c,h,rb}', 'spec/**/*.rb']
s.extensions = Dir['ext/**/extconf.rb']
s.add_dependency('ffi', '~> 1.0')