diff --git a/.gitignore b/.gitignore index 10a627a..f6badad 100644 --- a/.gitignore +++ b/.gitignore @@ -1,9 +1,9 @@ -main obj/ -rl/ +obj_web/ raylib/ emsdk/ build -main.html -main.js -main.wasm \ No newline at end of file +treender +treender.html +treender.js +treender.wasm \ No newline at end of file diff --git a/build.cpp b/build.cpp index 60864d6..13e655a 100644 --- a/build.cpp +++ b/build.cpp @@ -5,7 +5,7 @@ std::filesystem::path INC_DIR = "inc"; std::filesystem::path SRC_DIR = "src"; std::filesystem::path RAYLIB_DIR = "raylib"; std::filesystem::path EMSDK_DIR = "emsdk"; -std::filesystem::path BUILD_FILE = "main"; +std::filesystem::path BUILD_FILE = "treender"; bool web_build = false; bool build = false; @@ -227,6 +227,7 @@ int main(int argc, char const *argv[]) opt_flags = "-Os"; RAYINCLUDE.push_back("-DPLATFORM_WEB"); BUILD_FILE = BUILD_FILE.replace_extension(".html"); + OBJ_DIR = "obj_web"; } std::filesystem::create_directory(OBJ_DIR);