@@ -4,14 +4,14 @@ SDL = {
44 OptFind = function (name , required )
55 local check = function (option , settings )
66 option .value = false
7- option .use_sdlconfig = false
7+ option .use_pkgconfig = false
88 option .use_winlib = 0
99 option .use_osxframework = false
1010 option .lib_path = nil
1111
12- if ExecuteSilent (" sdl -config" ) > 0 and ExecuteSilent ( " sdl-config --cflags " ) == 0 then
12+ if ExecuteSilent (" pkg -config sdl" ) == 0 then
1313 option .value = true
14- option .use_sdlconfig = true
14+ option .use_pkgconfig = true
1515 end
1616
1717 if platform == " win32" then
@@ -25,14 +25,14 @@ SDL = {
2525 if platform == " macosx" then
2626 option .value = true
2727 option .use_osxframework = true
28- option .use_sdlconfig = false
28+ option .use_pkgconfig = false
2929 end
3030 end
3131
3232 local apply = function (option , settings )
33- if option .use_sdlconfig == true then
34- settings .cc .flags :Add (" `sdl -config --cflags`" )
35- settings .link .flags :Add (" `sdl -config --libs`" )
33+ if option .use_pkgconfig == true then
34+ settings .cc .flags :Add (" `pkg -config sdl --cflags`" )
35+ settings .link .flags :Add (" `pkg -config sdl --libs`" )
3636 end
3737
3838 if option .use_osxframework == true then
@@ -54,14 +54,14 @@ SDL = {
5454
5555 local save = function (option , output )
5656 output :option (option , " value" )
57- output :option (option , " use_sdlconfig " )
57+ output :option (option , " use_pkgconfig " )
5858 output :option (option , " use_winlib" )
5959 output :option (option , " use_osxframework" )
6060 end
6161
6262 local display = function (option )
6363 if option .value == true then
64- if option .use_sdlconfig == true then return " using sdl -config" end
64+ if option .use_pkgconfig == true then return " using pkg -config" end
6565 if option .use_winlib == 32 then return " using supplied win32 libraries" end
6666 if option .use_winlib == 64 then return " using supplied win64 libraries" end
6767 if option .use_osxframework == true then return " using osx framework" end
0 commit comments