PageRenderTime 378ms CodeModel.GetById 196ms app.highlight 3ms RepoModel.GetById 178ms app.codeStats 0ms

/GPUSensor/extconf.rb

https://bitbucket.org/y_nakano/gpusensor
Ruby | 21 lines | 16 code | 5 blank | 0 comment | 1 complexity | 4fc90353c183c0802538bb62b54a17d4 MD5 | raw file
 1require "mkmf"
 2$libs = "-lstdc++ -lXext -lX11 -lXNVCtrl"
 3$LDFLAGS = "-L/usr/lib"
 4
 5
 6have_headers = true
 7
 8%w{
 9X11/Xlib.h
10X11/Xutil.h
11NVCtrl/NVCtrl.h
12NVCtrl/NVCtrlLib.h
13}.each{|h|
14  have_headers = have_header(h)
15  break unless have_headers
16}
17
18if have_headers
19  create_makefile("GPUSensor")
20end
21