1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Add emscripten build files.

This commit is contained in:
Bartosz Taudul
2022-09-30 00:57:53 +02:00
parent 78169326b3
commit ffa48be2d9
5 changed files with 64 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
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 -sTOTAL_MEMORY=512mb -sWASM_BIGINT=1 -sPTHREAD_POOL_SIZE=4
PROJECT := Tracy
IMAGE := $(PROJECT)-$(BUILD).html
NO_TBB := 1
FILTER := ../../../nfd/nfd_win.cpp
include ../../../common/src-from-vcxproj.mk
CXXFLAGS += -DTRACY_NO_FILESELECTOR
include ../../../common/unix.mk