Sha256: be3311c6ab116f9fb982f5e0de0d8573c8925ed536225d617d850a89e7ae99f4

Contents?: true

Size: 592 Bytes

Versions: 3

Compression:

Stored size: 592 Bytes

Contents

require 'mkmf'

libxlsxwriter_dir = File.expand_path('../libxlsxwriter', __FILE__)
make_pid = spawn({'CFLAGS' => '-fPIC -O2'}, $make, chdir: libxlsxwriter_dir)
Process.wait(make_pid)
raise 'Make failed for xlsxwriter' unless $? == 0

# enable_config('static', true)
# find_library('xlsxwriter', 'workbook_new', File.expand_path('../libxlsxwriter/lib', __FILE__))
$CFLAGS="-I'#{libxlsxwriter_dir}/include' -g -Wall -O2"
# $LDFLAGS="-L./libxlsxwriter/lib/ -Wl,-Bstatic -lxlsxwriter -Wl,-Bdynamic"
$LDFLAGS="-lz #{libxlsxwriter_dir}/lib/libxlsxwriter.a"

create_makefile 'xlsxwriter/xlsxwriter'

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
xlsxwriter-0.2.1.pre.2 ext/xlsxwriter/extconf.rb
xlsxwriter-0.2.1.pre ext/xlsxwriter/extconf.rb
xlsxwriter-0.2.0 ext/xlsxwriter/extconf.rb