mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Emscripten support.
Doesn't work due to i64 vs i32 type mismatch in glGetIntegerv, which seems like some general compatibility bullshit, not something related to CMake.
This commit is contained in:
@@ -1,20 +0,0 @@
|
||||
all: release
|
||||
|
||||
embed.tracy:
|
||||
wget https://share.nereid.pl/i/embed.tracy
|
||||
|
||||
debug: embed.tracy
|
||||
@$(MAKE) -f debug.mk all TRACY_NO_ISA_EXTENSIONS=1
|
||||
|
||||
release: embed.tracy
|
||||
@$(MAKE) -f release.mk all TRACY_NO_ISA_EXTENSIONS=1
|
||||
|
||||
clean:
|
||||
@$(MAKE) -f build.mk clean
|
||||
rm -rf Tracy-release.*
|
||||
rm -rf Tracy-debug.*
|
||||
|
||||
serve:
|
||||
@python httpd.py
|
||||
|
||||
.PHONY: all clean debug release serve
|
||||
@@ -1,16 +0,0 @@
|
||||
CC=emcc
|
||||
CXX=em++
|
||||
|
||||
CFLAGS += -sUSE_FREETYPE=1 -pthread
|
||||
CXXFLAGS := $(CFLAGS) -std=c++17
|
||||
DEFINES += -DIMGUI_ENABLE_FREETYPE -DIMGUI_IMPL_OPENGL_ES2
|
||||
INCLUDES := -I../../../imgui -I$(HOME)/.emscripten_cache/sysroot/include/capstone
|
||||
LIBS += -lpthread -ldl $(HOME)/.emscripten_cache/sysroot/lib/libcapstone.a -sUSE_GLFW=3 -sINITIAL_MEMORY=384mb -sALLOW_MEMORY_GROWTH=1 -sMAXIMUM_MEMORY=4gb -sWASM_BIGINT=1 -sPTHREAD_POOL_SIZE=4 -sEXPORTED_FUNCTIONS=_main,_nativeResize,_nativeOpenFile -sEXPORTED_RUNTIME_METHODS=ccall -sENVIRONMENT=web,worker --preload-file embed.tracy
|
||||
|
||||
PROJECT := Tracy
|
||||
IMAGE := $(PROJECT)-$(BUILD).html
|
||||
NO_TBB := 1
|
||||
|
||||
FILTER := ../../../nfd/nfd_win.cpp
|
||||
include ../../../common/src-from-vcxproj.mk
|
||||
include ../../../common/unix.mk
|
||||
@@ -1,7 +0,0 @@
|
||||
CFLAGS := -g3 -gsource-map -Wall
|
||||
DEFINES := -DDEBUG
|
||||
BUILD := debug
|
||||
LIBS := -sDEMANGLE_SUPPORT=1
|
||||
|
||||
include ../../../common/unix-debug.mk
|
||||
include build.mk
|
||||
@@ -161,6 +161,6 @@
|
||||
addEventListener('resize', resizeHandler);
|
||||
resizeHandler();
|
||||
</script>
|
||||
<script async type="text/javascript" src="Tracy-release.js"></script>
|
||||
<script async type="text/javascript" src="tracy-profiler.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
CFLAGS := -Os
|
||||
DEFINES := -DNDEBUG
|
||||
BUILD := release
|
||||
LIBS := -sASSERTIONS=0
|
||||
|
||||
include ../../../common/unix-release.mk
|
||||
include build.mk
|
||||
Reference in New Issue
Block a user