forked from AcademySoftwareFoundation/OpenImageIO
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: move most of imageio_pvt.h.in to just a regular .h (Academy…
…SoftwareFoundation#4277) This file imageio_pvt.h.in was used as the input template for CMake to create imageio_pvt.h, doing a couple build variable substitutions along the way. But this was inconvenient (because it doesn't look like a real .h file to editors or clang-format) and it turns out that there were only 2 lines that needed the substitution. So in this patch, we split the file, making 99% of it just plain old imageio_pvt.h that needs no rewriting, and the couple lines that need variable substitions becomes buildopts.h.in and is included only from the one source file that actually cares, imageio.cpp. Other than cleaving those two definitions off to another header and some file renaming, I haven't changed any of the other content of the headers, so there should be no change in code the compiler sees or other behavior. The reformatting you see is because now that it's a legit .h file, clang-format wants its way with it. Signed-off-by: Larry Gritz <[email protected]>
- Loading branch information
Showing
4 changed files
with
70 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// Copyright Contributors to the OpenImageIO project. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
// https://github.com/AcademySoftwareFoundation/OpenImageIO | ||
|
||
|
||
// A very small number of definitions we must derive at build time. | ||
// | ||
|
||
|
||
#ifndef OPENIMAGEIO_BUILDOPTS_H | ||
#define OPENIMAGEIO_BUILDOPTS_H | ||
|
||
//Define a default plugin search path | ||
#define OIIO_DEFAULT_PLUGIN_SEARCHPATH "@PLUGIN_SEARCH_PATH_NATIVE@" | ||
|
||
// List of build-time dependencies (semicolon separated) | ||
#define OIIO_ALL_BUILD_DEPS_FOUND "@CFP_ALL_BUILD_DEPS_FOUND@" | ||
|
||
#endif // OPENIMAGEIO_BUILDOPTS_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters