Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
0b55ac0
Disable backtrace for Emscripten
TestingPlant Jan 29, 2025
8928ae6
Add Emscripten build
TestingPlant Jan 29, 2025
0fb059d
Add macros for Emscripten/wasm
TestingPlant Jan 29, 2025
4219045
Update premake files
TestingPlant Feb 2, 2025
93f537f
Update Emscripten library prefix/ext
TestingPlant Feb 2, 2025
583e073
Compile drivers for Emscripten
TestingPlant Feb 2, 2025
f80cf77
Replace strdup with ut_strdup
TestingPlant Feb 2, 2025
48259da
Use -sSIDE_MODULE on emcc
TestingPlant Feb 2, 2025
b5f77d0
Fix premake filters
TestingPlant Feb 2, 2025
0defb84
Use file naming conventions of current target
TestingPlant Feb 3, 2025
b819278
Statically link on Emscripten
TestingPlant Feb 16, 2025
b562565
Remove Emscripten driver builds
TestingPlant Feb 16, 2025
a82d0da
Compile bake_util with pic on Emscripten
TestingPlant Feb 16, 2025
94859d5
Run compiled files on Emscripten
TestingPlant Feb 16, 2025
0d6ec80
Re-add MAIN_MODULE
TestingPlant Feb 16, 2025
9403209
Enable pthread on Emscripten
TestingPlant Feb 16, 2025
927beec
Remove Emscripten from run_premake.sh
TestingPlant Feb 16, 2025
8be2d47
Remove modularize for emcc
TestingPlant Feb 16, 2025
9ad40d8
Add ut_proc stubs for Emscripten
TestingPlant Feb 16, 2025
ac161cc
Add single threaded mode to test runner
TestingPlant Feb 16, 2025
fe83ca1
Allow test runner to run without processes
TestingPlant Feb 17, 2025
918ef64
Add more flags to emcc
TestingPlant Feb 17, 2025
b1ef2ff
Add shebang manually
TestingPlant Feb 17, 2025
933a8ac
Fix return code handling
TestingPlant Feb 17, 2025
ced3c51
Suppress MAIN_MODULE+pthreads warning
TestingPlant Feb 17, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion build-Darwin/bake.make
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ ifeq ($(config),debug)
ifeq ($(origin AR), default)
AR = ar
endif
RESCOMP = windres
TARGETDIR = ..
TARGET = $(TARGETDIR)/bake
OBJDIR = ../.bake_cache/debug
Expand Down Expand Up @@ -55,6 +56,7 @@ ifeq ($(config),release)
ifeq ($(origin AR), default)
AR = ar
endif
RESCOMP = windres
TARGETDIR = ..
TARGET = $(TARGETDIR)/bake
OBJDIR = ../.bake_cache/release
Expand Down Expand Up @@ -167,7 +169,7 @@ endif
prebuild:
$(PREBUILDCMDS)

prelink:
prelink: $(OBJECTS)
$(PRELINKCMDS)

ifneq (,$(PCH))
Expand Down
20 changes: 19 additions & 1 deletion build-Linux/bake.make
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,15 @@ endif
.PHONY: clean prebuild prelink

ifeq ($(config),debug)
ifeq ($(origin CC), default)
CC = gcc
endif
ifeq ($(origin CXX), default)
CXX = g++
endif
ifeq ($(origin AR), default)
AR = ar
endif
RESCOMP = windres
TARGETDIR = ..
TARGET = $(TARGETDIR)/bake
Expand Down Expand Up @@ -38,6 +47,15 @@ all: prebuild prelink $(TARGET)
endif

ifeq ($(config),release)
ifeq ($(origin CC), default)
CC = gcc
endif
ifeq ($(origin CXX), default)
CXX = g++
endif
ifeq ($(origin AR), default)
AR = ar
endif
RESCOMP = windres
TARGETDIR = ..
TARGET = $(TARGETDIR)/bake
Expand Down Expand Up @@ -151,7 +169,7 @@ endif
prebuild:
$(PREBUILDCMDS)

prelink:
prelink: $(OBJECTS)
$(PRELINKCMDS)

ifneq (,$(PCH))
Expand Down
11 changes: 10 additions & 1 deletion build-Mingw/bake.make
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,22 @@ endif
.PHONY: clean prebuild

SHELLTYPE := posix
ifeq (.exe,$(findstring .exe,$(ComSpec)))
ifeq ($(shell echo "test"), "test")
SHELLTYPE := msdos
endif

# Configurations
# #############################################

ifeq ($(origin CC), default)
CC = gcc
endif
ifeq ($(origin CXX), default)
CXX = g++
endif
ifeq ($(origin AR), default)
AR = ar
endif
RESCOMP = windres
TARGETDIR = ..
TARGET = $(TARGETDIR)/bake.exe
Expand Down
4 changes: 3 additions & 1 deletion drivers/lang/c/build-Darwin/bake_lang_c.make
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ ifeq ($(config),debug)
ifeq ($(origin AR), default)
AR = ar
endif
RESCOMP = windres
TARGETDIR = ..
TARGET = $(TARGETDIR)/libbake_lang_c.dylib
OBJDIR = ../.bake_cache/debug
Expand Down Expand Up @@ -55,6 +56,7 @@ ifeq ($(config),release)
ifeq ($(origin AR), default)
AR = ar
endif
RESCOMP = windres
TARGETDIR = ..
TARGET = $(TARGETDIR)/libbake_lang_c.dylib
OBJDIR = ../.bake_cache/release
Expand Down Expand Up @@ -128,7 +130,7 @@ endif
prebuild:
$(PREBUILDCMDS)

prelink:
prelink: $(OBJECTS)
$(PRELINKCMDS)

ifneq (,$(PCH))
Expand Down
20 changes: 19 additions & 1 deletion drivers/lang/c/build-Linux/bake_lang_c.make
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,15 @@ endif
.PHONY: clean prebuild prelink

ifeq ($(config),debug)
ifeq ($(origin CC), default)
CC = gcc
endif
ifeq ($(origin CXX), default)
CXX = g++
endif
ifeq ($(origin AR), default)
AR = ar
endif
RESCOMP = windres
TARGETDIR = ..
TARGET = $(TARGETDIR)/libbake_lang_c.so
Expand Down Expand Up @@ -38,6 +47,15 @@ all: prebuild prelink $(TARGET)
endif

ifeq ($(config),release)
ifeq ($(origin CC), default)
CC = gcc
endif
ifeq ($(origin CXX), default)
CXX = g++
endif
ifeq ($(origin AR), default)
AR = ar
endif
RESCOMP = windres
TARGETDIR = ..
TARGET = $(TARGETDIR)/libbake_lang_c.so
Expand Down Expand Up @@ -112,7 +130,7 @@ endif
prebuild:
$(PREBUILDCMDS)

prelink:
prelink: $(OBJECTS)
$(PRELINKCMDS)

ifneq (,$(PCH))
Expand Down
11 changes: 10 additions & 1 deletion drivers/lang/c/build-Mingw/bake_lang_c.make
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,22 @@ endif
.PHONY: clean prebuild

SHELLTYPE := posix
ifeq (.exe,$(findstring .exe,$(ComSpec)))
ifeq ($(shell echo "test"), "test")
SHELLTYPE := msdos
endif

# Configurations
# #############################################

ifeq ($(origin CC), default)
CC = gcc
endif
ifeq ($(origin CXX), default)
CXX = g++
endif
ifeq ($(origin AR), default)
AR = ar
endif
RESCOMP = windres
TARGETDIR = ..
TARGET = $(TARGETDIR)/bake_lang_c.dll
Expand Down
Loading