最美情侣中文字幕电影,在线麻豆精品传媒,在线网站高清黄,久久黄色视频

歡迎光臨散文網(wǎng) 會(huì)員登陸 & 注冊(cè)

【譯】【Game Engine】007. Premake

2023-03-07 23:45 作者:RacolW  | 我要投稿

premake5.lua 排雷總結(jié)版本

對(duì)原來的postbuildcommands和defines進(jìn)行了修正

以下是代碼:

workspace "Hazel"?

architecture "x86_64"

startproject "Sandbox"


configurations

{

"Debug",

"Release",

"Dist"

}


outputdir="%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}"


project "Hazel"

location "Hazel"

kind "SharedLib"

language "C++"


targetdir("bin/" .. outputdir .. "/%{prj.name}")

objdir("bin-int/" .. outputdir .. "/%{prj.name}")


files

{

"%{prj.name}/src/**.h",

"%{prj.name}/src/**.cpp"

}


includedirs

{

"%{prj.name}/src/Hazel/vendor/spdlog/include",

"%{prj.name}/vendor/spdlog/include",

"%{prj.name}/src"?

}


filter "system:windows"


cppdialect "C++17"

staticruntime "On"

systemversion "latest"


defines

{

"HZ_PLATFORM_WINDOWS",

"HZ_BUILD_DLL",

"_WINDLL"

}


postbuildcommands

{

("{COPY} %{cfg.buildtarget.relpath} \"../bin/" .. outputdir .. "/Sandbox/\"")

}


filter "configurations:Debug"

defines "HZ_DEBUG"

symbols "On"


filter "configurations:Release"

defines "HZ_RELEASE"

optimize "On"


filter "configurations:Dist"

defines "HZ_DIST"

optimize "On"


project "Sandbox"

location "Sandbox"

kind "ConsoleApp"

language "C++"


targetdir("bin/" .. outputdir .. "/%{prj.name}")

objdir("bin-int/" .. outputdir .. "/%{prj.name}")


files

{


"%{prj.name}/src/**.h",

"%{prj.name}/src/**.cpp",

"%{prj.name}/src/**.hpp"

}


includedirs

{

"Hazel/src/Hazel/vendor/spdlog/include",

"Hazel/vendor/spdlog/include",

"Hazel/src"?

}


links

{

"Hazel"

}


filter "system:windows"

cppdialect "C++17"

staticruntime "On"

systemversion "latest"


defines

{

"HZ_PLATFORM_WINDOWS",

}


filter "configurations:Debug"


defines "HZ_DEBUG"


symbols "On"


filter "configurations:Release"


defines "HZ_RELEASE"


optimize "On"


filter "configurations:Dist"


defines "HZ_DIST"


optimize "On"


【譯】【Game Engine】007. Premake的評(píng)論 (共 條)

分享到微博請(qǐng)遵守國(guó)家法律
义乌市| 广水市| 德清县| 宁都县| 枣阳市| 中阳县| 田阳县| 墨脱县| 河津市| 道真| 丹巴县| 当涂县| 临清市| 娄烦县| 达州市| 四子王旗| 长顺县| 萨嘎县| 楚雄市| 呼图壁县| 长海县| 库尔勒市| 凤城市| 西盟| 新泰市| 常山县| 都江堰市| 玛纳斯县| 巍山| 康平县| 左权县| 报价| 三亚市| 南靖县| 武穴市| 肇东市| 武胜县| 太白县| 屯留县| 元朗区| 肥东县|