| 1 |
MRuby::Gem::Specification.new('mruby-bigint') do |spec| |
| 2 |
spec.author = 'YOUR-NAME-HERE' |
| 3 |
spec.license = 'YOUR-LICENSE-HERE' |
| 4 |
spec.summary = 'Yet another multi-precision Integer extension' |
| 5 |
spec.homepage = 'https://gem.example/for/mruby-YOUR-bigint' |
| 6 |
spec.build.defines << 'MRB_USE_BIGINT' |
| 7 |
#spec.build.linker.libraries << 'gmp' # when uses libgmp |
| 8 |
|
| 9 |
spec.build.libmruby_core_objs << Dir.glob(File.join(__dir__, 'core/**/*.c')).map { |fn| |
| 10 |
objfile(fn.relative_path_from(__dir__).pathmap("#{spec.build_dir}/%X")) |
| 11 |
} |
| 12 |
end |