-
-
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
ba544e2
commit 3f91156
Showing
11 changed files
with
38 additions
and
31 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 |
---|---|---|
@@ -1,3 +1,6 @@ | ||
**.exe** | ||
bin | ||
.zip | ||
.zip | ||
*.exe | ||
*.autofile | ||
/bin | ||
.vscode |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,8 +1,6 @@ | ||
::ASYNC | ||
::ASYNC | ||
####################### This is a comment ############################ | ||
- echo hello | ||
+ echo Hello world! | ||
- echo Bye | ||
+ notepad | ||
###################################################################### | ||
|
||
|
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
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,27 +1,33 @@ | ||
#constants variable | ||
# constants variable | ||
BIN=bin/auto.exe | ||
|
||
|
||
# icon resource | ||
ICO=resources/icon.rc | ||
RES=resources/resource.res | ||
|
||
# source files | ||
SRC=$(wildcard src/*.cpp) | ||
|
||
|
||
# compiling source file | ||
# compiling source files | ||
all: compile_icon compile_source | ||
|
||
# running executable | ||
run: | ||
run: $(BIN) | ||
$(BIN) | ||
|
||
compile_source: | ||
c++ -std=c++11 $(RES) -o $(BIN) -I include $(SRC) | ||
# compiling source files | ||
compile_source: $(BIN) | ||
|
||
$(BIN): $(SRC) | ||
c++ $(CXXFLAGS) $(LDFLAGS) $(RES) -o $@ $^ | ||
|
||
compile_icon: | ||
windres $(ICO) -O coff -o $(RES) | ||
# compiling icon resource | ||
compile_icon: $(RES) | ||
|
||
$(RES): $(ICO) | ||
windres $^ -O coff -o $@ | ||
|
||
# cleaning executable | ||
clean: | ||
del $(BIN) | ||
del $(BIN) $(RES) |
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 |
---|---|---|
@@ -1,10 +1,17 @@ | ||
/* | ||
* Copyright (c) 2023 | ||
* Copyright (c) 2023 | ||
* All rights reserved. | ||
*/ | ||
#include "lib.h" | ||
|
||
int main(int argc, char const **argv) { | ||
autoRunner(); | ||
int main(int, char const **argv) | ||
{ | ||
// if argv[1] is null then set sourceFile to default '.autofile' | ||
std::string sourceFile = ".autofile"; | ||
if (argv[1] != NULL) | ||
{ | ||
sourceFile = argv[1]; | ||
} | ||
autoRunner(sourceFile); | ||
return 0; | ||
} |