1 Star 0 Fork 1

苏小逝 / hiberlite

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
premake5.lua 2.22 KB
一键复制 编辑 原始数据 按行查看 历史
Dmitry Ledentsov 提交于 2015-12-15 10:12 . test for unsigned long long
function CompilerSpecificFlags()
filter { "action:vs*" }
defines {
"_CRT_SECURE_NO_DEPRECATE",
"_CRT_NONSTDC_NO_DEPRECATE"
}
filter { "action:gmake" }
buildoptions { "-std=c++0x" }
filter {} -- to reset configuration filter
end
function RunTargetAfterBuild()
configuration {"xcode*" }
postbuildcommands {"$TARGET_BUILD_DIR/$TARGET_NAME"}
configuration {"gmake"}
postbuildcommands { "$(TARGET)" }
configuration {"codeblocks" }
postbuildcommands { "$(TARGET_OUTPUT_FILE)"}
configuration { "vs*"}
postbuildcommands { "\"$(TargetPath)\"" }
configuration "*" -- to reset configuration filter
end
solution "hiberlite"
location "Build"
platforms { "native", "x32", "x64" }
configurations { "Debug", "Release" }
objdir "obj/%{prj.name}/%{cfg.buildcfg}"
targetdir "bin/%{prj.name}/%{cfg.buildcfg}"
includedirs {
[[./include]],
[[./sqlite-amalgamation]],
[[./Catch/single_include]]
}
vpaths {
["Headers"] = {"**.h","**.hpp"},
["Sources"] = {"**.c", "**.cpp"},
}
filter { "configurations:Debug" }
defines { "DEBUG", "_DEBUG" }
flags { "Symbols" }
filter { "configurations:Release" }
defines { "RELEASE" }
flags { "Optimize" }
filter {}
----------------------------------------------------------------------------------------------------------------
project "hiberlite"
language "C++"
location "Build"
kind "StaticLib"
CompilerSpecificFlags()
files {
"./include/*.h",
"./include/*.hpp",
"./src/*.cpp",
}
----------------------------------------------------------------------------------------------------------------
project "sqlite"
language "C"
kind "StaticLib"
files {
"./sqlite-amalgamation/*.h",
"./sqlite-amalgamation/*.c",
}
----------------------------------------------------------------------------------------------------------------
function default_project(name,files_table)
project(name)
language "C++"
kind "ConsoleApp"
files(files_table)
links { "hiberlite", "sqlite" }
CompilerSpecificFlags()
RunTargetAfterBuild()
filter {"system:linux"}
links { "dl" , "pthread" }
filter {}
end
default_project("sample",{ "./sample.cpp" })
default_project("catch_test",{ "./catch_tests.cpp" })
default_project("hiberlite_test",{ "./tests.cpp" })
1
https://gitee.com/kimbeaur/hiberlite.git
git@gitee.com:kimbeaur/hiberlite.git
kimbeaur
hiberlite
hiberlite
master

搜索帮助