Commit 52e774d1 authored by Linshizhi's avatar Linshizhi

Add theft to project

parent 1cc50886
[submodule "external/theft"]
path = external/theft
url = https://github.com/silentbicycle/theft.git
cc_library(
name = "theft",
srcs = glob(["src/*.c"]),
hdrs = glob(["inc/*.h", "src/*.h"]),
copts = ["-Iexternal/theft/inc", "-ltheft"],
visibility = ["//visibility:public"],
)
new_local_repository(
name = "theft",
path = "./external/theft",
build_file = "BUILDS/BUILD.theft"
)
Subproject commit 62e093d9e33bb4218736dce2535eedda2904b8ba
# Needed for each target whose artifacts are to be checked. # Needed for each target whose artifacts are to be checked.
cc_test( cc_test(
name = "check", name = "check",
srcs = [":check.cc"], srcs = ["check.cc"],
args = ["/home"], args = ["/home"],
deps = ["//src:render"] deps = ["//src:render", "@theft//:theft",]
) )
#include "src/canvas.h" #include "src/canvas.h"
extern "C" {
#include "external/theft/inc/theft.h"
}
int main(void) { int main(void) {
theft_seed_of_time();
return say(); return say();
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment