From 9b34105e80e269196b29732f72db4f345abd7b67 Mon Sep 17 00:00:00 2001 From: Meoweg Date: Sun, 15 Nov 2015 09:25:37 +0000 Subject: [PATCH] Embed files instead of preloading to support GitHub Pages --- CMakeLists.txt | 2 +- build | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 84a655b..de519a9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,7 +5,7 @@ set (CMAKE_RUNTIME_OUTPUT_DIRECTORY "build") project (Matabstrix) add_definitions ("-std=c++14 -Wall -Wextra") -set (CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} "--use-preload-plugins --preload-file data") +set (CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} "--embed-file data -s STB_IMAGE=1 -s TOTAL_MEMORY=67108864") file (GLOB_RECURSE sources "src/**.cpp" "examples/**.cpp") diff --git a/build b/build index 4ef6e86..bca6b67 160000 --- a/build +++ b/build @@ -1 +1 @@ -Subproject commit 4ef6e86dd37af8fed13d6b370a9ed4a4be9bd36e +Subproject commit bca6b67d90f75f7dfbd9dba75aaa3eadc61b9e9e