Sha256: cd9b4e1cee15b00bfb343c07b21196ca2d7973218f53c2975694056946dcfe67
Contents?: true
Size: 1011 Bytes
Versions: 2
Compression:
Stored size: 1011 Bytes
Contents
require 'mkmf' if(PLATFORM=~/mswin32/) if(File.expand_path(File.dirname(__FILE__))=~/swig/) package_dir=File.expand_path(File.dirname(__FILE__)+"/..") prefix=package_dir+"/ext/taglib/taglib-mswin32" else prefix="./taglib-mswin32" end puts "Building for MsWin32" $CFLAGS+= " -I\"#{prefix}\\include\" -I\"#{prefix}\\include\\taglib\"" $LDFLAGS += " -link -libpath:\"#{prefix}\\lib\" " elsif(PLATFORM=~/mingw/) puts "Building for MinGW" $libs = append_library($libs, "stdc++") $libs = append_library($libs, "supc++") $CFLAGS= " -I/mingw/include/taglib" else puts "Building for other architecture" taglib_config = find_executable("taglib-config") if taglib_config prefix = `#{taglib_config} --prefix`.strip $CFLAGS += " -I#{prefix}/include" $LDFLAGS += " -L#{prefix}/lib" else prefix = "/usr" end $libs = append_library($libs, "supc++") $CFLAGS += " -I#{prefix}/include/taglib" end if have_library("tag") create_makefile("TagLib") end
Version data entries
2 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rtaglib-0.3.0 | swig/rake_ext_conf.rb |
rtaglib-0.3.0 | ext/taglib/rake_ext_conf.rb |