-
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.
Merge pull request #36 from TytanRock/macos-build
Macos build. Tested this with actual hardware communicating with a raspberry pi. All basic actions work, including: - Change ID - Change Name - Firmware Update - Blink - Self-test Snapshot
- Loading branch information
Showing
6 changed files
with
56 additions
and
11 deletions.
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
Binary file not shown.
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 |
---|---|---|
@@ -1,6 +1,11 @@ | ||
#!/bin/sh | ||
|
||
case "$(uname -s)" in | ||
Darwin*) arch=macos;; | ||
Linux*) arch="$(dpkg --print-architecture)" | ||
esac | ||
|
||
rm -rf build | ||
meson setup -Darchitecture=$(dpkg --print-architecture) build | ||
meson setup -Darchitecture=${arch} build | ||
cd build | ||
ninja | ||
ninja $1 |
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 |
---|---|---|
@@ -1,8 +1,17 @@ | ||
#!/bin/sh | ||
|
||
# If we're not root, prompt for root to install everything | ||
[ "$(whoami)" != "root" ] && exec sudo -- "$0" "$@" | ||
|
||
apt-get update | ||
apt-get install -y libcurl4-openssl-dev libgtk-3-dev libssh-dev build-essential meson ninja-build | ||
|
||
case "$(uname -s)" in | ||
Darwin*) | ||
brew update | ||
brew install pkgconfig cmake python3 curl libssh gtk+3 | ||
pip3 install meson ninja | ||
;; | ||
Linux*) | ||
# If we're not root, prompt for root to install everything | ||
[ "$(whoami)" != "root" ] && exec sudo -- "$0" "$@" | ||
apt-get update | ||
apt-get install -y libcurl4-openssl-dev libgtk-3-dev libssh-dev build-essential meson ninja-build | ||
;; | ||
*) | ||
echo "Unknown Architecture, cannot configure" | ||
esac |
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