t8-mod/deps/premake/asmjit.lua
2023-03-06 12:40:07 -08:00

37 lines
519 B
Lua

asmjit = {
source = path.join(dependencies.basePath, "asmjit"),
}
function asmjit.import()
links { "asmjit" }
asmjit.includes()
end
function asmjit.includes()
includedirs {
path.join(asmjit.source, "src")
}
defines {
"ASMJIT_STATIC",
"ASMJIT_NO_AARCH64",
"ASMJIT_NO_FOREIGN",
}
end
function asmjit.project()
project "asmjit"
language "C++"
asmjit.includes()
files {
path.join(asmjit.source, "src/**.cpp"),
}
warnings "Off"
kind "StaticLib"
end
table.insert(dependencies, asmjit)