Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove all build-time header generation #606

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,6 @@ OpenEXR/IlmImfTest/IlmImfTest
OpenEXR/IlmImfUtilTest/IlmImfUtilTest
OpenEXR/IlmImfFuzzTest/IlmImfFuzzTest
Contrib/DtexToExr/DtexToExr
b44ExpLogTable.h
dwaLookups.h
eLut
eLut.h
toFloat
toFloat.h
.deps
*.o
*.lo
Expand Down
23 changes: 2 additions & 21 deletions IlmBase/Half/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,31 +1,12 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright Contributors to the OpenEXR Project.

add_executable(eLut eLut.cpp)
target_compile_features(eLut PUBLIC cxx_std_${OPENEXR_CXX_STANDARD})


add_executable(toFloat toFloat.cpp)
target_compile_features(toFloat PUBLIC cxx_std_${OPENEXR_CXX_STANDARD})

add_custom_command(
OUTPUT
${CMAKE_CURRENT_BINARY_DIR}/toFloat.h
${CMAKE_CURRENT_BINARY_DIR}/eLut.h
COMMAND $<TARGET_FILE:toFloat> ARGS > ${CMAKE_CURRENT_BINARY_DIR}/toFloat.h
COMMAND $<TARGET_FILE:eLut> ARGS > ${CMAKE_CURRENT_BINARY_DIR}/eLut.h
DEPENDS eLut toFloat
)

### Now define the real library

ilmbase_define_library(Half
PRIV_EXPORT HALF_EXPORTS
CURDIR ${CMAKE_CURRENT_SOURCE_DIR}
CURBINDIR ${CMAKE_CURRENT_BINARY_DIR}
SOURCES
${CMAKE_CURRENT_BINARY_DIR}/toFloat.h
${CMAKE_CURRENT_BINARY_DIR}/eLut.h
toFloat.h
eLut.h
half.cpp
HEADERS
half.h
Expand Down
71 changes: 71 additions & 0 deletions IlmBase/Half/eLut.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
//
// This is an automatically generated file.
// Do not edit.
//

{
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 1024, 2048, 3072, 4096, 5120, 6144, 7168,
8192, 9216, 10240, 11264, 12288, 13312, 14336, 15360,
16384, 17408, 18432, 19456, 20480, 21504, 22528, 23552,
24576, 25600, 26624, 27648, 28672, 29696, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0,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