os.chdir(_MAIN_SCRIPT_DIR)

project "bmedll"
kind "SharedLib"
language "C++"
copytodir "."

targetname "bme"

pchheader "pch.h"
pchsource "./bmedll/pch.cpp"
forceincludes {"pch.h"}
filter "files:**.c" --or files:**/pch_impl.cpp
	flags {"NoPCH"}
    forceincludes {";"}
filter {}

files {"./bmedll/**.h", "./bmedll/**.cpp", "%{dir}/bmedll/**.asm", "./bmedll/**.rc"}
includedirs {"./bmedll", "%{prj.location}/src"}
libdirs {"./thirdparty/tier0"}

links {
    "tier0",
}

linkoptions {
    "/CETCOMPAT", -- CET Shadow Stack Compatible
}

prebuildcommands {"pushd %{_MAIN_SCRIPT_DIR}", "premake\\premake5 generate-buildinfo" .. (_OPTIONS["ci-build"] and (" --ci-build=" .. _OPTIONS["ci-build"]) or ""), "popd"}

dependencies.imports()
