-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6c00101
commit 90ac42c
Showing
4 changed files
with
26 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
Empty file.