-
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.
chore: revamp dx
- Loading branch information
Showing
6 changed files
with
55 additions
and
13 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
CMAKE = cmake | ||
CMAKE_FLAGS = -DCMAKE_BUILD_TYPE=Debug | ||
|
||
all: configure build | ||
|
||
configure: | ||
$(CMAKE) $(CMAKE_FLAGS) -B dist -G "Xcode" | ||
|
||
build: configure | ||
$(CMAKE) --build dist --config Debug | ||
|
||
test: build | ||
./test.sh |
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,29 @@ | ||
# tray-agent | ||
|
||
This a tray based app for macOS build with CMake outside of Xcode. | ||
|
||
> Xcode is still used for building the project but without storyboard. | ||
## Requirements | ||
|
||
- CMake | ||
- Xcode | ||
|
||
## Build from sources | ||
|
||
``` | ||
make | ||
``` | ||
|
||
### Test app | ||
|
||
``` | ||
make test | ||
``` | ||
|
||
|
||
### Open app | ||
|
||
``` | ||
./open.sh | ||
``` |
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 @@ | ||
open dist/Debug/TrayAgent.app |
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,12 @@ | ||
open dist/Debug/TrayAgent.app | ||
|
||
if [ $? -eq 0 ]; then | ||
echo "TrayAgent.app is running" | ||
else | ||
echo "TrayAgent.app is not running" | ||
exit 1 | ||
fi | ||
|
||
killall TrayAgent | ||
|
||
|