Skip to content

Commit

Permalink
make build work
Browse files Browse the repository at this point in the history
  • Loading branch information
chucksellick committed Mar 4, 2025
1 parent b4b2d12 commit 57c45af
Show file tree
Hide file tree
Showing 47 changed files with 1,053 additions and 5 deletions.
2 changes: 2 additions & 0 deletions crawl-ref/source/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ coverage-html-report/
default.profraw
coverage.profdata
coverage.info
crawl.*
*.o.tmp
12 changes: 7 additions & 5 deletions crawl-ref/source/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ CFWARN_L += -Wextra \
DEFINES := $(EXTERNAL_DEFINES)

ifndef ANDROID
LDFLAGS := -sLEGACY_GL_EMULATION -sMAX_WEBGL_VERSION=2
LDFLAGS := -sLEGACY_GL_EMULATION -sALLOW_MEMORY_GROWTH=1 -sMAXIMUM_MEMORY=1gb -lworkerfs.js
endif

#
Expand Down Expand Up @@ -526,7 +526,8 @@ HOSTCC := $(FORCE_CC)
export HOSTCC
else
# GCC := emcc -pthread -sSHARED_MEMORY -sWASM_WORKERS=1 -sUSE_ZLIB=1 -sUSE_FREETYPE=1 -sUSE_SDL_IMAGE=2
GCC := emcc -pthread -sSHARED_MEMORY -sWASM_WORKERS=1 -sUSE_ZLIB=1 -sUSE_SDL=2 -sUSE_SDL_IMAGE=2 -sUSE_FREETYPE=1
# GCC := emcc -pthread -sSHARED_MEMORY=1 -sWASM_WORKERS=1 -sUSE_ZLIB=1 -sUSE_SDL=2 -sUSE_SDL_IMAGE=2 -sUSE_FREETYPE=1
GCC := emcc -O3 -pthread -sSHARED_MEMORY=1 -sUSE_ZLIB=1 -sUSE_SDL=2 -sUSE_SDL_IMAGE=2 -sUSE_FREETYPE=1
# GCC := $(LMACH)$(GCC_VER_PREFIX)emcc$(GCC_VER_SUFFIX)
endif

Expand All @@ -536,7 +537,8 @@ HOSTCXX := $(FORCE_CXX)
export HOSTCXX
else
# GXX := em++ -pthread -sSHARED_MEMORY -sWASM_WORKERS=1 -sUSE_ZLIB=1 -sUSE_FREETYPE=1 -sUSE_SDL_IMAGE=2
GXX := em++ -pthread -sSHARED_MEMORY -sWASM_WORKERS=1 -sUSE_ZLIB=1 -sUSE_SDL=2 -sUSE_SDL_IMAGE=2 -sUSE_FREETYPE=1
# GXX := em++ -pthread -sSHARED_MEMORY=1 -sWASM_WORKERS=1 -sUSE_ZLIB=1 -sUSE_SDL=2 -sUSE_SDL_IMAGE=2 -sUSE_FREETYPE=1
GXX := em++ -O3 -pthread -sSHARED_MEMORY=1 -sUSE_ZLIB=1 -sUSE_SDL=2 -sUSE_SDL_IMAGE=2 -sUSE_FREETYPE=1
# GXX := $(LMACH)$(GCC_VER_PREFIX)em++$(GCC_VER_SUFFIX)
endif

Expand Down Expand Up @@ -779,7 +781,7 @@ ifndef WIN32
LIBS += -lSDL2_mixer
endif
endif
LIBS += -lSDL2_image $(SDL2_LDFLAGS) $(FREETYPE_LDFLAGS)
# LIBS += -lSDL2_image $(SDL2_LDFLAGS) $(FREETYPE_LDFLAGS)

endif # pkg-config

Expand Down Expand Up @@ -1680,7 +1682,7 @@ distclean: clean clean-contrib clean-rltiles
$(RM) -r $(DOXYGEN_HTML_GEN)

$(GAME): $(GAME_OBJS) $(CONTRIB_LIBS) dat/dlua/tags.lua
+$(QUIET_LINK)$(CXX) $(LDFLAGS) $(GAME_OBJS) -o $(GAME).html $(LIBS) --preload-file dat --use-preload-plugins
+$(QUIET_LINK)$(CXX) $(LDFLAGS) $(GAME_OBJS) -o $(GAME).html $(LIBS) --preload-file dat/des --preload-file dat/tiles --preload-file dat/clua --preload-file dat/dlua --use-preload-plugins

util/monster/vault_monster_data.h: dat/des util/gather_mons
util/gather_mons -v > $@
Expand Down
Binary file removed crawl-ref/source/dat/tiles/title_Cws_Minotauros.png
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed crawl-ref/source/dat/tiles/title_arbituhhh_tesu.png
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed crawl-ref/source/dat/tiles/title_benadryl_oni.png
Binary file not shown.
Binary file removed crawl-ref/source/dat/tiles/title_denzi_dragon.png
Binary file not shown.
Binary file removed crawl-ref/source/dat/tiles/title_denzi_evil_mage.png
Binary file not shown.
Binary file removed crawl-ref/source/dat/tiles/title_denzi_invasion.png
Binary file not shown.
Binary file not shown.
Binary file removed crawl-ref/source/dat/tiles/title_denzi_summoner.png
Binary file not shown.
Binary file not shown.
Binary file removed crawl-ref/source/dat/tiles/title_e_m_fields.png
Binary file not shown.
Binary file removed crawl-ref/source/dat/tiles/title_firemage.png
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Binary file removed crawl-ref/source/dat/tiles/title_ploomutoo_ijyb.png
Diff not rendered.
Diff not rendered.
Binary file removed crawl-ref/source/dat/tiles/title_psiweapon_kiku.png
Diff not rendered.
Diff not rendered.
Binary file removed crawl-ref/source/dat/tiles/title_sastrei_chei.png
Diff not rendered.
Binary file removed crawl-ref/source/dat/tiles/title_shadyamish_octm.png
Diff not rendered.
Diff not rendered.
Diff not rendered.
5 changes: 5 additions & 0 deletions crawl-ref/source/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"name": "crawl",
"version": "0.0.1",
"private": "true"
}
26 changes: 26 additions & 0 deletions crawl-ref/source/web/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

public/crawl.*
13 changes: 13 additions & 0 deletions crawl-ref/source/web/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + TS</title>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>
Loading

0 comments on commit 57c45af

Please sign in to comment.