diff options
| author | Ted Ross <tross@apache.org> | 2009-01-20 21:26:28 +0000 |
|---|---|---|
| committer | Ted Ross <tross@apache.org> | 2009-01-20 21:26:28 +0000 |
| commit | b5c885725ab312bc927e5c95a5820c60c1b7e2b4 (patch) | |
| tree | f8e8b5fec0cb4aabd902d87911aa7f739cd6e897 /qpid/ruby/Rakefile | |
| parent | 5327e63656c959149c864da2d74a4c973e9ff523 (diff) | |
| download | qpid-python-b5c885725ab312bc927e5c95a5820c60c1b7e2b4.tar.gz | |
QPID-1602 SASL Authentication, Authorization, and Security Layer for Ruby Client.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@736111 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/ruby/Rakefile')
| -rw-r--r-- | qpid/ruby/Rakefile | 37 |
1 files changed, 33 insertions, 4 deletions
diff --git a/qpid/ruby/Rakefile b/qpid/ruby/Rakefile index 64044ca351..7ac6c09eeb 100644 --- a/qpid/ruby/Rakefile +++ b/qpid/ruby/Rakefile @@ -27,20 +27,48 @@ PKG_NAME='ruby-qpid' PKG_VERSION='0.10.2' GEM_NAME='qpid' +EXT_CONF="ext/sasl/extconf.rb" +MAKEFILE="ext/sasl/Makefile" +SASL_MODULE="ext/sasl/sasl.so" +SASL_SRC=SASL_MODULE.gsub(/.so$/, ".c") + # # Additional files for clean/clobber # -CLEAN.include [ "**/*~", "lib/*/spec_cache" ] +CLEAN.include [ "**/*~", "lib/*/spec_cache", SASL_MODULE, "ext/**/*.o" ] + +CLOBBER.include [ "config.save", "ext/**/mkmf.log", + MAKEFILE ] + +file MAKEFILE => EXT_CONF do |t| + Dir::chdir(File::dirname(EXT_CONF)) do + unless sh "ruby #{File::basename(EXT_CONF)}" + $stderr.puts "Failed to run extconf" + break + end + end +end + +file SASL_MODULE => [ MAKEFILE, SASL_SRC ] do |t| + Dir::chdir(File::dirname(EXT_CONF)) do + unless sh "make" + $stderr.puts "make failed" + break + end + end +end +desc "Build the native library" +task :build => SASL_MODULE Rake::TestTask.new(:test) do |t| t.test_files = FileList['tests/*.rb'].exclude("tests/util.rb") - t.libs = [ 'lib' ] + t.libs = [ 'lib', 'ext/sasl' ] end Rake::TestTask.new(:"test_0-8") do |t| t.test_files = FileList["tests_0-8/*.rb"] - t.libs = [ 'lib' ] + t.libs = [ 'lib', 'ext/sasl' ] end desc "Create cached versions of the AMQP specs" @@ -63,7 +91,8 @@ end PKG_FILES = FileList[ "DISCLAIMER", "LICENSE.txt", "NOTICE.txt", "Rakefile", "RELEASE_NOTES", - "lib/**/*.rb", "lib/*/spec_cache/*.rb*", "tests/**/*", "examples/**" + "lib/**/*.rb", "lib/*/spec_cache/*.rb*", "tests/**/*", "examples/**", "ext/**/*.[ch]", + "ext/**/MANIFEST", "ext/**/extconf.rb" ] DIST_FILES = FileList[ |
