Bug 1839317 - Add Firefox Snap build of all branches using upstream toolings r=releng...
[gecko.git] / third_party / jpeg-xl / WORKSPACE
bloba7f03edf77dae4d9df14667b4105c0865955c076
1 load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
2 load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository", "new_git_repository")
4 http_archive(
5     name = "bazel_skylib",
6     sha256 = "74d544d96f4a5bb630d465ca8bbcfe231e3594e5aae57e1edbf17a6eb3ca2506",
7     urls = [
8         "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.3.0/bazel-skylib-1.3.0.tar.gz",
9         "https://github.com/bazelbuild/bazel-skylib/releases/download/1.3.0/bazel-skylib-1.3.0.tar.gz",
10     ],
13 load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")
15 bazel_skylib_workspace()
17 local_repository(
18     name = "highway",
19     path = "third_party/highway",
22 local_repository(
23     name = "brotli",
24     path = "third_party/brotli",
27 new_local_repository(
28     name = "googletest",
29     build_file = "third_party/googletest/BUILD.bazel",
30     path = "third_party/googletest",
33 new_local_repository(
34     name = "skcms",
35     build_file_content = """
36 cc_library(
37     name = "skcms",
38     srcs = [
39         "skcms.cc",
40         "skcms_internal.h",
41         "src/Transform_inl.h",
42     ],
43     hdrs = ["skcms.h"],
44     visibility = ["//visibility:public"],
46     """,
47     path = "third_party/skcms",
50 new_git_repository(
51     name = "zlib",
52     build_file_content = """
53 cc_library(
54     name = "zlib",
55     defines = ["HAVE_UNISTD_H"],
56     srcs = [
57         "adler32.c",
58         "compress.c",
59         "crc32.c",
60         "crc32.h",
61         "deflate.c",
62         "deflate.h",
63         "gzclose.c",
64         "gzguts.h",
65         "gzlib.c",
66         "gzread.c",
67         "gzwrite.c",
68         "infback.c",
69         "inffast.c",
70         "inffast.h",
71         "inffixed.h",
72         "inflate.c",
73         "inflate.h",
74         "inftrees.c",
75         "inftrees.h",
76         "trees.c",
77         "trees.h",
78         "uncompr.c",
79         "zconf.h",
80         "zutil.c",
81         "zutil.h",
82     ],
83     hdrs = ["zlib.h"],
84     includes = ["."],
85     visibility = ["//visibility:public"],
87     """,
88     remote = "https://github.com/madler/zlib",
89     tag = "v1.2.13",
92 new_local_repository(
93     name = "png",
94     build_file_content = """
95 genrule(
96     name = "pnglibconf",
97     srcs = ["scripts/pnglibconf.h.prebuilt"],
98     outs = ["pnglibconf.h"],
99     cmd = "cp -f $< $@",
101 cc_library(
102     name = "png",
103     srcs = [
104         "png.c",
105         "pngconf.h",
106         "pngdebug.h",
107         "pngerror.c",
108         "pngget.c",
109         "pnginfo.h",
110         ":pnglibconf",
111         "pngmem.c",
112         "pngpread.c",
113         "pngpriv.h",
114         "pngread.c",
115         "pngrio.c",
116         "pngrtran.c",
117         "pngrutil.c",
118         "pngset.c",
119         "pngstruct.h",
120         "pngtrans.c",
121         "pngwio.c",
122         "pngwrite.c",
123         "pngwtran.c",
124         "pngwutil.c",
125     ],
126     hdrs = ["png.h"],
127     includes = ["."],
128     linkopts = ["-lm"],
129     visibility = ["//visibility:public"],
130     deps = ["@zlib//:zlib"],
132     """,
133     path = "third_party/libpng",
136 new_git_repository(
137     name = "libjpeg_turbo",
138     build_file_content = """
139 load("@bazel_skylib//rules:expand_template.bzl", "expand_template")
140 SUBSTITUTIONS = {
141     "@BUILD@" : "20230208",
142     "@CMAKE_PROJECT_NAME@" : "libjpeg-turbo",
143     "@COPYRIGHT_YEAR@" : "2023",
144     "@INLINE@" : "__inline__",
145     "@JPEG_LIB_VERSION@" : "62",
146     "@LIBJPEG_TURBO_VERSION_NUMBER@" : "2001091",
147     "@SIZE_T@" : "8",
148     "@THREAD_LOCAL@" : "__thread",
149     "@VERSION@" : "2.1.91",
151 YES_DEFINES = [
152     "C_ARITH_CODING_SUPPORTED", "D_ARITH_CODING_SUPPORTED",
153     "HAVE_BUILTIN_CTZL"
155 NO_DEFINES = [
156     "WITH_SIMD", "RIGHT_SHIFT_IS_UNSIGNED", "HAVE_INTRIN_H"
158 SUBSTITUTIONS.update({
159     "#cmakedefine " + key : "#define " + key for key in YES_DEFINES
161 SUBSTITUTIONS.update({
162     "#cmakedefine " + key : "// #define " + key for key in NO_DEFINES
165     expand_template(
166         name = "expand_" + src,
167         template = src + ".in",
168         out = src,
169         substitutions = SUBSTITUTIONS,
170     ) for src in ["jconfig.h", "jconfigint.h", "jversion.h"]
172 JPEG16_SOURCES = [
173     "jccolor.c",
174     "jcdiffct.c",
175     "jclossls.c",
176     "jcmainct.c",
177     "jcprepct.c",
178     "jcsample.c",
179     "jdcolor.c",
180     "jddiffct.c",
181     "jdlossls.c",
182     "jdmainct.c",
183     "jdmerge.c",
184     "jdpostct.c",
185     "jdsample.c",
186     "jquant1.c",
187     "jquant2.c",
188     "jutils.c",
190 JPEG12_SOURCES = JPEG16_SOURCES + [
191     "jccoefct.c",
192     "jcdctmgr.c",
193     "jdcoefct.c",
194     "jddctmgr.c",
195     "jfdctfst.c",
196     "jfdctint.c",
197     "jidctflt.c",
198     "jidctfst.c",
199     "jidctint.c",
200     "jidctred.c",
202 JPEG_SOURCES = JPEG12_SOURCES + [
203     "jaricom.c",
204     "jcapimin.c",
205     "jcapistd.c",
206     "jcarith.c",
207     "jchuff.c",
208     "jcicc.c",
209     "jcinit.c",
210     "jclhuff.c",
211     "jcmarker.c",
212     "jcmaster.c",
213     "jcomapi.c",
214     "jcparam.c",
215     "jcphuff.c",
216     "jdapimin.c",
217     "jdapistd.c",
218     "jdarith.c",
219     "jdatadst.c",
220     "jdatasrc.c",
221     "jdhuff.c",
222     "jdicc.c",
223     "jdinput.c",
224     "jdlhuff.c",
225     "jdmarker.c",
226     "jdmaster.c",
227     "jdphuff.c",
228     "jdtrans.c",
229     "jerror.c",
230     "jfdctflt.c",
231     "jmemmgr.c",
232     "jmemnobs.c",
234 JPEG_HEADERS = [
235     "jccolext.c",
236     "jchuff.h",
237     "jcmaster.h",
238     "jconfig.h",
239     "jconfigint.h",
240     "jdcoefct.h",
241     "jdcol565.c",
242     "jdcolext.c",
243     "jdct.h",
244     "jdhuff.h",
245     "jdmainct.h",
246     "jdmaster.h",
247     "jdmerge.h",
248     "jdmrg565.c",
249     "jdmrgext.c",
250     "jdsample.h",
251     "jerror.h",
252     "jinclude.h",
253     "jlossls.h",
254     "jmemsys.h",
255     "jmorecfg.h",
256     "jpeg_nbits_table.h",
257     "jpegapicomp.h",
258     "jpegint.h",
259     "jpeglib.h",
260     "jsamplecomp.h",
261     "jsimd.h",
262     "jsimddct.h",
263     "jstdhuff.c",
264     "jversion.h",
266 cc_library(
267     name = "jpeg16",
268     srcs = JPEG16_SOURCES,
269     hdrs = JPEG_HEADERS,
270     local_defines = ["BITS_IN_JSAMPLE=16"],
271     visibility = ["//visibility:public"],
273 cc_library(
274     name = "jpeg12",
275     srcs = JPEG12_SOURCES,
276     hdrs = JPEG_HEADERS,
277     local_defines = ["BITS_IN_JSAMPLE=12"],
278     visibility = ["//visibility:public"],
280 cc_library(
281     name = "jpeg",
282     srcs = JPEG_SOURCES,
283     hdrs = JPEG_HEADERS,
284     deps = [":jpeg16", ":jpeg12"],
285     includes = ["."],
286     visibility = ["//visibility:public"],
288     """,
289     remote = "https://github.com/libjpeg-turbo/libjpeg-turbo.git",
290     tag = "2.1.91",
293 http_archive(
294     name = "gif",
295     build_file_content = """
296 cc_library(
297     name = "gif",
298     srcs = [
299         "dgif_lib.c", "egif_lib.c", "gifalloc.c", "gif_err.c", "gif_font.c",
300         "gif_hash.c", "openbsd-reallocarray.c", "gif_hash.h",
301         "gif_lib_private.h"
302     ],
303     hdrs = ["gif_lib.h"],
304     includes = ["."],
305     visibility = ["//visibility:public"],
307     """,
308     sha256 = "31da5562f44c5f15d63340a09a4fd62b48c45620cd302f77a6d9acf0077879bd",
309     strip_prefix = "giflib-5.2.1",
310     url = "https://netcologne.dl.sourceforge.net/project/giflib/giflib-5.2.1.tar.gz",
313 new_git_repository(
314     name = "imath",
315     build_file_content = """
316 load("@bazel_skylib//rules:expand_template.bzl", "expand_template")
317 SUBSTITUTIONS = {
318     "@IMATH_INTERNAL_NAMESPACE@": "Imath_3_1",
319     "@IMATH_LIB_VERSION@": "3.1.4",
320     "@IMATH_NAMESPACE_CUSTOM@": "0",
321     "@IMATH_NAMESPACE@": "Imath",
322     "@IMATH_PACKAGE_NAME@": "Imath 3.1.4",
323     "@IMATH_VERSION_MAJOR@": "3",
324     "@IMATH_VERSION_MINOR@": "1",
325     "@IMATH_VERSION_PATCH@": "4",
326     "@IMATH_VERSION@": "3.1.4",
328 YES_DEFINES = [
329     "IMATH_HALF_USE_LOOKUP_TABLE", "IMATH_ENABLE_API_VISIBILITY",
331 NO_DEFINES = [
332     "IMATH_HAVE_LARGE_STACK",
334 ONE_DEFINES = [
335     "IMATH_USE_NOEXCEPT",
337 SUBSTITUTIONS.update({
338     "#cmakedefine " + key : "#define " + key for key in YES_DEFINES
340 SUBSTITUTIONS.update({
341     "#cmakedefine " + key : "// #define " + key for key in NO_DEFINES
343 SUBSTITUTIONS.update({
344     "#cmakedefine01 " + key : "#define " + key + " 1" for key in ONE_DEFINES
346 expand_template(
347     name = "expand_ImathConfig",
348     template = "config/ImathConfig.h.in",
349     out = "src/Imath/ImathConfig.h",
350     substitutions = SUBSTITUTIONS,
352 cc_library(
353     name = "Imath",
354     srcs = [
355         "src/Imath/ImathColorAlgo.cpp",
356         ":src/Imath/ImathConfig.h",
357         "src/Imath/ImathFun.cpp",
358         "src/Imath/ImathMatrixAlgo.cpp",
359         "src/Imath/ImathRandom.cpp",
360         "src/Imath/half.cpp",
361         "src/Imath/toFloat.h",
362     ],
363     hdrs = [
364         "src/Imath/ImathBox.h",
365         "src/Imath/ImathBoxAlgo.h",
366         "src/Imath/ImathColor.h",
367         "src/Imath/ImathColorAlgo.h",
368         "src/Imath/ImathEuler.h",
369         "src/Imath/ImathExport.h",
370         "src/Imath/ImathForward.h",
371         "src/Imath/ImathFrame.h",
372         "src/Imath/ImathFrustum.h",
373         "src/Imath/ImathFrustumTest.h",
374         "src/Imath/ImathFun.h",
375         "src/Imath/ImathGL.h",
376         "src/Imath/ImathGLU.h",
377         "src/Imath/ImathInt64.h",
378         "src/Imath/ImathInterval.h",
379         "src/Imath/ImathLine.h",
380         "src/Imath/ImathLineAlgo.h",
381         "src/Imath/ImathMath.h",
382         "src/Imath/ImathMatrix.h",
383         "src/Imath/ImathMatrixAlgo.h",
384         "src/Imath/ImathNamespace.h",
385         "src/Imath/ImathPlane.h",
386         "src/Imath/ImathPlatform.h",
387         "src/Imath/ImathQuat.h",
388         "src/Imath/ImathRandom.h",
389         "src/Imath/ImathRoots.h",
390         "src/Imath/ImathShear.h",
391         "src/Imath/ImathSphere.h",
392         "src/Imath/ImathTypeTraits.h",
393         "src/Imath/ImathVec.h",
394         "src/Imath/ImathVecAlgo.h",
395         "src/Imath/half.h",
396         "src/Imath/halfFunction.h",
397         "src/Imath/halfLimits.h",
398     ],
399     includes = ["src/Imath"],
400     visibility = ["//visibility:public"],
402 """,
403     remote = "https://github.com/AcademySoftwareFoundation/imath",
404     tag = "v3.1.5",
407 new_git_repository(
408     name = "openexr",
409     build_file_content = """
410 load("@bazel_skylib//rules:expand_template.bzl", "expand_template")
411 SUBSTITUTIONS = {
412     "@IEX_INTERNAL_NAMESPACE@": "Iex_3_0",
413     "@IEX_NAMESPACE_CUSTOM@": "0",
414     "@IEX_NAMESPACE@": "Iex",
415     "@ILMTHREAD_INTERNAL_NAMESPACE@": "IlmThread_3_0",
416     "@ILMTHREAD_NAMESPACE_CUSTOM@": "0",
417     "@ILMTHREAD_NAMESPACE@": "IlmThread",
418     "@OPENEXR_IMF_NAMESPACE@": "Imf",
419     "@OPENEXR_INTERNAL_IMF_NAMESPACE@": "Imf_3_0",
420     "@OPENEXR_LIB_VERSION@": "3.0.4",
421     "@OPENEXR_NAMESPACE_CUSTOM@": "0",
422     "@OPENEXR_PACKAGE_NAME@": "OpenEXR 3.0.4",
423     "@OPENEXR_VERSION_EXTRA@": "",
424     "@OPENEXR_VERSION_MAJOR@": "3",
425     "@OPENEXR_VERSION_MINOR@": "0",
426     "@OPENEXR_VERSION_PATCH@": "4",
427     "@OPENEXR_VERSION@": "3.0.4",
429 YES_DEFINES = [
430     "OPENEXR_ENABLE_API_VISIBILITY", "OPENEXR_IMF_HAVE_COMPLETE_IOMANIP",
431     "OPENEXR_HAVE_LARGE_STACK",
433 NO_DEFINES = [
434     "HAVE_UCONTEXT_H", "IEX_HAVE_CONTROL_REGISTER_SUPPORT",
435     "IEX_HAVE_SIGCONTEXT_CONTROL_REGISTER_SUPPORT", "OPENEXR_IMF_HAVE_DARWIN",
436     "OPENEXR_IMF_HAVE_GCC_INLINE_ASM_AVX", "OPENEXR_IMF_HAVE_LINUX_PROCFS",
437     "OPENEXR_IMF_HAVE_SYSCONF_NPROCESSORS_ONLN",
439 ONE_DEFINES = [
440     "ILMTHREAD_THREADING_ENABLED",
442 ZERO_DEFINES = [
443     "ILMTHREAD_HAVE_POSIX_SEMAPHORES",
445 SUBSTITUTIONS.update({
446     "#cmakedefine " + key : "#define " + key for key in YES_DEFINES
448 SUBSTITUTIONS.update({
449     "#cmakedefine " + key : "// #define " + key for key in NO_DEFINES
451 SUBSTITUTIONS.update({
452     "#cmakedefine01 " + key : "#define " + key + " 1" for key in ONE_DEFINES
454 SUBSTITUTIONS.update({
455     "#cmakedefine01 " + key : "#define " + key + " 0" for key in ZERO_DEFINES
458     expand_template(
459         name = "expand_" + item,
460         template = "cmake/" + item + ".h.in",
461         out = "src/lib/Iex/" + item + ".h",
462         substitutions = SUBSTITUTIONS,
463     ) for item in ["IexConfig", "IexConfigInternal"]
466 expand_template(
467         name = "expand_" + item,
468         template = "cmake/" + item + ".h.in",
469         out = "src/lib/IlmThread/" + item + ".h",
470         substitutions = SUBSTITUTIONS,
471     ) for item in ["IlmThreadConfig"]
474 expand_template(
475         name = "expand_" + item,
476         template = "cmake/" + item + ".h.in",
477         out = "src/lib/OpenEXR/" + item + ".h",
478         substitutions = SUBSTITUTIONS,
479     ) for item in ["OpenEXRConfig", "OpenEXRConfigInternal"]
481 cc_library(
482     name = "Iex",
483     srcs = [
484         "src/lib/Iex/IexBaseExc.cpp",
485         "src/lib/Iex/IexMathFloatExc.cpp",
486         "src/lib/Iex/IexMathFpu.cpp",
487         "src/lib/Iex/IexThrowErrnoExc.cpp",
488     ],
489     hdrs = [
490         "src/lib/Iex/Iex.h",
491         "src/lib/Iex/IexBaseExc.h",
492         ":src/lib/Iex/IexConfig.h",
493         ":src/lib/Iex/IexConfigInternal.h",
494         "src/lib/Iex/IexErrnoExc.h",
495         "src/lib/Iex/IexExport.h",
496         "src/lib/Iex/IexForward.h",
497         "src/lib/Iex/IexMacros.h",
498         "src/lib/Iex/IexMathExc.h",
499         "src/lib/Iex/IexMathFloatExc.h",
500         "src/lib/Iex/IexMathFpu.h",
501         "src/lib/Iex/IexMathIeeeExc.h",
502         "src/lib/Iex/IexNamespace.h",
503         "src/lib/Iex/IexThrowErrnoExc.h",
504         ":src/lib/OpenEXR/OpenEXRConfig.h",
505     ],
506     includes = [
507         "src/lib/Iex",
508         "src/lib/OpenEXR",
509     ],
512 cc_library(
513     name = "IlmThread",
514     srcs = [
515         "src/lib/IlmThread/IlmThread.cpp",
516         "src/lib/IlmThread/IlmThreadPool.cpp",
517         "src/lib/IlmThread/IlmThreadSemaphore.cpp",
518         "src/lib/IlmThread/IlmThreadSemaphoreOSX.cpp",
519         "src/lib/IlmThread/IlmThreadSemaphorePosix.cpp",
520         "src/lib/IlmThread/IlmThreadSemaphorePosixCompat.cpp",
521         "src/lib/IlmThread/IlmThreadSemaphoreWin32.cpp",
522     ],
523     hdrs = [
524         "src/lib/IlmThread/IlmThread.h",
525         ":src/lib/IlmThread/IlmThreadConfig.h",
526         "src/lib/IlmThread/IlmThreadExport.h",
527         "src/lib/IlmThread/IlmThreadForward.h",
528         "src/lib/IlmThread/IlmThreadMutex.h",
529         "src/lib/IlmThread/IlmThreadNamespace.h",
530         "src/lib/IlmThread/IlmThreadPool.h",
531         "src/lib/IlmThread/IlmThreadSemaphore.h",
532     ],
533     includes = ["src/lib/IlmThread"],
534     deps = [":Iex"],
536 cc_library(
537     name = "OpenEXR",
538     srcs = [
539         "src/lib/OpenEXR/ImfAcesFile.cpp",
540         "src/lib/OpenEXR/ImfAttribute.cpp",
541         "src/lib/OpenEXR/ImfB44Compressor.cpp",
542         "src/lib/OpenEXR/ImfBoxAttribute.cpp",
543         "src/lib/OpenEXR/ImfCRgbaFile.cpp",
544         "src/lib/OpenEXR/ImfChannelList.cpp",
545         "src/lib/OpenEXR/ImfChannelListAttribute.cpp",
546         "src/lib/OpenEXR/ImfChromaticities.cpp",
547         "src/lib/OpenEXR/ImfChromaticitiesAttribute.cpp",
548         "src/lib/OpenEXR/ImfCompositeDeepScanLine.cpp",
549         "src/lib/OpenEXR/ImfCompressionAttribute.cpp",
550         "src/lib/OpenEXR/ImfCompressor.cpp",
551         "src/lib/OpenEXR/ImfConvert.cpp",
552         "src/lib/OpenEXR/ImfDeepCompositing.cpp",
553         "src/lib/OpenEXR/ImfDeepFrameBuffer.cpp",
554         "src/lib/OpenEXR/ImfDeepImageStateAttribute.cpp",
555         "src/lib/OpenEXR/ImfDeepScanLineInputFile.cpp",
556         "src/lib/OpenEXR/ImfDeepScanLineInputPart.cpp",
557         "src/lib/OpenEXR/ImfDeepScanLineOutputFile.cpp",
558         "src/lib/OpenEXR/ImfDeepScanLineOutputPart.cpp",
559         "src/lib/OpenEXR/ImfDeepTiledInputFile.cpp",
560         "src/lib/OpenEXR/ImfDeepTiledInputPart.cpp",
561         "src/lib/OpenEXR/ImfDeepTiledOutputFile.cpp",
562         "src/lib/OpenEXR/ImfDeepTiledOutputPart.cpp",
563         "src/lib/OpenEXR/ImfDoubleAttribute.cpp",
564         "src/lib/OpenEXR/ImfDwaCompressor.cpp",
565         "src/lib/OpenEXR/ImfEnvmap.cpp",
566         "src/lib/OpenEXR/ImfEnvmapAttribute.cpp",
567         "src/lib/OpenEXR/ImfFastHuf.cpp",
568         "src/lib/OpenEXR/ImfFloatAttribute.cpp",
569         "src/lib/OpenEXR/ImfFloatVectorAttribute.cpp",
570         "src/lib/OpenEXR/ImfFrameBuffer.cpp",
571         "src/lib/OpenEXR/ImfFramesPerSecond.cpp",
572         "src/lib/OpenEXR/ImfGenericInputFile.cpp",
573         "src/lib/OpenEXR/ImfGenericOutputFile.cpp",
574         "src/lib/OpenEXR/ImfHeader.cpp",
575         "src/lib/OpenEXR/ImfHuf.cpp",
576         "src/lib/OpenEXR/ImfIDManifest.cpp",
577         "src/lib/OpenEXR/ImfIDManifestAttribute.cpp",
578         "src/lib/OpenEXR/ImfIO.cpp",
579         "src/lib/OpenEXR/ImfInputFile.cpp",
580         "src/lib/OpenEXR/ImfInputPart.cpp",
581         "src/lib/OpenEXR/ImfInputPartData.cpp",
582         "src/lib/OpenEXR/ImfIntAttribute.cpp",
583         "src/lib/OpenEXR/ImfKeyCode.cpp",
584         "src/lib/OpenEXR/ImfKeyCodeAttribute.cpp",
585         "src/lib/OpenEXR/ImfLineOrderAttribute.cpp",
586         "src/lib/OpenEXR/ImfLut.cpp",
587         "src/lib/OpenEXR/ImfMatrixAttribute.cpp",
588         "src/lib/OpenEXR/ImfMisc.cpp",
589         "src/lib/OpenEXR/ImfMultiPartInputFile.cpp",
590         "src/lib/OpenEXR/ImfMultiPartOutputFile.cpp",
591         "src/lib/OpenEXR/ImfMultiView.cpp",
592         "src/lib/OpenEXR/ImfOpaqueAttribute.cpp",
593         "src/lib/OpenEXR/ImfOutputFile.cpp",
594         "src/lib/OpenEXR/ImfOutputPart.cpp",
595         "src/lib/OpenEXR/ImfOutputPartData.cpp",
596         "src/lib/OpenEXR/ImfPartType.cpp",
597         "src/lib/OpenEXR/ImfPizCompressor.cpp",
598         "src/lib/OpenEXR/ImfPreviewImage.cpp",
599         "src/lib/OpenEXR/ImfPreviewImageAttribute.cpp",
600         "src/lib/OpenEXR/ImfPxr24Compressor.cpp",
601         "src/lib/OpenEXR/ImfRational.cpp",
602         "src/lib/OpenEXR/ImfRationalAttribute.cpp",
603         "src/lib/OpenEXR/ImfRgbaFile.cpp",
604         "src/lib/OpenEXR/ImfRgbaYca.cpp",
605         "src/lib/OpenEXR/ImfRle.cpp",
606         "src/lib/OpenEXR/ImfRleCompressor.cpp",
607         "src/lib/OpenEXR/ImfScanLineInputFile.cpp",
608         "src/lib/OpenEXR/ImfStandardAttributes.cpp",
609         "src/lib/OpenEXR/ImfStdIO.cpp",
610         "src/lib/OpenEXR/ImfStringAttribute.cpp",
611         "src/lib/OpenEXR/ImfStringVectorAttribute.cpp",
612         "src/lib/OpenEXR/ImfSystemSpecific.cpp",
613         "src/lib/OpenEXR/ImfTestFile.cpp",
614         "src/lib/OpenEXR/ImfThreading.cpp",
615         "src/lib/OpenEXR/ImfTileDescriptionAttribute.cpp",
616         "src/lib/OpenEXR/ImfTileOffsets.cpp",
617         "src/lib/OpenEXR/ImfTiledInputFile.cpp",
618         "src/lib/OpenEXR/ImfTiledInputPart.cpp",
619         "src/lib/OpenEXR/ImfTiledMisc.cpp",
620         "src/lib/OpenEXR/ImfTiledOutputFile.cpp",
621         "src/lib/OpenEXR/ImfTiledOutputPart.cpp",
622         "src/lib/OpenEXR/ImfTiledRgbaFile.cpp",
623         "src/lib/OpenEXR/ImfTimeCode.cpp",
624         "src/lib/OpenEXR/ImfTimeCodeAttribute.cpp",
625         "src/lib/OpenEXR/ImfVecAttribute.cpp",
626         "src/lib/OpenEXR/ImfVersion.cpp",
627         "src/lib/OpenEXR/ImfWav.cpp",
628         "src/lib/OpenEXR/ImfZip.cpp",
629         "src/lib/OpenEXR/ImfZipCompressor.cpp",
630         "src/lib/OpenEXR/b44ExpLogTable.h",
631         "src/lib/OpenEXR/dwaLookups.h",
632     ],
633     hdrs = [
634         ":src/lib/Iex/IexConfig.h",
635         ":src/lib/Iex/IexConfigInternal.h",
636         ":src/lib/IlmThread/IlmThreadConfig.h",
637         "src/lib/OpenEXR/ImfAcesFile.h",
638         "src/lib/OpenEXR/ImfArray.h",
639         "src/lib/OpenEXR/ImfAttribute.h",
640         "src/lib/OpenEXR/ImfAutoArray.h",
641         "src/lib/OpenEXR/ImfB44Compressor.h",
642         "src/lib/OpenEXR/ImfBoxAttribute.h",
643         "src/lib/OpenEXR/ImfCRgbaFile.h",
644         "src/lib/OpenEXR/ImfChannelList.h",
645         "src/lib/OpenEXR/ImfChannelListAttribute.h",
646         "src/lib/OpenEXR/ImfCheckedArithmetic.h",
647         "src/lib/OpenEXR/ImfChromaticities.h",
648         "src/lib/OpenEXR/ImfChromaticitiesAttribute.h",
649         "src/lib/OpenEXR/ImfCompositeDeepScanLine.h",
650         "src/lib/OpenEXR/ImfCompression.h",
651         "src/lib/OpenEXR/ImfCompressionAttribute.h",
652         "src/lib/OpenEXR/ImfCompressor.h",
653         "src/lib/OpenEXR/ImfConvert.h",
654         "src/lib/OpenEXR/ImfDeepCompositing.h",
655         "src/lib/OpenEXR/ImfDeepFrameBuffer.h",
656         "src/lib/OpenEXR/ImfDeepImageState.h",
657         "src/lib/OpenEXR/ImfDeepImageStateAttribute.h",
658         "src/lib/OpenEXR/ImfDeepScanLineInputFile.h",
659         "src/lib/OpenEXR/ImfDeepScanLineInputPart.h",
660         "src/lib/OpenEXR/ImfDeepScanLineOutputFile.h",
661         "src/lib/OpenEXR/ImfDeepScanLineOutputPart.h",
662         "src/lib/OpenEXR/ImfDeepTiledInputFile.h",
663         "src/lib/OpenEXR/ImfDeepTiledInputPart.h",
664         "src/lib/OpenEXR/ImfDeepTiledOutputFile.h",
665         "src/lib/OpenEXR/ImfDeepTiledOutputPart.h",
666         "src/lib/OpenEXR/ImfDoubleAttribute.h",
667         "src/lib/OpenEXR/ImfDwaCompressor.h",
668         "src/lib/OpenEXR/ImfDwaCompressorSimd.h",
669         "src/lib/OpenEXR/ImfEnvmap.h",
670         "src/lib/OpenEXR/ImfEnvmapAttribute.h",
671         "src/lib/OpenEXR/ImfExport.h",
672         "src/lib/OpenEXR/ImfFastHuf.h",
673         "src/lib/OpenEXR/ImfFloatAttribute.h",
674         "src/lib/OpenEXR/ImfFloatVectorAttribute.h",
675         "src/lib/OpenEXR/ImfForward.h",
676         "src/lib/OpenEXR/ImfFrameBuffer.h",
677         "src/lib/OpenEXR/ImfFramesPerSecond.h",
678         "src/lib/OpenEXR/ImfGenericInputFile.h",
679         "src/lib/OpenEXR/ImfGenericOutputFile.h",
680         "src/lib/OpenEXR/ImfHeader.h",
681         "src/lib/OpenEXR/ImfHuf.h",
682         "src/lib/OpenEXR/ImfIDManifest.h",
683         "src/lib/OpenEXR/ImfIDManifestAttribute.h",
684         "src/lib/OpenEXR/ImfIO.h",
685         "src/lib/OpenEXR/ImfInputFile.h",
686         "src/lib/OpenEXR/ImfInputPart.h",
687         "src/lib/OpenEXR/ImfInputPartData.h",
688         "src/lib/OpenEXR/ImfInputStreamMutex.h",
689         "src/lib/OpenEXR/ImfInt64.h",
690         "src/lib/OpenEXR/ImfIntAttribute.h",
691         "src/lib/OpenEXR/ImfKeyCode.h",
692         "src/lib/OpenEXR/ImfKeyCodeAttribute.h",
693         "src/lib/OpenEXR/ImfLineOrder.h",
694         "src/lib/OpenEXR/ImfLineOrderAttribute.h",
695         "src/lib/OpenEXR/ImfLut.h",
696         "src/lib/OpenEXR/ImfMatrixAttribute.h",
697         "src/lib/OpenEXR/ImfMisc.h",
698         "src/lib/OpenEXR/ImfMultiPartInputFile.h",
699         "src/lib/OpenEXR/ImfMultiPartOutputFile.h",
700         "src/lib/OpenEXR/ImfMultiView.h",
701         "src/lib/OpenEXR/ImfName.h",
702         "src/lib/OpenEXR/ImfNamespace.h",
703         "src/lib/OpenEXR/ImfOpaqueAttribute.h",
704         "src/lib/OpenEXR/ImfOptimizedPixelReading.h",
705         "src/lib/OpenEXR/ImfOutputFile.h",
706         "src/lib/OpenEXR/ImfOutputPart.h",
707         "src/lib/OpenEXR/ImfOutputPartData.h",
708         "src/lib/OpenEXR/ImfOutputStreamMutex.h",
709         "src/lib/OpenEXR/ImfPartHelper.h",
710         "src/lib/OpenEXR/ImfPartType.h",
711         "src/lib/OpenEXR/ImfPixelType.h",
712         "src/lib/OpenEXR/ImfPizCompressor.h",
713         "src/lib/OpenEXR/ImfPreviewImage.h",
714         "src/lib/OpenEXR/ImfPreviewImageAttribute.h",
715         "src/lib/OpenEXR/ImfPxr24Compressor.h",
716         "src/lib/OpenEXR/ImfRational.h",
717         "src/lib/OpenEXR/ImfRationalAttribute.h",
718         "src/lib/OpenEXR/ImfRgba.h",
719         "src/lib/OpenEXR/ImfRgbaFile.h",
720         "src/lib/OpenEXR/ImfRgbaYca.h",
721         "src/lib/OpenEXR/ImfRle.h",
722         "src/lib/OpenEXR/ImfRleCompressor.h",
723         "src/lib/OpenEXR/ImfScanLineInputFile.h",
724         "src/lib/OpenEXR/ImfSimd.h",
725         "src/lib/OpenEXR/ImfStandardAttributes.h",
726         "src/lib/OpenEXR/ImfStdIO.h",
727         "src/lib/OpenEXR/ImfStringAttribute.h",
728         "src/lib/OpenEXR/ImfStringVectorAttribute.h",
729         "src/lib/OpenEXR/ImfSystemSpecific.h",
730         "src/lib/OpenEXR/ImfTestFile.h",
731         "src/lib/OpenEXR/ImfThreading.h",
732         "src/lib/OpenEXR/ImfTileDescription.h",
733         "src/lib/OpenEXR/ImfTileDescriptionAttribute.h",
734         "src/lib/OpenEXR/ImfTileOffsets.h",
735         "src/lib/OpenEXR/ImfTiledInputFile.h",
736         "src/lib/OpenEXR/ImfTiledInputPart.h",
737         "src/lib/OpenEXR/ImfTiledMisc.h",
738         "src/lib/OpenEXR/ImfTiledOutputFile.h",
739         "src/lib/OpenEXR/ImfTiledOutputPart.h",
740         "src/lib/OpenEXR/ImfTiledRgbaFile.h",
741         "src/lib/OpenEXR/ImfTimeCode.h",
742         "src/lib/OpenEXR/ImfTimeCodeAttribute.h",
743         "src/lib/OpenEXR/ImfVecAttribute.h",
744         "src/lib/OpenEXR/ImfVersion.h",
745         "src/lib/OpenEXR/ImfWav.h",
746         "src/lib/OpenEXR/ImfXdr.h",
747         "src/lib/OpenEXR/ImfZip.h",
748         "src/lib/OpenEXR/ImfZipCompressor.h",
749         ":src/lib/OpenEXR/OpenEXRConfig.h",
750         ":src/lib/OpenEXR/OpenEXRConfigInternal.h",
751     ],
752     includes = ["src/lib/OpenEXR"],
753     deps = [
754         ":IlmThread",
755         "@imath//:Imath",
756         "@zlib//:zlib",
757     ],
758     visibility = ["//visibility:public"],
760 """,
761     remote = "https://github.com/AcademySoftwareFoundation/openexr",
762     tag = "v3.1.5",