Top Level Namespace

Defined Under Namespace

Modules: GRPC Classes: Struct, TmpChannelArgs

Constant Summary collapse

LIBDIR =
RbConfig::CONFIG['libdir']
INCLUDEDIR =
RbConfig::CONFIG['includedir']
HEADER_DIRS =
[
  # Search /opt/local (Mac source install)
  '/opt/local/include',

  # Search /usr/local (Source install)
  '/usr/local/include',

  # Check the ruby install locations
  INCLUDEDIR
]
LIB_DIRS =
[
  # Search /opt/local (Mac source install)
  '/opt/local/lib',

  # Search /usr/local (Source install)
  '/usr/local/lib',

  # Check the ruby install locations
  LIBDIR
]

Instance Method Summary collapse

Instance Method Details

#check_grpc_rootObject



57
58
59
60
61
62
63
64
# File 'ext/grpc/extconf.rb', line 57

def check_grpc_root
  grpc_root = ENV['GRPC_ROOT']
  if grpc_root.nil?
    r = File.expand_path(File.join(File.dirname(__FILE__), '../../../..'))
    grpc_root = r if File.exist?(File.join(r, 'include/grpc/grpc.h'))
  end
  grpc_root
end