Sha256: 715efebc26dd96eb806ec6ea0161d5b18ed8bbd8d5622b9a662058b4f21f144c

Contents?: true

Size: 825 Bytes

Versions: 1

Compression:

Stored size: 825 Bytes

Contents

require 'mkmf-rice'

extension_name = 'python3_parser'
dir_config(extension_name)

have_library('stdc++')

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

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 << File.expand_path(path)
  end
end

create_makefile(extension_name)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
python3-parser-1.0.0 ext/python3-parser/extconf.rb