-
Notifications
You must be signed in to change notification settings - Fork 23
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
af37800
commit 5c5ff4d
Showing
9 changed files
with
95 additions
and
12 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,3 @@ | ||
|
||
# for godel-script build | ||
build --action_env=HOME |
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 |
---|---|---|
|
@@ -34,3 +34,9 @@ build/ | |
### VS Code ### | ||
.vscode/ | ||
.cloudide | ||
|
||
### Bazel ### | ||
bazel-bin | ||
bazel-CodeFuse-Query | ||
bazel-out | ||
bazel-testlogs |
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 @@ | ||
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") |
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,3 @@ | ||
# build directory | ||
build | ||
cmake-build |
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,41 @@ | ||
|
||
package( | ||
default_visibility = ["//visibility:public"] | ||
) | ||
|
||
filegroup( | ||
name = "godel-cmake-lists", | ||
srcs = [ | ||
"CMakeLists.txt" | ||
] | ||
) | ||
|
||
filegroup( | ||
name = "godel-frontend", | ||
srcs = glob(["godel-frontend/src/**/*"]), | ||
visibility = ["//visibility:public"] | ||
) | ||
|
||
filegroup( | ||
name = "godel-backend", | ||
srcs = glob(["godel-backend/**/*"]), | ||
visibility = ["//visibility:public"] | ||
) | ||
|
||
genrule( | ||
name = "godel-script-build", | ||
srcs = [ | ||
":godel-frontend", | ||
":godel-backend", | ||
":godel-cmake-lists" | ||
], | ||
outs = [ | ||
"godel" | ||
], | ||
cmd = """ | ||
cmake $(location //godel-script:godel-cmake-lists) | ||
make -j | ||
cp godel $(location godel) | ||
""", | ||
visibility = ["//visibility:public"] | ||
) |
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