Ai
1 Star 0 Fork 0

Janisa/GUI

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
genie.lua 1.97 KB
一键复制 编辑 原始数据 按行查看 历史
Janisa 提交于 2024-07-09 19:24 +08:00 . 添加编译工程脚本
-- genie, https://github.com/bkaradzic/GENie
-- known working version
-- https://github.com/bkaradzic/bx/blob/51f25ba638b9cb35eb2ac078f842a4bed0746d56/tools/bin/windows/genie.exe
MINGW_ACTION = 'gmake'
if _ACTION == 'clean' then
os.rmdir('./build')
os.rmdir('./bin')
os.rmdir('./obj_vs')
os.rmdir('./obj_' .. MINGW_ACTION)
end
if _ACTION == MINGW_ACTION then
-- need a msys2 with clang
premake.gcc.cc = 'clang'
premake.gcc.cxx = 'clang++'
premake.gcc.ar = 'llvm-ar'
premake.llvm = true
end
local ROOT = os.getcwd()
print(ROOT)
solution('GUI')
location("./build")
configurations({'Debug', 'Release'})
platforms({'x32', 'x64'})
project('GUI')
language("C")
files({'src/**.c', 'inc/**.h', 'src/**.cpp', 'inc/**.hpp'})
links({'windowscodecs', 'dxguid', 'Dwrite', 'd2d1', 'd3d11', 'Imm32'})
configuration('Debug')
flags({'ExtraWarnings', 'Symbols'})
defines({'_DEBUG'})
kind("SharedLib")
configuration('Release')
flags({"Optimize"})
flags({'Symbols'}) -- keep the debug symbols for development
defines({'NDEBUG'})
kind("SharedLib")
configuration("vs*")
defines({"_CRT_SECURE_NO_WARNINGS"})
flags({'NoManifest'})
kind("SharedLib") -- We don't need the console window in VS as we use OutputDebugString(). StaticLib/SharedLib/WindowedApp/ConsoleApp
--buildoptions({'/wd"4214"'})
--linkoptions({'/ENTRY:"mainCRTStartup" /SAFESEH:NO'})
-- characterset("MBCS")
includedirs({'inc'})
objdir('obj_vs')
configuration({'x32', 'vs*'})
-- defines would be passed to resource compiler for whatever reason
-- and ONLY can be put here not under 'configuration('x32')' or it won't work
defines({'X32'})
includedirs({'inc'})
configuration({'x64', 'vs*'})
defines({'X64'})
includedirs({'inc'})
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/Janisa/gui.git
git@gitee.com:Janisa/gui.git
Janisa
gui
GUI
master

搜索帮助