|
@@ -85,7 +85,7 @@
|
|
|
bcc_app = bcc_app .. "_ppc"
|
|
|
end
|
|
|
|
|
|
- if bmk.Platform() == "win32" then
|
|
|
+ if bmk.OSPlatform() == "win32" then
|
|
|
bcc_app = bcc_app .. ".exe"
|
|
|
end
|
|
|
|
|
@@ -180,9 +180,14 @@
|
|
|
|
|
|
elseif bmk.Platform() == "win32" then
|
|
|
local prefix = bmk.MinGWExePrefix()
|
|
|
- cmd = bmk.Option("path_to_gcc", bmk.MinGWBinPath() .. "/" .. prefix .. "gcc.exe")
|
|
|
+ if bmk.OSPlatform() == "win32" then
|
|
|
+ ext = ".exe"
|
|
|
+ else
|
|
|
+ ext = ""
|
|
|
+ end
|
|
|
+ cmd = bmk.Option("path_to_gcc", bmk.MinGWBinPath() .. "/" .. prefix .. "gcc" .. ext)
|
|
|
if ext == "cpp" or ext == "cxx" or ext == "mm" or ext == "cc" then
|
|
|
- cmd = bmk.Option("path_to_gpp", bmk.MinGWBinPath() .. "/" .. prefix .. "g++.exe")
|
|
|
+ cmd = bmk.Option("path_to_gpp", bmk.MinGWBinPath() .. "/" .. prefix .. "g++" .. ext)
|
|
|
end
|
|
|
|
|
|
elseif bmk.Platform() == "linux" or bmk.Platform() == "android" or bmk.Platform() == "raspberrypi" or bmk.Platform() == "haiku" then
|
|
@@ -559,8 +564,13 @@
|
|
|
@end
|
|
|
|
|
|
@define make_win32_resource
|
|
|
+ if bmk.OSPlatform() == "win32" then
|
|
|
+ ext = ".exe"
|
|
|
+ else
|
|
|
+ ext = ""
|
|
|
+ end
|
|
|
|
|
|
- local windres = bmk.MinGWExePrefix() .. "windres.exe"
|
|
|
+ local windres = bmk.MinGWExePrefix() .. "windres" .. ext
|
|
|
local windresPath = bmk.MinGWBinPath() .. "/" .. windres
|
|
|
|
|
|
local outfile = %outfile%
|
|
@@ -583,7 +593,7 @@
|
|
|
|
|
|
if sys.FileType(windresPath) == 0 then
|
|
|
if bmk.VerboseBuild() == 1 then
|
|
|
- print("windres.exe not found in '" .. bmk.MinGWBinPath() .. "'")
|
|
|
+ print("windres" .. ext .. " not found in '" .. bmk.MinGWBinPath() .. "'")
|
|
|
end
|
|
|
return
|
|
|
end
|