srctree

Robin Linden parent 16b8bfa4 acb26cd2
deps: Drop glew

inlinesplit
WORKSPACE added: 2, removed: 44, total 0
@@ -125,14 +125,6 @@ local_repository(
path = "third_party/glad",
)
 
http_archive(
name = "glew", # BSD-3-Clause
build_file = "//third_party:glew.BUILD",
sha256 = "d4fc82893cfb00109578d0a1a2337fb8ca335b3ceccf97b97e5cc7f08e4353e1",
strip_prefix = "glew-2.2.0",
url = "https://github.com/nigels-com/glew/releases/download/glew-2.2.0/glew-2.2.0.tgz",
)
 
# https://github.com/unicode-org/icu
http_archive(
name = "icu", # Unicode-DFS-2016
 
ev/null added: 2, removed: 44, total 0
@@ -1,34 +0,0 @@
load("@rules_cc//cc:defs.bzl", "cc_binary", "cc_library")
 
cc_library(
name = "glew",
srcs = ["src/glew.c"],
hdrs = glob(["include/**/*.h"]),
defines = [
"GLEW_NO_GLU",
"GLEW_STATIC",
],
includes = ["include/"],
linkopts = select({
"@platforms//os:linux": [
"-lGL",
"-lX11",
],
"@platforms//os:windows": ["-DEFAULTLIB:opengl32"],
}),
strip_include_prefix = "include",
visibility = ["//visibility:public"],
)
 
cc_binary(
name = "glewinfo",
srcs = ["src/glewinfo.c"],
linkopts = select({
"@platforms//os:linux": [],
"@platforms//os:windows": [
"-DEFAULTLIB:Gdi32.lib",
"-DEFAULTLIB:User32.lib",
],
}),
deps = [":glew"],
)