mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
7469b79aa8
windows multimedia timer api requires linking with winmm.lib. added conditional linker library using spec.for_windows? to match mruby build system conventions. Co-authored-by: Claude <noreply@anthropic.com>
16 lines
493 B
Ruby
16 lines
493 B
Ruby
MRuby::Gem::Specification.new('mruby-task') do |spec|
|
|
spec.license = 'MIT'
|
|
spec.authors = 'mruby developers'
|
|
spec.summary = 'Cooperative multitasking with preemptive scheduling'
|
|
|
|
# Enable task scheduler globally (required for vm.c integration)
|
|
spec.build.defines << 'MRB_USE_TASK_SCHEDULER'
|
|
|
|
# Windows: link with multimedia timer library
|
|
if spec.for_windows?
|
|
spec.linker.libraries << 'winmm'
|
|
end
|
|
|
|
spec.add_dependency 'mruby-fiber' # Uses same context infrastructure
|
|
end
|