Changeset View
Changeset View
Standalone View
Standalone View
build/premake/premake5.lua
Show First 20 Lines • Show All 78 Lines • ▼ Show 20 Lines | else | ||||
if string.find(machine, "x86_64") == 1 or string.find(machine, "amd64") == 1 then | if string.find(machine, "x86_64") == 1 or string.find(machine, "amd64") == 1 then | ||||
arch = "amd64" | arch = "amd64" | ||||
elseif string.find(machine, "i.86") == 1 then | elseif string.find(machine, "i.86") == 1 then | ||||
arch = "x86" | arch = "x86" | ||||
elseif string.find(machine, "arm") == 1 then | elseif string.find(machine, "arm") == 1 then | ||||
arch = "arm" | arch = "arm" | ||||
elseif string.find(machine, "aarch64") == 1 then | elseif string.find(machine, "aarch64") == 1 then | ||||
arch = "aarch64" | arch = "aarch64" | ||||
elseif string.find(machine, "e2k") == 1 then | |||||
arch = "e2k" | |||||
else | else | ||||
print("WARNING: Cannot determine architecture from GCC, assuming x86") | print("WARNING: Cannot determine architecture from GCC, assuming x86") | ||||
end | end | ||||
end | end | ||||
end | end | ||||
-- Test whether we need to link libexecinfo. | -- Test whether we need to link libexecinfo. | ||||
-- This is mostly the case on musl systems, as well as on BSD systems : only glibc provides the | -- This is mostly the case on musl systems, as well as on BSD systems : only glibc provides the | ||||
▲ Show 20 Lines • Show All 761 Lines • ▼ Show 20 Lines | if arch == "amd64" then | ||||
table.insert(source_dirs, "lib/sysdep/arch/x86_x64"); | table.insert(source_dirs, "lib/sysdep/arch/x86_x64"); | ||||
elseif arch == "x86" then | elseif arch == "x86" then | ||||
table.insert(source_dirs, "lib/sysdep/arch/ia32"); | table.insert(source_dirs, "lib/sysdep/arch/ia32"); | ||||
table.insert(source_dirs, "lib/sysdep/arch/x86_x64"); | table.insert(source_dirs, "lib/sysdep/arch/x86_x64"); | ||||
elseif arch == "arm" then | elseif arch == "arm" then | ||||
table.insert(source_dirs, "lib/sysdep/arch/arm"); | table.insert(source_dirs, "lib/sysdep/arch/arm"); | ||||
elseif arch == "aarch64" then | elseif arch == "aarch64" then | ||||
table.insert(source_dirs, "lib/sysdep/arch/aarch64"); | table.insert(source_dirs, "lib/sysdep/arch/aarch64"); | ||||
elseif arch == "e2k" then | |||||
table.insert(source_dirs, "lib/sysdep/arch/e2k"); | |||||
end | end | ||||
-- OS-specific | -- OS-specific | ||||
sysdep_dirs = { | sysdep_dirs = { | ||||
linux = { "lib/sysdep/os/linux", "lib/sysdep/os/unix" }, | linux = { "lib/sysdep/os/linux", "lib/sysdep/os/unix" }, | ||||
-- note: RC file must be added to main_exe project. | -- note: RC file must be added to main_exe project. | ||||
-- note: don't add "lib/sysdep/os/win/aken.cpp" because that must be compiled with the DDK. | -- note: don't add "lib/sysdep/os/win/aken.cpp" because that must be compiled with the DDK. | ||||
windows = { "lib/sysdep/os/win", "lib/sysdep/os/win/wposix", "lib/sysdep/os/win/whrt" }, | windows = { "lib/sysdep/os/win", "lib/sysdep/os/win/wposix", "lib/sysdep/os/win/whrt" }, | ||||
▲ Show 20 Lines • Show All 620 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator