Skip to content

Commit

Permalink
Add builds for linux and windows
Browse files Browse the repository at this point in the history
  • Loading branch information
VityaSchel committed Sep 30, 2024
1 parent 6c00101 commit 90ac42c
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,8 @@ merger-app/x64/Debug/*
!merger-app/x64/Debug/.gitkeep

splitter/build/*
!splitter/build/.gitkeep
!splitter/build/.gitkeep
splitter/build-windows/*
!splitter/build-windows/.gitkeep
splitter/build-linux/*
!splitter/build-linux/.gitkeep
21 changes: 21 additions & 0 deletions splitter/BUILD.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# How to compile for each platform on macos

1. Install `mingw-w64` and `FiloSottile/musl-cross/musl-cross` via homebrew
2. Go to splitter directory
3. Run these command:

```sh
rm -rf build build-windows build-linux
touch build/.gitkeep && touch build-windows/.gitkeep && touch build-linux/.gitkeep
mkdir build && cd $_
cmake ..
make
cd ..
mkdir build-windows && cd $_
cmake .. -DCMAKE_SYSTEM_NAME=Windows -DCMAKE_RC_COMPILER=x86_64-w64-mingw32-windres -DCMAKE_C_COMPILER=x86_64-w64-mingw32-gcc -DCMAKE_CXX_COMPILER=x86_64-w64-mingw32-g++
make
cd ..
mkdir build-linux && cd $_
cmake .. -DCMAKE_SYSTEM_NAME=Linux -DCMAKE_C_COMPILER=x86_64-linux-musl-gcc -DCMAKE_CXX_COMPILER=x86_64-linux-musl-g++
make
```
Empty file added splitter/build-linux/.gitkeep
Empty file.
Empty file added splitter/build-windows/.gitkeep
Empty file.

0 comments on commit 90ac42c

Please sign in to comment.