Skip to content

Commit 6585c3b

Browse files
authored
Merge pull request #203 from edunad/bugfixes/build
Fix build
2 parents ba416ea + 63caea0 commit 6585c3b

File tree

5 files changed

+20
-6
lines changed

5 files changed

+20
-6
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ jobs:
2929
run: |
3030
sudo apt update
3131
sudo apt install -y git wget cmake libegl1-mesa-dev libwayland-dev libxkbcommon-dev wayland-protocols libvulkan-dev libssl-dev libvpx-dev gcc-14 g++-14 libgl1-mesa-dev libglew-dev ninja-build python3-pip libx11-dev libx11-xcb-dev libfontenc-dev libice-dev libsm-dev libxau-dev libxaw7-dev libxcomposite-dev libxcursor-dev libxdamage-dev libxdmcp-dev libxext-dev libxfixes-dev libxft-dev libxi-dev libxinerama-dev libxkbfile-dev libxmu-dev libxmuu-dev libxpm-dev libxrandr-dev libxrender-dev libxres-dev libxss-dev libxt-dev libxtst-dev libxv-dev libxvmc-dev libxxf86vm-dev xtrans-dev libxcb-render0-dev libxcb-render-util0-dev libxcb-xkb-dev libxcb-icccm4-dev libxcb-image0-dev libxcb-keysyms1-dev libxcb-randr0-dev libxcb-shape0-dev libxcb-sync-dev libxcb-xfixes0-dev libxcb-xinerama0-dev xkb-data libxcb-dri3-dev uuid-dev libxcb-util-dev
32+
3233
- name: Cache c++
3334
uses: hendrikmuhs/ccache-action@ed74d11c0b343532753ecead8a951bb09bb34bc9
3435
with:

rawrbox.render/include/stb/stb_gif.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
#define STBI_ONLY_GIF
1414
#define STBI_ONLY_TGA
1515

16+
#define STBI_FREE(ptr) std::free(ptr)
17+
#define STBI_MALLOC(size) std::malloc(size)
18+
#define STBI_REALLOC(ptr, nsize) std::realloc(ptr, nsize)
19+
1620
#include <stb/stb_image.hpp>
1721
#include <stb/stb_image_write.hpp>
1822
#pragma warning(pop)

rawrbox.scripting/include/rawrbox/scripting/utils/lua.hpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,18 @@
1111

1212
#include <glaze/glaze.hpp>
1313

14+
#include <Luau/Compiler.h>
15+
1416
#include <filesystem>
1517
#include <string>
1618

19+
/*
20+
namespace DFInt {
21+
extern int LuauTypeSolverRelease;
22+
extern int LuauSolverV2;
23+
} // namespace DFInt
24+
*/
25+
1726
namespace rawrbox {
1827
class LuaUtils {
1928
public:

rawrbox.scripting/src/utils/lua.cpp

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@
22
#include <rawrbox/utils/file.hpp>
33
#include <rawrbox/utils/string.hpp>
44

5-
#include <Luau/Compiler.h>
6-
7-
LUAU_FASTFLAG(LuauSolverV2);
8-
LUAU_DYNAMIC_FASTINTVARIABLE(LuauTypeSolverRelease, 900)
9-
105
#include <fmt/format.h>
116

7+
/*
8+
namespace DFInt {
9+
int LuauTypeSolverRelease = 999;
10+
int LuauSolverV2 = 1;
11+
} // namespace DFInt
12+
*/
1213
namespace rawrbox {
1314

1415
void LuaUtils::compileAndLoadFile(lua_State* L, const std::string& chunkID, const std::filesystem::path& path) {

rawrbox.ui/include/rawrbox/ui/static.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
#include <string>
55
#include <vector>
66

7-
87
namespace rawrbox {
98
extern std::vector<std::pair<std::string, uint32_t>> UI_RESOURCES;
109
} // namespace rawrbox

0 commit comments

Comments
 (0)