Skip to content

Commit

Permalink
Windows support.
Browse files Browse the repository at this point in the history
  • Loading branch information
Breush committed Mar 26, 2022
1 parent d5f23eb commit 6ae6942
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
6 changes: 4 additions & 2 deletions ship.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@

FOLDER=releases/sloubi-chess-alpha-0.0.1/

jai src/first.jai
mkdir -p $FOLDER

jai src/first.jai -- release
cp bin/sloubi-chess $FOLDER/

mkdir -p $FOLDER/lib
cp lava/bindings/Shaderc/libshaderc_shared.so.1 $FOLDER/lib/
cp lava/bindings/Shaderc/libshaderc.so $FOLDER/lib/
cp lava/bindings/StbTrueType/libstbtruetype.so $FOLDER/lib/
cp lava/bindings/Xcb/libxcbglue.so $FOLDER/lib/

Expand Down
6 changes: 6 additions & 0 deletions src/first.jai
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,19 @@ String :: #import "String";
File.make_directory_if_it_does_not_exist("./bin");

workspace := Compiler.compiler_create_workspace("sloubi-chess");
arguments := Compiler.compiler_get_command_line_arguments();

options := Compiler.get_build_options();
options.output_executable_name = "sloubi-chess";
options.output_path = String.join(#filepath, "/../bin/");
options.optimization_level = .DEBUG;
options.text_output_flags = .OUTPUT_TIMING_INFO; // @note And not the linker lines.

if arguments.count > 0 && arguments[0] == "release" {
Basic.log("Building RELEASE.");
options.optimization_level = .RELEASE;
}

import_path: [..] string;
Basic.array_add(*import_path, "./lava/bindings");
Basic.array_add(*import_path, "./lava/modules");
Expand Down

0 comments on commit 6ae6942

Please sign in to comment.