diff options
author | Wayne Meissner <wmeissner@gmail.com> | 2013-03-11 07:33:44 +1000 |
---|---|---|
committer | Wayne Meissner <wmeissner@gmail.com> | 2013-03-11 07:33:44 +1000 |
commit | a3e6ff7bf518e4584ba839e5404c57cdc930d14b (patch) | |
tree | 2fc6c7f730dbdc7bc3151492647faabda6f0fcc3 | |
parent | 71a78e8d7afad0c632ec436d0ae9f6f56fd5fba1 (diff) | |
download | ffi-a3e6ff7bf518e4584ba839e5404c57cdc930d14b.tar.gz |
Strip win32 binaries once they are built
-rw-r--r-- | Rakefile | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -122,8 +122,7 @@ desc "Clean all built files" task :distclean => :clobber do FileUtils.rm_rf('build') FileUtils.rm_rf(Dir["lib/**/ffi_c.#{RbConfig::CONFIG['DLEXT']}"]) - FileUtils.rm_rf('lib/1.8') - FileUtils.rm_rf('lib/1.9') + FileUtils.rm_rf(Dir["lib/**/ffi_c.so"]) FileUtils.rm_rf('lib/ffi/types.conf') FileUtils.rm_rf('conftest.dSYM') FileUtils.rm_rf('pkg') @@ -203,6 +202,14 @@ if USE_RAKE_COMPILER ext.cross_compile = true # enable cross compilation (requires cross compile toolchain) ext.cross_platform = 'i386-mingw32' # forces the Windows platform instead of the default one end + + task 'copy:ffi_c:i386-mingw32:1.9.3' do |t| + sh "i686-w64-mingw32-strip -S lib/1.9/ffi_c.so" + end + + task 'copy:ffi_c:i386-mingw32:2.0.0' do |t| + sh "i686-w64-mingw32-strip -S lib/2.0/ffi_c.so" + end end begin |