Skip to content

Commit

Permalink
Bazel build fixes. (#1836)
Browse files Browse the repository at this point in the history
Signed-off-by: asa <[email protected]>
  • Loading branch information
asa authored Sep 23, 2024
1 parent 541dc15 commit 8d141c5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
15 changes: 10 additions & 5 deletions BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ cc_library(
"//conditions:default": [],
}),
includes = [
"src/lib",
"src/lib/Iex",
"src/lib/OpenEXR",
"src/lib/OpenEXRCore",
Expand Down Expand Up @@ -157,6 +158,7 @@ cc_library(
"//conditions:default": [],
}),
includes = [
"src/lib",
"src/lib/IlmThread",
"src/lib/OpenEXRCore",
],
Expand All @@ -179,6 +181,7 @@ cc_library(
"src/lib/OpenEXRCore/context.c",
"src/lib/OpenEXRCore/debug.c",
"src/lib/OpenEXRCore/decoding.c",
"src/lib/OpenEXRCore/dwaLookups.h",
"src/lib/OpenEXRCore/encoding.c",
"src/lib/OpenEXRCore/float_vector.c",
"src/lib/OpenEXRCore/internal_attr.h",
Expand All @@ -198,7 +201,6 @@ cc_library(
"src/lib/OpenEXRCore/internal_dwa_encoder.h",
"src/lib/OpenEXRCore/internal_dwa_helpers.h",
"src/lib/OpenEXRCore/internal_dwa_simd.h",
"src/lib/OpenEXRCore/dwaLookups.h",
"src/lib/OpenEXRCore/internal_file.h",
"src/lib/OpenEXRCore/internal_float_vector.h",
"src/lib/OpenEXRCore/internal_huf.c",
Expand Down Expand Up @@ -273,7 +275,7 @@ cc_library(
}),
visibility = ["//visibility:public"],
deps = [
"@imath//:Imath",
"@imath",
"@libdeflate//:deflate",
],
)
Expand All @@ -294,9 +296,9 @@ cc_library(
"src/lib/OpenEXR/ImfCompression.cpp",
"src/lib/OpenEXR/ImfCompressionAttribute.cpp",
"src/lib/OpenEXR/ImfCompressor.cpp",
"src/lib/OpenEXR/ImfConvert.cpp",
"src/lib/OpenEXR/ImfContext.cpp",
"src/lib/OpenEXR/ImfContextInit.cpp",
"src/lib/OpenEXR/ImfConvert.cpp",
"src/lib/OpenEXR/ImfDeepCompositing.cpp",
"src/lib/OpenEXR/ImfDeepFrameBuffer.cpp",
"src/lib/OpenEXR/ImfDeepImageStateAttribute.cpp",
Expand Down Expand Up @@ -509,7 +511,10 @@ cc_library(
":windows": ["windows_export_all_symbols"],
"//conditions:default": [],
}),
includes = ["src/lib/OpenEXR"],
includes = [
"src/lib",
"src/lib/OpenEXR",
],
linkopts =
select({
":windows": [],
Expand All @@ -521,7 +526,7 @@ cc_library(
deps = [
":IlmThread",
":OpenEXRCore",
"@imath//:Imath",
"@imath",
],
)

Expand Down
6 changes: 3 additions & 3 deletions cmake/OpenEXRConfig.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
//

#ifndef INCLUDED_OPENEXR_VERSION_H
#define OPENEXR_VERSION_MAJOR @OpenEXR_VERSION_MAJOR@
#define OPENEXR_VERSION_MINOR @OpenEXR_VERSION_MINOR@
#define OPENEXR_VERSION_PATCH @OpenEXR_VERSION_PATCH@
#define OPENEXR_VERSION_MAJOR @OPENEXR_VERSION_MAJOR@
#define OPENEXR_VERSION_MINOR @OPENEXR_VERSION_MINOR@
#define OPENEXR_VERSION_PATCH @OPENEXR_VERSION_PATCH@
#endif

//
Expand Down

0 comments on commit 8d141c5

Please sign in to comment.