summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/jolt/mrbgem.rake
blob: d21d006138dee1b9a5b1ecfbe5978c551db00088 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
stack_root = ENV['JAMSTACK_ROOT'] || File.expand_path('../../..', __dir__)
joltc_inc  = File.join(stack_root, 'vendor', 'joltc', 'include')

MRuby::Gem::Specification.new('jolt') do |spec|
  spec.license = 'MIT'
  spec.authors = 'raylib-jamstack'
  spec.summary = 'Ruby (Jolt::) bindings for Jolt Physics via the joltc C API'

  # libjoltc.a + libJolt.a are built separately (CMake) and linked at the final
  # step by build.zig / build_web.sh; here we only need joltc's header.
  spec.cc.include_paths  << joltc_inc
  spec.cxx.include_paths << joltc_inc if spec.respond_to?(:cxx)
end