Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
I
IMGRender
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
IMGRender
Commits
52e774d1
Commit
52e774d1
authored
Jul 26, 2022
by
Linshizhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add theft to project
parent
1cc50886
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
23 additions
and
2 deletions
+23
-2
.gitmodules
.gitmodules
+3
-0
BUILD.theft
BUILDS/BUILD.theft
+7
-0
WORKSPACE.bazel
WORKSPACE.bazel
+5
-0
theft
external/theft
+1
-0
BUILD.bazel
tests/BUILD.bazel
+2
-2
check.cc
tests/check.cc
+5
-0
No files found.
.gitmodules
0 → 100644
View file @
52e774d1
[submodule "external/theft"]
path = external/theft
url = https://github.com/silentbicycle/theft.git
BUILDS/BUILD.theft
0 → 100644
View file @
52e774d1
cc_library(
name = "theft",
srcs = glob(["src/*.c"]),
hdrs = glob(["inc/*.h", "src/*.h"]),
copts = ["-Iexternal/theft/inc", "-ltheft"],
visibility = ["//visibility:public"],
)
WORKSPACE.bazel
View file @
52e774d1
new_local_repository(
name = "theft",
path = "./external/theft",
build_file = "BUILDS/BUILD.theft"
)
theft
@
62e093d9
Subproject commit 62e093d9e33bb4218736dce2535eedda2904b8ba
tests/BUILD.bazel
View file @
52e774d1
# Needed for each target whose artifacts are to be checked.
cc_test(
name = "check",
srcs = ["
:
check.cc"],
srcs = ["check.cc"],
args = ["/home"],
deps = ["//src:render"]
deps = ["//src:render"
, "@theft//:theft",
]
)
tests/check.cc
View file @
52e774d1
#include "src/canvas.h"
extern
"C"
{
#include "external/theft/inc/theft.h"
}
int
main
(
void
)
{
theft_seed_of_time
();
return
say
();
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment