summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/rmlui/mrbgem.rake
blob: 290d2b528d080d727d7a3d11614e467a6e044501 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
MRuby::Gem::Specification.new('rmlui') do |spec|
  spec.license = 'MIT'
  spec.authors = 'raylib-jamstack'
  spec.summary = 'Ruby (Rml::) bindings for RmlUi, rendered via raylib/rlgl'

  stack_root = ENV['JAMSTACK_ROOT'] || File.expand_path('../../..', __dir__)

  rmlui_inc  = File.join(stack_root, 'vendor', 'rmlui', 'Include')
  raylib_inc = File.join(stack_root, 'vendor', 'raylib', 'src')

  spec.cxx.include_paths << rmlui_inc
  spec.cxx.include_paths << raylib_inc
  spec.cxx.flags << '-std=c++17'

  # RmlUi static lib + its deps (freetype, libstdc++) are linked by build.zig.
end