Skip to content

Commit e923346

Browse files
committed
renaming the engine
1 parent 078337d commit e923346

122 files changed

Lines changed: 514 additions & 514 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/linux-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,5 +89,5 @@ jobs:
8989
key: assets-${{ hashFiles('assets/examples_version.txt', 'assets/unittests_version.txt') }}
9090

9191
# Build the engine
92-
- name: Build Mlk
92+
- name: Build Squid
9393
run: xmake --yes

Engine/Runtime/Includes/Core/Application.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
#ifndef MLK_CORE_APPLICATION_HPP__
2-
#define MLK_CORE_APPLICATION_HPP__
1+
#ifndef SQUID_CORE_APPLICATION_HPP__
2+
#define SQUID_CORE_APPLICATION_HPP__
33

44
#include <Core/PreCompiled.hpp>
55
#include <Utils/TypeList.hpp>
66
#include <Core/ComponentStack.hpp>
77
#include <Core/EngineConfig.hpp>
88
#include <Core/Module.hpp>
99

10-
namespace Mlk
10+
namespace Squid
1111
{
12-
class MLK_CORE_API Application : public ComponentStack
12+
class SQUID_CORE_API Application : public ComponentStack
1313
{
1414
public:
1515
Application(const EngineConfig& config);
@@ -25,7 +25,7 @@ namespace Mlk
2525

2626
inline const EngineConfig& GetEngineConfig() const noexcept { return m_engine_config; }
2727

28-
MLK_FORCEINLINE constexpr void Quit() noexcept;
28+
SQUID_FORCEINLINE constexpr void Quit() noexcept;
2929

3030
~Application();
3131

Engine/Runtime/Includes/Core/Application.inl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#pragma once
22
#include <Core/Application.hpp>
33

4-
namespace Mlk
4+
namespace Squid
55
{
66
constexpr void Application::Quit() noexcept
77
{

Engine/Runtime/Includes/Core/CLI.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
#ifndef MLK_CORE_CLI_HPP__
2-
#define MLK_CORE_CLI_HPP__
1+
#ifndef SQUID_CORE_CLI_HPP__
2+
#define SQUID_CORE_CLI_HPP__
33

44
#include <Core/PreCompiled.hpp>
55

6-
namespace Mlk
6+
namespace Squid
77
{
88
class CommandLineInterface
99
{

Engine/Runtime/Includes/Core/CLI.inl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#pragma once
22
#include <Core/CLI.hpp>
33

4-
namespace Mlk
4+
namespace Squid
55
{
66
CommandLineInterface::CommandLineInterface()
77
{

Engine/Runtime/Includes/Core/CompilationProfile.hpp

Lines changed: 68 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -1,138 +1,138 @@
1-
#ifndef MLK_CORE_COMPILATION_PROFILE_HPP__
2-
#define MLK_CORE_COMPILATION_PROFILE_HPP__
1+
#ifndef SQUID_CORE_COMPILATION_PROFILE_HPP__
2+
#define SQUID_CORE_COMPILATION_PROFILE_HPP__
33

44
#include <climits>
55
#include <cstdint>
66

77
// Try to identify the compiler
88
#if defined(__BORLANDC__)
9-
#define MLK_COMPILER_BORDLAND
9+
#define SQUID_COMPILER_BORDLAND
1010
#elif defined(__clang__)
11-
#define MLK_COMPILER_CLANG
11+
#define SQUID_COMPILER_CLANG
1212
#ifdef __MINGW32__
13-
#define MLK_COMPILER_MINGW
13+
#define SQUID_COMPILER_MINGW
1414
#ifdef __MINGW64_VERSION_MAJOR
15-
#define MLK_COMPILER_MINGW_W64
15+
#define SQUID_COMPILER_MINGW_W64
1616
#endif
1717
#endif
1818
#elif defined(__GNUC__) || defined(__MINGW32__)
19-
#define MLK_COMPILER_GCC
19+
#define SQUID_COMPILER_GCC
2020
#ifdef __MINGW32__
21-
#define MLK_COMPILER_MINGW
21+
#define SQUID_COMPILER_MINGW
2222
#ifdef __MINGW64_VERSION_MAJOR
23-
#define MLK_COMPILER_MINGW_W64
23+
#define SQUID_COMPILER_MINGW_W64
2424
#endif
2525
#endif
2626
#elif defined(__INTEL_COMPILER) || defined(__ICL)
27-
#define MLK_COMPILER_INTEL
27+
#define SQUID_COMPILER_INTEL
2828
#elif defined(_MSC_VER)
29-
#define MLK_COMPILER_MSVC
29+
#define SQUID_COMPILER_MSVC
3030
#else
31-
#define MLK_COMPILER_UNKNOWN
31+
#define SQUID_COMPILER_UNKNOWN
3232
#warning "This compiler is not fully supported"
3333
#endif
3434

3535
#if defined(_WIN32) || defined(__CYGWIN__)
36-
#define MLK_PLAT_WINDOWS
36+
#define SQUID_PLAT_WINDOWS
3737
#elif defined(__linux__)
38-
#define MLK_PLAT_LINUX
39-
#define MLK_PLAT_UNIX
38+
#define SQUID_PLAT_LINUX
39+
#define SQUID_PLAT_UNIX
4040
#elif defined(__APPLE__) && defined(__MACH__)
41-
#define MLK_PLAT_MACOS
41+
#define SQUID_PLAT_MACOS
4242
#elif defined(unix) || defined(__unix__) || defined(__unix)
43-
#define MLK_PLAT_UNIX
43+
#define SQUID_PLAT_UNIX
4444
#else
4545
#error "Unknown environment (not Windows, not Linux, not MacOS, not Unix)"
4646
#endif
4747

4848
#if defined(__GNUC__) || (defined(__MWERKS__) && (__MWERKS__ >= 0x3000)) || (defined(__ICC) && (__ICC >= 600)) || defined(__ghs__)
49-
#define MLK_FUNC_SIG __PRETTY_FUNCTION__
49+
#define SQUID_FUNC_SIG __PRETTY_FUNCTION__
5050
#elif defined(__DMC__) && (__DMC__ >= 0x810)
51-
#define MLK_FUNC_SIG __PRETTY_FUNCTION__
51+
#define SQUID_FUNC_SIG __PRETTY_FUNCTION__
5252
#elif (defined(__FUNCSIG__) || (_MSC_VER))
53-
#define MLK_FUNC_SIG __FUNCSIG__
53+
#define SQUID_FUNC_SIG __FUNCSIG__
5454
#elif (defined(__INTEL_COMPILER) && (__INTEL_COMPILER >= 600)) || (defined(__IBMCPP__) && (__IBMCPP__ >= 500))
55-
#define MLK_FUNC_SIG __FUNCTION__
55+
#define SQUID_FUNC_SIG __FUNCTION__
5656
#elif defined(__BORLANDC__) && (__BORLANDC__ >= 0x550)
57-
#define MLK_FUNC_SIG __FUNC__
57+
#define SQUID_FUNC_SIG __FUNC__
5858
#elif defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901)
59-
#define MLK_FUNC_SIG __func__
59+
#define SQUID_FUNC_SIG __func__
6060
#elif defined(__cplusplus) && (__cplusplus >= 201103)
61-
#define MLK_FUNC_SIG __func__
61+
#define SQUID_FUNC_SIG __func__
6262
#else
63-
#define MLK_FUNC_SIG "Unknown function"
63+
#define SQUID_FUNC_SIG "Unknown function"
6464
#endif
6565

66-
#ifdef MLK_PLAT_WINDOWS
67-
#ifdef MLK_COMPILER_MSVC
68-
#define MLK_EXPORT_API __declspec(dllexport)
69-
#define MLK_IMPORT_API __declspec(dllimport)
70-
#elif defined(MLK_COMPILER_GCC)
71-
#define MLK_EXPORT_API __attribute__((dllexport))
72-
#define MLK_IMPORT_API __attribute__((dllimport))
66+
#ifdef SQUID_PLAT_WINDOWS
67+
#ifdef SQUID_COMPILER_MSVC
68+
#define SQUID_EXPORT_API __declspec(dllexport)
69+
#define SQUID_IMPORT_API __declspec(dllimport)
70+
#elif defined(SQUID_COMPILER_GCC)
71+
#define SQUID_EXPORT_API __attribute__((dllexport))
72+
#define SQUID_IMPORT_API __attribute__((dllimport))
7373
#else
74-
#define MLK_EXPORT_API
75-
#define MLK_IMPORT_API
74+
#define SQUID_EXPORT_API
75+
#define SQUID_IMPORT_API
7676
#endif
77-
#elif defined(MLK_COMPILER_GCC)
78-
#define MLK_EXPORT_API __attribute__((visibility("default")))
79-
#define MLK_IMPORT_API __attribute__((visibility("default")))
77+
#elif defined(SQUID_COMPILER_GCC)
78+
#define SQUID_EXPORT_API __attribute__((visibility("default")))
79+
#define SQUID_IMPORT_API __attribute__((visibility("default")))
8080
#else
81-
#define MLK_EXPORT_API
82-
#define MLK_IMPORT_API
81+
#define SQUID_EXPORT_API
82+
#define SQUID_IMPORT_API
8383
#endif
8484

85-
#if defined(MLK_PLAT_WINDOWS)
86-
#define MLK_LIB_EXTENSION ".dll"
87-
#elif defined(MLK_PLAT_UNIX)
88-
#define MLK_LIB_EXTENSION ".so"
89-
#elif defined(MLK_PLAT_MACOS)
90-
#define MLK_LIB_EXTENSION ".dylib"
91-
#elif defined(MLK_PLAT_WASM)
92-
#define MLK_LIB_EXTENSION ".wasm"
85+
#if defined(SQUID_PLAT_WINDOWS)
86+
#define SQUID_LIB_EXTENSION ".dll"
87+
#elif defined(SQUID_PLAT_UNIX)
88+
#define SQUID_LIB_EXTENSION ".so"
89+
#elif defined(SQUID_PLAT_MACOS)
90+
#define SQUID_LIB_EXTENSION ".dylib"
91+
#elif defined(SQUID_PLAT_WASM)
92+
#define SQUID_LIB_EXTENSION ".wasm"
9393
#endif
9494

95-
#ifdef MLK_COMPILER_MSVC
96-
#define MLK_LIB_PREFIX ""
95+
#ifdef SQUID_COMPILER_MSVC
96+
#define SQUID_LIB_PREFIX ""
9797
#else
98-
#define MLK_LIB_PREFIX "lib"
98+
#define SQUID_LIB_PREFIX "lib"
9999
#endif
100100

101-
#if !defined(MLK_NO_FORCEINLINE) && !defined(MLK_FORCEINLINE)
102-
#if defined(MLK_COMPILER_CLANG) || defined(MLK_COMPILER_GCC)
103-
#define MLK_FORCEINLINE __attribute__((always_inline)) inline
104-
#elif defined(MLK_COMPILER_MSVC)
105-
#define MLK_FORCEINLINE __forceinline
101+
#if !defined(SQUID_NO_FORCEINLINE) && !defined(SQUID_FORCEINLINE)
102+
#if defined(SQUID_COMPILER_CLANG) || defined(SQUID_COMPILER_GCC)
103+
#define SQUID_FORCEINLINE __attribute__((always_inline)) inline
104+
#elif defined(SQUID_COMPILER_MSVC)
105+
#define SQUID_FORCEINLINE __forceinline
106106
#else
107-
#define MLK_FORCEINLINE inline
107+
#define SQUID_FORCEINLINE inline
108108
#endif
109109
#endif
110110

111-
#if !defined(MLK_NO_WEAK) && !defined(MLK_WEAK)
112-
#if defined(MLK_COMPILER_CLANG) || defined(MLK_COMPILER_GCC)
113-
#define MLK_WEAK __attribute__((weak))
111+
#if !defined(SQUID_NO_WEAK) && !defined(SQUID_WEAK)
112+
#if defined(SQUID_COMPILER_CLANG) || defined(SQUID_COMPILER_GCC)
113+
#define SQUID_WEAK __attribute__((weak))
114114
#else
115-
#define MLK_WEAK
115+
#define SQUID_WEAK
116116
#endif
117117
#endif
118118

119119
#if defined(__x86_64__) || defined(_M_X64) || defined(__ppc64__)
120-
#define MLK_64BITS
120+
#define SQUID_64BITS
121121
#elif defined(i386) || defined(__i386__) || defined(__i386) || defined(_M_IX86)
122-
#define MLK_32BITS
122+
#define SQUID_32BITS
123123
#elif UINTPTR_MAX == UINT32_MAX
124-
#define MLK_32BITS
124+
#define SQUID_32BITS
125125
#elif UINTPTR_MAX == UINT64_MAX
126-
#define MLK_64BITS
126+
#define SQUID_64BITS
127127
#endif
128128

129-
#define MLK_UNUSED_PARAM(x)
130-
#define MLK_UNUSED(x) (void)(x)
129+
#define SQUID_UNUSED_PARAM(x)
130+
#define SQUID_UNUSED(x) (void)(x)
131131

132132
// Checking common assumptions
133133

134-
#if !defined(MLK_32BITS) && !defined(MLK_64BITS)
135-
#error "Mlk can only run on 32bit or 64bit architectures"
134+
#if !defined(SQUID_32BITS) && !defined(SQUID_64BITS)
135+
#error "Squid can only run on 32bit or 64bit architectures"
136136
#endif
137137

138138
static_assert(CHAR_BIT == 8, "CHAR_BIT is expected to be 8");

Engine/Runtime/Includes/Core/ComponentBase.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
#ifndef MLK_CORE_COMPONENT_BASE_HPP__
2-
#define MLK_CORE_COMPONENT_BASE_HPP__
1+
#ifndef SQUID_CORE_COMPONENT_BASE_HPP__
2+
#define SQUID_CORE_COMPONENT_BASE_HPP__
33

44
#include <Core/PreCompiled.hpp>
55

6-
namespace Mlk
6+
namespace Squid
77
{
8-
class MLK_CORE_API ComponentBase
8+
class SQUID_CORE_API ComponentBase
99
{
1010
public:
1111
ComponentBase() = delete;

Engine/Runtime/Includes/Core/ComponentStack.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
#ifndef MLK_CORE_COMPONENT_STACK_HPP__
2-
#define MLK_CORE_COMPONENT_STACK_HPP__
1+
#ifndef SQUID_CORE_COMPONENT_STACK_HPP__
2+
#define SQUID_CORE_COMPONENT_STACK_HPP__
33

44
#include <Core/PreCompiled.hpp>
55
#include <Core/ComponentBase.hpp>
66
#include <Core/Memory/MemoryManager.hpp>
77

8-
namespace Mlk
8+
namespace Squid
99
{
10-
class MLK_CORE_API ComponentStack
10+
class SQUID_CORE_API ComponentStack
1111
{
1212
public:
1313
using iterator = std::vector<ComponentBase*>::iterator;

Engine/Runtime/Includes/Core/ComponentStack.inl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#pragma once
22
#include <Core/ComponentStack.hpp>
33

4-
namespace Mlk
4+
namespace Squid
55
{
66
template<typename T, typename ... Args>
77
T& ComponentStack::AddComponent(Args&& ... args)
Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,32 @@
1-
#ifndef MLK_CORE_HPP__
2-
#define MLK_CORE_HPP__
1+
#ifndef SQUID_CORE_HPP__
2+
#define SQUID_CORE_HPP__
33

44
#include <Core/CompilationProfile.hpp>
55

6-
#ifndef MLK_CORE_STATIC
7-
#ifdef MLK_PLAT_WINDOWS
8-
#ifdef MLK_COMPILER_MSVC
9-
#ifdef MLK_CORE_BUILD
10-
#define MLK_CORE_API __declspec(dllexport)
6+
#ifndef SQUID_CORE_STATIC
7+
#ifdef SQUID_PLAT_WINDOWS
8+
#ifdef SQUID_COMPILER_MSVC
9+
#ifdef SQUID_CORE_BUILD
10+
#define SQUID_CORE_API __declspec(dllexport)
1111
#else
12-
#define MLK_CORE_API __declspec(dllimport)
12+
#define SQUID_CORE_API __declspec(dllimport)
1313
#endif
14-
#elif defined(MLK_COMPILER_GCC)
15-
#ifdef MLK_CORE_BUILD
16-
#define MLK_CORE_API __attribute__((dllexport))
14+
#elif defined(SQUID_COMPILER_GCC)
15+
#ifdef SQUID_CORE_BUILD
16+
#define SQUID_CORE_API __attribute__((dllexport))
1717
#else
18-
#define MLK_CORE_API __attribute__((dllimport))
18+
#define SQUID_CORE_API __attribute__((dllimport))
1919
#endif
2020
#else
21-
#define MLK_CORE_API
21+
#define SQUID_CORE_API
2222
#endif
23-
#elif defined(MLK_COMPILER_GCC)
24-
#define MLK_CORE_API __attribute__((visibility("default")))
23+
#elif defined(SQUID_COMPILER_GCC)
24+
#define SQUID_CORE_API __attribute__((visibility("default")))
2525
#else
26-
#define MLK_CORE_API
26+
#define SQUID_CORE_API
2727
#endif
2828
#else
29-
#define MLK_CORE_API
29+
#define SQUID_CORE_API
3030
#endif
3131

3232
#endif

0 commit comments

Comments
 (0)