Sha256: 6e4c5fc62723d42352a779cde70d9cdd72f021605f313ec321962751a0991a6e

Contents?: true

Size: 913 Bytes

Versions: 1

Compression:

Stored size: 913 Bytes

Contents

require 'mkmf-rice'

extension_name = 'lua_parser'
dir_config(extension_name)

have_library('stdc++')

$CFLAGS << ' -std=c++14'

if enable_config('static')
  $defs.push '-DANTLR4CPP_STATIC' unless $defs.include?('-DANTLR4CPP_STATIC')
end

include_paths = [
  '.',
  'antlrgen',
  'antlr4-upstream/runtime/Cpp/runtime/src',
  'antlr4-upstream/runtime/Cpp/runtime/src/atn',
  'antlr4-upstream/runtime/Cpp/runtime/src/dfa',
  'antlr4-upstream/runtime/Cpp/runtime/src/misc',
  'antlr4-upstream/runtime/Cpp/runtime/src/support',
  'antlr4-upstream/runtime/Cpp/runtime/src/tree',
  'antlr4-upstream/runtime/Cpp/runtime/src/tree/pattern',
  'antlr4-upstream/runtime/Cpp/runtime/src/tree/xpath'
]

$srcs = []

include_paths.each do |include_path|
  $INCFLAGS << " -I#{include_path}"
  $VPATH << include_path

  Dir.glob("#{include_path}/*.cpp").each do |path|
    $srcs << path
  end
end

create_makefile(extension_name)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
antlr4-native-2.2.1 spec/lua-parser-rb/ext/lua_parser/extconf.rb