fixed build

main
anulax1225 ago%!(EXTRA string=1 year)
parent d271f9422e
commit 4961e461bc
  1. 9
      premake5.lua
  2. 1
      src/bakara.h
  3. 3
      src/bakara/core/entry.cpp
  4. 3
      src/bakara/events/event.h
  5. 4
      src/bkpch.h

@ -1,11 +1,12 @@
project "bakara"
kind "StaticLib"
language "C++"
cppdialect "C++17"
cppdialect "C++20"
targetdir("%{wks.location}/bin/" .. outputdir .. "/%{prj.name}")
objdir("%{wks.location}/bin-int/" .. outputdir .. "/%{prj.name}")
buildoptions { "-fPIC" }
files
{
"%{wks.location}/vendor/glm/glm/**.hpp",
@ -64,7 +65,6 @@ project "bakara"
optimize "on"
filter "system:windows"
kind "StaticLib"
staticruntime "on"
defines
{
@ -77,8 +77,7 @@ project "bakara"
}
filter "system:linux"
kind "SharedLib"
staticruntime "off"
staticruntime "on"
files
{

@ -15,7 +15,6 @@ Plaform namespace doc
namespace Bk::Plaform {}
#include <bakara/math/type.h>
#include <bakara/core/log.h>
#include <bakara/core/assert.h>
#include <bakara/io/io_codes.h>

@ -1,5 +1,4 @@
#include <bkpch.h>
#include "log.h"
#include "application.h"
/*! \file entry.cpp
@ -15,7 +14,7 @@ extern std::unique_ptr<Bk::Application> Bk::create_app();
Entry of the program.
*/
int main(int argc, char** argv) {
Bk::Log::init();
Bk::Log::init("Bakara");
BK_CORE_INFO("Bienvenue dans la sandbox {0} version {1}", "bakara", 1);
std::unique_ptr<Bk::Application> app = Bk::create_app();
app->run();

@ -2,7 +2,6 @@
#include <bakara/core/base.h>
#include <bkpch.h>
#include <bakara/tools/string_fmt.h>
namespace Bk {
enum class EventType
@ -42,7 +41,7 @@ namespace Bk {
#define EVENT_CLASS_CATEGORY(category) virtual int get_category_flags() const override { return category; }
#ifdef BK_DEBUG
#define EVENT_STRINGIFY(str, ...) std::string to_string() const override { return Tools::format(str, __VA_ARGS__); }
#define EVENT_STRINGIFY(str, ...) std::string to_string() const override { return Tools::string_format(str, __VA_ARGS__); }
#define GET_EVENT_STRING(event) event.to_string()
#else

@ -15,8 +15,6 @@ Precompiled headers communly used in bakara.
#include <vector>
#include <deque>
#include <exception>
#include <bakatools>
#include <bakatools.h>
#include <bakara/core/log.h>
#include <bakara/core/assert.h>
#include <bakara/math/type.h>

Loading…
Cancel
Save