summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/flecs/mrbgem.rake
blob: 8828535b986b39ac6b51d820dd093eec503d5445 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
stack_root = ENV['JAMSTACK_ROOT'] || File.expand_path('../../..', __dir__)
flecs_inc  = File.join(stack_root, 'vendor', 'flecs', 'distr')

MRuby::Gem::Specification.new('flecs') do |spec|
  spec.license = 'MIT'
  spec.authors = 'raylib-jamstack'
  spec.summary = 'Ruby (Flecs::) bindings for the flecs ECS'

  # The flecs amalgamation (vendor/flecs/distr/flecs.c) is compiled separately
  # into a static lib by build.zig / build_web.sh and linked at the final step;
  # here we only need its header on the include path.
  spec.cc.include_paths  << flecs_inc
  spec.cxx.include_paths << flecs_inc if spec.respond_to?(:cxx)
end