ext/Rakefile in ruby-vpi-15.0.2 vs ext/Rakefile in ruby-vpi-16.0.0

- old
+ new

@@ -1,31 +1,14 @@ # Build file for the native C extension. # # = Environment variables # CFLAGS:: Arguments to the compiler. # LDFLAGS:: Arguments to the linker. +#-- +# Copyright 2006 Suraj N. Kurapati +# See the file named LICENSE for details. -=begin - Copyright 2006 Suraj N. Kurapati - - This file is part of Ruby-VPI. - - Ruby-VPI is free software; you can redistribute it and/or - modify it under the terms of the GNU General Public License - as published by the Free Software Foundation; either version 2 - of the License, or (at your option) any later version. - - Ruby-VPI is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Ruby-VPI; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -=end - require 'rake/clean' require 'rbconfig' $:.unshift File.join(File.dirname(__FILE__), '..', 'lib') require 'ruby-vpi/rake' @@ -50,16 +33,18 @@ sh %w{swig -ruby -o}, t.name, t.prerequisites[0] end file 'swig_vpi.i' => 'swig_vpi.h' -# avoid compilation problems due to va_list, which is used in the SWIG-generated wrapper for VPI vprintf functions +# avoid compilation problems due to va_list, which is used in the SWIG-generated +# wrapper for VPI vprintf functions file 'swig_vpi.h' => 'vpi_user.h' do |t| src, dst = t.prerequisites[0], t.name File.open(dst, 'w') do |f| f << File.read(src).gsub(/\bva_list\b/, 'int') end end -# NOTE: since SWIG is not a requirement for users, we should not clobber these generated files +# NOTE: since SWIG is not a requirement for users, we should not clobber these +# generated files #CLOBBER.include 'swig_wrap.cin', 'swig_vpi.h'