Sha256: cb70aab1494a7248d977fb6b516cf7492c72b64fa2144c9bbde9e6f651e9904e
Contents?: true
Size: 728 Bytes
Versions: 1
Compression:
Stored size: 728 Bytes
Contents
require 'mkmf' $CFLAGS += ' -Wall -Wextra ' $CXXFLAGS += ' -std=c++11 ' RbConfig::MAKEFILE_CONFIG['CC'] = ENV['CC'] if ENV['CC'] HEADER_DIRS = [ '/opt/local/include', '/usr/local/include', '/usr/include', ].select { |d| Dir.exists?(d) } LIB_DIRS = [ '/opt/local/lib', '/usr/local/lib', '/usr/lib', ].select { |d| Dir.exists?(d) } $srcs = Dir.glob(File.join(File.expand_path('..', __FILE__), '*.c')) dir_config('fswatch', HEADER_DIRS, LIB_DIRS) unless find_header('libfswatch/c/libfswatch.h') abort "libfswatch is missing. please install libfswatch" end unless find_library('fswatch', 'fsw_init_library') abort "libfswatch is missing. please install libfswatch" end create_makefile('fswatch/fswatch')
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fswatch-rb-0.1.3 | ext/fswatch/extconf.rb |