Skip to content

Commit 2a37e73

Browse files
committed
engine: embed media files
1 parent d83a077 commit 2a37e73

File tree

5 files changed

+12
-0
lines changed

5 files changed

+12
-0
lines changed

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1010,6 +1010,9 @@ if (NOT NACL)
10101010
Tests ${ENGINETESTLIST}
10111011
)
10121012
endif()
1013+
1014+
# Generate media include files.
1015+
daemon_embed_files("EngineMedia" "MEDIA" "BINARY" "engine-lib")
10131016
endif()
10141017

10151018
if (BUILD_CLIENT)

src.cmake

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,13 @@ else()
8686
include (${ENGINE_DIR}/renderer/src.cmake)
8787
endif()
8888

89+
set(MEDIA_EMBED_DIR ${ENGINE_DIR}/media)
90+
set(MEDIA_EMBED_LIST
91+
gfx/2d/bigchars.png
92+
scripts/engine.shader
93+
sound/null.wav
94+
)
95+
8996
set(GLSL_EMBED_DIR "${ENGINE_DIR}/renderer/glsl_source")
9097
set(GLSL_EMBED_LIST
9198
# Common shader libraries
@@ -167,6 +174,8 @@ set(SERVERLIST
167174
)
168175

169176
set(ENGINELIST
177+
${DAEMON_EMBEDDED_DIR}/EngineMedia.cpp
178+
${DAEMON_EMBEDDED_DIR}/EngineMedia.h
170179
${ENGINE_DIR}/framework/Application.cpp
171180
${ENGINE_DIR}/framework/Application.h
172181
${ENGINE_DIR}/framework/ApplicationInternals.h
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)