File tree 3 files changed +25
-2
lines changed
3 files changed +25
-2
lines changed Original file line number Diff line number Diff line change @@ -153,6 +153,12 @@ http_archive(
153
153
)
154
154
155
155
# TODO: Replace with hermetic build
156
+ new_local_repository (
157
+ name = "glib_local_archive" ,
158
+ build_file = "@//bazel:glib.BUILD" ,
159
+ path = "/usr/local/Cellar/glib/2.68.3" ,
160
+ )
161
+
156
162
new_local_repository (
157
163
name = "sdl_system" ,
158
164
build_file = "@//bazel:sdl.BUILD" ,
Original file line number Diff line number Diff line change @@ -244,3 +244,18 @@ cc_library(
244
244
visibility = ["//visibility:public"],
245
245
deps = [":charset"],
246
246
)
247
+
248
+ cc_library(
249
+ name = "glib_local",
250
+ srcs = ["lib/libglib-2.0.0.dylib"],
251
+ hdrs = glob([
252
+ "include/glib-2.0/**/*.h",
253
+ "lib/glib-2.0/**/*.h",
254
+ ]),
255
+ includes = [
256
+ "include/glib-2.0",
257
+ "lib/glib-2.0/include",
258
+ ],
259
+ linkopts = ["-liconv"],
260
+ visibility = ["//visibility:public"],
261
+ )
Original file line number Diff line number Diff line change @@ -91,9 +91,11 @@ cc_binary(
91
91
":picomodel" ,
92
92
"//third_party/md:md4" ,
93
93
"//third_party/md:md5" ,
94
- "@glib_archive//:glib" ,
95
94
"@jpeg_archive//:jpeg" ,
96
95
"@libxml_archive//:libxml" ,
97
96
"@png_archive//:png" ,
98
- ],
97
+ ] + select ({
98
+ "//:is_linux" : ["@glib_archive//:glib" ],
99
+ "//:is_macos" : ["@glib_local_archive//:glib_local" ],
100
+ }),
99
101
)
You can’t perform that action at this time.
0 commit comments