From fc9968dc4fd58fab37476f48e4405c2743c5349c Mon Sep 17 00:00:00 2001 From: Yong He Date: Mon, 8 Mar 2021 10:01:20 -0800 Subject: Refactor window library. (#1739) * Refactor window library. * Fix project file * Fix warnings. --- premake5.lua | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'premake5.lua') diff --git a/premake5.lua b/premake5.lua index e4f9b91cc..bd5c72c63 100644 --- a/premake5.lua +++ b/premake5.lua @@ -525,7 +525,7 @@ function example(name) -- and the `gfx` abstraction layer (which in turn -- depends on the `core` library). We specify all of that here, -- rather than in each example. - links { "slang", "core", "gfx", "gfx-util", "graphics-app-framework" } + links { "slang", "core", "gfx", "gfx-util", "platform" } end -- @@ -695,8 +695,8 @@ toolSharedLibrary "slang-reflection-test" toolSharedLibrary "render-test" uuid "61F7EB00-7281-4BF3-9470-7C2EA92620C3" - includedirs { ".", "external", "source", "tools/gfx", "tools/graphics-app-framework" } - links { "core", "slang", "gfx", "gfx-util", "graphics-app-framework" } + includedirs { ".", "external", "source", "tools/gfx", "tools/platform" } + links { "core", "slang", "gfx", "gfx-util", "platform" } if isTargetWindows then addSourceDir "tools/render-test/windows" @@ -824,21 +824,21 @@ tool "gfx-util" addSourceDir "tools/gfx-util" -- --- `graphics-app-framework` contains all the utils for a simple graphics application. +-- `platform` contains all the platform abstractions for a GUI application. -- -tool "graphics-app-framework" +tool "platform" uuid "3565fe5e-4fa3-11eb-ae93-0242ac130002" kind "StaticLib" pic "On" includedirs { ".", "external", "source", "external/imgui", "tools/gfx" } - addSourceDir "tools/graphics-app-framework" - + addSourceDir "tools/platform" + addSourceDir "tools/platform/linux" + addSourceDir "tools/platform/windows" -- Include windowing support on Windows. if isTargetWindows then systemversion "10.0.14393.0" - addSourceDir "tools/graphics-app-framework/windows" end -- -- cgit v1.2.3