Sha256: 5eb5c1c2be2be1a308cdf15cef4549df8832bed1e300533a013c02d5167ebc3b
Contents?: true
Size: 864 Bytes
Versions: 4
Compression:
Stored size: 864 Bytes
Contents
require 'mkmf-rice' extension_name = 'express_parser' dir_config(extension_name) have_library('stdc++') $CFLAGS << ' -std=c++14 -DANTLR4CPP_STATIC' 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#{__dir__}/#{include_path}" $VPATH << "#{__dir__}/#{include_path}" Dir.glob("#{__dir__}/#{include_path}/*.cpp").each do |path| $srcs << path end end create_makefile(extension_name)
Version data entries
4 entries across 4 versions & 1 rubygems