Top Level Namespace
Defined Under Namespace
Modules: SDL2, Sdl2Vulkan
Instance Method Summary
collapse
Instance Method Details
#add_cflags(str) ⇒ Object
helpers “borrowed” from ruby-sdl2
4
5
6
|
# File 'ext/sdl2_vulkan/extconf.rb', line 4
def add_cflags(str)
$CFLAGS += " " + str
end
|
#add_libs(str) ⇒ Object
8
9
10
|
# File 'ext/sdl2_vulkan/extconf.rb', line 8
def add_libs(str)
$LOCAL_LIBS += " " + str
end
|
#run_config_program(*args) ⇒ Object
12
13
14
15
16
|
# File 'ext/sdl2_vulkan/extconf.rb', line 12
def run_config_program(*args)
IO.popen([*args], "r") do |io|
io.gets.chomp
end
end
|
#sdl2config_on_mingw ⇒ Object
24
25
26
27
28
|
# File 'ext/sdl2_vulkan/extconf.rb', line 24
def sdl2config_on_mingw
have_library("mingw32")
have_library("SDL2")
add_libs("-mwindows")
end
|
#sdl2config_with_command ⇒ Object