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 | 861692abf515cf136e86e70446d005e7849a0f87 (patch) | |
| tree | 10025e3499876dbdae8697f2dda4c68b4ec55933 /ruby/Rakefile | |
| parent | 15488eba1c867bac8b6db1f7ad870b277c4fa748 (diff) | |
| download | qpid-python-861692abf515cf136e86e70446d005e7849a0f87.tar.gz | |
QPID-1602 SASL Authentication, Authorization, and Security Layer for Ruby Client.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@736111 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'ruby/Rakefile')
| -rw-r--r-- | ruby/Rakefile | 37 |
1 files changed, 33 insertions, 4 deletions
diff --git a/ruby/Rakefile b/ruby/Rakefile index 64044ca351..7ac6c09eeb 100644 --- a/ruby/Rakefile +++ b/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[ |
