mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-06 21:00:22 +00:00
libheif jni additions
This commit is contained in:
parent
e83d6ae5d5
commit
fc2c76991e
124
thirdparty/libheif/HeifConvertTestJNI/CMakeLists.txt
vendored
Normal file
124
thirdparty/libheif/HeifConvertTestJNI/CMakeLists.txt
vendored
Normal file
@ -0,0 +1,124 @@
|
||||
cmake_minimum_required (VERSION 3.8)
|
||||
|
||||
project ("heif-convert")
|
||||
|
||||
find_package(libheif CONFIG REQUIRED)
|
||||
find_package(Java REQUIRED)
|
||||
|
||||
message("JAVA_HOME = $ENV{JAVA_HOME}")
|
||||
message("Java_JAVA_EXECUTABLE = ${Java_JAVA_EXECUTABLE}")
|
||||
message("Java_JAVAC_EXECUTABLE = ${Java_JAVAC_EXECUTABLE}")
|
||||
message("Java_JAVAH_EXECUTABLE = ${Java_JAVAH_EXECUTABLE}")
|
||||
message("Java_JAVADOC_EXECUTABLE = ${Java_JAVADOC_EXECUTABLE}")
|
||||
message("Java_VERSION_STRING = ${Java_VERSION_STRING}")
|
||||
message("Java_VERSION = ${Java_VERSION}")
|
||||
|
||||
find_package(JNI)
|
||||
find_package(JPEG REQUIRED)
|
||||
|
||||
if (JNI_FOUND)
|
||||
message (STATUS "JNI_INCLUDE_DIRS=${JNI_INCLUDE_DIRS}")
|
||||
message (STATUS "JNI_LIBRARIES=${JNI_LIBRARIES}")
|
||||
endif()
|
||||
|
||||
add_compile_options(/std:c++latest)
|
||||
|
||||
|
||||
set (heif_convert_sources
|
||||
encoder.cc
|
||||
encoder.h
|
||||
org_sleuthkit_autopsy_modules_pictureanalyzer_impls_HeifJNI.cc
|
||||
org_sleuthkit_autopsy_modules_pictureanalyzer_impls_HeifJNI.h
|
||||
)
|
||||
|
||||
set (additional_link_directories)
|
||||
set (additional_libraries)
|
||||
set (additional_includes
|
||||
${JNI_INCLUDE_DIRS}
|
||||
)
|
||||
|
||||
include (${CMAKE_ROOT}/Modules/FindJPEG.cmake)
|
||||
|
||||
include_directories(SYSTEM ${JPEG_INCLUDE_DIR})
|
||||
|
||||
include (${CMAKE_ROOT}/Modules/CheckCXXSourceCompiles.cmake)
|
||||
|
||||
set(CMAKE_REQUIRED_LIBRARIES ${JPEG_LIBRARIES})
|
||||
|
||||
# while the docs say JPEG_INCLUDE_DIRS, my FindJPEG.cmake script returns it in JPEG_INCLUDE_DIR
|
||||
set(CMAKE_REQUIRED_INCLUDES ${JPEG_INCLUDE_DIRS} ${JPEG_INCLUDE_DIR})
|
||||
|
||||
check_cxx_source_compiles("
|
||||
#include <stddef.h>
|
||||
#include <stdio.h>
|
||||
#include <jpeglib.h>
|
||||
|
||||
int main() {
|
||||
jpeg_write_icc_profile(NULL, NULL, 0);
|
||||
return 0;
|
||||
}
|
||||
" HAVE_JPEG_WRITE_ICC_PROFILE)
|
||||
if(HAVE_JPEG_WRITE_ICC_PROFILE)
|
||||
add_definitions(-DHAVE_JPEG_WRITE_ICC_PROFILE=1)
|
||||
endif()
|
||||
|
||||
set (heif_convert_sources
|
||||
${heif_convert_sources}
|
||||
encoder_jpeg.cc
|
||||
encoder_jpeg.h
|
||||
)
|
||||
set (additional_libraries
|
||||
${additional_libraries}
|
||||
${JPEG_LIBRARIES}
|
||||
)
|
||||
set (additional_includes
|
||||
${additional_includes}
|
||||
${JPEG_INCLUDE_DIRS}
|
||||
${JPEG_INCLUDE_DIR}
|
||||
)
|
||||
|
||||
if(UNIX OR MINGW)
|
||||
include (${CMAKE_ROOT}/Modules/FindPkgConfig.cmake)
|
||||
pkg_check_modules (LIBPNG libpng)
|
||||
if(LIBPNG_FOUND)
|
||||
add_definitions(-DHAVE_LIBPNG=1)
|
||||
set (heif_convert_sources
|
||||
${heif_convert_sources}
|
||||
encoder_png.cc
|
||||
encoder_png.h
|
||||
)
|
||||
set (additional_link_directories
|
||||
${additional_link_directories}
|
||||
${LIBPNG_LIBRARY_DIRS}
|
||||
)
|
||||
set (additional_libraries
|
||||
${additional_libraries}
|
||||
${LIBPNG_LINK_LIBRARIES} ${LIBPNG_LIBRARIES}
|
||||
)
|
||||
set (additional_includes
|
||||
${additional_includes}
|
||||
${LIBPNG_INCLUDE_DIRS}
|
||||
)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
set (heif_info_sources
|
||||
heif_info.cc
|
||||
)
|
||||
|
||||
set (heif_enc_sources
|
||||
heif_enc.cc
|
||||
)
|
||||
|
||||
set (heif_test_sources
|
||||
heif_test.cc
|
||||
)
|
||||
|
||||
|
||||
add_library(heif-convert SHARED ${heif_convert_sources})
|
||||
|
||||
target_link_directories (heif-convert PRIVATE ${additional_link_directories})
|
||||
target_link_libraries (heif-convert PRIVATE heif ${additional_libraries})
|
||||
target_include_directories(heif-convert PRIVATE ${additional_includes})
|
||||
install(TARGETS heif-convert RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
|
||||
install(FILES heif-convert.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1)
|
73
thirdparty/libheif/HeifConvertTestJNI/CMakePresets.json
vendored
Normal file
73
thirdparty/libheif/HeifConvertTestJNI/CMakePresets.json
vendored
Normal file
@ -0,0 +1,73 @@
|
||||
{
|
||||
"version": 3,
|
||||
"configurePresets": [
|
||||
{
|
||||
"name": "windows-base",
|
||||
"hidden": true,
|
||||
"generator": "Ninja",
|
||||
"binaryDir": "${sourceDir}/out/build/${presetName}",
|
||||
"installDir": "${sourceDir}/out/install/${presetName}",
|
||||
"cacheVariables": {
|
||||
"CMAKE_C_COMPILER": "cl.exe",
|
||||
"CMAKE_CXX_COMPILER": "cl.exe",
|
||||
"CMAKE_TOOLCHAIN_FILE": {
|
||||
"value": "C:/Users/gregd/vcpkg/scripts/buildsystems/vcpkg.cmake",
|
||||
"type": "FILEPATH"
|
||||
}
|
||||
},
|
||||
"condition": {
|
||||
"type": "equals",
|
||||
"lhs": "${hostSystemName}",
|
||||
"rhs": "Windows"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "x64-debug",
|
||||
"displayName": "x64 Debug",
|
||||
"inherits": "windows-base",
|
||||
"architecture": {
|
||||
"value": "x64",
|
||||
"strategy": "external"
|
||||
},
|
||||
"cacheVariables": {
|
||||
"CMAKE_BUILD_TYPE": "Debug",
|
||||
"CMAKE_TOOLCHAIN_FILE": {
|
||||
"value": "C:/Users/gregd/vcpkg/scripts/buildsystems/vcpkg.cmake",
|
||||
"type": "FILEPATH"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "x64-release",
|
||||
"displayName": "x64 Release",
|
||||
"inherits": "x64-debug",
|
||||
"cacheVariables": {
|
||||
"CMAKE_BUILD_TYPE": "Release",
|
||||
"CMAKE_TOOLCHAIN_FILE": {
|
||||
"value": "C:/Users/gregd/vcpkg/scripts/buildsystems/vcpkg.cmake",
|
||||
"type": "FILEPATH"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "x86-debug",
|
||||
"displayName": "x86 Debug",
|
||||
"inherits": "windows-base",
|
||||
"architecture": {
|
||||
"value": "x86",
|
||||
"strategy": "external"
|
||||
},
|
||||
"cacheVariables": {
|
||||
"CMAKE_BUILD_TYPE": "Debug"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "x86-release",
|
||||
"displayName": "x86 Release",
|
||||
"inherits": "x86-debug",
|
||||
"cacheVariables": {
|
||||
"CMAKE_BUILD_TYPE": "Release"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
20
thirdparty/libheif/HeifConvertTestJNI/COPYING
vendored
Normal file
20
thirdparty/libheif/HeifConvertTestJNI/COPYING
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
|
||||
MIT License
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
112
thirdparty/libheif/HeifConvertTestJNI/Makefile.am
vendored
Normal file
112
thirdparty/libheif/HeifConvertTestJNI/Makefile.am
vendored
Normal file
@ -0,0 +1,112 @@
|
||||
AUTOMAKE_OPTIONS = subdir-objects
|
||||
|
||||
examples = \
|
||||
heif-convert \
|
||||
heif-enc \
|
||||
heif-info
|
||||
|
||||
examples_noinst = \
|
||||
heif-test \
|
||||
test-c-api
|
||||
|
||||
dist_man_MANS =
|
||||
|
||||
heif_convert_DEPENDENCIES = ../libheif/libheif.la
|
||||
heif_convert_CXXFLAGS = -I$(top_srcdir) -I$(top_builddir)/.
|
||||
heif_convert_LDFLAGS =
|
||||
heif_convert_LDADD = ../libheif/libheif.la
|
||||
heif_convert_SOURCES = encoder.cc encoder.h heif_convert.cc encoder_y4m.cc encoder_y4m.h
|
||||
dist_man_MANS += heif-convert.1
|
||||
|
||||
|
||||
if HAVE_LIBPNG
|
||||
examples += heif-thumbnailer
|
||||
heif_thumbnailer_DEPENDENCIES = ../libheif/libheif.la
|
||||
heif_thumbnailer_CXXFLAGS = -I$(top_srcdir) -I$(top_builddir) $(libpng_CFLAGS)
|
||||
heif_thumbnailer_LDFLAGS = $(libpng_LIBS)
|
||||
heif_thumbnailer_LDADD = ../libheif/libheif.la
|
||||
heif_thumbnailer_SOURCES = encoder.cc encoder.h heif_thumbnailer.cc encoder_png.cc encoder_png.h
|
||||
dist_man_MANS += heif-thumbnailer.1
|
||||
endif
|
||||
|
||||
if HAVE_LIBJPEG
|
||||
heif_convert_CXXFLAGS += $(libjpeg_CFLAGS)
|
||||
heif_convert_LDADD += $(libjpeg_LIBS)
|
||||
heif_convert_SOURCES += encoder_jpeg.cc encoder_jpeg.h
|
||||
endif
|
||||
|
||||
if HAVE_LIBPNG
|
||||
heif_convert_CXXFLAGS += $(libpng_CFLAGS)
|
||||
heif_convert_LDADD += $(libpng_LIBS)
|
||||
heif_convert_SOURCES += encoder_png.cc encoder_png.h
|
||||
endif
|
||||
|
||||
heif_info_DEPENDENCIES = ../libheif/libheif.la
|
||||
heif_info_CXXFLAGS = -I$(top_srcdir) -I$(top_builddir)
|
||||
heif_info_LDFLAGS =
|
||||
heif_info_LDADD = ../libheif/libheif.la
|
||||
heif_info_SOURCES = heif_info.cc
|
||||
dist_man_MANS += heif-info.1
|
||||
|
||||
heif_enc_DEPENDENCIES = ../libheif/libheif.la
|
||||
heif_enc_CXXFLAGS = -I$(top_srcdir) -I$(top_builddir)
|
||||
heif_enc_LDFLAGS =
|
||||
heif_enc_LDADD = ../libheif/libheif.la
|
||||
heif_enc_SOURCES = heif_enc.cc
|
||||
dist_man_MANS += heif-enc.1
|
||||
|
||||
if HAVE_LIBJPEG
|
||||
heif_enc_CXXFLAGS += $(libjpeg_CFLAGS)
|
||||
heif_enc_LDADD += $(libjpeg_LIBS)
|
||||
endif
|
||||
|
||||
if HAVE_LIBPNG
|
||||
heif_enc_CXXFLAGS += $(libpng_CFLAGS)
|
||||
heif_enc_LDADD += $(libpng_LIBS)
|
||||
endif
|
||||
|
||||
heif_test_DEPENDENCIES = ../libheif/libheif.la
|
||||
heif_test_CXXFLAGS = -I$(top_srcdir) -I$(top_builddir)
|
||||
heif_test_LDFLAGS =
|
||||
heif_test_LDADD = ../libheif/libheif.la
|
||||
heif_test_SOURCES = heif_test.cc
|
||||
|
||||
test_c_api_DEPENDENCIES = ../libheif/libheif.la
|
||||
test_c_api_CFLAGS = -I$(top_srcdir) -I$(top_builddir)
|
||||
test_c_api_LDFLAGS =
|
||||
test_c_api_LDADD = ../libheif/libheif.la
|
||||
test_c_api_SOURCES = test_c_api.c
|
||||
|
||||
EXTRA_DIST = \
|
||||
CMakeLists.txt \
|
||||
COPYING \
|
||||
demo.html \
|
||||
example.avif \
|
||||
example.heic
|
||||
|
||||
if HAVE_GO
|
||||
examples_noinst += \
|
||||
heif-test-go
|
||||
|
||||
heif_test_go_SOURCES = heif-test.go
|
||||
|
||||
gopath:
|
||||
mkdir -p ${CURDIR}/src/github.com/strukturag/libheif
|
||||
ln -sf ${CURDIR}/../go ${CURDIR}/src/github.com/strukturag/libheif/
|
||||
|
||||
heif-test-go: gopath $(top_builddir)/libheif/libheif.la $(top_builddir)/libheif.pc heif-test.go
|
||||
GOPATH=${CURDIR} PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:$(abs_top_builddir):$(abs_top_builddir)/libde265/dist/lib/pkgconfig/ CGO_CFLAGS="-I$(abs_top_builddir)" CGO_LDFLAGS="-L$(abs_top_builddir)/libheif/.libs" LD_LIBRARY_PATH=$(abs_top_builddir)/libheif/.libs $(GO) build -o heif-test-go ${heif_test_go_SOURCES}
|
||||
|
||||
format-go: ${heif_test_go_SOURCES}
|
||||
$(GO) fmt ${heif_test_go_SOURCES}
|
||||
else
|
||||
format-go:
|
||||
echo ""go" not present in "${PATH}", skipping formatting"
|
||||
endif
|
||||
|
||||
if WITH_EXAMPLES
|
||||
bin_PROGRAMS = $(examples)
|
||||
noinst_PROGRAMS = $(examples_noinst)
|
||||
endif
|
||||
|
||||
format-local: format-go
|
184
thirdparty/libheif/HeifConvertTestJNI/dist/ALL_BUILD.vcxproj
vendored
Normal file
184
thirdparty/libheif/HeifConvertTestJNI/dist/ALL_BUILD.vcxproj
vendored
Normal file
File diff suppressed because one or more lines are too long
8
thirdparty/libheif/HeifConvertTestJNI/dist/ALL_BUILD.vcxproj.filters
vendored
Normal file
8
thirdparty/libheif/HeifConvertTestJNI/dist/ALL_BUILD.vcxproj.filters
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="17.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup>
|
||||
<CustomBuild Include="C:\Users\gregd\Documents\Source\autopsy\thirdparty\libheif\HeifConvertTestJNI\CMakeLists.txt" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
</ItemGroup>
|
||||
</Project>
|
476
thirdparty/libheif/HeifConvertTestJNI/dist/CMakeCache.txt
vendored
Normal file
476
thirdparty/libheif/HeifConvertTestJNI/dist/CMakeCache.txt
vendored
Normal file
@ -0,0 +1,476 @@
|
||||
# This is the CMakeCache file.
|
||||
# For build in directory: c:/Users/gregd/Documents/Source/autopsy/thirdparty/libheif/HeifConvertTestJNI/dist
|
||||
# It was generated by CMake: C:/Program Files/CMake/bin/cmake.exe
|
||||
# You can edit this file to change values found and used by cmake.
|
||||
# If you do not want to change any of the values, simply exit the editor.
|
||||
# If you do want to change a value, simply edit, save, and exit the editor.
|
||||
# The syntax for the file is as follows:
|
||||
# KEY:TYPE=VALUE
|
||||
# KEY is the name of a variable in the cache.
|
||||
# TYPE is a hint to GUIs for the type of VALUE, DO NOT EDIT TYPE!.
|
||||
# VALUE is the current value for the KEY.
|
||||
|
||||
########################
|
||||
# EXTERNAL cache entries
|
||||
########################
|
||||
|
||||
//Path to a program.
|
||||
CMAKE_AR:FILEPATH=C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.31.31103/bin/Hostx64/x64/lib.exe
|
||||
|
||||
//Semicolon separated list of supported configuration types, only
|
||||
// supports Debug, Release, MinSizeRel, and RelWithDebInfo, anything
|
||||
// else will be ignored.
|
||||
CMAKE_CONFIGURATION_TYPES:STRING=Debug;Release;MinSizeRel;RelWithDebInfo
|
||||
|
||||
//Flags used by the CXX compiler during all build types.
|
||||
CMAKE_CXX_FLAGS:STRING=/DWIN32 /D_WINDOWS /W3 /GR /EHsc
|
||||
|
||||
//Flags used by the CXX compiler during DEBUG builds.
|
||||
CMAKE_CXX_FLAGS_DEBUG:STRING=/MDd /Zi /Ob0 /Od /RTC1
|
||||
|
||||
//Flags used by the CXX compiler during MINSIZEREL builds.
|
||||
CMAKE_CXX_FLAGS_MINSIZEREL:STRING=/MD /O1 /Ob1 /DNDEBUG
|
||||
|
||||
//Flags used by the CXX compiler during RELEASE builds.
|
||||
CMAKE_CXX_FLAGS_RELEASE:STRING=/MD /O2 /Ob2 /DNDEBUG
|
||||
|
||||
//Flags used by the CXX compiler during RELWITHDEBINFO builds.
|
||||
CMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING=/MD /Zi /O2 /Ob1 /DNDEBUG
|
||||
|
||||
//Libraries linked by default with all C++ applications.
|
||||
CMAKE_CXX_STANDARD_LIBRARIES:STRING=kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib
|
||||
|
||||
//Flags used by the C compiler during all build types.
|
||||
CMAKE_C_FLAGS:STRING=/DWIN32 /D_WINDOWS /W3
|
||||
|
||||
//Flags used by the C compiler during DEBUG builds.
|
||||
CMAKE_C_FLAGS_DEBUG:STRING=/MDd /Zi /Ob0 /Od /RTC1
|
||||
|
||||
//Flags used by the C compiler during MINSIZEREL builds.
|
||||
CMAKE_C_FLAGS_MINSIZEREL:STRING=/MD /O1 /Ob1 /DNDEBUG
|
||||
|
||||
//Flags used by the C compiler during RELEASE builds.
|
||||
CMAKE_C_FLAGS_RELEASE:STRING=/MD /O2 /Ob2 /DNDEBUG
|
||||
|
||||
//Flags used by the C compiler during RELWITHDEBINFO builds.
|
||||
CMAKE_C_FLAGS_RELWITHDEBINFO:STRING=/MD /Zi /O2 /Ob1 /DNDEBUG
|
||||
|
||||
//Libraries linked by default with all C applications.
|
||||
CMAKE_C_STANDARD_LIBRARIES:STRING=kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib
|
||||
|
||||
//Flags used by the linker during all build types.
|
||||
CMAKE_EXE_LINKER_FLAGS:STRING=/machine:x64
|
||||
|
||||
//Flags used by the linker during DEBUG builds.
|
||||
CMAKE_EXE_LINKER_FLAGS_DEBUG:STRING=/debug /INCREMENTAL
|
||||
|
||||
//Flags used by the linker during MINSIZEREL builds.
|
||||
CMAKE_EXE_LINKER_FLAGS_MINSIZEREL:STRING=/INCREMENTAL:NO
|
||||
|
||||
//Flags used by the linker during RELEASE builds.
|
||||
CMAKE_EXE_LINKER_FLAGS_RELEASE:STRING=/INCREMENTAL:NO
|
||||
|
||||
//Flags used by the linker during RELWITHDEBINFO builds.
|
||||
CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO:STRING=/debug /INCREMENTAL
|
||||
|
||||
//Install path prefix, prepended onto install directories.
|
||||
CMAKE_INSTALL_PREFIX:PATH=C:/Program Files/heif-convert
|
||||
|
||||
//Path to a program.
|
||||
CMAKE_LINKER:FILEPATH=C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.31.31103/bin/Hostx64/x64/link.exe
|
||||
|
||||
//Flags used by the linker during the creation of modules during
|
||||
// all build types.
|
||||
CMAKE_MODULE_LINKER_FLAGS:STRING=/machine:x64
|
||||
|
||||
//Flags used by the linker during the creation of modules during
|
||||
// DEBUG builds.
|
||||
CMAKE_MODULE_LINKER_FLAGS_DEBUG:STRING=/debug /INCREMENTAL
|
||||
|
||||
//Flags used by the linker during the creation of modules during
|
||||
// MINSIZEREL builds.
|
||||
CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL:STRING=/INCREMENTAL:NO
|
||||
|
||||
//Flags used by the linker during the creation of modules during
|
||||
// RELEASE builds.
|
||||
CMAKE_MODULE_LINKER_FLAGS_RELEASE:STRING=/INCREMENTAL:NO
|
||||
|
||||
//Flags used by the linker during the creation of modules during
|
||||
// RELWITHDEBINFO builds.
|
||||
CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO:STRING=/debug /INCREMENTAL
|
||||
|
||||
//Path to a program.
|
||||
CMAKE_MT:FILEPATH=CMAKE_MT-NOTFOUND
|
||||
|
||||
//Value Computed by CMake
|
||||
CMAKE_PROJECT_DESCRIPTION:STATIC=
|
||||
|
||||
//Value Computed by CMake
|
||||
CMAKE_PROJECT_HOMEPAGE_URL:STATIC=
|
||||
|
||||
//Value Computed by CMake
|
||||
CMAKE_PROJECT_NAME:STATIC=heif-convert
|
||||
|
||||
//RC compiler
|
||||
CMAKE_RC_COMPILER:FILEPATH=rc
|
||||
|
||||
//Flags for Windows Resource Compiler during all build types.
|
||||
CMAKE_RC_FLAGS:STRING=-DWIN32
|
||||
|
||||
//Flags for Windows Resource Compiler during DEBUG builds.
|
||||
CMAKE_RC_FLAGS_DEBUG:STRING=-D_DEBUG
|
||||
|
||||
//Flags for Windows Resource Compiler during MINSIZEREL builds.
|
||||
CMAKE_RC_FLAGS_MINSIZEREL:STRING=
|
||||
|
||||
//Flags for Windows Resource Compiler during RELEASE builds.
|
||||
CMAKE_RC_FLAGS_RELEASE:STRING=
|
||||
|
||||
//Flags for Windows Resource Compiler during RELWITHDEBINFO builds.
|
||||
CMAKE_RC_FLAGS_RELWITHDEBINFO:STRING=
|
||||
|
||||
//Flags used by the linker during the creation of shared libraries
|
||||
// during all build types.
|
||||
CMAKE_SHARED_LINKER_FLAGS:STRING=/machine:x64
|
||||
|
||||
//Flags used by the linker during the creation of shared libraries
|
||||
// during DEBUG builds.
|
||||
CMAKE_SHARED_LINKER_FLAGS_DEBUG:STRING=/debug /INCREMENTAL
|
||||
|
||||
//Flags used by the linker during the creation of shared libraries
|
||||
// during MINSIZEREL builds.
|
||||
CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL:STRING=/INCREMENTAL:NO
|
||||
|
||||
//Flags used by the linker during the creation of shared libraries
|
||||
// during RELEASE builds.
|
||||
CMAKE_SHARED_LINKER_FLAGS_RELEASE:STRING=/INCREMENTAL:NO
|
||||
|
||||
//Flags used by the linker during the creation of shared libraries
|
||||
// during RELWITHDEBINFO builds.
|
||||
CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO:STRING=/debug /INCREMENTAL
|
||||
|
||||
//If set, runtime paths are not added when installing shared libraries,
|
||||
// but are added when building.
|
||||
CMAKE_SKIP_INSTALL_RPATH:BOOL=NO
|
||||
|
||||
//If set, runtime paths are not added when using shared libraries.
|
||||
CMAKE_SKIP_RPATH:BOOL=NO
|
||||
|
||||
//Flags used by the linker during the creation of static libraries
|
||||
// during all build types.
|
||||
CMAKE_STATIC_LINKER_FLAGS:STRING=/machine:x64
|
||||
|
||||
//Flags used by the linker during the creation of static libraries
|
||||
// during DEBUG builds.
|
||||
CMAKE_STATIC_LINKER_FLAGS_DEBUG:STRING=
|
||||
|
||||
//Flags used by the linker during the creation of static libraries
|
||||
// during MINSIZEREL builds.
|
||||
CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL:STRING=
|
||||
|
||||
//Flags used by the linker during the creation of static libraries
|
||||
// during RELEASE builds.
|
||||
CMAKE_STATIC_LINKER_FLAGS_RELEASE:STRING=
|
||||
|
||||
//Flags used by the linker during the creation of static libraries
|
||||
// during RELWITHDEBINFO builds.
|
||||
CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO:STRING=
|
||||
|
||||
//The CMake toolchain file
|
||||
CMAKE_TOOLCHAIN_FILE:FILEPATH=C:/Users/gregd/vcpkg/scripts/buildsystems/vcpkg.cmake
|
||||
|
||||
//If this value is on, makefiles will be generated without the
|
||||
// .SILENT directive, and all commands will be echoed to the console
|
||||
// during the make. This is useful for debugging only. With Visual
|
||||
// Studio IDE projects all commands are done without /nologo.
|
||||
CMAKE_VERBOSE_MAKEFILE:BOOL=FALSE
|
||||
|
||||
//Path to a file.
|
||||
JAVA_AWT_INCLUDE_PATH:PATH=C:/Program Files/ojdkbuild/java-1.8.0-openjdk-1.8.0.222-1/include
|
||||
|
||||
//Path to a library.
|
||||
JAVA_AWT_LIBRARY:FILEPATH=C:/Program Files/ojdkbuild/java-1.8.0-openjdk-1.8.0.222-1/lib/jawt.lib
|
||||
|
||||
//Path to a file.
|
||||
JAVA_INCLUDE_PATH:PATH=C:/Program Files/ojdkbuild/java-1.8.0-openjdk-1.8.0.222-1/include
|
||||
|
||||
//Path to a file.
|
||||
JAVA_INCLUDE_PATH2:PATH=C:/Program Files/ojdkbuild/java-1.8.0-openjdk-1.8.0.222-1/include/win32
|
||||
|
||||
//Path to a library.
|
||||
JAVA_JVM_LIBRARY:FILEPATH=C:/Program Files/ojdkbuild/java-1.8.0-openjdk-1.8.0.222-1/lib/jvm.lib
|
||||
|
||||
//Path to a file.
|
||||
JPEG_INCLUDE_DIR:PATH=C:/Users/gregd/vcpkg/installed/x64-windows/include
|
||||
|
||||
//Path to a library.
|
||||
JPEG_LIBRARY_DEBUG:FILEPATH=C:/Users/gregd/vcpkg/installed/x64-windows/debug/lib/jpeg.lib
|
||||
|
||||
//Path to a library.
|
||||
JPEG_LIBRARY_RELEASE:FILEPATH=C:/Users/gregd/vcpkg/installed/x64-windows/lib/jpeg.lib
|
||||
|
||||
//Path to a program.
|
||||
Java_IDLJ_EXECUTABLE:FILEPATH=C:/Program Files/ojdkbuild/java-1.8.0-openjdk-1.8.0.222-1/bin/idlj.exe
|
||||
|
||||
//Path to a program.
|
||||
Java_JARSIGNER_EXECUTABLE:FILEPATH=C:/Program Files/ojdkbuild/java-1.8.0-openjdk-1.8.0.222-1/bin/jarsigner.exe
|
||||
|
||||
//Path to a program.
|
||||
Java_JAR_EXECUTABLE:FILEPATH=C:/Program Files/ojdkbuild/java-1.8.0-openjdk-1.8.0.222-1/bin/jar.exe
|
||||
|
||||
//Path to a program.
|
||||
Java_JAVAC_EXECUTABLE:FILEPATH=C:/Program Files/ojdkbuild/java-1.8.0-openjdk-1.8.0.222-1/bin/javac.exe
|
||||
|
||||
//Path to a program.
|
||||
Java_JAVADOC_EXECUTABLE:FILEPATH=C:/Program Files/ojdkbuild/java-1.8.0-openjdk-1.8.0.222-1/bin/javadoc.exe
|
||||
|
||||
//Path to a program.
|
||||
Java_JAVAH_EXECUTABLE:FILEPATH=C:/Program Files/ojdkbuild/java-1.8.0-openjdk-1.8.0.222-1/bin/javah.exe
|
||||
|
||||
//Path to a program.
|
||||
Java_JAVA_EXECUTABLE:FILEPATH=C:/Program Files/ojdkbuild/java-1.8.0-openjdk-1.8.0.222-1/bin/java.exe
|
||||
|
||||
//Automatically copy dependencies into the output directory for
|
||||
// executables.
|
||||
VCPKG_APPLOCAL_DEPS:BOOL=ON
|
||||
|
||||
//The directory which contains the installed libraries for each
|
||||
// triplet
|
||||
VCPKG_INSTALLED_DIR:PATH=C:/Users/gregd/vcpkg/installed
|
||||
|
||||
//The path to the vcpkg manifest directory.
|
||||
VCPKG_MANIFEST_DIR:PATH=
|
||||
|
||||
//Use manifest mode, as opposed to classic mode.
|
||||
VCPKG_MANIFEST_MODE:BOOL=OFF
|
||||
|
||||
//Appends the vcpkg paths to CMAKE_PREFIX_PATH, CMAKE_LIBRARY_PATH
|
||||
// and CMAKE_FIND_ROOT_PATH so that vcpkg libraries/packages are
|
||||
// found after toolchain/system libraries/packages.
|
||||
VCPKG_PREFER_SYSTEM_LIBS:BOOL=OFF
|
||||
|
||||
//Vcpkg target triplet (ex. x86-windows)
|
||||
VCPKG_TARGET_TRIPLET:STRING=x64-windows
|
||||
|
||||
//Enables messages from the VCPKG toolchain for debugging purposes.
|
||||
VCPKG_VERBOSE:BOOL=OFF
|
||||
|
||||
//(experimental) Automatically copy dependencies into the install
|
||||
// target directory for executables. Requires CMake 3.14.
|
||||
X_VCPKG_APPLOCAL_DEPS_INSTALL:BOOL=OFF
|
||||
|
||||
//(experimental) Add USES_TERMINAL to VCPKG_APPLOCAL_DEPS to force
|
||||
// serialization.
|
||||
X_VCPKG_APPLOCAL_DEPS_SERIALIZED:BOOL=OFF
|
||||
|
||||
//Path to a program.
|
||||
Z_VCPKG_BUILTIN_POWERSHELL_PATH:FILEPATH=C:/Windows/System32/WindowsPowerShell/v1.0/powershell.exe
|
||||
|
||||
//Path to a program.
|
||||
Z_VCPKG_PWSH_PATH:FILEPATH=Z_VCPKG_PWSH_PATH-NOTFOUND
|
||||
|
||||
//The directory which contains the installed libraries for each
|
||||
// triplet
|
||||
_VCPKG_INSTALLED_DIR:PATH=C:/Users/gregd/vcpkg/installed
|
||||
|
||||
//Value Computed by CMake
|
||||
heif-convert_BINARY_DIR:STATIC=C:/Users/gregd/Documents/Source/autopsy/thirdparty/libheif/HeifConvertTestJNI/dist
|
||||
|
||||
//Value Computed by CMake
|
||||
heif-convert_IS_TOP_LEVEL:STATIC=ON
|
||||
|
||||
//Dependencies for the target
|
||||
heif-convert_LIB_DEPENDS:STATIC=general;heif;optimized;C:/Users/gregd/vcpkg/installed/x64-windows/lib/jpeg.lib;debug;C:/Users/gregd/vcpkg/installed/x64-windows/debug/lib/jpeg.lib;
|
||||
|
||||
//Value Computed by CMake
|
||||
heif-convert_SOURCE_DIR:STATIC=C:/Users/gregd/Documents/Source/autopsy/thirdparty/libheif/HeifConvertTestJNI
|
||||
|
||||
//The directory containing a CMake configuration file for libheif.
|
||||
libheif_DIR:PATH=C:/Users/gregd/vcpkg/installed/x64-windows/share/libheif
|
||||
|
||||
|
||||
########################
|
||||
# INTERNAL cache entries
|
||||
########################
|
||||
|
||||
//ADVANCED property for variable: CMAKE_AR
|
||||
CMAKE_AR-ADVANCED:INTERNAL=1
|
||||
//This is the directory where this CMakeCache.txt was created
|
||||
CMAKE_CACHEFILE_DIR:INTERNAL=c:/Users/gregd/Documents/Source/autopsy/thirdparty/libheif/HeifConvertTestJNI/dist
|
||||
//Major version of cmake used to create the current loaded cache
|
||||
CMAKE_CACHE_MAJOR_VERSION:INTERNAL=3
|
||||
//Minor version of cmake used to create the current loaded cache
|
||||
CMAKE_CACHE_MINOR_VERSION:INTERNAL=23
|
||||
//Patch version of cmake used to create the current loaded cache
|
||||
CMAKE_CACHE_PATCH_VERSION:INTERNAL=0
|
||||
//Path to CMake executable.
|
||||
CMAKE_COMMAND:INTERNAL=C:/Program Files/CMake/bin/cmake.exe
|
||||
//Path to cpack program executable.
|
||||
CMAKE_CPACK_COMMAND:INTERNAL=C:/Program Files/CMake/bin/cpack.exe
|
||||
//Path to ctest program executable.
|
||||
CMAKE_CTEST_COMMAND:INTERNAL=C:/Program Files/CMake/bin/ctest.exe
|
||||
//ADVANCED property for variable: CMAKE_CXX_FLAGS
|
||||
CMAKE_CXX_FLAGS-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_CXX_FLAGS_DEBUG
|
||||
CMAKE_CXX_FLAGS_DEBUG-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_CXX_FLAGS_MINSIZEREL
|
||||
CMAKE_CXX_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_CXX_FLAGS_RELEASE
|
||||
CMAKE_CXX_FLAGS_RELEASE-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_CXX_FLAGS_RELWITHDEBINFO
|
||||
CMAKE_CXX_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_CXX_STANDARD_LIBRARIES
|
||||
CMAKE_CXX_STANDARD_LIBRARIES-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_C_FLAGS
|
||||
CMAKE_C_FLAGS-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_C_FLAGS_DEBUG
|
||||
CMAKE_C_FLAGS_DEBUG-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_C_FLAGS_MINSIZEREL
|
||||
CMAKE_C_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_C_FLAGS_RELEASE
|
||||
CMAKE_C_FLAGS_RELEASE-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_C_FLAGS_RELWITHDEBINFO
|
||||
CMAKE_C_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_C_STANDARD_LIBRARIES
|
||||
CMAKE_C_STANDARD_LIBRARIES-ADVANCED:INTERNAL=1
|
||||
//Executable file format
|
||||
CMAKE_EXECUTABLE_FORMAT:INTERNAL=Unknown
|
||||
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS
|
||||
CMAKE_EXE_LINKER_FLAGS-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_DEBUG
|
||||
CMAKE_EXE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_MINSIZEREL
|
||||
CMAKE_EXE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELEASE
|
||||
CMAKE_EXE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO
|
||||
CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
|
||||
//Name of external makefile project generator.
|
||||
CMAKE_EXTRA_GENERATOR:INTERNAL=
|
||||
//Name of generator.
|
||||
CMAKE_GENERATOR:INTERNAL=Visual Studio 17 2022
|
||||
//Generator instance identifier.
|
||||
CMAKE_GENERATOR_INSTANCE:INTERNAL=C:/Program Files/Microsoft Visual Studio/2022/Community
|
||||
//Name of generator platform.
|
||||
CMAKE_GENERATOR_PLATFORM:INTERNAL=x64
|
||||
//Name of generator toolset.
|
||||
CMAKE_GENERATOR_TOOLSET:INTERNAL=
|
||||
//Source directory with the top level CMakeLists.txt file for this
|
||||
// project
|
||||
CMAKE_HOME_DIRECTORY:INTERNAL=C:/Users/gregd/Documents/Source/autopsy/thirdparty/libheif/HeifConvertTestJNI
|
||||
//ADVANCED property for variable: CMAKE_LINKER
|
||||
CMAKE_LINKER-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS
|
||||
CMAKE_MODULE_LINKER_FLAGS-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_DEBUG
|
||||
CMAKE_MODULE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL
|
||||
CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELEASE
|
||||
CMAKE_MODULE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO
|
||||
CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_MT
|
||||
CMAKE_MT-ADVANCED:INTERNAL=1
|
||||
//number of local generators
|
||||
CMAKE_NUMBER_OF_MAKEFILES:INTERNAL=1
|
||||
//Platform information initialized
|
||||
CMAKE_PLATFORM_INFO_INITIALIZED:INTERNAL=1
|
||||
//noop for ranlib
|
||||
CMAKE_RANLIB:INTERNAL=:
|
||||
//ADVANCED property for variable: CMAKE_RC_COMPILER
|
||||
CMAKE_RC_COMPILER-ADVANCED:INTERNAL=1
|
||||
CMAKE_RC_COMPILER_WORKS:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_RC_FLAGS
|
||||
CMAKE_RC_FLAGS-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_RC_FLAGS_DEBUG
|
||||
CMAKE_RC_FLAGS_DEBUG-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_RC_FLAGS_MINSIZEREL
|
||||
CMAKE_RC_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_RC_FLAGS_RELEASE
|
||||
CMAKE_RC_FLAGS_RELEASE-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_RC_FLAGS_RELWITHDEBINFO
|
||||
CMAKE_RC_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
|
||||
//Path to CMake installation.
|
||||
CMAKE_ROOT:INTERNAL=C:/Program Files/CMake/share/cmake-3.23
|
||||
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS
|
||||
CMAKE_SHARED_LINKER_FLAGS-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_DEBUG
|
||||
CMAKE_SHARED_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL
|
||||
CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELEASE
|
||||
CMAKE_SHARED_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO
|
||||
CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_SKIP_INSTALL_RPATH
|
||||
CMAKE_SKIP_INSTALL_RPATH-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_SKIP_RPATH
|
||||
CMAKE_SKIP_RPATH-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS
|
||||
CMAKE_STATIC_LINKER_FLAGS-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_DEBUG
|
||||
CMAKE_STATIC_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL
|
||||
CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELEASE
|
||||
CMAKE_STATIC_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO
|
||||
CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_TOOLCHAIN_FILE
|
||||
CMAKE_TOOLCHAIN_FILE-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_VERBOSE_MAKEFILE
|
||||
CMAKE_VERBOSE_MAKEFILE-ADVANCED:INTERNAL=1
|
||||
//Details about finding JNI
|
||||
FIND_PACKAGE_MESSAGE_DETAILS_JNI:INTERNAL=[C:/Program Files/ojdkbuild/java-1.8.0-openjdk-1.8.0.222-1/lib/jawt.lib][C:/Program Files/ojdkbuild/java-1.8.0-openjdk-1.8.0.222-1/lib/jvm.lib][C:/Program Files/ojdkbuild/java-1.8.0-openjdk-1.8.0.222-1/include][C:/Program Files/ojdkbuild/java-1.8.0-openjdk-1.8.0.222-1/include/win32][C:/Program Files/ojdkbuild/java-1.8.0-openjdk-1.8.0.222-1/include][v()]
|
||||
//Details about finding JPEG
|
||||
FIND_PACKAGE_MESSAGE_DETAILS_JPEG:INTERNAL=[optimized;C:/Users/gregd/vcpkg/installed/x64-windows/lib/jpeg.lib;debug;C:/Users/gregd/vcpkg/installed/x64-windows/debug/lib/jpeg.lib][C:/Users/gregd/vcpkg/installed/x64-windows/include][v62()]
|
||||
//Details about finding Java
|
||||
FIND_PACKAGE_MESSAGE_DETAILS_Java:INTERNAL=[C:/Program Files/ojdkbuild/java-1.8.0-openjdk-1.8.0.222-1/bin/java.exe][C:/Program Files/ojdkbuild/java-1.8.0-openjdk-1.8.0.222-1/bin/jar.exe][C:/Program Files/ojdkbuild/java-1.8.0-openjdk-1.8.0.222-1/bin/javac.exe][C:/Program Files/ojdkbuild/java-1.8.0-openjdk-1.8.0.222-1/bin/javah.exe][C:/Program Files/ojdkbuild/java-1.8.0-openjdk-1.8.0.222-1/bin/javadoc.exe][v1.8.0_222-1-ojdkbuild()]
|
||||
//Test HAVE_JPEG_WRITE_ICC_PROFILE
|
||||
HAVE_JPEG_WRITE_ICC_PROFILE:INTERNAL=1
|
||||
//ADVANCED property for variable: JAVA_AWT_INCLUDE_PATH
|
||||
JAVA_AWT_INCLUDE_PATH-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: JAVA_AWT_LIBRARY
|
||||
JAVA_AWT_LIBRARY-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: JAVA_INCLUDE_PATH
|
||||
JAVA_INCLUDE_PATH-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: JAVA_INCLUDE_PATH2
|
||||
JAVA_INCLUDE_PATH2-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: JAVA_JVM_LIBRARY
|
||||
JAVA_JVM_LIBRARY-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: JPEG_INCLUDE_DIR
|
||||
JPEG_INCLUDE_DIR-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: JPEG_LIBRARY_DEBUG
|
||||
JPEG_LIBRARY_DEBUG-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: JPEG_LIBRARY_RELEASE
|
||||
JPEG_LIBRARY_RELEASE-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: Java_IDLJ_EXECUTABLE
|
||||
Java_IDLJ_EXECUTABLE-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: Java_JARSIGNER_EXECUTABLE
|
||||
Java_JARSIGNER_EXECUTABLE-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: Java_JAR_EXECUTABLE
|
||||
Java_JAR_EXECUTABLE-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: Java_JAVAC_EXECUTABLE
|
||||
Java_JAVAC_EXECUTABLE-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: Java_JAVADOC_EXECUTABLE
|
||||
Java_JAVADOC_EXECUTABLE-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: Java_JAVAH_EXECUTABLE
|
||||
Java_JAVAH_EXECUTABLE-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: Java_JAVA_EXECUTABLE
|
||||
Java_JAVA_EXECUTABLE-ADVANCED:INTERNAL=1
|
||||
//Install the dependencies listed in your manifest:
|
||||
//\n If this is off, you will have to manually install your dependencies.
|
||||
//\n See https://github.com/microsoft/vcpkg/tree/master/docs/specifications/manifests.md
|
||||
// for more info.
|
||||
//\n
|
||||
VCPKG_MANIFEST_INSTALL:INTERNAL=OFF
|
||||
//ADVANCED property for variable: VCPKG_VERBOSE
|
||||
VCPKG_VERBOSE-ADVANCED:INTERNAL=1
|
||||
//Making sure VCPKG_MANIFEST_MODE doesn't change
|
||||
Z_VCPKG_CHECK_MANIFEST_MODE:INTERNAL=OFF
|
||||
//The path to the PowerShell implementation to use.
|
||||
Z_VCPKG_POWERSHELL_PATH:INTERNAL=C:/Windows/System32/WindowsPowerShell/v1.0/powershell.exe
|
||||
//Vcpkg root directory
|
||||
Z_VCPKG_ROOT_DIR:INTERNAL=C:/Users/gregd/vcpkg
|
||||
|
@ -0,0 +1 @@
|
||||
# generated from CMake
|
@ -0,0 +1 @@
|
||||
# generated from CMake
|
72
thirdparty/libheif/HeifConvertTestJNI/dist/CMakeFiles/3.23.0-rc2/CMakeCCompiler.cmake
vendored
Normal file
72
thirdparty/libheif/HeifConvertTestJNI/dist/CMakeFiles/3.23.0-rc2/CMakeCCompiler.cmake
vendored
Normal file
@ -0,0 +1,72 @@
|
||||
set(CMAKE_C_COMPILER "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.31.31103/bin/Hostx64/x64/cl.exe")
|
||||
set(CMAKE_C_COMPILER_ARG1 "")
|
||||
set(CMAKE_C_COMPILER_ID "MSVC")
|
||||
set(CMAKE_C_COMPILER_VERSION "19.31.31104.0")
|
||||
set(CMAKE_C_COMPILER_VERSION_INTERNAL "")
|
||||
set(CMAKE_C_COMPILER_WRAPPER "")
|
||||
set(CMAKE_C_STANDARD_COMPUTED_DEFAULT "90")
|
||||
set(CMAKE_C_EXTENSIONS_COMPUTED_DEFAULT "OFF")
|
||||
set(CMAKE_C_COMPILE_FEATURES "c_std_90;c_function_prototypes;c_std_99;c_restrict;c_variadic_macros;c_std_11;c_static_assert;c_std_17")
|
||||
set(CMAKE_C90_COMPILE_FEATURES "c_std_90;c_function_prototypes")
|
||||
set(CMAKE_C99_COMPILE_FEATURES "c_std_99;c_restrict;c_variadic_macros")
|
||||
set(CMAKE_C11_COMPILE_FEATURES "c_std_11;c_static_assert")
|
||||
set(CMAKE_C17_COMPILE_FEATURES "c_std_17")
|
||||
set(CMAKE_C23_COMPILE_FEATURES "")
|
||||
|
||||
set(CMAKE_C_PLATFORM_ID "Windows")
|
||||
set(CMAKE_C_SIMULATE_ID "")
|
||||
set(CMAKE_C_COMPILER_FRONTEND_VARIANT "")
|
||||
set(CMAKE_C_SIMULATE_VERSION "")
|
||||
set(CMAKE_C_COMPILER_ARCHITECTURE_ID x64)
|
||||
|
||||
set(MSVC_C_ARCHITECTURE_ID x64)
|
||||
|
||||
set(CMAKE_AR "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.31.31103/bin/Hostx64/x64/lib.exe")
|
||||
set(CMAKE_C_COMPILER_AR "")
|
||||
set(CMAKE_RANLIB ":")
|
||||
set(CMAKE_C_COMPILER_RANLIB "")
|
||||
set(CMAKE_LINKER "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.31.31103/bin/Hostx64/x64/link.exe")
|
||||
set(CMAKE_MT "CMAKE_MT-NOTFOUND")
|
||||
set(CMAKE_COMPILER_IS_GNUCC )
|
||||
set(CMAKE_C_COMPILER_LOADED 1)
|
||||
set(CMAKE_C_COMPILER_WORKS TRUE)
|
||||
set(CMAKE_C_ABI_COMPILED TRUE)
|
||||
|
||||
set(CMAKE_C_COMPILER_ENV_VAR "CC")
|
||||
|
||||
set(CMAKE_C_COMPILER_ID_RUN 1)
|
||||
set(CMAKE_C_SOURCE_FILE_EXTENSIONS c;m)
|
||||
set(CMAKE_C_IGNORE_EXTENSIONS h;H;o;O;obj;OBJ;def;DEF;rc;RC)
|
||||
set(CMAKE_C_LINKER_PREFERENCE 10)
|
||||
|
||||
# Save compiler ABI information.
|
||||
set(CMAKE_C_SIZEOF_DATA_PTR "8")
|
||||
set(CMAKE_C_COMPILER_ABI "")
|
||||
set(CMAKE_C_BYTE_ORDER "LITTLE_ENDIAN")
|
||||
set(CMAKE_C_LIBRARY_ARCHITECTURE "")
|
||||
|
||||
if(CMAKE_C_SIZEOF_DATA_PTR)
|
||||
set(CMAKE_SIZEOF_VOID_P "${CMAKE_C_SIZEOF_DATA_PTR}")
|
||||
endif()
|
||||
|
||||
if(CMAKE_C_COMPILER_ABI)
|
||||
set(CMAKE_INTERNAL_PLATFORM_ABI "${CMAKE_C_COMPILER_ABI}")
|
||||
endif()
|
||||
|
||||
if(CMAKE_C_LIBRARY_ARCHITECTURE)
|
||||
set(CMAKE_LIBRARY_ARCHITECTURE "")
|
||||
endif()
|
||||
|
||||
set(CMAKE_C_CL_SHOWINCLUDES_PREFIX "")
|
||||
if(CMAKE_C_CL_SHOWINCLUDES_PREFIX)
|
||||
set(CMAKE_CL_SHOWINCLUDES_PREFIX "${CMAKE_C_CL_SHOWINCLUDES_PREFIX}")
|
||||
endif()
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
set(CMAKE_C_IMPLICIT_INCLUDE_DIRECTORIES "")
|
||||
set(CMAKE_C_IMPLICIT_LINK_LIBRARIES "")
|
||||
set(CMAKE_C_IMPLICIT_LINK_DIRECTORIES "")
|
||||
set(CMAKE_C_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES "")
|
83
thirdparty/libheif/HeifConvertTestJNI/dist/CMakeFiles/3.23.0-rc2/CMakeCXXCompiler.cmake
vendored
Normal file
83
thirdparty/libheif/HeifConvertTestJNI/dist/CMakeFiles/3.23.0-rc2/CMakeCXXCompiler.cmake
vendored
Normal file
@ -0,0 +1,83 @@
|
||||
set(CMAKE_CXX_COMPILER "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.31.31103/bin/Hostx64/x64/cl.exe")
|
||||
set(CMAKE_CXX_COMPILER_ARG1 "")
|
||||
set(CMAKE_CXX_COMPILER_ID "MSVC")
|
||||
set(CMAKE_CXX_COMPILER_VERSION "19.31.31104.0")
|
||||
set(CMAKE_CXX_COMPILER_VERSION_INTERNAL "")
|
||||
set(CMAKE_CXX_COMPILER_WRAPPER "")
|
||||
set(CMAKE_CXX_STANDARD_COMPUTED_DEFAULT "14")
|
||||
set(CMAKE_CXX_EXTENSIONS_COMPUTED_DEFAULT "OFF")
|
||||
set(CMAKE_CXX_COMPILE_FEATURES "cxx_std_98;cxx_template_template_parameters;cxx_std_11;cxx_alias_templates;cxx_alignas;cxx_alignof;cxx_attributes;cxx_auto_type;cxx_constexpr;cxx_decltype;cxx_decltype_incomplete_return_types;cxx_default_function_template_args;cxx_defaulted_functions;cxx_defaulted_move_initializers;cxx_delegating_constructors;cxx_deleted_functions;cxx_enum_forward_declarations;cxx_explicit_conversions;cxx_extended_friend_declarations;cxx_extern_templates;cxx_final;cxx_func_identifier;cxx_generalized_initializers;cxx_inheriting_constructors;cxx_inline_namespaces;cxx_lambdas;cxx_local_type_template_args;cxx_long_long_type;cxx_noexcept;cxx_nonstatic_member_init;cxx_nullptr;cxx_override;cxx_range_for;cxx_raw_string_literals;cxx_reference_qualified_functions;cxx_right_angle_brackets;cxx_rvalue_references;cxx_sizeof_member;cxx_static_assert;cxx_strong_enums;cxx_thread_local;cxx_trailing_return_types;cxx_unicode_literals;cxx_uniform_initialization;cxx_unrestricted_unions;cxx_user_literals;cxx_variadic_macros;cxx_variadic_templates;cxx_std_14;cxx_aggregate_default_initializers;cxx_attribute_deprecated;cxx_binary_literals;cxx_contextual_conversions;cxx_decltype_auto;cxx_digit_separators;cxx_generic_lambdas;cxx_lambda_init_captures;cxx_relaxed_constexpr;cxx_return_type_deduction;cxx_variable_templates;cxx_std_17;cxx_std_20;cxx_std_23")
|
||||
set(CMAKE_CXX98_COMPILE_FEATURES "cxx_std_98;cxx_template_template_parameters")
|
||||
set(CMAKE_CXX11_COMPILE_FEATURES "cxx_std_11;cxx_alias_templates;cxx_alignas;cxx_alignof;cxx_attributes;cxx_auto_type;cxx_constexpr;cxx_decltype;cxx_decltype_incomplete_return_types;cxx_default_function_template_args;cxx_defaulted_functions;cxx_defaulted_move_initializers;cxx_delegating_constructors;cxx_deleted_functions;cxx_enum_forward_declarations;cxx_explicit_conversions;cxx_extended_friend_declarations;cxx_extern_templates;cxx_final;cxx_func_identifier;cxx_generalized_initializers;cxx_inheriting_constructors;cxx_inline_namespaces;cxx_lambdas;cxx_local_type_template_args;cxx_long_long_type;cxx_noexcept;cxx_nonstatic_member_init;cxx_nullptr;cxx_override;cxx_range_for;cxx_raw_string_literals;cxx_reference_qualified_functions;cxx_right_angle_brackets;cxx_rvalue_references;cxx_sizeof_member;cxx_static_assert;cxx_strong_enums;cxx_thread_local;cxx_trailing_return_types;cxx_unicode_literals;cxx_uniform_initialization;cxx_unrestricted_unions;cxx_user_literals;cxx_variadic_macros;cxx_variadic_templates")
|
||||
set(CMAKE_CXX14_COMPILE_FEATURES "cxx_std_14;cxx_aggregate_default_initializers;cxx_attribute_deprecated;cxx_binary_literals;cxx_contextual_conversions;cxx_decltype_auto;cxx_digit_separators;cxx_generic_lambdas;cxx_lambda_init_captures;cxx_relaxed_constexpr;cxx_return_type_deduction;cxx_variable_templates")
|
||||
set(CMAKE_CXX17_COMPILE_FEATURES "cxx_std_17")
|
||||
set(CMAKE_CXX20_COMPILE_FEATURES "cxx_std_20")
|
||||
set(CMAKE_CXX23_COMPILE_FEATURES "cxx_std_23")
|
||||
|
||||
set(CMAKE_CXX_PLATFORM_ID "Windows")
|
||||
set(CMAKE_CXX_SIMULATE_ID "")
|
||||
set(CMAKE_CXX_COMPILER_FRONTEND_VARIANT "")
|
||||
set(CMAKE_CXX_SIMULATE_VERSION "")
|
||||
set(CMAKE_CXX_COMPILER_ARCHITECTURE_ID x64)
|
||||
|
||||
set(MSVC_CXX_ARCHITECTURE_ID x64)
|
||||
|
||||
set(CMAKE_AR "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.31.31103/bin/Hostx64/x64/lib.exe")
|
||||
set(CMAKE_CXX_COMPILER_AR "")
|
||||
set(CMAKE_RANLIB ":")
|
||||
set(CMAKE_CXX_COMPILER_RANLIB "")
|
||||
set(CMAKE_LINKER "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.31.31103/bin/Hostx64/x64/link.exe")
|
||||
set(CMAKE_MT "CMAKE_MT-NOTFOUND")
|
||||
set(CMAKE_COMPILER_IS_GNUCXX )
|
||||
set(CMAKE_CXX_COMPILER_LOADED 1)
|
||||
set(CMAKE_CXX_COMPILER_WORKS TRUE)
|
||||
set(CMAKE_CXX_ABI_COMPILED TRUE)
|
||||
|
||||
set(CMAKE_CXX_COMPILER_ENV_VAR "CXX")
|
||||
|
||||
set(CMAKE_CXX_COMPILER_ID_RUN 1)
|
||||
set(CMAKE_CXX_SOURCE_FILE_EXTENSIONS C;M;c++;cc;cpp;cxx;m;mm;mpp;CPP;ixx;cppm)
|
||||
set(CMAKE_CXX_IGNORE_EXTENSIONS inl;h;hpp;HPP;H;o;O;obj;OBJ;def;DEF;rc;RC)
|
||||
|
||||
foreach (lang C OBJC OBJCXX)
|
||||
if (CMAKE_${lang}_COMPILER_ID_RUN)
|
||||
foreach(extension IN LISTS CMAKE_${lang}_SOURCE_FILE_EXTENSIONS)
|
||||
list(REMOVE_ITEM CMAKE_CXX_SOURCE_FILE_EXTENSIONS ${extension})
|
||||
endforeach()
|
||||
endif()
|
||||
endforeach()
|
||||
|
||||
set(CMAKE_CXX_LINKER_PREFERENCE 30)
|
||||
set(CMAKE_CXX_LINKER_PREFERENCE_PROPAGATES 1)
|
||||
|
||||
# Save compiler ABI information.
|
||||
set(CMAKE_CXX_SIZEOF_DATA_PTR "8")
|
||||
set(CMAKE_CXX_COMPILER_ABI "")
|
||||
set(CMAKE_CXX_BYTE_ORDER "LITTLE_ENDIAN")
|
||||
set(CMAKE_CXX_LIBRARY_ARCHITECTURE "")
|
||||
|
||||
if(CMAKE_CXX_SIZEOF_DATA_PTR)
|
||||
set(CMAKE_SIZEOF_VOID_P "${CMAKE_CXX_SIZEOF_DATA_PTR}")
|
||||
endif()
|
||||
|
||||
if(CMAKE_CXX_COMPILER_ABI)
|
||||
set(CMAKE_INTERNAL_PLATFORM_ABI "${CMAKE_CXX_COMPILER_ABI}")
|
||||
endif()
|
||||
|
||||
if(CMAKE_CXX_LIBRARY_ARCHITECTURE)
|
||||
set(CMAKE_LIBRARY_ARCHITECTURE "")
|
||||
endif()
|
||||
|
||||
set(CMAKE_CXX_CL_SHOWINCLUDES_PREFIX "")
|
||||
if(CMAKE_CXX_CL_SHOWINCLUDES_PREFIX)
|
||||
set(CMAKE_CL_SHOWINCLUDES_PREFIX "${CMAKE_CXX_CL_SHOWINCLUDES_PREFIX}")
|
||||
endif()
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
set(CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES "")
|
||||
set(CMAKE_CXX_IMPLICIT_LINK_LIBRARIES "")
|
||||
set(CMAKE_CXX_IMPLICIT_LINK_DIRECTORIES "")
|
||||
set(CMAKE_CXX_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES "")
|
BIN
thirdparty/libheif/HeifConvertTestJNI/dist/CMakeFiles/3.23.0-rc2/CMakeDetermineCompilerABI_C.bin
vendored
Normal file
BIN
thirdparty/libheif/HeifConvertTestJNI/dist/CMakeFiles/3.23.0-rc2/CMakeDetermineCompilerABI_C.bin
vendored
Normal file
Binary file not shown.
BIN
thirdparty/libheif/HeifConvertTestJNI/dist/CMakeFiles/3.23.0-rc2/CMakeDetermineCompilerABI_CXX.bin
vendored
Normal file
BIN
thirdparty/libheif/HeifConvertTestJNI/dist/CMakeFiles/3.23.0-rc2/CMakeDetermineCompilerABI_CXX.bin
vendored
Normal file
Binary file not shown.
6
thirdparty/libheif/HeifConvertTestJNI/dist/CMakeFiles/3.23.0-rc2/CMakeRCCompiler.cmake
vendored
Normal file
6
thirdparty/libheif/HeifConvertTestJNI/dist/CMakeFiles/3.23.0-rc2/CMakeRCCompiler.cmake
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
set(CMAKE_RC_COMPILER "rc")
|
||||
set(CMAKE_RC_COMPILER_ARG1 "")
|
||||
set(CMAKE_RC_COMPILER_LOADED 1)
|
||||
set(CMAKE_RC_SOURCE_FILE_EXTENSIONS rc;RC)
|
||||
set(CMAKE_RC_OUTPUT_EXTENSION .res)
|
||||
set(CMAKE_RC_COMPILER_ENV_VAR "RC")
|
15
thirdparty/libheif/HeifConvertTestJNI/dist/CMakeFiles/3.23.0-rc2/CMakeSystem.cmake
vendored
Normal file
15
thirdparty/libheif/HeifConvertTestJNI/dist/CMakeFiles/3.23.0-rc2/CMakeSystem.cmake
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
set(CMAKE_HOST_SYSTEM "Windows-10.0.19044")
|
||||
set(CMAKE_HOST_SYSTEM_NAME "Windows")
|
||||
set(CMAKE_HOST_SYSTEM_VERSION "10.0.19044")
|
||||
set(CMAKE_HOST_SYSTEM_PROCESSOR "AMD64")
|
||||
|
||||
include("C:/Users/gregd/vcpkg/scripts/buildsystems/vcpkg.cmake")
|
||||
|
||||
set(CMAKE_SYSTEM "Windows-10.0.19044")
|
||||
set(CMAKE_SYSTEM_NAME "Windows")
|
||||
set(CMAKE_SYSTEM_VERSION "10.0.19044")
|
||||
set(CMAKE_SYSTEM_PROCESSOR "AMD64")
|
||||
|
||||
set(CMAKE_CROSSCOMPILING "FALSE")
|
||||
|
||||
set(CMAKE_SYSTEM_LOADED 1)
|
828
thirdparty/libheif/HeifConvertTestJNI/dist/CMakeFiles/3.23.0-rc2/CompilerIdC/CMakeCCompilerId.c
vendored
Normal file
828
thirdparty/libheif/HeifConvertTestJNI/dist/CMakeFiles/3.23.0-rc2/CompilerIdC/CMakeCCompilerId.c
vendored
Normal file
@ -0,0 +1,828 @@
|
||||
#ifdef __cplusplus
|
||||
# error "A C++ compiler has been selected for C."
|
||||
#endif
|
||||
|
||||
#if defined(__18CXX)
|
||||
# define ID_VOID_MAIN
|
||||
#endif
|
||||
#if defined(__CLASSIC_C__)
|
||||
/* cv-qualifiers did not exist in K&R C */
|
||||
# define const
|
||||
# define volatile
|
||||
#endif
|
||||
|
||||
#if !defined(__has_include)
|
||||
/* If the compiler does not have __has_include, pretend the answer is
|
||||
always no. */
|
||||
# define __has_include(x) 0
|
||||
#endif
|
||||
|
||||
|
||||
/* Version number components: V=Version, R=Revision, P=Patch
|
||||
Version date components: YYYY=Year, MM=Month, DD=Day */
|
||||
|
||||
#if defined(__INTEL_COMPILER) || defined(__ICC)
|
||||
# define COMPILER_ID "Intel"
|
||||
# if defined(_MSC_VER)
|
||||
# define SIMULATE_ID "MSVC"
|
||||
# endif
|
||||
# if defined(__GNUC__)
|
||||
# define SIMULATE_ID "GNU"
|
||||
# endif
|
||||
/* __INTEL_COMPILER = VRP prior to 2021, and then VVVV for 2021 and later,
|
||||
except that a few beta releases use the old format with V=2021. */
|
||||
# if __INTEL_COMPILER < 2021 || __INTEL_COMPILER == 202110 || __INTEL_COMPILER == 202111
|
||||
# define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER/100)
|
||||
# define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER/10 % 10)
|
||||
# if defined(__INTEL_COMPILER_UPDATE)
|
||||
# define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER_UPDATE)
|
||||
# else
|
||||
# define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER % 10)
|
||||
# endif
|
||||
# else
|
||||
# define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER)
|
||||
# define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER_UPDATE)
|
||||
/* The third version component from --version is an update index,
|
||||
but no macro is provided for it. */
|
||||
# define COMPILER_VERSION_PATCH DEC(0)
|
||||
# endif
|
||||
# if defined(__INTEL_COMPILER_BUILD_DATE)
|
||||
/* __INTEL_COMPILER_BUILD_DATE = YYYYMMDD */
|
||||
# define COMPILER_VERSION_TWEAK DEC(__INTEL_COMPILER_BUILD_DATE)
|
||||
# endif
|
||||
# if defined(_MSC_VER)
|
||||
/* _MSC_VER = VVRR */
|
||||
# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
|
||||
# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
|
||||
# endif
|
||||
# if defined(__GNUC__)
|
||||
# define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
|
||||
# elif defined(__GNUG__)
|
||||
# define SIMULATE_VERSION_MAJOR DEC(__GNUG__)
|
||||
# endif
|
||||
# if defined(__GNUC_MINOR__)
|
||||
# define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
|
||||
# endif
|
||||
# if defined(__GNUC_PATCHLEVEL__)
|
||||
# define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
|
||||
# endif
|
||||
|
||||
#elif (defined(__clang__) && defined(__INTEL_CLANG_COMPILER)) || defined(__INTEL_LLVM_COMPILER)
|
||||
# define COMPILER_ID "IntelLLVM"
|
||||
#if defined(_MSC_VER)
|
||||
# define SIMULATE_ID "MSVC"
|
||||
#endif
|
||||
#if defined(__GNUC__)
|
||||
# define SIMULATE_ID "GNU"
|
||||
#endif
|
||||
/* __INTEL_LLVM_COMPILER = VVVVRP prior to 2021.2.0, VVVVRRPP for 2021.2.0 and
|
||||
* later. Look for 6 digit vs. 8 digit version number to decide encoding.
|
||||
* VVVV is no smaller than the current year when a version is released.
|
||||
*/
|
||||
#if __INTEL_LLVM_COMPILER < 1000000L
|
||||
# define COMPILER_VERSION_MAJOR DEC(__INTEL_LLVM_COMPILER/100)
|
||||
# define COMPILER_VERSION_MINOR DEC(__INTEL_LLVM_COMPILER/10 % 10)
|
||||
# define COMPILER_VERSION_PATCH DEC(__INTEL_LLVM_COMPILER % 10)
|
||||
#else
|
||||
# define COMPILER_VERSION_MAJOR DEC(__INTEL_LLVM_COMPILER/10000)
|
||||
# define COMPILER_VERSION_MINOR DEC(__INTEL_LLVM_COMPILER/100 % 100)
|
||||
# define COMPILER_VERSION_PATCH DEC(__INTEL_LLVM_COMPILER % 100)
|
||||
#endif
|
||||
#if defined(_MSC_VER)
|
||||
/* _MSC_VER = VVRR */
|
||||
# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
|
||||
# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
|
||||
#endif
|
||||
#if defined(__GNUC__)
|
||||
# define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
|
||||
#elif defined(__GNUG__)
|
||||
# define SIMULATE_VERSION_MAJOR DEC(__GNUG__)
|
||||
#endif
|
||||
#if defined(__GNUC_MINOR__)
|
||||
# define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
|
||||
#endif
|
||||
#if defined(__GNUC_PATCHLEVEL__)
|
||||
# define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
|
||||
#endif
|
||||
|
||||
#elif defined(__PATHCC__)
|
||||
# define COMPILER_ID "PathScale"
|
||||
# define COMPILER_VERSION_MAJOR DEC(__PATHCC__)
|
||||
# define COMPILER_VERSION_MINOR DEC(__PATHCC_MINOR__)
|
||||
# if defined(__PATHCC_PATCHLEVEL__)
|
||||
# define COMPILER_VERSION_PATCH DEC(__PATHCC_PATCHLEVEL__)
|
||||
# endif
|
||||
|
||||
#elif defined(__BORLANDC__) && defined(__CODEGEARC_VERSION__)
|
||||
# define COMPILER_ID "Embarcadero"
|
||||
# define COMPILER_VERSION_MAJOR HEX(__CODEGEARC_VERSION__>>24 & 0x00FF)
|
||||
# define COMPILER_VERSION_MINOR HEX(__CODEGEARC_VERSION__>>16 & 0x00FF)
|
||||
# define COMPILER_VERSION_PATCH DEC(__CODEGEARC_VERSION__ & 0xFFFF)
|
||||
|
||||
#elif defined(__BORLANDC__)
|
||||
# define COMPILER_ID "Borland"
|
||||
/* __BORLANDC__ = 0xVRR */
|
||||
# define COMPILER_VERSION_MAJOR HEX(__BORLANDC__>>8)
|
||||
# define COMPILER_VERSION_MINOR HEX(__BORLANDC__ & 0xFF)
|
||||
|
||||
#elif defined(__WATCOMC__) && __WATCOMC__ < 1200
|
||||
# define COMPILER_ID "Watcom"
|
||||
/* __WATCOMC__ = VVRR */
|
||||
# define COMPILER_VERSION_MAJOR DEC(__WATCOMC__ / 100)
|
||||
# define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
|
||||
# if (__WATCOMC__ % 10) > 0
|
||||
# define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
|
||||
# endif
|
||||
|
||||
#elif defined(__WATCOMC__)
|
||||
# define COMPILER_ID "OpenWatcom"
|
||||
/* __WATCOMC__ = VVRP + 1100 */
|
||||
# define COMPILER_VERSION_MAJOR DEC((__WATCOMC__ - 1100) / 100)
|
||||
# define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
|
||||
# if (__WATCOMC__ % 10) > 0
|
||||
# define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
|
||||
# endif
|
||||
|
||||
#elif defined(__SUNPRO_C)
|
||||
# define COMPILER_ID "SunPro"
|
||||
# if __SUNPRO_C >= 0x5100
|
||||
/* __SUNPRO_C = 0xVRRP */
|
||||
# define COMPILER_VERSION_MAJOR HEX(__SUNPRO_C>>12)
|
||||
# define COMPILER_VERSION_MINOR HEX(__SUNPRO_C>>4 & 0xFF)
|
||||
# define COMPILER_VERSION_PATCH HEX(__SUNPRO_C & 0xF)
|
||||
# else
|
||||
/* __SUNPRO_CC = 0xVRP */
|
||||
# define COMPILER_VERSION_MAJOR HEX(__SUNPRO_C>>8)
|
||||
# define COMPILER_VERSION_MINOR HEX(__SUNPRO_C>>4 & 0xF)
|
||||
# define COMPILER_VERSION_PATCH HEX(__SUNPRO_C & 0xF)
|
||||
# endif
|
||||
|
||||
#elif defined(__HP_cc)
|
||||
# define COMPILER_ID "HP"
|
||||
/* __HP_cc = VVRRPP */
|
||||
# define COMPILER_VERSION_MAJOR DEC(__HP_cc/10000)
|
||||
# define COMPILER_VERSION_MINOR DEC(__HP_cc/100 % 100)
|
||||
# define COMPILER_VERSION_PATCH DEC(__HP_cc % 100)
|
||||
|
||||
#elif defined(__DECC)
|
||||
# define COMPILER_ID "Compaq"
|
||||
/* __DECC_VER = VVRRTPPPP */
|
||||
# define COMPILER_VERSION_MAJOR DEC(__DECC_VER/10000000)
|
||||
# define COMPILER_VERSION_MINOR DEC(__DECC_VER/100000 % 100)
|
||||
# define COMPILER_VERSION_PATCH DEC(__DECC_VER % 10000)
|
||||
|
||||
#elif defined(__IBMC__) && defined(__COMPILER_VER__)
|
||||
# define COMPILER_ID "zOS"
|
||||
/* __IBMC__ = VRP */
|
||||
# define COMPILER_VERSION_MAJOR DEC(__IBMC__/100)
|
||||
# define COMPILER_VERSION_MINOR DEC(__IBMC__/10 % 10)
|
||||
# define COMPILER_VERSION_PATCH DEC(__IBMC__ % 10)
|
||||
|
||||
#elif defined(__open_xl__) && defined(__clang__)
|
||||
# define COMPILER_ID "IBMClang"
|
||||
# define COMPILER_VERSION_MAJOR DEC(__open_xl_version__)
|
||||
# define COMPILER_VERSION_MINOR DEC(__open_xl_release__)
|
||||
# define COMPILER_VERSION_PATCH DEC(__open_xl_modification__)
|
||||
# define COMPILER_VERSION_TWEAK DEC(__open_xl_ptf_fix_level__)
|
||||
|
||||
|
||||
#elif defined(__ibmxl__) && defined(__clang__)
|
||||
# define COMPILER_ID "XLClang"
|
||||
# define COMPILER_VERSION_MAJOR DEC(__ibmxl_version__)
|
||||
# define COMPILER_VERSION_MINOR DEC(__ibmxl_release__)
|
||||
# define COMPILER_VERSION_PATCH DEC(__ibmxl_modification__)
|
||||
# define COMPILER_VERSION_TWEAK DEC(__ibmxl_ptf_fix_level__)
|
||||
|
||||
|
||||
#elif defined(__IBMC__) && !defined(__COMPILER_VER__) && __IBMC__ >= 800
|
||||
# define COMPILER_ID "XL"
|
||||
/* __IBMC__ = VRP */
|
||||
# define COMPILER_VERSION_MAJOR DEC(__IBMC__/100)
|
||||
# define COMPILER_VERSION_MINOR DEC(__IBMC__/10 % 10)
|
||||
# define COMPILER_VERSION_PATCH DEC(__IBMC__ % 10)
|
||||
|
||||
#elif defined(__IBMC__) && !defined(__COMPILER_VER__) && __IBMC__ < 800
|
||||
# define COMPILER_ID "VisualAge"
|
||||
/* __IBMC__ = VRP */
|
||||
# define COMPILER_VERSION_MAJOR DEC(__IBMC__/100)
|
||||
# define COMPILER_VERSION_MINOR DEC(__IBMC__/10 % 10)
|
||||
# define COMPILER_VERSION_PATCH DEC(__IBMC__ % 10)
|
||||
|
||||
#elif defined(__NVCOMPILER)
|
||||
# define COMPILER_ID "NVHPC"
|
||||
# define COMPILER_VERSION_MAJOR DEC(__NVCOMPILER_MAJOR__)
|
||||
# define COMPILER_VERSION_MINOR DEC(__NVCOMPILER_MINOR__)
|
||||
# if defined(__NVCOMPILER_PATCHLEVEL__)
|
||||
# define COMPILER_VERSION_PATCH DEC(__NVCOMPILER_PATCHLEVEL__)
|
||||
# endif
|
||||
|
||||
#elif defined(__PGI)
|
||||
# define COMPILER_ID "PGI"
|
||||
# define COMPILER_VERSION_MAJOR DEC(__PGIC__)
|
||||
# define COMPILER_VERSION_MINOR DEC(__PGIC_MINOR__)
|
||||
# if defined(__PGIC_PATCHLEVEL__)
|
||||
# define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__)
|
||||
# endif
|
||||
|
||||
#elif defined(_CRAYC)
|
||||
# define COMPILER_ID "Cray"
|
||||
# define COMPILER_VERSION_MAJOR DEC(_RELEASE_MAJOR)
|
||||
# define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR)
|
||||
|
||||
#elif defined(__TI_COMPILER_VERSION__)
|
||||
# define COMPILER_ID "TI"
|
||||
/* __TI_COMPILER_VERSION__ = VVVRRRPPP */
|
||||
# define COMPILER_VERSION_MAJOR DEC(__TI_COMPILER_VERSION__/1000000)
|
||||
# define COMPILER_VERSION_MINOR DEC(__TI_COMPILER_VERSION__/1000 % 1000)
|
||||
# define COMPILER_VERSION_PATCH DEC(__TI_COMPILER_VERSION__ % 1000)
|
||||
|
||||
#elif defined(__CLANG_FUJITSU)
|
||||
# define COMPILER_ID "FujitsuClang"
|
||||
# define COMPILER_VERSION_MAJOR DEC(__FCC_major__)
|
||||
# define COMPILER_VERSION_MINOR DEC(__FCC_minor__)
|
||||
# define COMPILER_VERSION_PATCH DEC(__FCC_patchlevel__)
|
||||
# define COMPILER_VERSION_INTERNAL_STR __clang_version__
|
||||
|
||||
|
||||
#elif defined(__FUJITSU)
|
||||
# define COMPILER_ID "Fujitsu"
|
||||
# if defined(__FCC_version__)
|
||||
# define COMPILER_VERSION __FCC_version__
|
||||
# elif defined(__FCC_major__)
|
||||
# define COMPILER_VERSION_MAJOR DEC(__FCC_major__)
|
||||
# define COMPILER_VERSION_MINOR DEC(__FCC_minor__)
|
||||
# define COMPILER_VERSION_PATCH DEC(__FCC_patchlevel__)
|
||||
# endif
|
||||
# if defined(__fcc_version)
|
||||
# define COMPILER_VERSION_INTERNAL DEC(__fcc_version)
|
||||
# elif defined(__FCC_VERSION)
|
||||
# define COMPILER_VERSION_INTERNAL DEC(__FCC_VERSION)
|
||||
# endif
|
||||
|
||||
|
||||
#elif defined(__ghs__)
|
||||
# define COMPILER_ID "GHS"
|
||||
/* __GHS_VERSION_NUMBER = VVVVRP */
|
||||
# ifdef __GHS_VERSION_NUMBER
|
||||
# define COMPILER_VERSION_MAJOR DEC(__GHS_VERSION_NUMBER / 100)
|
||||
# define COMPILER_VERSION_MINOR DEC(__GHS_VERSION_NUMBER / 10 % 10)
|
||||
# define COMPILER_VERSION_PATCH DEC(__GHS_VERSION_NUMBER % 10)
|
||||
# endif
|
||||
|
||||
#elif defined(__TINYC__)
|
||||
# define COMPILER_ID "TinyCC"
|
||||
|
||||
#elif defined(__BCC__)
|
||||
# define COMPILER_ID "Bruce"
|
||||
|
||||
#elif defined(__SCO_VERSION__)
|
||||
# define COMPILER_ID "SCO"
|
||||
|
||||
#elif defined(__ARMCC_VERSION) && !defined(__clang__)
|
||||
# define COMPILER_ID "ARMCC"
|
||||
#if __ARMCC_VERSION >= 1000000
|
||||
/* __ARMCC_VERSION = VRRPPPP */
|
||||
# define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/1000000)
|
||||
# define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 100)
|
||||
# define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
|
||||
#else
|
||||
/* __ARMCC_VERSION = VRPPPP */
|
||||
# define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/100000)
|
||||
# define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 10)
|
||||
# define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
|
||||
#endif
|
||||
|
||||
|
||||
#elif defined(__clang__) && defined(__apple_build_version__)
|
||||
# define COMPILER_ID "AppleClang"
|
||||
# if defined(_MSC_VER)
|
||||
# define SIMULATE_ID "MSVC"
|
||||
# endif
|
||||
# define COMPILER_VERSION_MAJOR DEC(__clang_major__)
|
||||
# define COMPILER_VERSION_MINOR DEC(__clang_minor__)
|
||||
# define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
|
||||
# if defined(_MSC_VER)
|
||||
/* _MSC_VER = VVRR */
|
||||
# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
|
||||
# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
|
||||
# endif
|
||||
# define COMPILER_VERSION_TWEAK DEC(__apple_build_version__)
|
||||
|
||||
#elif defined(__clang__) && defined(__ARMCOMPILER_VERSION)
|
||||
# define COMPILER_ID "ARMClang"
|
||||
# define COMPILER_VERSION_MAJOR DEC(__ARMCOMPILER_VERSION/1000000)
|
||||
# define COMPILER_VERSION_MINOR DEC(__ARMCOMPILER_VERSION/10000 % 100)
|
||||
# define COMPILER_VERSION_PATCH DEC(__ARMCOMPILER_VERSION % 10000)
|
||||
# define COMPILER_VERSION_INTERNAL DEC(__ARMCOMPILER_VERSION)
|
||||
|
||||
#elif defined(__clang__)
|
||||
# define COMPILER_ID "Clang"
|
||||
# if defined(_MSC_VER)
|
||||
# define SIMULATE_ID "MSVC"
|
||||
# endif
|
||||
# define COMPILER_VERSION_MAJOR DEC(__clang_major__)
|
||||
# define COMPILER_VERSION_MINOR DEC(__clang_minor__)
|
||||
# define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
|
||||
# if defined(_MSC_VER)
|
||||
/* _MSC_VER = VVRR */
|
||||
# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
|
||||
# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
|
||||
# endif
|
||||
|
||||
#elif defined(__LCC__) && (defined(__GNUC__) || defined(__GNUG__) || defined(__MCST__))
|
||||
# define COMPILER_ID "LCC"
|
||||
# define COMPILER_VERSION_MAJOR DEC(1)
|
||||
# if defined(__LCC__)
|
||||
# define COMPILER_VERSION_MINOR DEC(__LCC__- 100)
|
||||
# endif
|
||||
# if defined(__LCC_MINOR__)
|
||||
# define COMPILER_VERSION_PATCH DEC(__LCC_MINOR__)
|
||||
# endif
|
||||
# if defined(__GNUC__) && defined(__GNUC_MINOR__)
|
||||
# define SIMULATE_ID "GNU"
|
||||
# define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
|
||||
# define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
|
||||
# if defined(__GNUC_PATCHLEVEL__)
|
||||
# define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
|
||||
# endif
|
||||
# endif
|
||||
|
||||
#elif defined(__GNUC__)
|
||||
# define COMPILER_ID "GNU"
|
||||
# define COMPILER_VERSION_MAJOR DEC(__GNUC__)
|
||||
# if defined(__GNUC_MINOR__)
|
||||
# define COMPILER_VERSION_MINOR DEC(__GNUC_MINOR__)
|
||||
# endif
|
||||
# if defined(__GNUC_PATCHLEVEL__)
|
||||
# define COMPILER_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
|
||||
# endif
|
||||
|
||||
#elif defined(_MSC_VER)
|
||||
# define COMPILER_ID "MSVC"
|
||||
/* _MSC_VER = VVRR */
|
||||
# define COMPILER_VERSION_MAJOR DEC(_MSC_VER / 100)
|
||||
# define COMPILER_VERSION_MINOR DEC(_MSC_VER % 100)
|
||||
# if defined(_MSC_FULL_VER)
|
||||
# if _MSC_VER >= 1400
|
||||
/* _MSC_FULL_VER = VVRRPPPPP */
|
||||
# define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 100000)
|
||||
# else
|
||||
/* _MSC_FULL_VER = VVRRPPPP */
|
||||
# define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 10000)
|
||||
# endif
|
||||
# endif
|
||||
# if defined(_MSC_BUILD)
|
||||
# define COMPILER_VERSION_TWEAK DEC(_MSC_BUILD)
|
||||
# endif
|
||||
|
||||
#elif defined(__VISUALDSPVERSION__) || defined(__ADSPBLACKFIN__) || defined(__ADSPTS__) || defined(__ADSP21000__)
|
||||
# define COMPILER_ID "ADSP"
|
||||
#if defined(__VISUALDSPVERSION__)
|
||||
/* __VISUALDSPVERSION__ = 0xVVRRPP00 */
|
||||
# define COMPILER_VERSION_MAJOR HEX(__VISUALDSPVERSION__>>24)
|
||||
# define COMPILER_VERSION_MINOR HEX(__VISUALDSPVERSION__>>16 & 0xFF)
|
||||
# define COMPILER_VERSION_PATCH HEX(__VISUALDSPVERSION__>>8 & 0xFF)
|
||||
#endif
|
||||
|
||||
#elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
|
||||
# define COMPILER_ID "IAR"
|
||||
# if defined(__VER__) && defined(__ICCARM__)
|
||||
# define COMPILER_VERSION_MAJOR DEC((__VER__) / 1000000)
|
||||
# define COMPILER_VERSION_MINOR DEC(((__VER__) / 1000) % 1000)
|
||||
# define COMPILER_VERSION_PATCH DEC((__VER__) % 1000)
|
||||
# define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)
|
||||
# elif defined(__VER__) && (defined(__ICCAVR__) || defined(__ICCRX__) || defined(__ICCRH850__) || defined(__ICCRL78__) || defined(__ICC430__) || defined(__ICCRISCV__) || defined(__ICCV850__) || defined(__ICC8051__) || defined(__ICCSTM8__))
|
||||
# define COMPILER_VERSION_MAJOR DEC((__VER__) / 100)
|
||||
# define COMPILER_VERSION_MINOR DEC((__VER__) - (((__VER__) / 100)*100))
|
||||
# define COMPILER_VERSION_PATCH DEC(__SUBVERSION__)
|
||||
# define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)
|
||||
# endif
|
||||
|
||||
#elif defined(__SDCC_VERSION_MAJOR) || defined(SDCC)
|
||||
# define COMPILER_ID "SDCC"
|
||||
# if defined(__SDCC_VERSION_MAJOR)
|
||||
# define COMPILER_VERSION_MAJOR DEC(__SDCC_VERSION_MAJOR)
|
||||
# define COMPILER_VERSION_MINOR DEC(__SDCC_VERSION_MINOR)
|
||||
# define COMPILER_VERSION_PATCH DEC(__SDCC_VERSION_PATCH)
|
||||
# else
|
||||
/* SDCC = VRP */
|
||||
# define COMPILER_VERSION_MAJOR DEC(SDCC/100)
|
||||
# define COMPILER_VERSION_MINOR DEC(SDCC/10 % 10)
|
||||
# define COMPILER_VERSION_PATCH DEC(SDCC % 10)
|
||||
# endif
|
||||
|
||||
|
||||
/* These compilers are either not known or too old to define an
|
||||
identification macro. Try to identify the platform and guess that
|
||||
it is the native compiler. */
|
||||
#elif defined(__hpux) || defined(__hpua)
|
||||
# define COMPILER_ID "HP"
|
||||
|
||||
#else /* unknown compiler */
|
||||
# define COMPILER_ID ""
|
||||
#endif
|
||||
|
||||
/* Construct the string literal in pieces to prevent the source from
|
||||
getting matched. Store it in a pointer rather than an array
|
||||
because some compilers will just produce instructions to fill the
|
||||
array rather than assigning a pointer to a static array. */
|
||||
char const* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]";
|
||||
#ifdef SIMULATE_ID
|
||||
char const* info_simulate = "INFO" ":" "simulate[" SIMULATE_ID "]";
|
||||
#endif
|
||||
|
||||
#ifdef __QNXNTO__
|
||||
char const* qnxnto = "INFO" ":" "qnxnto[]";
|
||||
#endif
|
||||
|
||||
#if defined(__CRAYXT_COMPUTE_LINUX_TARGET)
|
||||
char const *info_cray = "INFO" ":" "compiler_wrapper[CrayPrgEnv]";
|
||||
#endif
|
||||
|
||||
#define STRINGIFY_HELPER(X) #X
|
||||
#define STRINGIFY(X) STRINGIFY_HELPER(X)
|
||||
|
||||
/* Identify known platforms by name. */
|
||||
#if defined(__linux) || defined(__linux__) || defined(linux)
|
||||
# define PLATFORM_ID "Linux"
|
||||
|
||||
#elif defined(__MSYS__)
|
||||
# define PLATFORM_ID "MSYS"
|
||||
|
||||
#elif defined(__CYGWIN__)
|
||||
# define PLATFORM_ID "Cygwin"
|
||||
|
||||
#elif defined(__MINGW32__)
|
||||
# define PLATFORM_ID "MinGW"
|
||||
|
||||
#elif defined(__APPLE__)
|
||||
# define PLATFORM_ID "Darwin"
|
||||
|
||||
#elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
|
||||
# define PLATFORM_ID "Windows"
|
||||
|
||||
#elif defined(__FreeBSD__) || defined(__FreeBSD)
|
||||
# define PLATFORM_ID "FreeBSD"
|
||||
|
||||
#elif defined(__NetBSD__) || defined(__NetBSD)
|
||||
# define PLATFORM_ID "NetBSD"
|
||||
|
||||
#elif defined(__OpenBSD__) || defined(__OPENBSD)
|
||||
# define PLATFORM_ID "OpenBSD"
|
||||
|
||||
#elif defined(__sun) || defined(sun)
|
||||
# define PLATFORM_ID "SunOS"
|
||||
|
||||
#elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__)
|
||||
# define PLATFORM_ID "AIX"
|
||||
|
||||
#elif defined(__hpux) || defined(__hpux__)
|
||||
# define PLATFORM_ID "HP-UX"
|
||||
|
||||
#elif defined(__HAIKU__)
|
||||
# define PLATFORM_ID "Haiku"
|
||||
|
||||
#elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS)
|
||||
# define PLATFORM_ID "BeOS"
|
||||
|
||||
#elif defined(__QNX__) || defined(__QNXNTO__)
|
||||
# define PLATFORM_ID "QNX"
|
||||
|
||||
#elif defined(__tru64) || defined(_tru64) || defined(__TRU64__)
|
||||
# define PLATFORM_ID "Tru64"
|
||||
|
||||
#elif defined(__riscos) || defined(__riscos__)
|
||||
# define PLATFORM_ID "RISCos"
|
||||
|
||||
#elif defined(__sinix) || defined(__sinix__) || defined(__SINIX__)
|
||||
# define PLATFORM_ID "SINIX"
|
||||
|
||||
#elif defined(__UNIX_SV__)
|
||||
# define PLATFORM_ID "UNIX_SV"
|
||||
|
||||
#elif defined(__bsdos__)
|
||||
# define PLATFORM_ID "BSDOS"
|
||||
|
||||
#elif defined(_MPRAS) || defined(MPRAS)
|
||||
# define PLATFORM_ID "MP-RAS"
|
||||
|
||||
#elif defined(__osf) || defined(__osf__)
|
||||
# define PLATFORM_ID "OSF1"
|
||||
|
||||
#elif defined(_SCO_SV) || defined(SCO_SV) || defined(sco_sv)
|
||||
# define PLATFORM_ID "SCO_SV"
|
||||
|
||||
#elif defined(__ultrix) || defined(__ultrix__) || defined(_ULTRIX)
|
||||
# define PLATFORM_ID "ULTRIX"
|
||||
|
||||
#elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX)
|
||||
# define PLATFORM_ID "Xenix"
|
||||
|
||||
#elif defined(__WATCOMC__)
|
||||
# if defined(__LINUX__)
|
||||
# define PLATFORM_ID "Linux"
|
||||
|
||||
# elif defined(__DOS__)
|
||||
# define PLATFORM_ID "DOS"
|
||||
|
||||
# elif defined(__OS2__)
|
||||
# define PLATFORM_ID "OS2"
|
||||
|
||||
# elif defined(__WINDOWS__)
|
||||
# define PLATFORM_ID "Windows3x"
|
||||
|
||||
# elif defined(__VXWORKS__)
|
||||
# define PLATFORM_ID "VxWorks"
|
||||
|
||||
# else /* unknown platform */
|
||||
# define PLATFORM_ID
|
||||
# endif
|
||||
|
||||
#elif defined(__INTEGRITY)
|
||||
# if defined(INT_178B)
|
||||
# define PLATFORM_ID "Integrity178"
|
||||
|
||||
# else /* regular Integrity */
|
||||
# define PLATFORM_ID "Integrity"
|
||||
# endif
|
||||
|
||||
#else /* unknown platform */
|
||||
# define PLATFORM_ID
|
||||
|
||||
#endif
|
||||
|
||||
/* For windows compilers MSVC and Intel we can determine
|
||||
the architecture of the compiler being used. This is because
|
||||
the compilers do not have flags that can change the architecture,
|
||||
but rather depend on which compiler is being used
|
||||
*/
|
||||
#if defined(_WIN32) && defined(_MSC_VER)
|
||||
# if defined(_M_IA64)
|
||||
# define ARCHITECTURE_ID "IA64"
|
||||
|
||||
# elif defined(_M_ARM64EC)
|
||||
# define ARCHITECTURE_ID "ARM64EC"
|
||||
|
||||
# elif defined(_M_X64) || defined(_M_AMD64)
|
||||
# define ARCHITECTURE_ID "x64"
|
||||
|
||||
# elif defined(_M_IX86)
|
||||
# define ARCHITECTURE_ID "X86"
|
||||
|
||||
# elif defined(_M_ARM64)
|
||||
# define ARCHITECTURE_ID "ARM64"
|
||||
|
||||
# elif defined(_M_ARM)
|
||||
# if _M_ARM == 4
|
||||
# define ARCHITECTURE_ID "ARMV4I"
|
||||
# elif _M_ARM == 5
|
||||
# define ARCHITECTURE_ID "ARMV5I"
|
||||
# else
|
||||
# define ARCHITECTURE_ID "ARMV" STRINGIFY(_M_ARM)
|
||||
# endif
|
||||
|
||||
# elif defined(_M_MIPS)
|
||||
# define ARCHITECTURE_ID "MIPS"
|
||||
|
||||
# elif defined(_M_SH)
|
||||
# define ARCHITECTURE_ID "SHx"
|
||||
|
||||
# else /* unknown architecture */
|
||||
# define ARCHITECTURE_ID ""
|
||||
# endif
|
||||
|
||||
#elif defined(__WATCOMC__)
|
||||
# if defined(_M_I86)
|
||||
# define ARCHITECTURE_ID "I86"
|
||||
|
||||
# elif defined(_M_IX86)
|
||||
# define ARCHITECTURE_ID "X86"
|
||||
|
||||
# else /* unknown architecture */
|
||||
# define ARCHITECTURE_ID ""
|
||||
# endif
|
||||
|
||||
#elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
|
||||
# if defined(__ICCARM__)
|
||||
# define ARCHITECTURE_ID "ARM"
|
||||
|
||||
# elif defined(__ICCRX__)
|
||||
# define ARCHITECTURE_ID "RX"
|
||||
|
||||
# elif defined(__ICCRH850__)
|
||||
# define ARCHITECTURE_ID "RH850"
|
||||
|
||||
# elif defined(__ICCRL78__)
|
||||
# define ARCHITECTURE_ID "RL78"
|
||||
|
||||
# elif defined(__ICCRISCV__)
|
||||
# define ARCHITECTURE_ID "RISCV"
|
||||
|
||||
# elif defined(__ICCAVR__)
|
||||
# define ARCHITECTURE_ID "AVR"
|
||||
|
||||
# elif defined(__ICC430__)
|
||||
# define ARCHITECTURE_ID "MSP430"
|
||||
|
||||
# elif defined(__ICCV850__)
|
||||
# define ARCHITECTURE_ID "V850"
|
||||
|
||||
# elif defined(__ICC8051__)
|
||||
# define ARCHITECTURE_ID "8051"
|
||||
|
||||
# elif defined(__ICCSTM8__)
|
||||
# define ARCHITECTURE_ID "STM8"
|
||||
|
||||
# else /* unknown architecture */
|
||||
# define ARCHITECTURE_ID ""
|
||||
# endif
|
||||
|
||||
#elif defined(__ghs__)
|
||||
# if defined(__PPC64__)
|
||||
# define ARCHITECTURE_ID "PPC64"
|
||||
|
||||
# elif defined(__ppc__)
|
||||
# define ARCHITECTURE_ID "PPC"
|
||||
|
||||
# elif defined(__ARM__)
|
||||
# define ARCHITECTURE_ID "ARM"
|
||||
|
||||
# elif defined(__x86_64__)
|
||||
# define ARCHITECTURE_ID "x64"
|
||||
|
||||
# elif defined(__i386__)
|
||||
# define ARCHITECTURE_ID "X86"
|
||||
|
||||
# else /* unknown architecture */
|
||||
# define ARCHITECTURE_ID ""
|
||||
# endif
|
||||
|
||||
#elif defined(__TI_COMPILER_VERSION__)
|
||||
# if defined(__TI_ARM__)
|
||||
# define ARCHITECTURE_ID "ARM"
|
||||
|
||||
# elif defined(__MSP430__)
|
||||
# define ARCHITECTURE_ID "MSP430"
|
||||
|
||||
# elif defined(__TMS320C28XX__)
|
||||
# define ARCHITECTURE_ID "TMS320C28x"
|
||||
|
||||
# elif defined(__TMS320C6X__) || defined(_TMS320C6X)
|
||||
# define ARCHITECTURE_ID "TMS320C6x"
|
||||
|
||||
# else /* unknown architecture */
|
||||
# define ARCHITECTURE_ID ""
|
||||
# endif
|
||||
|
||||
#else
|
||||
# define ARCHITECTURE_ID
|
||||
#endif
|
||||
|
||||
/* Convert integer to decimal digit literals. */
|
||||
#define DEC(n) \
|
||||
('0' + (((n) / 10000000)%10)), \
|
||||
('0' + (((n) / 1000000)%10)), \
|
||||
('0' + (((n) / 100000)%10)), \
|
||||
('0' + (((n) / 10000)%10)), \
|
||||
('0' + (((n) / 1000)%10)), \
|
||||
('0' + (((n) / 100)%10)), \
|
||||
('0' + (((n) / 10)%10)), \
|
||||
('0' + ((n) % 10))
|
||||
|
||||
/* Convert integer to hex digit literals. */
|
||||
#define HEX(n) \
|
||||
('0' + ((n)>>28 & 0xF)), \
|
||||
('0' + ((n)>>24 & 0xF)), \
|
||||
('0' + ((n)>>20 & 0xF)), \
|
||||
('0' + ((n)>>16 & 0xF)), \
|
||||
('0' + ((n)>>12 & 0xF)), \
|
||||
('0' + ((n)>>8 & 0xF)), \
|
||||
('0' + ((n)>>4 & 0xF)), \
|
||||
('0' + ((n) & 0xF))
|
||||
|
||||
/* Construct a string literal encoding the version number. */
|
||||
#ifdef COMPILER_VERSION
|
||||
char const* info_version = "INFO" ":" "compiler_version[" COMPILER_VERSION "]";
|
||||
|
||||
/* Construct a string literal encoding the version number components. */
|
||||
#elif defined(COMPILER_VERSION_MAJOR)
|
||||
char const info_version[] = {
|
||||
'I', 'N', 'F', 'O', ':',
|
||||
'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','[',
|
||||
COMPILER_VERSION_MAJOR,
|
||||
# ifdef COMPILER_VERSION_MINOR
|
||||
'.', COMPILER_VERSION_MINOR,
|
||||
# ifdef COMPILER_VERSION_PATCH
|
||||
'.', COMPILER_VERSION_PATCH,
|
||||
# ifdef COMPILER_VERSION_TWEAK
|
||||
'.', COMPILER_VERSION_TWEAK,
|
||||
# endif
|
||||
# endif
|
||||
# endif
|
||||
']','\0'};
|
||||
#endif
|
||||
|
||||
/* Construct a string literal encoding the internal version number. */
|
||||
#ifdef COMPILER_VERSION_INTERNAL
|
||||
char const info_version_internal[] = {
|
||||
'I', 'N', 'F', 'O', ':',
|
||||
'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','_',
|
||||
'i','n','t','e','r','n','a','l','[',
|
||||
COMPILER_VERSION_INTERNAL,']','\0'};
|
||||
#elif defined(COMPILER_VERSION_INTERNAL_STR)
|
||||
char const* info_version_internal = "INFO" ":" "compiler_version_internal[" COMPILER_VERSION_INTERNAL_STR "]";
|
||||
#endif
|
||||
|
||||
/* Construct a string literal encoding the version number components. */
|
||||
#ifdef SIMULATE_VERSION_MAJOR
|
||||
char const info_simulate_version[] = {
|
||||
'I', 'N', 'F', 'O', ':',
|
||||
's','i','m','u','l','a','t','e','_','v','e','r','s','i','o','n','[',
|
||||
SIMULATE_VERSION_MAJOR,
|
||||
# ifdef SIMULATE_VERSION_MINOR
|
||||
'.', SIMULATE_VERSION_MINOR,
|
||||
# ifdef SIMULATE_VERSION_PATCH
|
||||
'.', SIMULATE_VERSION_PATCH,
|
||||
# ifdef SIMULATE_VERSION_TWEAK
|
||||
'.', SIMULATE_VERSION_TWEAK,
|
||||
# endif
|
||||
# endif
|
||||
# endif
|
||||
']','\0'};
|
||||
#endif
|
||||
|
||||
/* Construct the string literal in pieces to prevent the source from
|
||||
getting matched. Store it in a pointer rather than an array
|
||||
because some compilers will just produce instructions to fill the
|
||||
array rather than assigning a pointer to a static array. */
|
||||
char const* info_platform = "INFO" ":" "platform[" PLATFORM_ID "]";
|
||||
char const* info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]";
|
||||
|
||||
|
||||
|
||||
#if !defined(__STDC__) && !defined(__clang__)
|
||||
# if defined(_MSC_VER) || defined(__ibmxl__) || defined(__IBMC__)
|
||||
# define C_VERSION "90"
|
||||
# else
|
||||
# define C_VERSION
|
||||
# endif
|
||||
#elif __STDC_VERSION__ > 201710L
|
||||
# define C_VERSION "23"
|
||||
#elif __STDC_VERSION__ >= 201710L
|
||||
# define C_VERSION "17"
|
||||
#elif __STDC_VERSION__ >= 201000L
|
||||
# define C_VERSION "11"
|
||||
#elif __STDC_VERSION__ >= 199901L
|
||||
# define C_VERSION "99"
|
||||
#else
|
||||
# define C_VERSION "90"
|
||||
#endif
|
||||
const char* info_language_standard_default =
|
||||
"INFO" ":" "standard_default[" C_VERSION "]";
|
||||
|
||||
const char* info_language_extensions_default = "INFO" ":" "extensions_default["
|
||||
#if (defined(__clang__) || defined(__GNUC__) || defined(__xlC__) || \
|
||||
defined(__TI_COMPILER_VERSION__)) && \
|
||||
!defined(__STRICT_ANSI__)
|
||||
"ON"
|
||||
#else
|
||||
"OFF"
|
||||
#endif
|
||||
"]";
|
||||
|
||||
/*--------------------------------------------------------------------------*/
|
||||
|
||||
#ifdef ID_VOID_MAIN
|
||||
void main() {}
|
||||
#else
|
||||
# if defined(__CLASSIC_C__)
|
||||
int main(argc, argv) int argc; char *argv[];
|
||||
# else
|
||||
int main(int argc, char* argv[])
|
||||
# endif
|
||||
{
|
||||
int require = 0;
|
||||
require += info_compiler[argc];
|
||||
require += info_platform[argc];
|
||||
require += info_arch[argc];
|
||||
#ifdef COMPILER_VERSION_MAJOR
|
||||
require += info_version[argc];
|
||||
#endif
|
||||
#ifdef COMPILER_VERSION_INTERNAL
|
||||
require += info_version_internal[argc];
|
||||
#endif
|
||||
#ifdef SIMULATE_ID
|
||||
require += info_simulate[argc];
|
||||
#endif
|
||||
#ifdef SIMULATE_VERSION_MAJOR
|
||||
require += info_simulate_version[argc];
|
||||
#endif
|
||||
#if defined(__CRAYXT_COMPUTE_LINUX_TARGET)
|
||||
require += info_cray[argc];
|
||||
#endif
|
||||
require += info_language_standard_default[argc];
|
||||
require += info_language_extensions_default[argc];
|
||||
(void)argv;
|
||||
return require;
|
||||
}
|
||||
#endif
|
BIN
thirdparty/libheif/HeifConvertTestJNI/dist/CMakeFiles/3.23.0-rc2/CompilerIdC/CompilerIdC.exe
vendored
Normal file
BIN
thirdparty/libheif/HeifConvertTestJNI/dist/CMakeFiles/3.23.0-rc2/CompilerIdC/CompilerIdC.exe
vendored
Normal file
Binary file not shown.
71
thirdparty/libheif/HeifConvertTestJNI/dist/CMakeFiles/3.23.0-rc2/CompilerIdC/CompilerIdC.vcxproj
vendored
Normal file
71
thirdparty/libheif/HeifConvertTestJNI/dist/CMakeFiles/3.23.0-rc2/CompilerIdC/CompilerIdC.vcxproj
vendored
Normal file
@ -0,0 +1,71 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup Label="ProjectConfigurations">
|
||||
<ProjectConfiguration Include="Debug|x64">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
</ItemGroup>
|
||||
<PropertyGroup Label="Globals">
|
||||
<ProjectGuid>{CAE07175-D007-4FC3-BFE8-47B392814159}</ProjectGuid>
|
||||
<RootNamespace>CompilerIdC</RootNamespace>
|
||||
<Keyword>Win32Proj</Keyword>
|
||||
|
||||
|
||||
<WindowsTargetPlatformVersion>10.0.19041.0</WindowsTargetPlatformVersion>
|
||||
|
||||
|
||||
|
||||
|
||||
</PropertyGroup>
|
||||
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||
<PropertyGroup>
|
||||
<PreferredToolArchitecture>x64</PreferredToolArchitecture>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<CharacterSet>MultiByte</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="ExtensionSettings">
|
||||
|
||||
</ImportGroup>
|
||||
<PropertyGroup>
|
||||
<_ProjectFileVersion>10.0.30319.1</_ProjectFileVersion>
|
||||
<OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">.\</OutDir>
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(Configuration)\</IntDir>
|
||||
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</LinkIncremental>
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<ClCompile>
|
||||
<Optimization>Disabled</Optimization>
|
||||
<PreprocessorDefinitions>%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<MinimalRebuild>false</MinimalRebuild>
|
||||
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
|
||||
<PrecompiledHeader>
|
||||
</PrecompiledHeader>
|
||||
<WarningLevel>TurnOffAllWarnings</WarningLevel>
|
||||
<DebugInformationFormat>
|
||||
</DebugInformationFormat>
|
||||
</ClCompile>
|
||||
|
||||
<Link>
|
||||
<GenerateDebugInformation>false</GenerateDebugInformation>
|
||||
<SubSystem>Console</SubSystem>
|
||||
|
||||
</Link>
|
||||
<PostBuildEvent>
|
||||
<Command>for %%i in (cl.exe) do %40echo CMAKE_C_COMPILER=%%~$PATH:i</Command>
|
||||
</PostBuildEvent>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="CMakeCCompilerId.c" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
|
||||
</ImportGroup>
|
||||
</Project>
|
Binary file not shown.
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project>
|
||||
<ProjectOutputs>
|
||||
<ProjectOutput>
|
||||
<FullPath>C:\Users\gregd\Documents\Source\autopsy\thirdparty\libheif\HeifConvertTestJNI\dist\CMakeFiles\3.23.0-rc2\CompilerIdC\CompilerIdC.exe</FullPath>
|
||||
</ProjectOutput>
|
||||
</ProjectOutputs>
|
||||
<ContentFiles />
|
||||
<SatelliteDlls />
|
||||
<NonRecipeFileRefs />
|
||||
</Project>
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,2 @@
|
||||
PlatformToolSet=v143:VCToolArchitecture=Native64Bit:VCToolsVersion=14.31.31103:TargetPlatformVersion=10.0.19041.0:
|
||||
Debug|x64|C:\Users\gregd\Documents\Source\autopsy\thirdparty\libheif\HeifConvertTestJNI\dist\CMakeFiles\3.23.0-rc2\CompilerIdC\|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,816 @@
|
||||
/* This source file must have a .cpp extension so that all C++ compilers
|
||||
recognize the extension without flags. Borland does not know .cxx for
|
||||
example. */
|
||||
#ifndef __cplusplus
|
||||
# error "A C compiler has been selected for C++."
|
||||
#endif
|
||||
|
||||
#if !defined(__has_include)
|
||||
/* If the compiler does not have __has_include, pretend the answer is
|
||||
always no. */
|
||||
# define __has_include(x) 0
|
||||
#endif
|
||||
|
||||
|
||||
/* Version number components: V=Version, R=Revision, P=Patch
|
||||
Version date components: YYYY=Year, MM=Month, DD=Day */
|
||||
|
||||
#if defined(__COMO__)
|
||||
# define COMPILER_ID "Comeau"
|
||||
/* __COMO_VERSION__ = VRR */
|
||||
# define COMPILER_VERSION_MAJOR DEC(__COMO_VERSION__ / 100)
|
||||
# define COMPILER_VERSION_MINOR DEC(__COMO_VERSION__ % 100)
|
||||
|
||||
#elif defined(__INTEL_COMPILER) || defined(__ICC)
|
||||
# define COMPILER_ID "Intel"
|
||||
# if defined(_MSC_VER)
|
||||
# define SIMULATE_ID "MSVC"
|
||||
# endif
|
||||
# if defined(__GNUC__)
|
||||
# define SIMULATE_ID "GNU"
|
||||
# endif
|
||||
/* __INTEL_COMPILER = VRP prior to 2021, and then VVVV for 2021 and later,
|
||||
except that a few beta releases use the old format with V=2021. */
|
||||
# if __INTEL_COMPILER < 2021 || __INTEL_COMPILER == 202110 || __INTEL_COMPILER == 202111
|
||||
# define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER/100)
|
||||
# define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER/10 % 10)
|
||||
# if defined(__INTEL_COMPILER_UPDATE)
|
||||
# define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER_UPDATE)
|
||||
# else
|
||||
# define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER % 10)
|
||||
# endif
|
||||
# else
|
||||
# define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER)
|
||||
# define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER_UPDATE)
|
||||
/* The third version component from --version is an update index,
|
||||
but no macro is provided for it. */
|
||||
# define COMPILER_VERSION_PATCH DEC(0)
|
||||
# endif
|
||||
# if defined(__INTEL_COMPILER_BUILD_DATE)
|
||||
/* __INTEL_COMPILER_BUILD_DATE = YYYYMMDD */
|
||||
# define COMPILER_VERSION_TWEAK DEC(__INTEL_COMPILER_BUILD_DATE)
|
||||
# endif
|
||||
# if defined(_MSC_VER)
|
||||
/* _MSC_VER = VVRR */
|
||||
# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
|
||||
# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
|
||||
# endif
|
||||
# if defined(__GNUC__)
|
||||
# define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
|
||||
# elif defined(__GNUG__)
|
||||
# define SIMULATE_VERSION_MAJOR DEC(__GNUG__)
|
||||
# endif
|
||||
# if defined(__GNUC_MINOR__)
|
||||
# define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
|
||||
# endif
|
||||
# if defined(__GNUC_PATCHLEVEL__)
|
||||
# define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
|
||||
# endif
|
||||
|
||||
#elif (defined(__clang__) && defined(__INTEL_CLANG_COMPILER)) || defined(__INTEL_LLVM_COMPILER)
|
||||
# define COMPILER_ID "IntelLLVM"
|
||||
#if defined(_MSC_VER)
|
||||
# define SIMULATE_ID "MSVC"
|
||||
#endif
|
||||
#if defined(__GNUC__)
|
||||
# define SIMULATE_ID "GNU"
|
||||
#endif
|
||||
/* __INTEL_LLVM_COMPILER = VVVVRP prior to 2021.2.0, VVVVRRPP for 2021.2.0 and
|
||||
* later. Look for 6 digit vs. 8 digit version number to decide encoding.
|
||||
* VVVV is no smaller than the current year when a version is released.
|
||||
*/
|
||||
#if __INTEL_LLVM_COMPILER < 1000000L
|
||||
# define COMPILER_VERSION_MAJOR DEC(__INTEL_LLVM_COMPILER/100)
|
||||
# define COMPILER_VERSION_MINOR DEC(__INTEL_LLVM_COMPILER/10 % 10)
|
||||
# define COMPILER_VERSION_PATCH DEC(__INTEL_LLVM_COMPILER % 10)
|
||||
#else
|
||||
# define COMPILER_VERSION_MAJOR DEC(__INTEL_LLVM_COMPILER/10000)
|
||||
# define COMPILER_VERSION_MINOR DEC(__INTEL_LLVM_COMPILER/100 % 100)
|
||||
# define COMPILER_VERSION_PATCH DEC(__INTEL_LLVM_COMPILER % 100)
|
||||
#endif
|
||||
#if defined(_MSC_VER)
|
||||
/* _MSC_VER = VVRR */
|
||||
# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
|
||||
# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
|
||||
#endif
|
||||
#if defined(__GNUC__)
|
||||
# define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
|
||||
#elif defined(__GNUG__)
|
||||
# define SIMULATE_VERSION_MAJOR DEC(__GNUG__)
|
||||
#endif
|
||||
#if defined(__GNUC_MINOR__)
|
||||
# define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
|
||||
#endif
|
||||
#if defined(__GNUC_PATCHLEVEL__)
|
||||
# define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
|
||||
#endif
|
||||
|
||||
#elif defined(__PATHCC__)
|
||||
# define COMPILER_ID "PathScale"
|
||||
# define COMPILER_VERSION_MAJOR DEC(__PATHCC__)
|
||||
# define COMPILER_VERSION_MINOR DEC(__PATHCC_MINOR__)
|
||||
# if defined(__PATHCC_PATCHLEVEL__)
|
||||
# define COMPILER_VERSION_PATCH DEC(__PATHCC_PATCHLEVEL__)
|
||||
# endif
|
||||
|
||||
#elif defined(__BORLANDC__) && defined(__CODEGEARC_VERSION__)
|
||||
# define COMPILER_ID "Embarcadero"
|
||||
# define COMPILER_VERSION_MAJOR HEX(__CODEGEARC_VERSION__>>24 & 0x00FF)
|
||||
# define COMPILER_VERSION_MINOR HEX(__CODEGEARC_VERSION__>>16 & 0x00FF)
|
||||
# define COMPILER_VERSION_PATCH DEC(__CODEGEARC_VERSION__ & 0xFFFF)
|
||||
|
||||
#elif defined(__BORLANDC__)
|
||||
# define COMPILER_ID "Borland"
|
||||
/* __BORLANDC__ = 0xVRR */
|
||||
# define COMPILER_VERSION_MAJOR HEX(__BORLANDC__>>8)
|
||||
# define COMPILER_VERSION_MINOR HEX(__BORLANDC__ & 0xFF)
|
||||
|
||||
#elif defined(__WATCOMC__) && __WATCOMC__ < 1200
|
||||
# define COMPILER_ID "Watcom"
|
||||
/* __WATCOMC__ = VVRR */
|
||||
# define COMPILER_VERSION_MAJOR DEC(__WATCOMC__ / 100)
|
||||
# define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
|
||||
# if (__WATCOMC__ % 10) > 0
|
||||
# define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
|
||||
# endif
|
||||
|
||||
#elif defined(__WATCOMC__)
|
||||
# define COMPILER_ID "OpenWatcom"
|
||||
/* __WATCOMC__ = VVRP + 1100 */
|
||||
# define COMPILER_VERSION_MAJOR DEC((__WATCOMC__ - 1100) / 100)
|
||||
# define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
|
||||
# if (__WATCOMC__ % 10) > 0
|
||||
# define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
|
||||
# endif
|
||||
|
||||
#elif defined(__SUNPRO_CC)
|
||||
# define COMPILER_ID "SunPro"
|
||||
# if __SUNPRO_CC >= 0x5100
|
||||
/* __SUNPRO_CC = 0xVRRP */
|
||||
# define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>12)
|
||||
# define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xFF)
|
||||
# define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF)
|
||||
# else
|
||||
/* __SUNPRO_CC = 0xVRP */
|
||||
# define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>8)
|
||||
# define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xF)
|
||||
# define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF)
|
||||
# endif
|
||||
|
||||
#elif defined(__HP_aCC)
|
||||
# define COMPILER_ID "HP"
|
||||
/* __HP_aCC = VVRRPP */
|
||||
# define COMPILER_VERSION_MAJOR DEC(__HP_aCC/10000)
|
||||
# define COMPILER_VERSION_MINOR DEC(__HP_aCC/100 % 100)
|
||||
# define COMPILER_VERSION_PATCH DEC(__HP_aCC % 100)
|
||||
|
||||
#elif defined(__DECCXX)
|
||||
# define COMPILER_ID "Compaq"
|
||||
/* __DECCXX_VER = VVRRTPPPP */
|
||||
# define COMPILER_VERSION_MAJOR DEC(__DECCXX_VER/10000000)
|
||||
# define COMPILER_VERSION_MINOR DEC(__DECCXX_VER/100000 % 100)
|
||||
# define COMPILER_VERSION_PATCH DEC(__DECCXX_VER % 10000)
|
||||
|
||||
#elif defined(__IBMCPP__) && defined(__COMPILER_VER__)
|
||||
# define COMPILER_ID "zOS"
|
||||
/* __IBMCPP__ = VRP */
|
||||
# define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
|
||||
# define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
|
||||
# define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
|
||||
|
||||
#elif defined(__open_xl__) && defined(__clang__)
|
||||
# define COMPILER_ID "IBMClang"
|
||||
# define COMPILER_VERSION_MAJOR DEC(__open_xl_version__)
|
||||
# define COMPILER_VERSION_MINOR DEC(__open_xl_release__)
|
||||
# define COMPILER_VERSION_PATCH DEC(__open_xl_modification__)
|
||||
# define COMPILER_VERSION_TWEAK DEC(__open_xl_ptf_fix_level__)
|
||||
|
||||
|
||||
#elif defined(__ibmxl__) && defined(__clang__)
|
||||
# define COMPILER_ID "XLClang"
|
||||
# define COMPILER_VERSION_MAJOR DEC(__ibmxl_version__)
|
||||
# define COMPILER_VERSION_MINOR DEC(__ibmxl_release__)
|
||||
# define COMPILER_VERSION_PATCH DEC(__ibmxl_modification__)
|
||||
# define COMPILER_VERSION_TWEAK DEC(__ibmxl_ptf_fix_level__)
|
||||
|
||||
|
||||
#elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ >= 800
|
||||
# define COMPILER_ID "XL"
|
||||
/* __IBMCPP__ = VRP */
|
||||
# define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
|
||||
# define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
|
||||
# define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
|
||||
|
||||
#elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ < 800
|
||||
# define COMPILER_ID "VisualAge"
|
||||
/* __IBMCPP__ = VRP */
|
||||
# define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
|
||||
# define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
|
||||
# define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
|
||||
|
||||
#elif defined(__NVCOMPILER)
|
||||
# define COMPILER_ID "NVHPC"
|
||||
# define COMPILER_VERSION_MAJOR DEC(__NVCOMPILER_MAJOR__)
|
||||
# define COMPILER_VERSION_MINOR DEC(__NVCOMPILER_MINOR__)
|
||||
# if defined(__NVCOMPILER_PATCHLEVEL__)
|
||||
# define COMPILER_VERSION_PATCH DEC(__NVCOMPILER_PATCHLEVEL__)
|
||||
# endif
|
||||
|
||||
#elif defined(__PGI)
|
||||
# define COMPILER_ID "PGI"
|
||||
# define COMPILER_VERSION_MAJOR DEC(__PGIC__)
|
||||
# define COMPILER_VERSION_MINOR DEC(__PGIC_MINOR__)
|
||||
# if defined(__PGIC_PATCHLEVEL__)
|
||||
# define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__)
|
||||
# endif
|
||||
|
||||
#elif defined(_CRAYC)
|
||||
# define COMPILER_ID "Cray"
|
||||
# define COMPILER_VERSION_MAJOR DEC(_RELEASE_MAJOR)
|
||||
# define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR)
|
||||
|
||||
#elif defined(__TI_COMPILER_VERSION__)
|
||||
# define COMPILER_ID "TI"
|
||||
/* __TI_COMPILER_VERSION__ = VVVRRRPPP */
|
||||
# define COMPILER_VERSION_MAJOR DEC(__TI_COMPILER_VERSION__/1000000)
|
||||
# define COMPILER_VERSION_MINOR DEC(__TI_COMPILER_VERSION__/1000 % 1000)
|
||||
# define COMPILER_VERSION_PATCH DEC(__TI_COMPILER_VERSION__ % 1000)
|
||||
|
||||
#elif defined(__CLANG_FUJITSU)
|
||||
# define COMPILER_ID "FujitsuClang"
|
||||
# define COMPILER_VERSION_MAJOR DEC(__FCC_major__)
|
||||
# define COMPILER_VERSION_MINOR DEC(__FCC_minor__)
|
||||
# define COMPILER_VERSION_PATCH DEC(__FCC_patchlevel__)
|
||||
# define COMPILER_VERSION_INTERNAL_STR __clang_version__
|
||||
|
||||
|
||||
#elif defined(__FUJITSU)
|
||||
# define COMPILER_ID "Fujitsu"
|
||||
# if defined(__FCC_version__)
|
||||
# define COMPILER_VERSION __FCC_version__
|
||||
# elif defined(__FCC_major__)
|
||||
# define COMPILER_VERSION_MAJOR DEC(__FCC_major__)
|
||||
# define COMPILER_VERSION_MINOR DEC(__FCC_minor__)
|
||||
# define COMPILER_VERSION_PATCH DEC(__FCC_patchlevel__)
|
||||
# endif
|
||||
# if defined(__fcc_version)
|
||||
# define COMPILER_VERSION_INTERNAL DEC(__fcc_version)
|
||||
# elif defined(__FCC_VERSION)
|
||||
# define COMPILER_VERSION_INTERNAL DEC(__FCC_VERSION)
|
||||
# endif
|
||||
|
||||
|
||||
#elif defined(__ghs__)
|
||||
# define COMPILER_ID "GHS"
|
||||
/* __GHS_VERSION_NUMBER = VVVVRP */
|
||||
# ifdef __GHS_VERSION_NUMBER
|
||||
# define COMPILER_VERSION_MAJOR DEC(__GHS_VERSION_NUMBER / 100)
|
||||
# define COMPILER_VERSION_MINOR DEC(__GHS_VERSION_NUMBER / 10 % 10)
|
||||
# define COMPILER_VERSION_PATCH DEC(__GHS_VERSION_NUMBER % 10)
|
||||
# endif
|
||||
|
||||
#elif defined(__SCO_VERSION__)
|
||||
# define COMPILER_ID "SCO"
|
||||
|
||||
#elif defined(__ARMCC_VERSION) && !defined(__clang__)
|
||||
# define COMPILER_ID "ARMCC"
|
||||
#if __ARMCC_VERSION >= 1000000
|
||||
/* __ARMCC_VERSION = VRRPPPP */
|
||||
# define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/1000000)
|
||||
# define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 100)
|
||||
# define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
|
||||
#else
|
||||
/* __ARMCC_VERSION = VRPPPP */
|
||||
# define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/100000)
|
||||
# define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 10)
|
||||
# define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
|
||||
#endif
|
||||
|
||||
|
||||
#elif defined(__clang__) && defined(__apple_build_version__)
|
||||
# define COMPILER_ID "AppleClang"
|
||||
# if defined(_MSC_VER)
|
||||
# define SIMULATE_ID "MSVC"
|
||||
# endif
|
||||
# define COMPILER_VERSION_MAJOR DEC(__clang_major__)
|
||||
# define COMPILER_VERSION_MINOR DEC(__clang_minor__)
|
||||
# define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
|
||||
# if defined(_MSC_VER)
|
||||
/* _MSC_VER = VVRR */
|
||||
# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
|
||||
# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
|
||||
# endif
|
||||
# define COMPILER_VERSION_TWEAK DEC(__apple_build_version__)
|
||||
|
||||
#elif defined(__clang__) && defined(__ARMCOMPILER_VERSION)
|
||||
# define COMPILER_ID "ARMClang"
|
||||
# define COMPILER_VERSION_MAJOR DEC(__ARMCOMPILER_VERSION/1000000)
|
||||
# define COMPILER_VERSION_MINOR DEC(__ARMCOMPILER_VERSION/10000 % 100)
|
||||
# define COMPILER_VERSION_PATCH DEC(__ARMCOMPILER_VERSION % 10000)
|
||||
# define COMPILER_VERSION_INTERNAL DEC(__ARMCOMPILER_VERSION)
|
||||
|
||||
#elif defined(__clang__)
|
||||
# define COMPILER_ID "Clang"
|
||||
# if defined(_MSC_VER)
|
||||
# define SIMULATE_ID "MSVC"
|
||||
# endif
|
||||
# define COMPILER_VERSION_MAJOR DEC(__clang_major__)
|
||||
# define COMPILER_VERSION_MINOR DEC(__clang_minor__)
|
||||
# define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
|
||||
# if defined(_MSC_VER)
|
||||
/* _MSC_VER = VVRR */
|
||||
# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
|
||||
# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
|
||||
# endif
|
||||
|
||||
#elif defined(__LCC__) && (defined(__GNUC__) || defined(__GNUG__) || defined(__MCST__))
|
||||
# define COMPILER_ID "LCC"
|
||||
# define COMPILER_VERSION_MAJOR DEC(1)
|
||||
# if defined(__LCC__)
|
||||
# define COMPILER_VERSION_MINOR DEC(__LCC__- 100)
|
||||
# endif
|
||||
# if defined(__LCC_MINOR__)
|
||||
# define COMPILER_VERSION_PATCH DEC(__LCC_MINOR__)
|
||||
# endif
|
||||
# if defined(__GNUC__) && defined(__GNUC_MINOR__)
|
||||
# define SIMULATE_ID "GNU"
|
||||
# define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
|
||||
# define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
|
||||
# if defined(__GNUC_PATCHLEVEL__)
|
||||
# define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
|
||||
# endif
|
||||
# endif
|
||||
|
||||
#elif defined(__GNUC__) || defined(__GNUG__)
|
||||
# define COMPILER_ID "GNU"
|
||||
# if defined(__GNUC__)
|
||||
# define COMPILER_VERSION_MAJOR DEC(__GNUC__)
|
||||
# else
|
||||
# define COMPILER_VERSION_MAJOR DEC(__GNUG__)
|
||||
# endif
|
||||
# if defined(__GNUC_MINOR__)
|
||||
# define COMPILER_VERSION_MINOR DEC(__GNUC_MINOR__)
|
||||
# endif
|
||||
# if defined(__GNUC_PATCHLEVEL__)
|
||||
# define COMPILER_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
|
||||
# endif
|
||||
|
||||
#elif defined(_MSC_VER)
|
||||
# define COMPILER_ID "MSVC"
|
||||
/* _MSC_VER = VVRR */
|
||||
# define COMPILER_VERSION_MAJOR DEC(_MSC_VER / 100)
|
||||
# define COMPILER_VERSION_MINOR DEC(_MSC_VER % 100)
|
||||
# if defined(_MSC_FULL_VER)
|
||||
# if _MSC_VER >= 1400
|
||||
/* _MSC_FULL_VER = VVRRPPPPP */
|
||||
# define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 100000)
|
||||
# else
|
||||
/* _MSC_FULL_VER = VVRRPPPP */
|
||||
# define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 10000)
|
||||
# endif
|
||||
# endif
|
||||
# if defined(_MSC_BUILD)
|
||||
# define COMPILER_VERSION_TWEAK DEC(_MSC_BUILD)
|
||||
# endif
|
||||
|
||||
#elif defined(__VISUALDSPVERSION__) || defined(__ADSPBLACKFIN__) || defined(__ADSPTS__) || defined(__ADSP21000__)
|
||||
# define COMPILER_ID "ADSP"
|
||||
#if defined(__VISUALDSPVERSION__)
|
||||
/* __VISUALDSPVERSION__ = 0xVVRRPP00 */
|
||||
# define COMPILER_VERSION_MAJOR HEX(__VISUALDSPVERSION__>>24)
|
||||
# define COMPILER_VERSION_MINOR HEX(__VISUALDSPVERSION__>>16 & 0xFF)
|
||||
# define COMPILER_VERSION_PATCH HEX(__VISUALDSPVERSION__>>8 & 0xFF)
|
||||
#endif
|
||||
|
||||
#elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
|
||||
# define COMPILER_ID "IAR"
|
||||
# if defined(__VER__) && defined(__ICCARM__)
|
||||
# define COMPILER_VERSION_MAJOR DEC((__VER__) / 1000000)
|
||||
# define COMPILER_VERSION_MINOR DEC(((__VER__) / 1000) % 1000)
|
||||
# define COMPILER_VERSION_PATCH DEC((__VER__) % 1000)
|
||||
# define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)
|
||||
# elif defined(__VER__) && (defined(__ICCAVR__) || defined(__ICCRX__) || defined(__ICCRH850__) || defined(__ICCRL78__) || defined(__ICC430__) || defined(__ICCRISCV__) || defined(__ICCV850__) || defined(__ICC8051__) || defined(__ICCSTM8__))
|
||||
# define COMPILER_VERSION_MAJOR DEC((__VER__) / 100)
|
||||
# define COMPILER_VERSION_MINOR DEC((__VER__) - (((__VER__) / 100)*100))
|
||||
# define COMPILER_VERSION_PATCH DEC(__SUBVERSION__)
|
||||
# define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)
|
||||
# endif
|
||||
|
||||
|
||||
/* These compilers are either not known or too old to define an
|
||||
identification macro. Try to identify the platform and guess that
|
||||
it is the native compiler. */
|
||||
#elif defined(__hpux) || defined(__hpua)
|
||||
# define COMPILER_ID "HP"
|
||||
|
||||
#else /* unknown compiler */
|
||||
# define COMPILER_ID ""
|
||||
#endif
|
||||
|
||||
/* Construct the string literal in pieces to prevent the source from
|
||||
getting matched. Store it in a pointer rather than an array
|
||||
because some compilers will just produce instructions to fill the
|
||||
array rather than assigning a pointer to a static array. */
|
||||
char const* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]";
|
||||
#ifdef SIMULATE_ID
|
||||
char const* info_simulate = "INFO" ":" "simulate[" SIMULATE_ID "]";
|
||||
#endif
|
||||
|
||||
#ifdef __QNXNTO__
|
||||
char const* qnxnto = "INFO" ":" "qnxnto[]";
|
||||
#endif
|
||||
|
||||
#if defined(__CRAYXT_COMPUTE_LINUX_TARGET)
|
||||
char const *info_cray = "INFO" ":" "compiler_wrapper[CrayPrgEnv]";
|
||||
#endif
|
||||
|
||||
#define STRINGIFY_HELPER(X) #X
|
||||
#define STRINGIFY(X) STRINGIFY_HELPER(X)
|
||||
|
||||
/* Identify known platforms by name. */
|
||||
#if defined(__linux) || defined(__linux__) || defined(linux)
|
||||
# define PLATFORM_ID "Linux"
|
||||
|
||||
#elif defined(__MSYS__)
|
||||
# define PLATFORM_ID "MSYS"
|
||||
|
||||
#elif defined(__CYGWIN__)
|
||||
# define PLATFORM_ID "Cygwin"
|
||||
|
||||
#elif defined(__MINGW32__)
|
||||
# define PLATFORM_ID "MinGW"
|
||||
|
||||
#elif defined(__APPLE__)
|
||||
# define PLATFORM_ID "Darwin"
|
||||
|
||||
#elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
|
||||
# define PLATFORM_ID "Windows"
|
||||
|
||||
#elif defined(__FreeBSD__) || defined(__FreeBSD)
|
||||
# define PLATFORM_ID "FreeBSD"
|
||||
|
||||
#elif defined(__NetBSD__) || defined(__NetBSD)
|
||||
# define PLATFORM_ID "NetBSD"
|
||||
|
||||
#elif defined(__OpenBSD__) || defined(__OPENBSD)
|
||||
# define PLATFORM_ID "OpenBSD"
|
||||
|
||||
#elif defined(__sun) || defined(sun)
|
||||
# define PLATFORM_ID "SunOS"
|
||||
|
||||
#elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__)
|
||||
# define PLATFORM_ID "AIX"
|
||||
|
||||
#elif defined(__hpux) || defined(__hpux__)
|
||||
# define PLATFORM_ID "HP-UX"
|
||||
|
||||
#elif defined(__HAIKU__)
|
||||
# define PLATFORM_ID "Haiku"
|
||||
|
||||
#elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS)
|
||||
# define PLATFORM_ID "BeOS"
|
||||
|
||||
#elif defined(__QNX__) || defined(__QNXNTO__)
|
||||
# define PLATFORM_ID "QNX"
|
||||
|
||||
#elif defined(__tru64) || defined(_tru64) || defined(__TRU64__)
|
||||
# define PLATFORM_ID "Tru64"
|
||||
|
||||
#elif defined(__riscos) || defined(__riscos__)
|
||||
# define PLATFORM_ID "RISCos"
|
||||
|
||||
#elif defined(__sinix) || defined(__sinix__) || defined(__SINIX__)
|
||||
# define PLATFORM_ID "SINIX"
|
||||
|
||||
#elif defined(__UNIX_SV__)
|
||||
# define PLATFORM_ID "UNIX_SV"
|
||||
|
||||
#elif defined(__bsdos__)
|
||||
# define PLATFORM_ID "BSDOS"
|
||||
|
||||
#elif defined(_MPRAS) || defined(MPRAS)
|
||||
# define PLATFORM_ID "MP-RAS"
|
||||
|
||||
#elif defined(__osf) || defined(__osf__)
|
||||
# define PLATFORM_ID "OSF1"
|
||||
|
||||
#elif defined(_SCO_SV) || defined(SCO_SV) || defined(sco_sv)
|
||||
# define PLATFORM_ID "SCO_SV"
|
||||
|
||||
#elif defined(__ultrix) || defined(__ultrix__) || defined(_ULTRIX)
|
||||
# define PLATFORM_ID "ULTRIX"
|
||||
|
||||
#elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX)
|
||||
# define PLATFORM_ID "Xenix"
|
||||
|
||||
#elif defined(__WATCOMC__)
|
||||
# if defined(__LINUX__)
|
||||
# define PLATFORM_ID "Linux"
|
||||
|
||||
# elif defined(__DOS__)
|
||||
# define PLATFORM_ID "DOS"
|
||||
|
||||
# elif defined(__OS2__)
|
||||
# define PLATFORM_ID "OS2"
|
||||
|
||||
# elif defined(__WINDOWS__)
|
||||
# define PLATFORM_ID "Windows3x"
|
||||
|
||||
# elif defined(__VXWORKS__)
|
||||
# define PLATFORM_ID "VxWorks"
|
||||
|
||||
# else /* unknown platform */
|
||||
# define PLATFORM_ID
|
||||
# endif
|
||||
|
||||
#elif defined(__INTEGRITY)
|
||||
# if defined(INT_178B)
|
||||
# define PLATFORM_ID "Integrity178"
|
||||
|
||||
# else /* regular Integrity */
|
||||
# define PLATFORM_ID "Integrity"
|
||||
# endif
|
||||
|
||||
#else /* unknown platform */
|
||||
# define PLATFORM_ID
|
||||
|
||||
#endif
|
||||
|
||||
/* For windows compilers MSVC and Intel we can determine
|
||||
the architecture of the compiler being used. This is because
|
||||
the compilers do not have flags that can change the architecture,
|
||||
but rather depend on which compiler is being used
|
||||
*/
|
||||
#if defined(_WIN32) && defined(_MSC_VER)
|
||||
# if defined(_M_IA64)
|
||||
# define ARCHITECTURE_ID "IA64"
|
||||
|
||||
# elif defined(_M_ARM64EC)
|
||||
# define ARCHITECTURE_ID "ARM64EC"
|
||||
|
||||
# elif defined(_M_X64) || defined(_M_AMD64)
|
||||
# define ARCHITECTURE_ID "x64"
|
||||
|
||||
# elif defined(_M_IX86)
|
||||
# define ARCHITECTURE_ID "X86"
|
||||
|
||||
# elif defined(_M_ARM64)
|
||||
# define ARCHITECTURE_ID "ARM64"
|
||||
|
||||
# elif defined(_M_ARM)
|
||||
# if _M_ARM == 4
|
||||
# define ARCHITECTURE_ID "ARMV4I"
|
||||
# elif _M_ARM == 5
|
||||
# define ARCHITECTURE_ID "ARMV5I"
|
||||
# else
|
||||
# define ARCHITECTURE_ID "ARMV" STRINGIFY(_M_ARM)
|
||||
# endif
|
||||
|
||||
# elif defined(_M_MIPS)
|
||||
# define ARCHITECTURE_ID "MIPS"
|
||||
|
||||
# elif defined(_M_SH)
|
||||
# define ARCHITECTURE_ID "SHx"
|
||||
|
||||
# else /* unknown architecture */
|
||||
# define ARCHITECTURE_ID ""
|
||||
# endif
|
||||
|
||||
#elif defined(__WATCOMC__)
|
||||
# if defined(_M_I86)
|
||||
# define ARCHITECTURE_ID "I86"
|
||||
|
||||
# elif defined(_M_IX86)
|
||||
# define ARCHITECTURE_ID "X86"
|
||||
|
||||
# else /* unknown architecture */
|
||||
# define ARCHITECTURE_ID ""
|
||||
# endif
|
||||
|
||||
#elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
|
||||
# if defined(__ICCARM__)
|
||||
# define ARCHITECTURE_ID "ARM"
|
||||
|
||||
# elif defined(__ICCRX__)
|
||||
# define ARCHITECTURE_ID "RX"
|
||||
|
||||
# elif defined(__ICCRH850__)
|
||||
# define ARCHITECTURE_ID "RH850"
|
||||
|
||||
# elif defined(__ICCRL78__)
|
||||
# define ARCHITECTURE_ID "RL78"
|
||||
|
||||
# elif defined(__ICCRISCV__)
|
||||
# define ARCHITECTURE_ID "RISCV"
|
||||
|
||||
# elif defined(__ICCAVR__)
|
||||
# define ARCHITECTURE_ID "AVR"
|
||||
|
||||
# elif defined(__ICC430__)
|
||||
# define ARCHITECTURE_ID "MSP430"
|
||||
|
||||
# elif defined(__ICCV850__)
|
||||
# define ARCHITECTURE_ID "V850"
|
||||
|
||||
# elif defined(__ICC8051__)
|
||||
# define ARCHITECTURE_ID "8051"
|
||||
|
||||
# elif defined(__ICCSTM8__)
|
||||
# define ARCHITECTURE_ID "STM8"
|
||||
|
||||
# else /* unknown architecture */
|
||||
# define ARCHITECTURE_ID ""
|
||||
# endif
|
||||
|
||||
#elif defined(__ghs__)
|
||||
# if defined(__PPC64__)
|
||||
# define ARCHITECTURE_ID "PPC64"
|
||||
|
||||
# elif defined(__ppc__)
|
||||
# define ARCHITECTURE_ID "PPC"
|
||||
|
||||
# elif defined(__ARM__)
|
||||
# define ARCHITECTURE_ID "ARM"
|
||||
|
||||
# elif defined(__x86_64__)
|
||||
# define ARCHITECTURE_ID "x64"
|
||||
|
||||
# elif defined(__i386__)
|
||||
# define ARCHITECTURE_ID "X86"
|
||||
|
||||
# else /* unknown architecture */
|
||||
# define ARCHITECTURE_ID ""
|
||||
# endif
|
||||
|
||||
#elif defined(__TI_COMPILER_VERSION__)
|
||||
# if defined(__TI_ARM__)
|
||||
# define ARCHITECTURE_ID "ARM"
|
||||
|
||||
# elif defined(__MSP430__)
|
||||
# define ARCHITECTURE_ID "MSP430"
|
||||
|
||||
# elif defined(__TMS320C28XX__)
|
||||
# define ARCHITECTURE_ID "TMS320C28x"
|
||||
|
||||
# elif defined(__TMS320C6X__) || defined(_TMS320C6X)
|
||||
# define ARCHITECTURE_ID "TMS320C6x"
|
||||
|
||||
# else /* unknown architecture */
|
||||
# define ARCHITECTURE_ID ""
|
||||
# endif
|
||||
|
||||
#else
|
||||
# define ARCHITECTURE_ID
|
||||
#endif
|
||||
|
||||
/* Convert integer to decimal digit literals. */
|
||||
#define DEC(n) \
|
||||
('0' + (((n) / 10000000)%10)), \
|
||||
('0' + (((n) / 1000000)%10)), \
|
||||
('0' + (((n) / 100000)%10)), \
|
||||
('0' + (((n) / 10000)%10)), \
|
||||
('0' + (((n) / 1000)%10)), \
|
||||
('0' + (((n) / 100)%10)), \
|
||||
('0' + (((n) / 10)%10)), \
|
||||
('0' + ((n) % 10))
|
||||
|
||||
/* Convert integer to hex digit literals. */
|
||||
#define HEX(n) \
|
||||
('0' + ((n)>>28 & 0xF)), \
|
||||
('0' + ((n)>>24 & 0xF)), \
|
||||
('0' + ((n)>>20 & 0xF)), \
|
||||
('0' + ((n)>>16 & 0xF)), \
|
||||
('0' + ((n)>>12 & 0xF)), \
|
||||
('0' + ((n)>>8 & 0xF)), \
|
||||
('0' + ((n)>>4 & 0xF)), \
|
||||
('0' + ((n) & 0xF))
|
||||
|
||||
/* Construct a string literal encoding the version number. */
|
||||
#ifdef COMPILER_VERSION
|
||||
char const* info_version = "INFO" ":" "compiler_version[" COMPILER_VERSION "]";
|
||||
|
||||
/* Construct a string literal encoding the version number components. */
|
||||
#elif defined(COMPILER_VERSION_MAJOR)
|
||||
char const info_version[] = {
|
||||
'I', 'N', 'F', 'O', ':',
|
||||
'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','[',
|
||||
COMPILER_VERSION_MAJOR,
|
||||
# ifdef COMPILER_VERSION_MINOR
|
||||
'.', COMPILER_VERSION_MINOR,
|
||||
# ifdef COMPILER_VERSION_PATCH
|
||||
'.', COMPILER_VERSION_PATCH,
|
||||
# ifdef COMPILER_VERSION_TWEAK
|
||||
'.', COMPILER_VERSION_TWEAK,
|
||||
# endif
|
||||
# endif
|
||||
# endif
|
||||
']','\0'};
|
||||
#endif
|
||||
|
||||
/* Construct a string literal encoding the internal version number. */
|
||||
#ifdef COMPILER_VERSION_INTERNAL
|
||||
char const info_version_internal[] = {
|
||||
'I', 'N', 'F', 'O', ':',
|
||||
'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','_',
|
||||
'i','n','t','e','r','n','a','l','[',
|
||||
COMPILER_VERSION_INTERNAL,']','\0'};
|
||||
#elif defined(COMPILER_VERSION_INTERNAL_STR)
|
||||
char const* info_version_internal = "INFO" ":" "compiler_version_internal[" COMPILER_VERSION_INTERNAL_STR "]";
|
||||
#endif
|
||||
|
||||
/* Construct a string literal encoding the version number components. */
|
||||
#ifdef SIMULATE_VERSION_MAJOR
|
||||
char const info_simulate_version[] = {
|
||||
'I', 'N', 'F', 'O', ':',
|
||||
's','i','m','u','l','a','t','e','_','v','e','r','s','i','o','n','[',
|
||||
SIMULATE_VERSION_MAJOR,
|
||||
# ifdef SIMULATE_VERSION_MINOR
|
||||
'.', SIMULATE_VERSION_MINOR,
|
||||
# ifdef SIMULATE_VERSION_PATCH
|
||||
'.', SIMULATE_VERSION_PATCH,
|
||||
# ifdef SIMULATE_VERSION_TWEAK
|
||||
'.', SIMULATE_VERSION_TWEAK,
|
||||
# endif
|
||||
# endif
|
||||
# endif
|
||||
']','\0'};
|
||||
#endif
|
||||
|
||||
/* Construct the string literal in pieces to prevent the source from
|
||||
getting matched. Store it in a pointer rather than an array
|
||||
because some compilers will just produce instructions to fill the
|
||||
array rather than assigning a pointer to a static array. */
|
||||
char const* info_platform = "INFO" ":" "platform[" PLATFORM_ID "]";
|
||||
char const* info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]";
|
||||
|
||||
|
||||
|
||||
#if defined(__INTEL_COMPILER) && defined(_MSVC_LANG) && _MSVC_LANG < 201403L
|
||||
# if defined(__INTEL_CXX11_MODE__)
|
||||
# if defined(__cpp_aggregate_nsdmi)
|
||||
# define CXX_STD 201402L
|
||||
# else
|
||||
# define CXX_STD 201103L
|
||||
# endif
|
||||
# else
|
||||
# define CXX_STD 199711L
|
||||
# endif
|
||||
#elif defined(_MSC_VER) && defined(_MSVC_LANG)
|
||||
# define CXX_STD _MSVC_LANG
|
||||
#else
|
||||
# define CXX_STD __cplusplus
|
||||
#endif
|
||||
|
||||
const char* info_language_standard_default = "INFO" ":" "standard_default["
|
||||
#if CXX_STD > 202002L
|
||||
"23"
|
||||
#elif CXX_STD > 201703L
|
||||
"20"
|
||||
#elif CXX_STD >= 201703L
|
||||
"17"
|
||||
#elif CXX_STD >= 201402L
|
||||
"14"
|
||||
#elif CXX_STD >= 201103L
|
||||
"11"
|
||||
#else
|
||||
"98"
|
||||
#endif
|
||||
"]";
|
||||
|
||||
const char* info_language_extensions_default = "INFO" ":" "extensions_default["
|
||||
#if (defined(__clang__) || defined(__GNUC__) || defined(__xlC__) || \
|
||||
defined(__TI_COMPILER_VERSION__)) && \
|
||||
!defined(__STRICT_ANSI__)
|
||||
"ON"
|
||||
#else
|
||||
"OFF"
|
||||
#endif
|
||||
"]";
|
||||
|
||||
/*--------------------------------------------------------------------------*/
|
||||
|
||||
int main(int argc, char* argv[])
|
||||
{
|
||||
int require = 0;
|
||||
require += info_compiler[argc];
|
||||
require += info_platform[argc];
|
||||
#ifdef COMPILER_VERSION_MAJOR
|
||||
require += info_version[argc];
|
||||
#endif
|
||||
#ifdef COMPILER_VERSION_INTERNAL
|
||||
require += info_version_internal[argc];
|
||||
#endif
|
||||
#ifdef SIMULATE_ID
|
||||
require += info_simulate[argc];
|
||||
#endif
|
||||
#ifdef SIMULATE_VERSION_MAJOR
|
||||
require += info_simulate_version[argc];
|
||||
#endif
|
||||
#if defined(__CRAYXT_COMPUTE_LINUX_TARGET)
|
||||
require += info_cray[argc];
|
||||
#endif
|
||||
require += info_language_standard_default[argc];
|
||||
require += info_language_extensions_default[argc];
|
||||
(void)argv;
|
||||
return require;
|
||||
}
|
BIN
thirdparty/libheif/HeifConvertTestJNI/dist/CMakeFiles/3.23.0-rc2/CompilerIdCXX/CompilerIdCXX.exe
vendored
Normal file
BIN
thirdparty/libheif/HeifConvertTestJNI/dist/CMakeFiles/3.23.0-rc2/CompilerIdCXX/CompilerIdCXX.exe
vendored
Normal file
Binary file not shown.
@ -0,0 +1,71 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup Label="ProjectConfigurations">
|
||||
<ProjectConfiguration Include="Debug|x64">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
</ItemGroup>
|
||||
<PropertyGroup Label="Globals">
|
||||
<ProjectGuid>{CAE07175-D007-4FC3-BFE8-47B392814159}</ProjectGuid>
|
||||
<RootNamespace>CompilerIdCXX</RootNamespace>
|
||||
<Keyword>Win32Proj</Keyword>
|
||||
|
||||
|
||||
<WindowsTargetPlatformVersion>10.0.19041.0</WindowsTargetPlatformVersion>
|
||||
|
||||
|
||||
|
||||
|
||||
</PropertyGroup>
|
||||
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||
<PropertyGroup>
|
||||
<PreferredToolArchitecture>x64</PreferredToolArchitecture>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<CharacterSet>MultiByte</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="ExtensionSettings">
|
||||
|
||||
</ImportGroup>
|
||||
<PropertyGroup>
|
||||
<_ProjectFileVersion>10.0.30319.1</_ProjectFileVersion>
|
||||
<OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">.\</OutDir>
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(Configuration)\</IntDir>
|
||||
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</LinkIncremental>
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<ClCompile>
|
||||
<Optimization>Disabled</Optimization>
|
||||
<PreprocessorDefinitions>%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<MinimalRebuild>false</MinimalRebuild>
|
||||
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
|
||||
<PrecompiledHeader>
|
||||
</PrecompiledHeader>
|
||||
<WarningLevel>TurnOffAllWarnings</WarningLevel>
|
||||
<DebugInformationFormat>
|
||||
</DebugInformationFormat>
|
||||
</ClCompile>
|
||||
|
||||
<Link>
|
||||
<GenerateDebugInformation>false</GenerateDebugInformation>
|
||||
<SubSystem>Console</SubSystem>
|
||||
|
||||
</Link>
|
||||
<PostBuildEvent>
|
||||
<Command>for %%i in (cl.exe) do %40echo CMAKE_CXX_COMPILER=%%~$PATH:i</Command>
|
||||
</PostBuildEvent>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="CMakeCXXCompilerId.cpp" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
|
||||
</ImportGroup>
|
||||
</Project>
|
Binary file not shown.
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project>
|
||||
<ProjectOutputs>
|
||||
<ProjectOutput>
|
||||
<FullPath>C:\Users\gregd\Documents\Source\autopsy\thirdparty\libheif\HeifConvertTestJNI\dist\CMakeFiles\3.23.0-rc2\CompilerIdCXX\CompilerIdCXX.exe</FullPath>
|
||||
</ProjectOutput>
|
||||
</ProjectOutputs>
|
||||
<ContentFiles />
|
||||
<SatelliteDlls />
|
||||
<NonRecipeFileRefs />
|
||||
</Project>
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,2 @@
|
||||
PlatformToolSet=v143:VCToolArchitecture=Native64Bit:VCToolsVersion=14.31.31103:TargetPlatformVersion=10.0.19041.0:
|
||||
Debug|x64|C:\Users\gregd\Documents\Source\autopsy\thirdparty\libheif\HeifConvertTestJNI\dist\CMakeFiles\3.23.0-rc2\CompilerIdCXX\|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
1
thirdparty/libheif/HeifConvertTestJNI/dist/CMakeFiles/3.23.0-rc2/VCTargetsPath.txt
vendored
Normal file
1
thirdparty/libheif/HeifConvertTestJNI/dist/CMakeFiles/3.23.0-rc2/VCTargetsPath.txt
vendored
Normal file
@ -0,0 +1 @@
|
||||
C:/Program Files/Microsoft Visual Studio/2022/Community/MSBuild/Microsoft/VC/v170
|
31
thirdparty/libheif/HeifConvertTestJNI/dist/CMakeFiles/3.23.0-rc2/VCTargetsPath.vcxproj
vendored
Normal file
31
thirdparty/libheif/HeifConvertTestJNI/dist/CMakeFiles/3.23.0-rc2/VCTargetsPath.vcxproj
vendored
Normal file
@ -0,0 +1,31 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup Label="ProjectConfigurations">
|
||||
<ProjectConfiguration Include="Debug|x64">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
</ItemGroup>
|
||||
<PropertyGroup Label="Globals">
|
||||
<ProjectGuid>{F3FC6D86-508D-3FB1-96D2-995F08B142EC}</ProjectGuid>
|
||||
<Keyword>Win32Proj</Keyword>
|
||||
<Platform>x64</Platform>
|
||||
<WindowsTargetPlatformVersion>10.0.19041.0</WindowsTargetPlatformVersion>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props"/>
|
||||
<PropertyGroup>
|
||||
<PreferredToolArchitecture>x64</PreferredToolArchitecture>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Label="Configuration">
|
||||
<ConfigurationType>Utility</ConfigurationType>
|
||||
<CharacterSet>MultiByte</CharacterSet>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props"/>
|
||||
<ItemDefinitionGroup>
|
||||
<PostBuildEvent>
|
||||
<Command>echo VCTargetsPath=$(VCTargetsPath)</Command>
|
||||
</PostBuildEvent>
|
||||
</ItemDefinitionGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets"/>
|
||||
</Project>
|
11
thirdparty/libheif/HeifConvertTestJNI/dist/CMakeFiles/3.23.0-rc2/x64/Debug/VCTargetsPath.recipe
vendored
Normal file
11
thirdparty/libheif/HeifConvertTestJNI/dist/CMakeFiles/3.23.0-rc2/x64/Debug/VCTargetsPath.recipe
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project>
|
||||
<ProjectOutputs>
|
||||
<ProjectOutput>
|
||||
<FullPath>C:\Users\gregd\Documents\Source\autopsy\thirdparty\libheif\HeifConvertTestJNI\dist\CMakeFiles\3.23.0-rc2\x64\Debug\VCTargetsPath</FullPath>
|
||||
</ProjectOutput>
|
||||
</ProjectOutputs>
|
||||
<ContentFiles />
|
||||
<SatelliteDlls />
|
||||
<NonRecipeFileRefs />
|
||||
</Project>
|
@ -0,0 +1,2 @@
|
||||
PlatformToolSet=v143:VCToolArchitecture=Native64Bit:VCToolsVersion=14.31.31103:TargetPlatformVersion=10.0.19041.0:
|
||||
Debug|x64|C:\Users\gregd\Documents\Source\autopsy\thirdparty\libheif\HeifConvertTestJNI\dist\CMakeFiles\3.23.0-rc2\|
|
143
thirdparty/libheif/HeifConvertTestJNI/dist/CMakeFiles/CMakeOutput.log
vendored
Normal file
143
thirdparty/libheif/HeifConvertTestJNI/dist/CMakeFiles/CMakeOutput.log
vendored
Normal file
@ -0,0 +1,143 @@
|
||||
The system is: Windows - 10.0.19044 - AMD64
|
||||
Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded.
|
||||
Compiler:
|
||||
Build flags:
|
||||
Id flags:
|
||||
|
||||
The output was:
|
||||
0
|
||||
Microsoft (R) Build Engine version 17.1.0+ae57d105c for .NET Framework
|
||||
Copyright (C) Microsoft Corporation. All rights reserved.
|
||||
|
||||
Build started 2/28/2022 11:54:59 AM.
|
||||
Project "C:\Users\gregd\Documents\Source\autopsy\thirdparty\libheif\HeifConvertTestJNI\dist\CMakeFiles\3.23.0-rc2\CompilerIdC\CompilerIdC.vcxproj" on node 1 (default targets).
|
||||
PrepareForBuild:
|
||||
Creating directory "Debug\".
|
||||
Creating directory "Debug\CompilerIdC.tlog\".
|
||||
InitializeBuildStatus:
|
||||
Creating "Debug\CompilerIdC.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
|
||||
ClCompile:
|
||||
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.31.31103\bin\HostX64\x64\CL.exe /c /nologo /W0 /WX- /diagnostics:column /Od /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"Debug\\" /Fd"Debug\vc143.pdb" /external:W0 /Gd /TC /FC /errorReport:queue CMakeCCompilerId.c
|
||||
CMakeCCompilerId.c
|
||||
Link:
|
||||
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.31.31103\bin\HostX64\x64\link.exe /ERRORREPORT:QUEUE /OUT:".\CompilerIdC.exe" /INCREMENTAL:NO /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /PDB:".\CompilerIdC.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:".\CompilerIdC.lib" /MACHINE:X64 Debug\CMakeCCompilerId.obj
|
||||
CompilerIdC.vcxproj -> C:\Users\gregd\Documents\Source\autopsy\thirdparty\libheif\HeifConvertTestJNI\dist\CMakeFiles\3.23.0-rc2\CompilerIdC\CompilerIdC.exe
|
||||
PostBuildEvent:
|
||||
for %%i in (cl.exe) do @echo CMAKE_C_COMPILER=%%~$PATH:i
|
||||
:VCEnd
|
||||
CMAKE_C_COMPILER=C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.31.31103\bin\Hostx64\x64\cl.exe
|
||||
FinalizeBuildStatus:
|
||||
Deleting file "Debug\CompilerIdC.tlog\unsuccessfulbuild".
|
||||
Touching "Debug\CompilerIdC.tlog\CompilerIdC.lastbuildstate".
|
||||
Done Building Project "C:\Users\gregd\Documents\Source\autopsy\thirdparty\libheif\HeifConvertTestJNI\dist\CMakeFiles\3.23.0-rc2\CompilerIdC\CompilerIdC.vcxproj" (default targets).
|
||||
|
||||
Build succeeded.
|
||||
0 Warning(s)
|
||||
0 Error(s)
|
||||
|
||||
Time Elapsed 00:00:00.66
|
||||
|
||||
|
||||
Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "CompilerIdC.exe"
|
||||
|
||||
Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "CompilerIdC.vcxproj"
|
||||
|
||||
The C compiler identification is MSVC, found in "C:/Users/gregd/Documents/Source/autopsy/thirdparty/libheif/HeifConvertTestJNI/dist/CMakeFiles/3.23.0-rc2/CompilerIdC/CompilerIdC.exe"
|
||||
|
||||
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded.
|
||||
Compiler:
|
||||
Build flags:
|
||||
Id flags:
|
||||
|
||||
The output was:
|
||||
0
|
||||
Microsoft (R) Build Engine version 17.1.0+ae57d105c for .NET Framework
|
||||
Copyright (C) Microsoft Corporation. All rights reserved.
|
||||
|
||||
Build started 2/28/2022 11:55:00 AM.
|
||||
Project "C:\Users\gregd\Documents\Source\autopsy\thirdparty\libheif\HeifConvertTestJNI\dist\CMakeFiles\3.23.0-rc2\CompilerIdCXX\CompilerIdCXX.vcxproj" on node 1 (default targets).
|
||||
PrepareForBuild:
|
||||
Creating directory "Debug\".
|
||||
Creating directory "Debug\CompilerIdCXX.tlog\".
|
||||
InitializeBuildStatus:
|
||||
Creating "Debug\CompilerIdCXX.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
|
||||
ClCompile:
|
||||
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.31.31103\bin\HostX64\x64\CL.exe /c /nologo /W0 /WX- /diagnostics:column /Od /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"Debug\\" /Fd"Debug\vc143.pdb" /external:W0 /Gd /TP /FC /errorReport:queue CMakeCXXCompilerId.cpp
|
||||
CMakeCXXCompilerId.cpp
|
||||
Link:
|
||||
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.31.31103\bin\HostX64\x64\link.exe /ERRORREPORT:QUEUE /OUT:".\CompilerIdCXX.exe" /INCREMENTAL:NO /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /PDB:".\CompilerIdCXX.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:".\CompilerIdCXX.lib" /MACHINE:X64 Debug\CMakeCXXCompilerId.obj
|
||||
CompilerIdCXX.vcxproj -> C:\Users\gregd\Documents\Source\autopsy\thirdparty\libheif\HeifConvertTestJNI\dist\CMakeFiles\3.23.0-rc2\CompilerIdCXX\CompilerIdCXX.exe
|
||||
PostBuildEvent:
|
||||
for %%i in (cl.exe) do @echo CMAKE_CXX_COMPILER=%%~$PATH:i
|
||||
:VCEnd
|
||||
CMAKE_CXX_COMPILER=C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.31.31103\bin\Hostx64\x64\cl.exe
|
||||
FinalizeBuildStatus:
|
||||
Deleting file "Debug\CompilerIdCXX.tlog\unsuccessfulbuild".
|
||||
Touching "Debug\CompilerIdCXX.tlog\CompilerIdCXX.lastbuildstate".
|
||||
Done Building Project "C:\Users\gregd\Documents\Source\autopsy\thirdparty\libheif\HeifConvertTestJNI\dist\CMakeFiles\3.23.0-rc2\CompilerIdCXX\CompilerIdCXX.vcxproj" (default targets).
|
||||
|
||||
Build succeeded.
|
||||
0 Warning(s)
|
||||
0 Error(s)
|
||||
|
||||
Time Elapsed 00:00:00.50
|
||||
|
||||
|
||||
Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "CompilerIdCXX.exe"
|
||||
|
||||
Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "CompilerIdCXX.vcxproj"
|
||||
|
||||
The CXX compiler identification is MSVC, found in "C:/Users/gregd/Documents/Source/autopsy/thirdparty/libheif/HeifConvertTestJNI/dist/CMakeFiles/3.23.0-rc2/CompilerIdCXX/CompilerIdCXX.exe"
|
||||
|
||||
Detecting C compiler ABI info compiled with the following output:
|
||||
Change Dir: C:/Users/gregd/Documents/Source/autopsy/thirdparty/libheif/HeifConvertTestJNI/dist/CMakeFiles/CMakeTmp
|
||||
|
||||
Run Build Command(s):C:/Program Files/Microsoft Visual Studio/2022/Community/MSBuild/Current/Bin/amd64/MSBuild.exe cmTC_1232c.vcxproj /p:Configuration=Debug /p:Platform=x64 /p:VisualStudioVersion=17.0 /v:m && Microsoft (R) Build Engine version 17.1.0+ae57d105c for .NET Framework
|
||||
Copyright (C) Microsoft Corporation. All rights reserved.
|
||||
|
||||
Microsoft (R) C/C++ Optimizing Compiler Version 19.31.31104 for x64
|
||||
CMakeCCompilerABI.c
|
||||
Copyright (C) Microsoft Corporation. All rights reserved.
|
||||
cl /c /Zi /W3 /WX- /diagnostics:column /Od /Ob0 /D _MBCS /D WIN32 /D _WINDOWS /D "CMAKE_INTDIR=\"Debug\"" /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_1232c.dir\Debug\\" /Fd"cmTC_1232c.dir\Debug\vc143.pdb" /external:W3 /Gd /TC /errorReport:queue "C:\Program Files\CMake\share\cmake-3.23\Modules\CMakeCCompilerABI.c"
|
||||
cmTC_1232c.vcxproj -> C:\Users\gregd\Documents\Source\autopsy\thirdparty\libheif\HeifConvertTestJNI\dist\CMakeFiles\CMakeTmp\Debug\cmTC_1232c.exe
|
||||
|
||||
|
||||
|
||||
Detecting CXX compiler ABI info compiled with the following output:
|
||||
Change Dir: C:/Users/gregd/Documents/Source/autopsy/thirdparty/libheif/HeifConvertTestJNI/dist/CMakeFiles/CMakeTmp
|
||||
|
||||
Run Build Command(s):C:/Program Files/Microsoft Visual Studio/2022/Community/MSBuild/Current/Bin/amd64/MSBuild.exe cmTC_1c0ef.vcxproj /p:Configuration=Debug /p:Platform=x64 /p:VisualStudioVersion=17.0 /v:m && Microsoft (R) Build Engine version 17.1.0+ae57d105c for .NET Framework
|
||||
Copyright (C) Microsoft Corporation. All rights reserved.
|
||||
|
||||
Microsoft (R) C/C++ Optimizing Compiler Version 19.31.31104 for x64
|
||||
Copyright (C) Microsoft Corporation. All rights reserved.
|
||||
CMakeCXXCompilerABI.cpp
|
||||
cl /c /Zi /W3 /WX- /diagnostics:column /Od /Ob0 /D _MBCS /D WIN32 /D _WINDOWS /D "CMAKE_INTDIR=\"Debug\"" /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /Fo"cmTC_1c0ef.dir\Debug\\" /Fd"cmTC_1c0ef.dir\Debug\vc143.pdb" /external:W3 /Gd /TP /errorReport:queue "C:\Program Files\CMake\share\cmake-3.23\Modules\CMakeCXXCompilerABI.cpp"
|
||||
cmTC_1c0ef.vcxproj -> C:\Users\gregd\Documents\Source\autopsy\thirdparty\libheif\HeifConvertTestJNI\dist\CMakeFiles\CMakeTmp\Debug\cmTC_1c0ef.exe
|
||||
|
||||
|
||||
|
||||
Performing C++ SOURCE FILE Test HAVE_JPEG_WRITE_ICC_PROFILE succeeded with the following output:
|
||||
Change Dir: C:/Users/gregd/Documents/Source/autopsy/thirdparty/libheif/HeifConvertTestJNI/dist/CMakeFiles/CMakeTmp
|
||||
|
||||
Run Build Command(s):C:/Program Files/Microsoft Visual Studio/2022/Community/MSBuild/Current/Bin/amd64/MSBuild.exe cmTC_4e709.vcxproj /p:Configuration=Debug /p:Platform=x64 /p:VisualStudioVersion=17.0 /v:m && Microsoft (R) Build Engine version 17.1.0+ae57d105c for .NET Framework
|
||||
Copyright (C) Microsoft Corporation. All rights reserved.
|
||||
|
||||
Microsoft (R) C/C++ Optimizing Compiler Version 19.31.31104 for x64
|
||||
src.cxx
|
||||
Copyright (C) Microsoft Corporation. All rights reserved.
|
||||
cl /c /I"C:\Users\gregd\vcpkg\installed\x64-windows\include" /Zi /W3 /WX- /diagnostics:column /Od /Ob0 /D _MBCS /D WIN32 /D _WINDOWS /D HAVE_JPEG_WRITE_ICC_PROFILE /D "CMAKE_INTDIR=\"Debug\"" /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /Fo"cmTC_4e709.dir\Debug\\" /Fd"cmTC_4e709.dir\Debug\vc143.pdb" /external:W3 /Gd /TP /errorReport:queue C:\Users\gregd\Documents\Source\autopsy\thirdparty\libheif\HeifConvertTestJNI\dist\CMakeFiles\CMakeTmp\src.cxx
|
||||
cmTC_4e709.vcxproj -> C:\Users\gregd\Documents\Source\autopsy\thirdparty\libheif\HeifConvertTestJNI\dist\CMakeFiles\CMakeTmp\Debug\cmTC_4e709.exe
|
||||
|
||||
|
||||
Source file was:
|
||||
|
||||
#include <stddef.h>
|
||||
#include <stdio.h>
|
||||
#include <jpeglib.h>
|
||||
|
||||
int main() {
|
||||
jpeg_write_icc_profile(NULL, NULL, 0);
|
||||
return 0;
|
||||
}
|
||||
|
4
thirdparty/libheif/HeifConvertTestJNI/dist/CMakeFiles/TargetDirectories.txt
vendored
Normal file
4
thirdparty/libheif/HeifConvertTestJNI/dist/CMakeFiles/TargetDirectories.txt
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
C:/Users/gregd/Documents/Source/autopsy/thirdparty/libheif/HeifConvertTestJNI/dist/CMakeFiles/heif-convert.dir
|
||||
C:/Users/gregd/Documents/Source/autopsy/thirdparty/libheif/HeifConvertTestJNI/dist/CMakeFiles/INSTALL.dir
|
||||
C:/Users/gregd/Documents/Source/autopsy/thirdparty/libheif/HeifConvertTestJNI/dist/CMakeFiles/ALL_BUILD.dir
|
||||
C:/Users/gregd/Documents/Source/autopsy/thirdparty/libheif/HeifConvertTestJNI/dist/CMakeFiles/ZERO_CHECK.dir
|
1
thirdparty/libheif/HeifConvertTestJNI/dist/CMakeFiles/cmake.check_cache
vendored
Normal file
1
thirdparty/libheif/HeifConvertTestJNI/dist/CMakeFiles/cmake.check_cache
vendored
Normal file
@ -0,0 +1 @@
|
||||
# This file is generated by cmake for dependency checking of the CMakeCache.txt file
|
1
thirdparty/libheif/HeifConvertTestJNI/dist/CMakeFiles/generate.stamp
vendored
Normal file
1
thirdparty/libheif/HeifConvertTestJNI/dist/CMakeFiles/generate.stamp
vendored
Normal file
@ -0,0 +1 @@
|
||||
# CMake generation timestamp file for this directory.
|
115
thirdparty/libheif/HeifConvertTestJNI/dist/CMakeFiles/generate.stamp.depend
vendored
Normal file
115
thirdparty/libheif/HeifConvertTestJNI/dist/CMakeFiles/generate.stamp.depend
vendored
Normal file
@ -0,0 +1,115 @@
|
||||
# CMake generation dependency list for this directory.
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/CMakeCCompiler.cmake.in
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/CMakeCCompilerABI.c
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/CMakeCInformation.cmake
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/CMakeCXXCompiler.cmake.in
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/CMakeCXXCompilerABI.cpp
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/CMakeCXXInformation.cmake
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/CMakeCommonLanguageInclude.cmake
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/CMakeCompilerIdDetection.cmake
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/CMakeDependentOption.cmake
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/CMakeDetermineCCompiler.cmake
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/CMakeDetermineCXXCompiler.cmake
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/CMakeDetermineCompileFeatures.cmake
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/CMakeDetermineCompiler.cmake
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/CMakeDetermineCompilerABI.cmake
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/CMakeDetermineCompilerId.cmake
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/CMakeDetermineRCCompiler.cmake
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/CMakeDetermineSystem.cmake
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/CMakeFindBinUtils.cmake
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/CMakeFindJavaCommon.cmake
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/CMakeGenericSystem.cmake
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/CMakeInitializeConfigs.cmake
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/CMakeLanguageInformation.cmake
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/CMakeParseImplicitIncludeInfo.cmake
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/CMakeParseImplicitLinkInfo.cmake
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/CMakeParseLibraryArchitecture.cmake
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/CMakeRCCompiler.cmake.in
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/CMakeRCInformation.cmake
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/CMakeSystem.cmake.in
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/CMakeSystemSpecificInformation.cmake
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/CMakeSystemSpecificInitialize.cmake
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/CMakeTestCCompiler.cmake
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/CMakeTestCXXCompiler.cmake
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/CMakeTestCompilerCommon.cmake
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/CMakeTestRCCompiler.cmake
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/CheckCXXSourceCompiles.cmake
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/Compiler/ADSP-DetermineCompiler.cmake
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/Compiler/ARMCC-DetermineCompiler.cmake
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/Compiler/ARMClang-DetermineCompiler.cmake
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/Compiler/AppleClang-DetermineCompiler.cmake
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/Compiler/Borland-DetermineCompiler.cmake
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/Compiler/Bruce-C-DetermineCompiler.cmake
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/Compiler/CMakeCommonCompilerMacros.cmake
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/Compiler/Clang-DetermineCompiler.cmake
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/Compiler/Clang-DetermineCompilerInternal.cmake
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/Compiler/Comeau-CXX-DetermineCompiler.cmake
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/Compiler/Compaq-C-DetermineCompiler.cmake
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/Compiler/Compaq-CXX-DetermineCompiler.cmake
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/Compiler/Cray-DetermineCompiler.cmake
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/Compiler/Embarcadero-DetermineCompiler.cmake
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/Compiler/Fujitsu-DetermineCompiler.cmake
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/Compiler/FujitsuClang-DetermineCompiler.cmake
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/Compiler/GHS-DetermineCompiler.cmake
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/Compiler/GNU-C-DetermineCompiler.cmake
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/Compiler/GNU-CXX-DetermineCompiler.cmake
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/Compiler/HP-C-DetermineCompiler.cmake
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/Compiler/HP-CXX-DetermineCompiler.cmake
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/Compiler/IAR-DetermineCompiler.cmake
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/Compiler/IBMCPP-C-DetermineVersionInternal.cmake
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/Compiler/IBMCPP-CXX-DetermineVersionInternal.cmake
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/Compiler/IBMClang-C-DetermineCompiler.cmake
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/Compiler/IBMClang-CXX-DetermineCompiler.cmake
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/Compiler/Intel-DetermineCompiler.cmake
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/Compiler/IntelLLVM-DetermineCompiler.cmake
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/Compiler/LCC-C-DetermineCompiler.cmake
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/Compiler/LCC-CXX-DetermineCompiler.cmake
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/Compiler/MSVC-C.cmake
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/Compiler/MSVC-CXX.cmake
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/Compiler/MSVC-DetermineCompiler.cmake
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/Compiler/NVHPC-DetermineCompiler.cmake
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/Compiler/NVIDIA-DetermineCompiler.cmake
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/Compiler/OpenWatcom-DetermineCompiler.cmake
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/Compiler/PGI-DetermineCompiler.cmake
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/Compiler/PathScale-DetermineCompiler.cmake
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/Compiler/SCO-DetermineCompiler.cmake
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/Compiler/SDCC-C-DetermineCompiler.cmake
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/Compiler/SunPro-C-DetermineCompiler.cmake
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/Compiler/SunPro-CXX-DetermineCompiler.cmake
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/Compiler/TI-DetermineCompiler.cmake
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/Compiler/TinyCC-C-DetermineCompiler.cmake
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/Compiler/VisualAge-C-DetermineCompiler.cmake
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/Compiler/VisualAge-CXX-DetermineCompiler.cmake
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/Compiler/Watcom-DetermineCompiler.cmake
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/Compiler/XL-C-DetermineCompiler.cmake
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/Compiler/XL-CXX-DetermineCompiler.cmake
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/Compiler/XLClang-C-DetermineCompiler.cmake
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/Compiler/XLClang-CXX-DetermineCompiler.cmake
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/Compiler/zOS-C-DetermineCompiler.cmake
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/Compiler/zOS-CXX-DetermineCompiler.cmake
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/CompilerId/VS-10.vcxproj.in
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/FindJNI.cmake
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/FindJPEG.cmake
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/FindJava.cmake
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/FindPackageHandleStandardArgs.cmake
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/FindPackageMessage.cmake
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/Internal/CheckSourceCompiles.cmake
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/Internal/FeatureTesting.cmake
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/Platform/Windows-Determine-CXX.cmake
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/Platform/Windows-MSVC-C.cmake
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/Platform/Windows-MSVC-CXX.cmake
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/Platform/Windows-MSVC.cmake
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/Platform/Windows.cmake
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/Platform/WindowsPaths.cmake
|
||||
C:/Program Files/CMake/share/cmake-3.23/Modules/SelectLibraryConfigurations.cmake
|
||||
C:/Users/gregd/Documents/Source/autopsy/thirdparty/libheif/HeifConvertTestJNI/CMakeLists.txt
|
||||
C:/Users/gregd/Documents/Source/autopsy/thirdparty/libheif/HeifConvertTestJNI/dist/CMakeFiles/3.23.0-rc2/CMakeCCompiler.cmake
|
||||
C:/Users/gregd/Documents/Source/autopsy/thirdparty/libheif/HeifConvertTestJNI/dist/CMakeFiles/3.23.0-rc2/CMakeCXXCompiler.cmake
|
||||
C:/Users/gregd/Documents/Source/autopsy/thirdparty/libheif/HeifConvertTestJNI/dist/CMakeFiles/3.23.0-rc2/CMakeRCCompiler.cmake
|
||||
C:/Users/gregd/Documents/Source/autopsy/thirdparty/libheif/HeifConvertTestJNI/dist/CMakeFiles/3.23.0-rc2/CMakeSystem.cmake
|
||||
C:/Users/gregd/vcpkg/installed/x64-windows/share/jpeg/vcpkg-cmake-wrapper.cmake
|
||||
C:/Users/gregd/vcpkg/installed/x64-windows/share/libheif/libheif-config-debug.cmake
|
||||
C:/Users/gregd/vcpkg/installed/x64-windows/share/libheif/libheif-config-release.cmake
|
||||
C:/Users/gregd/vcpkg/installed/x64-windows/share/libheif/libheif-config-version.cmake
|
||||
C:/Users/gregd/vcpkg/installed/x64-windows/share/libheif/libheif-config.cmake
|
||||
C:/Users/gregd/vcpkg/scripts/buildsystems/vcpkg.cmake
|
1
thirdparty/libheif/HeifConvertTestJNI/dist/CMakeFiles/generate.stamp.list
vendored
Normal file
1
thirdparty/libheif/HeifConvertTestJNI/dist/CMakeFiles/generate.stamp.list
vendored
Normal file
@ -0,0 +1 @@
|
||||
C:/Users/gregd/Documents/Source/autopsy/thirdparty/libheif/HeifConvertTestJNI/dist/CMakeFiles/generate.stamp
|
204
thirdparty/libheif/HeifConvertTestJNI/dist/INSTALL.vcxproj
vendored
Normal file
204
thirdparty/libheif/HeifConvertTestJNI/dist/INSTALL.vcxproj
vendored
Normal file
@ -0,0 +1,204 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" ToolsVersion="17.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<PreferredToolArchitecture>x64</PreferredToolArchitecture>
|
||||
</PropertyGroup>
|
||||
<ItemGroup Label="ProjectConfigurations">
|
||||
<ProjectConfiguration Include="Debug|x64">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|x64">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="MinSizeRel|x64">
|
||||
<Configuration>MinSizeRel</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="RelWithDebInfo|x64">
|
||||
<Configuration>RelWithDebInfo</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
</ItemGroup>
|
||||
<PropertyGroup Label="Globals">
|
||||
<ProjectGuid>{8F47B954-D4F5-378C-AC37-5B042896AF82}</ProjectGuid>
|
||||
<Keyword>Win32Proj</Keyword>
|
||||
<WindowsTargetPlatformVersion>10.0.19041.0</WindowsTargetPlatformVersion>
|
||||
<Platform>x64</Platform>
|
||||
<ProjectName>INSTALL</ProjectName>
|
||||
<VCProjectUpgraderObjectName>NoUpgrade</VCProjectUpgraderObjectName>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||
<ConfigurationType>Utility</ConfigurationType>
|
||||
<CharacterSet>MultiByte</CharacterSet>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||
<ConfigurationType>Utility</ConfigurationType>
|
||||
<CharacterSet>MultiByte</CharacterSet>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='MinSizeRel|x64'" Label="Configuration">
|
||||
<ConfigurationType>Utility</ConfigurationType>
|
||||
<CharacterSet>MultiByte</CharacterSet>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='RelWithDebInfo|x64'" Label="Configuration">
|
||||
<ConfigurationType>Utility</ConfigurationType>
|
||||
<CharacterSet>MultiByte</CharacterSet>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="ExtensionSettings">
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<PropertyGroup Label="UserMacros" />
|
||||
<PropertyGroup>
|
||||
<_ProjectFileVersion>10.0.20506.1</_ProjectFileVersion>
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(Platform)\$(Configuration)\$(ProjectName)\</IntDir>
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(Platform)\$(Configuration)\$(ProjectName)\</IntDir>
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='MinSizeRel|x64'">$(Platform)\$(Configuration)\$(ProjectName)\</IntDir>
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='RelWithDebInfo|x64'">$(Platform)\$(Configuration)\$(ProjectName)\</IntDir>
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<PostBuildEvent>
|
||||
<UseUtf8Encoding>Always</UseUtf8Encoding>
|
||||
<Message></Message>
|
||||
<Command>setlocal
|
||||
"C:\Program Files\CMake\bin\cmake.exe" -DBUILD_TYPE=$(Configuration) -P cmake_install.cmake
|
||||
if %errorlevel% neq 0 goto :cmEnd
|
||||
:cmEnd
|
||||
endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
|
||||
:cmErrorLevel
|
||||
exit /b %1
|
||||
:cmDone
|
||||
if %errorlevel% neq 0 goto :VCEnd</Command>
|
||||
</PostBuildEvent>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<PostBuildEvent>
|
||||
<UseUtf8Encoding>Always</UseUtf8Encoding>
|
||||
<Message></Message>
|
||||
<Command>setlocal
|
||||
"C:\Program Files\CMake\bin\cmake.exe" -DBUILD_TYPE=$(Configuration) -P cmake_install.cmake
|
||||
if %errorlevel% neq 0 goto :cmEnd
|
||||
:cmEnd
|
||||
endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
|
||||
:cmErrorLevel
|
||||
exit /b %1
|
||||
:cmDone
|
||||
if %errorlevel% neq 0 goto :VCEnd</Command>
|
||||
</PostBuildEvent>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='MinSizeRel|x64'">
|
||||
<PostBuildEvent>
|
||||
<UseUtf8Encoding>Always</UseUtf8Encoding>
|
||||
<Message></Message>
|
||||
<Command>setlocal
|
||||
"C:\Program Files\CMake\bin\cmake.exe" -DBUILD_TYPE=$(Configuration) -P cmake_install.cmake
|
||||
if %errorlevel% neq 0 goto :cmEnd
|
||||
:cmEnd
|
||||
endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
|
||||
:cmErrorLevel
|
||||
exit /b %1
|
||||
:cmDone
|
||||
if %errorlevel% neq 0 goto :VCEnd</Command>
|
||||
</PostBuildEvent>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='RelWithDebInfo|x64'">
|
||||
<PostBuildEvent>
|
||||
<UseUtf8Encoding>Always</UseUtf8Encoding>
|
||||
<Message></Message>
|
||||
<Command>setlocal
|
||||
"C:\Program Files\CMake\bin\cmake.exe" -DBUILD_TYPE=$(Configuration) -P cmake_install.cmake
|
||||
if %errorlevel% neq 0 goto :cmEnd
|
||||
:cmEnd
|
||||
endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
|
||||
:cmErrorLevel
|
||||
exit /b %1
|
||||
:cmDone
|
||||
if %errorlevel% neq 0 goto :VCEnd</Command>
|
||||
</PostBuildEvent>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<CustomBuild Include="C:\Users\gregd\Documents\Source\autopsy\thirdparty\libheif\HeifConvertTestJNI\dist\CMakeFiles\2705a2fd9a29a14983f126804d7dabbc\INSTALL_force.rule">
|
||||
<Message Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> </Message>
|
||||
<Command Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">setlocal
|
||||
cd .
|
||||
if %errorlevel% neq 0 goto :cmEnd
|
||||
:cmEnd
|
||||
endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
|
||||
:cmErrorLevel
|
||||
exit /b %1
|
||||
:cmDone
|
||||
if %errorlevel% neq 0 goto :VCEnd</Command>
|
||||
<AdditionalInputs Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(AdditionalInputs)</AdditionalInputs>
|
||||
<Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">C:\Users\gregd\Documents\Source\autopsy\thirdparty\libheif\HeifConvertTestJNI\dist\CMakeFiles\INSTALL_force</Outputs>
|
||||
<LinkObjects Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</LinkObjects>
|
||||
<VerifyInputsAndOutputsExist Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</VerifyInputsAndOutputsExist>
|
||||
<Message Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> </Message>
|
||||
<Command Condition="'$(Configuration)|$(Platform)'=='Release|x64'">setlocal
|
||||
cd .
|
||||
if %errorlevel% neq 0 goto :cmEnd
|
||||
:cmEnd
|
||||
endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
|
||||
:cmErrorLevel
|
||||
exit /b %1
|
||||
:cmDone
|
||||
if %errorlevel% neq 0 goto :VCEnd</Command>
|
||||
<AdditionalInputs Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(AdditionalInputs)</AdditionalInputs>
|
||||
<Outputs Condition="'$(Configuration)|$(Platform)'=='Release|x64'">C:\Users\gregd\Documents\Source\autopsy\thirdparty\libheif\HeifConvertTestJNI\dist\CMakeFiles\INSTALL_force</Outputs>
|
||||
<LinkObjects Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</LinkObjects>
|
||||
<VerifyInputsAndOutputsExist Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</VerifyInputsAndOutputsExist>
|
||||
<Message Condition="'$(Configuration)|$(Platform)'=='MinSizeRel|x64'"> </Message>
|
||||
<Command Condition="'$(Configuration)|$(Platform)'=='MinSizeRel|x64'">setlocal
|
||||
cd .
|
||||
if %errorlevel% neq 0 goto :cmEnd
|
||||
:cmEnd
|
||||
endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
|
||||
:cmErrorLevel
|
||||
exit /b %1
|
||||
:cmDone
|
||||
if %errorlevel% neq 0 goto :VCEnd</Command>
|
||||
<AdditionalInputs Condition="'$(Configuration)|$(Platform)'=='MinSizeRel|x64'">%(AdditionalInputs)</AdditionalInputs>
|
||||
<Outputs Condition="'$(Configuration)|$(Platform)'=='MinSizeRel|x64'">C:\Users\gregd\Documents\Source\autopsy\thirdparty\libheif\HeifConvertTestJNI\dist\CMakeFiles\INSTALL_force</Outputs>
|
||||
<LinkObjects Condition="'$(Configuration)|$(Platform)'=='MinSizeRel|x64'">false</LinkObjects>
|
||||
<VerifyInputsAndOutputsExist Condition="'$(Configuration)|$(Platform)'=='MinSizeRel|x64'">false</VerifyInputsAndOutputsExist>
|
||||
<Message Condition="'$(Configuration)|$(Platform)'=='RelWithDebInfo|x64'"> </Message>
|
||||
<Command Condition="'$(Configuration)|$(Platform)'=='RelWithDebInfo|x64'">setlocal
|
||||
cd .
|
||||
if %errorlevel% neq 0 goto :cmEnd
|
||||
:cmEnd
|
||||
endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
|
||||
:cmErrorLevel
|
||||
exit /b %1
|
||||
:cmDone
|
||||
if %errorlevel% neq 0 goto :VCEnd</Command>
|
||||
<AdditionalInputs Condition="'$(Configuration)|$(Platform)'=='RelWithDebInfo|x64'">%(AdditionalInputs)</AdditionalInputs>
|
||||
<Outputs Condition="'$(Configuration)|$(Platform)'=='RelWithDebInfo|x64'">C:\Users\gregd\Documents\Source\autopsy\thirdparty\libheif\HeifConvertTestJNI\dist\CMakeFiles\INSTALL_force</Outputs>
|
||||
<LinkObjects Condition="'$(Configuration)|$(Platform)'=='RelWithDebInfo|x64'">false</LinkObjects>
|
||||
<VerifyInputsAndOutputsExist Condition="'$(Configuration)|$(Platform)'=='RelWithDebInfo|x64'">false</VerifyInputsAndOutputsExist>
|
||||
</CustomBuild>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="C:\Users\gregd\Documents\Source\autopsy\thirdparty\libheif\HeifConvertTestJNI\dist\ZERO_CHECK.vcxproj">
|
||||
<Project>{CDA8F48B-69FE-3A49-8E17-9D2CDA18E3BE}</Project>
|
||||
<Name>ZERO_CHECK</Name>
|
||||
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
|
||||
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="C:\Users\gregd\Documents\Source\autopsy\thirdparty\libheif\HeifConvertTestJNI\dist\ALL_BUILD.vcxproj">
|
||||
<Project>{59761B3A-CD52-3355-B8AA-355CC66FBE7A}</Project>
|
||||
<Name>ALL_BUILD</Name>
|
||||
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
|
||||
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
</ImportGroup>
|
||||
</Project>
|
13
thirdparty/libheif/HeifConvertTestJNI/dist/INSTALL.vcxproj.filters
vendored
Normal file
13
thirdparty/libheif/HeifConvertTestJNI/dist/INSTALL.vcxproj.filters
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="17.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup>
|
||||
<CustomBuild Include="C:\Users\gregd\Documents\Source\autopsy\thirdparty\libheif\HeifConvertTestJNI\dist\CMakeFiles\2705a2fd9a29a14983f126804d7dabbc\INSTALL_force.rule">
|
||||
<Filter>CMake Rules</Filter>
|
||||
</CustomBuild>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Filter Include="CMake Rules">
|
||||
<UniqueIdentifier>{064F6CD9-3B6F-3D7F-9728-15D5F92EA2A8}</UniqueIdentifier>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
</Project>
|
174
thirdparty/libheif/HeifConvertTestJNI/dist/ZERO_CHECK.vcxproj
vendored
Normal file
174
thirdparty/libheif/HeifConvertTestJNI/dist/ZERO_CHECK.vcxproj
vendored
Normal file
File diff suppressed because one or more lines are too long
13
thirdparty/libheif/HeifConvertTestJNI/dist/ZERO_CHECK.vcxproj.filters
vendored
Normal file
13
thirdparty/libheif/HeifConvertTestJNI/dist/ZERO_CHECK.vcxproj.filters
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="17.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup>
|
||||
<CustomBuild Include="C:\Users\gregd\Documents\Source\autopsy\thirdparty\libheif\HeifConvertTestJNI\dist\CMakeFiles\2705a2fd9a29a14983f126804d7dabbc\generate.stamp.rule">
|
||||
<Filter>CMake Rules</Filter>
|
||||
</CustomBuild>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Filter Include="CMake Rules">
|
||||
<UniqueIdentifier>{064F6CD9-3B6F-3D7F-9728-15D5F92EA2A8}</UniqueIdentifier>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
</Project>
|
80
thirdparty/libheif/HeifConvertTestJNI/dist/cmake_install.cmake
vendored
Normal file
80
thirdparty/libheif/HeifConvertTestJNI/dist/cmake_install.cmake
vendored
Normal file
@ -0,0 +1,80 @@
|
||||
# Install script for directory: C:/Users/gregd/Documents/Source/autopsy/thirdparty/libheif/HeifConvertTestJNI
|
||||
|
||||
# Set the install prefix
|
||||
if(NOT DEFINED CMAKE_INSTALL_PREFIX)
|
||||
set(CMAKE_INSTALL_PREFIX "C:/Program Files/heif-convert")
|
||||
endif()
|
||||
string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}")
|
||||
|
||||
# Set the install configuration name.
|
||||
if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME)
|
||||
if(BUILD_TYPE)
|
||||
string(REGEX REPLACE "^[^A-Za-z0-9_]+" ""
|
||||
CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}")
|
||||
else()
|
||||
set(CMAKE_INSTALL_CONFIG_NAME "Release")
|
||||
endif()
|
||||
message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"")
|
||||
endif()
|
||||
|
||||
# Set the component getting installed.
|
||||
if(NOT CMAKE_INSTALL_COMPONENT)
|
||||
if(COMPONENT)
|
||||
message(STATUS "Install component: \"${COMPONENT}\"")
|
||||
set(CMAKE_INSTALL_COMPONENT "${COMPONENT}")
|
||||
else()
|
||||
set(CMAKE_INSTALL_COMPONENT)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
# Is this installation the result of a crosscompile?
|
||||
if(NOT DEFINED CMAKE_CROSSCOMPILING)
|
||||
set(CMAKE_CROSSCOMPILING "FALSE")
|
||||
endif()
|
||||
|
||||
if("x${CMAKE_INSTALL_COMPONENT}x" STREQUAL "xUnspecifiedx" OR NOT CMAKE_INSTALL_COMPONENT)
|
||||
if("${CMAKE_INSTALL_CONFIG_NAME}" MATCHES "^([Dd][Ee][Bb][Uu][Gg])$")
|
||||
file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/lib" TYPE STATIC_LIBRARY OPTIONAL FILES "C:/Users/gregd/Documents/Source/autopsy/thirdparty/libheif/HeifConvertTestJNI/dist/Debug/heif-convert.lib")
|
||||
elseif("${CMAKE_INSTALL_CONFIG_NAME}" MATCHES "^([Rr][Ee][Ll][Ee][Aa][Ss][Ee])$")
|
||||
file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/lib" TYPE STATIC_LIBRARY OPTIONAL FILES "C:/Users/gregd/Documents/Source/autopsy/thirdparty/libheif/HeifConvertTestJNI/dist/Release/heif-convert.lib")
|
||||
elseif("${CMAKE_INSTALL_CONFIG_NAME}" MATCHES "^([Mm][Ii][Nn][Ss][Ii][Zz][Ee][Rr][Ee][Ll])$")
|
||||
file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/lib" TYPE STATIC_LIBRARY OPTIONAL FILES "C:/Users/gregd/Documents/Source/autopsy/thirdparty/libheif/HeifConvertTestJNI/dist/MinSizeRel/heif-convert.lib")
|
||||
elseif("${CMAKE_INSTALL_CONFIG_NAME}" MATCHES "^([Rr][Ee][Ll][Ww][Ii][Tt][Hh][Dd][Ee][Bb][Ii][Nn][Ff][Oo])$")
|
||||
file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/lib" TYPE STATIC_LIBRARY OPTIONAL FILES "C:/Users/gregd/Documents/Source/autopsy/thirdparty/libheif/HeifConvertTestJNI/dist/RelWithDebInfo/heif-convert.lib")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if("x${CMAKE_INSTALL_COMPONENT}x" STREQUAL "xUnspecifiedx" OR NOT CMAKE_INSTALL_COMPONENT)
|
||||
if("${CMAKE_INSTALL_CONFIG_NAME}" MATCHES "^([Dd][Ee][Bb][Uu][Gg])$")
|
||||
file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/bin" TYPE SHARED_LIBRARY FILES "C:/Users/gregd/Documents/Source/autopsy/thirdparty/libheif/HeifConvertTestJNI/dist/Debug/heif-convert.dll")
|
||||
elseif("${CMAKE_INSTALL_CONFIG_NAME}" MATCHES "^([Rr][Ee][Ll][Ee][Aa][Ss][Ee])$")
|
||||
file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/bin" TYPE SHARED_LIBRARY FILES "C:/Users/gregd/Documents/Source/autopsy/thirdparty/libheif/HeifConvertTestJNI/dist/Release/heif-convert.dll")
|
||||
elseif("${CMAKE_INSTALL_CONFIG_NAME}" MATCHES "^([Mm][Ii][Nn][Ss][Ii][Zz][Ee][Rr][Ee][Ll])$")
|
||||
file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/bin" TYPE SHARED_LIBRARY FILES "C:/Users/gregd/Documents/Source/autopsy/thirdparty/libheif/HeifConvertTestJNI/dist/MinSizeRel/heif-convert.dll")
|
||||
elseif("${CMAKE_INSTALL_CONFIG_NAME}" MATCHES "^([Rr][Ee][Ll][Ww][Ii][Tt][Hh][Dd][Ee][Bb][Ii][Nn][Ff][Oo])$")
|
||||
file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/bin" TYPE SHARED_LIBRARY FILES "C:/Users/gregd/Documents/Source/autopsy/thirdparty/libheif/HeifConvertTestJNI/dist/RelWithDebInfo/heif-convert.dll")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if("x${CMAKE_INSTALL_COMPONENT}x" STREQUAL "xUnspecifiedx" OR NOT CMAKE_INSTALL_COMPONENT)
|
||||
list(APPEND CMAKE_ABSOLUTE_DESTINATION_FILES
|
||||
"/man1/heif-convert.1")
|
||||
if(CMAKE_WARN_ON_ABSOLUTE_INSTALL_DESTINATION)
|
||||
message(WARNING "ABSOLUTE path INSTALL DESTINATION : ${CMAKE_ABSOLUTE_DESTINATION_FILES}")
|
||||
endif()
|
||||
if(CMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION)
|
||||
message(FATAL_ERROR "ABSOLUTE path INSTALL DESTINATION forbidden (by caller): ${CMAKE_ABSOLUTE_DESTINATION_FILES}")
|
||||
endif()
|
||||
file(INSTALL DESTINATION "/man1" TYPE FILE FILES "C:/Users/gregd/Documents/Source/autopsy/thirdparty/libheif/HeifConvertTestJNI/heif-convert.1")
|
||||
endif()
|
||||
|
||||
if(CMAKE_INSTALL_COMPONENT)
|
||||
set(CMAKE_INSTALL_MANIFEST "install_manifest_${CMAKE_INSTALL_COMPONENT}.txt")
|
||||
else()
|
||||
set(CMAKE_INSTALL_MANIFEST "install_manifest.txt")
|
||||
endif()
|
||||
|
||||
string(REPLACE ";" "\n" CMAKE_INSTALL_MANIFEST_CONTENT
|
||||
"${CMAKE_INSTALL_MANIFEST_FILES}")
|
||||
file(WRITE "C:/Users/gregd/Documents/Source/autopsy/thirdparty/libheif/HeifConvertTestJNI/dist/${CMAKE_INSTALL_MANIFEST}"
|
||||
"${CMAKE_INSTALL_MANIFEST_CONTENT}")
|
67
thirdparty/libheif/HeifConvertTestJNI/dist/heif-convert.sln
vendored
Normal file
67
thirdparty/libheif/HeifConvertTestJNI/dist/heif-convert.sln
vendored
Normal file
@ -0,0 +1,67 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 17
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ALL_BUILD", "ALL_BUILD.vcxproj", "{59761B3A-CD52-3355-B8AA-355CC66FBE7A}"
|
||||
ProjectSection(ProjectDependencies) = postProject
|
||||
{CDA8F48B-69FE-3A49-8E17-9D2CDA18E3BE} = {CDA8F48B-69FE-3A49-8E17-9D2CDA18E3BE}
|
||||
{19A74D12-2F46-3B8A-831C-73CDB2569BFD} = {19A74D12-2F46-3B8A-831C-73CDB2569BFD}
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "INSTALL", "INSTALL.vcxproj", "{8F47B954-D4F5-378C-AC37-5B042896AF82}"
|
||||
ProjectSection(ProjectDependencies) = postProject
|
||||
{59761B3A-CD52-3355-B8AA-355CC66FBE7A} = {59761B3A-CD52-3355-B8AA-355CC66FBE7A}
|
||||
{CDA8F48B-69FE-3A49-8E17-9D2CDA18E3BE} = {CDA8F48B-69FE-3A49-8E17-9D2CDA18E3BE}
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ZERO_CHECK", "ZERO_CHECK.vcxproj", "{CDA8F48B-69FE-3A49-8E17-9D2CDA18E3BE}"
|
||||
ProjectSection(ProjectDependencies) = postProject
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "heif-convert", "heif-convert.vcxproj", "{19A74D12-2F46-3B8A-831C-73CDB2569BFD}"
|
||||
ProjectSection(ProjectDependencies) = postProject
|
||||
{CDA8F48B-69FE-3A49-8E17-9D2CDA18E3BE} = {CDA8F48B-69FE-3A49-8E17-9D2CDA18E3BE}
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|x64 = Debug|x64
|
||||
Release|x64 = Release|x64
|
||||
MinSizeRel|x64 = MinSizeRel|x64
|
||||
RelWithDebInfo|x64 = RelWithDebInfo|x64
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{59761B3A-CD52-3355-B8AA-355CC66FBE7A}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{59761B3A-CD52-3355-B8AA-355CC66FBE7A}.Debug|x64.Build.0 = Debug|x64
|
||||
{59761B3A-CD52-3355-B8AA-355CC66FBE7A}.Release|x64.ActiveCfg = Release|x64
|
||||
{59761B3A-CD52-3355-B8AA-355CC66FBE7A}.Release|x64.Build.0 = Release|x64
|
||||
{59761B3A-CD52-3355-B8AA-355CC66FBE7A}.MinSizeRel|x64.ActiveCfg = MinSizeRel|x64
|
||||
{59761B3A-CD52-3355-B8AA-355CC66FBE7A}.MinSizeRel|x64.Build.0 = MinSizeRel|x64
|
||||
{59761B3A-CD52-3355-B8AA-355CC66FBE7A}.RelWithDebInfo|x64.ActiveCfg = RelWithDebInfo|x64
|
||||
{59761B3A-CD52-3355-B8AA-355CC66FBE7A}.RelWithDebInfo|x64.Build.0 = RelWithDebInfo|x64
|
||||
{8F47B954-D4F5-378C-AC37-5B042896AF82}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{8F47B954-D4F5-378C-AC37-5B042896AF82}.Release|x64.ActiveCfg = Release|x64
|
||||
{8F47B954-D4F5-378C-AC37-5B042896AF82}.MinSizeRel|x64.ActiveCfg = MinSizeRel|x64
|
||||
{8F47B954-D4F5-378C-AC37-5B042896AF82}.RelWithDebInfo|x64.ActiveCfg = RelWithDebInfo|x64
|
||||
{CDA8F48B-69FE-3A49-8E17-9D2CDA18E3BE}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{CDA8F48B-69FE-3A49-8E17-9D2CDA18E3BE}.Debug|x64.Build.0 = Debug|x64
|
||||
{CDA8F48B-69FE-3A49-8E17-9D2CDA18E3BE}.Release|x64.ActiveCfg = Release|x64
|
||||
{CDA8F48B-69FE-3A49-8E17-9D2CDA18E3BE}.Release|x64.Build.0 = Release|x64
|
||||
{CDA8F48B-69FE-3A49-8E17-9D2CDA18E3BE}.MinSizeRel|x64.ActiveCfg = MinSizeRel|x64
|
||||
{CDA8F48B-69FE-3A49-8E17-9D2CDA18E3BE}.MinSizeRel|x64.Build.0 = MinSizeRel|x64
|
||||
{CDA8F48B-69FE-3A49-8E17-9D2CDA18E3BE}.RelWithDebInfo|x64.ActiveCfg = RelWithDebInfo|x64
|
||||
{CDA8F48B-69FE-3A49-8E17-9D2CDA18E3BE}.RelWithDebInfo|x64.Build.0 = RelWithDebInfo|x64
|
||||
{19A74D12-2F46-3B8A-831C-73CDB2569BFD}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{19A74D12-2F46-3B8A-831C-73CDB2569BFD}.Debug|x64.Build.0 = Debug|x64
|
||||
{19A74D12-2F46-3B8A-831C-73CDB2569BFD}.Release|x64.ActiveCfg = Release|x64
|
||||
{19A74D12-2F46-3B8A-831C-73CDB2569BFD}.Release|x64.Build.0 = Release|x64
|
||||
{19A74D12-2F46-3B8A-831C-73CDB2569BFD}.MinSizeRel|x64.ActiveCfg = MinSizeRel|x64
|
||||
{19A74D12-2F46-3B8A-831C-73CDB2569BFD}.MinSizeRel|x64.Build.0 = MinSizeRel|x64
|
||||
{19A74D12-2F46-3B8A-831C-73CDB2569BFD}.RelWithDebInfo|x64.ActiveCfg = RelWithDebInfo|x64
|
||||
{19A74D12-2F46-3B8A-831C-73CDB2569BFD}.RelWithDebInfo|x64.Build.0 = RelWithDebInfo|x64
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {74691509-05B8-3D1D-8A4C-848028845F16}
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityAddIns) = postSolution
|
||||
EndGlobalSection
|
||||
EndGlobal
|
387
thirdparty/libheif/HeifConvertTestJNI/dist/heif-convert.vcxproj
vendored
Normal file
387
thirdparty/libheif/HeifConvertTestJNI/dist/heif-convert.vcxproj
vendored
Normal file
File diff suppressed because one or more lines are too long
36
thirdparty/libheif/HeifConvertTestJNI/dist/heif-convert.vcxproj.filters
vendored
Normal file
36
thirdparty/libheif/HeifConvertTestJNI/dist/heif-convert.vcxproj.filters
vendored
Normal file
@ -0,0 +1,36 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="17.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup>
|
||||
<ClCompile Include="C:\Users\gregd\Documents\Source\autopsy\thirdparty\libheif\HeifConvertTestJNI\encoder.cc">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="C:\Users\gregd\Documents\Source\autopsy\thirdparty\libheif\HeifConvertTestJNI\org_sleuthkit_autopsy_modules_pictureanalyzer_impls_HeifJNI.cc">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="C:\Users\gregd\Documents\Source\autopsy\thirdparty\libheif\HeifConvertTestJNI\encoder_jpeg.cc">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="C:\Users\gregd\Documents\Source\autopsy\thirdparty\libheif\HeifConvertTestJNI\encoder.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="C:\Users\gregd\Documents\Source\autopsy\thirdparty\libheif\HeifConvertTestJNI\org_sleuthkit_autopsy_modules_pictureanalyzer_impls_HeifJNI.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="C:\Users\gregd\Documents\Source\autopsy\thirdparty\libheif\HeifConvertTestJNI\encoder_jpeg.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<CustomBuild Include="C:\Users\gregd\Documents\Source\autopsy\thirdparty\libheif\HeifConvertTestJNI\CMakeLists.txt" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Filter Include="Header Files">
|
||||
<UniqueIdentifier>{CBC44029-07BB-3213-8E38-17F72D951AFE}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="Source Files">
|
||||
<UniqueIdentifier>{241D2CE4-9F84-3CBE-98DE-CFEE2E049D46}</UniqueIdentifier>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
</Project>
|
72
thirdparty/libheif/HeifConvertTestJNI/encoder.cc
vendored
Normal file
72
thirdparty/libheif/HeifConvertTestJNI/encoder.cc
vendored
Normal file
@ -0,0 +1,72 @@
|
||||
/*
|
||||
libheif example application "convert".
|
||||
This file is part of convert, an example application using libheif.
|
||||
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2018 struktur AG, Joachim Bauch <bauch@struktur.de>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
*/
|
||||
#if defined(HAVE_CONFIG_H)
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "encoder.h"
|
||||
|
||||
static const char kMetadataTypeExif[] = "Exif";
|
||||
|
||||
// static
|
||||
bool Encoder::HasExifMetaData(const struct heif_image_handle* handle)
|
||||
{
|
||||
|
||||
heif_item_id metadata_id;
|
||||
int count = heif_image_handle_get_list_of_metadata_block_IDs(handle, kMetadataTypeExif,
|
||||
&metadata_id, 1);
|
||||
return count > 0;
|
||||
}
|
||||
|
||||
// static
|
||||
uint8_t* Encoder::GetExifMetaData(const struct heif_image_handle* handle, size_t* size)
|
||||
{
|
||||
heif_item_id metadata_id;
|
||||
int count = heif_image_handle_get_list_of_metadata_block_IDs(handle, kMetadataTypeExif,
|
||||
&metadata_id, 1);
|
||||
|
||||
for (int i = 0; i < count; i++) {
|
||||
size_t datasize = heif_image_handle_get_metadata_size(handle, metadata_id);
|
||||
uint8_t* data = static_cast<uint8_t*>(malloc(datasize));
|
||||
if (!data) {
|
||||
continue;
|
||||
}
|
||||
|
||||
heif_error error = heif_image_handle_get_metadata(handle, metadata_id, data);
|
||||
if (error.code != heif_error_Ok) {
|
||||
free(data);
|
||||
continue;
|
||||
}
|
||||
|
||||
*size = datasize;
|
||||
return data;
|
||||
}
|
||||
|
||||
return nullptr;
|
||||
}
|
58
thirdparty/libheif/HeifConvertTestJNI/encoder.h
vendored
Normal file
58
thirdparty/libheif/HeifConvertTestJNI/encoder.h
vendored
Normal file
@ -0,0 +1,58 @@
|
||||
/*
|
||||
libheif example application "convert".
|
||||
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2017 struktur AG, Joachim Bauch <bauch@struktur.de>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
*/
|
||||
#ifndef EXAMPLE_ENCODER_H
|
||||
#define EXAMPLE_ENCODER_H
|
||||
|
||||
#include <string>
|
||||
#include <memory>
|
||||
|
||||
#include <libheif/heif.h>
|
||||
|
||||
class Encoder
|
||||
{
|
||||
public:
|
||||
virtual ~Encoder() = default;
|
||||
|
||||
virtual heif_colorspace colorspace(bool has_alpha) const = 0;
|
||||
|
||||
virtual heif_chroma chroma(bool has_alpha, int bit_depth) const = 0;
|
||||
|
||||
virtual void UpdateDecodingOptions(const struct heif_image_handle* handle,
|
||||
struct heif_decoding_options* options) const
|
||||
{
|
||||
// Override if necessary.
|
||||
}
|
||||
|
||||
virtual bool Encode(const struct heif_image_handle* handle,
|
||||
const struct heif_image* image, const std::string& filename) = 0;
|
||||
|
||||
protected:
|
||||
static bool HasExifMetaData(const struct heif_image_handle* handle);
|
||||
|
||||
static uint8_t* GetExifMetaData(const struct heif_image_handle* handle, size_t* size);
|
||||
};
|
||||
|
||||
#endif // EXAMPLE_ENCODER_H
|
250
thirdparty/libheif/HeifConvertTestJNI/encoder_jpeg.cc
vendored
Normal file
250
thirdparty/libheif/HeifConvertTestJNI/encoder_jpeg.cc
vendored
Normal file
@ -0,0 +1,250 @@
|
||||
/*
|
||||
libheif example application "convert".
|
||||
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2017 struktur AG, Joachim Bauch <bauch@struktur.de>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
*/
|
||||
#if defined(HAVE_CONFIG_H)
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include <assert.h>
|
||||
#include <errno.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <iostream>
|
||||
|
||||
#include "encoder_jpeg.h"
|
||||
|
||||
JpegEncoder::JpegEncoder(int quality) : quality_(quality)
|
||||
{
|
||||
if (quality_ < 0 || quality_ > 100) {
|
||||
quality_ = kDefaultQuality;
|
||||
}
|
||||
}
|
||||
|
||||
void JpegEncoder::UpdateDecodingOptions(const struct heif_image_handle* handle,
|
||||
struct heif_decoding_options* options) const
|
||||
{
|
||||
if (HasExifMetaData(handle)) {
|
||||
options->ignore_transformations = 1;
|
||||
}
|
||||
|
||||
options->convert_hdr_to_8bit = 1;
|
||||
}
|
||||
|
||||
// static
|
||||
void JpegEncoder::OnJpegError(j_common_ptr cinfo)
|
||||
{
|
||||
ErrorHandler* handler = reinterpret_cast<ErrorHandler*>(cinfo->err);
|
||||
longjmp(handler->setjmp_buffer, 1);
|
||||
}
|
||||
|
||||
#define MAX_BYTES_IN_MARKER 65533 /* maximum data len of a JPEG marker */
|
||||
|
||||
#if !defined(HAVE_JPEG_WRITE_ICC_PROFILE)
|
||||
|
||||
#define ICC_MARKER (JPEG_APP0 + 2) /* JPEG marker code for ICC */
|
||||
#define ICC_OVERHEAD_LEN 14 /* size of non-profile data in APP2 */
|
||||
#define MAX_DATA_BYTES_IN_MARKER (MAX_BYTES_IN_MARKER - ICC_OVERHEAD_LEN)
|
||||
|
||||
/*
|
||||
* This routine writes the given ICC profile data into a JPEG file. It *must*
|
||||
* be called AFTER calling jpeg_start_compress() and BEFORE the first call to
|
||||
* jpeg_write_scanlines(). (This ordering ensures that the APP2 marker(s) will
|
||||
* appear after the SOI and JFIF or Adobe markers, but before all else.)
|
||||
*/
|
||||
|
||||
/* This function is copied almost as is from libjpeg-turbo */
|
||||
|
||||
static
|
||||
void jpeg_write_icc_profile(j_compress_ptr cinfo, const JOCTET* icc_data_ptr,
|
||||
unsigned int icc_data_len)
|
||||
{
|
||||
unsigned int num_markers; /* total number of markers we'll write */
|
||||
int cur_marker = 1; /* per spec, counting starts at 1 */
|
||||
unsigned int length; /* number of bytes to write in this marker */
|
||||
|
||||
/* Calculate the number of markers we'll need, rounding up of course */
|
||||
num_markers = icc_data_len / MAX_DATA_BYTES_IN_MARKER;
|
||||
if (num_markers * MAX_DATA_BYTES_IN_MARKER != icc_data_len)
|
||||
num_markers++;
|
||||
|
||||
while (icc_data_len > 0) {
|
||||
/* length of profile to put in this marker */
|
||||
length = icc_data_len;
|
||||
if (length > MAX_DATA_BYTES_IN_MARKER)
|
||||
length = MAX_DATA_BYTES_IN_MARKER;
|
||||
icc_data_len -= length;
|
||||
|
||||
/* Write the JPEG marker header (APP2 code and marker length) */
|
||||
jpeg_write_m_header(cinfo, ICC_MARKER,
|
||||
(unsigned int) (length + ICC_OVERHEAD_LEN));
|
||||
|
||||
/* Write the marker identifying string "ICC_PROFILE" (null-terminated). We
|
||||
* code it in this less-than-transparent way so that the code works even if
|
||||
* the local character set is not ASCII.
|
||||
*/
|
||||
jpeg_write_m_byte(cinfo, 0x49);
|
||||
jpeg_write_m_byte(cinfo, 0x43);
|
||||
jpeg_write_m_byte(cinfo, 0x43);
|
||||
jpeg_write_m_byte(cinfo, 0x5F);
|
||||
jpeg_write_m_byte(cinfo, 0x50);
|
||||
jpeg_write_m_byte(cinfo, 0x52);
|
||||
jpeg_write_m_byte(cinfo, 0x4F);
|
||||
jpeg_write_m_byte(cinfo, 0x46);
|
||||
jpeg_write_m_byte(cinfo, 0x49);
|
||||
jpeg_write_m_byte(cinfo, 0x4C);
|
||||
jpeg_write_m_byte(cinfo, 0x45);
|
||||
jpeg_write_m_byte(cinfo, 0x0);
|
||||
|
||||
/* Add the sequencing info */
|
||||
jpeg_write_m_byte(cinfo, cur_marker);
|
||||
jpeg_write_m_byte(cinfo, (int) num_markers);
|
||||
|
||||
/* Add the profile data */
|
||||
while (length--) {
|
||||
jpeg_write_m_byte(cinfo, *icc_data_ptr);
|
||||
icc_data_ptr++;
|
||||
}
|
||||
cur_marker++;
|
||||
}
|
||||
}
|
||||
|
||||
#endif // !defined(HAVE_JPEG_WRITE_ICC_PROFILE)
|
||||
|
||||
bool JpegEncoder::Encode(const struct heif_image_handle* handle,
|
||||
const struct heif_image* image, const std::string& filename)
|
||||
{
|
||||
FILE* fp = fopen(filename.c_str(), "wb");
|
||||
if (!fp) {
|
||||
fprintf(stderr, "Can't open %s: %s\n", filename.c_str(), strerror(errno));
|
||||
return false;
|
||||
}
|
||||
|
||||
struct jpeg_compress_struct cinfo;
|
||||
struct ErrorHandler jerr;
|
||||
cinfo.err = jpeg_std_error(reinterpret_cast<struct jpeg_error_mgr*>(&jerr));
|
||||
jerr.pub.error_exit = &JpegEncoder::OnJpegError;
|
||||
if (setjmp(jerr.setjmp_buffer)) {
|
||||
cinfo.err->output_message(reinterpret_cast<j_common_ptr>(&cinfo));
|
||||
jpeg_destroy_compress(&cinfo);
|
||||
fclose(fp);
|
||||
return false;
|
||||
}
|
||||
|
||||
jpeg_create_compress(&cinfo);
|
||||
jpeg_stdio_dest(&cinfo, fp);
|
||||
|
||||
cinfo.image_width = heif_image_get_width(image, heif_channel_Y);
|
||||
cinfo.image_height = heif_image_get_height(image, heif_channel_Y);
|
||||
cinfo.input_components = 3;
|
||||
cinfo.in_color_space = JCS_YCbCr;
|
||||
jpeg_set_defaults(&cinfo);
|
||||
static const boolean kForceBaseline = TRUE;
|
||||
jpeg_set_quality(&cinfo, quality_, kForceBaseline);
|
||||
static const boolean kWriteAllTables = TRUE;
|
||||
jpeg_start_compress(&cinfo, kWriteAllTables);
|
||||
|
||||
size_t exifsize = 0;
|
||||
uint8_t* exifdata = GetExifMetaData(handle, &exifsize);
|
||||
if (exifdata) {
|
||||
if (exifsize > 4) {
|
||||
static const uint8_t kExifMarker = JPEG_APP0 + 1;
|
||||
|
||||
uint32_t skip = (exifdata[0]<<24) | (exifdata[1]<<16) | (exifdata[2]<<8) | exifdata[3];
|
||||
if (skip>=6) {
|
||||
skip = 4 + skip-6;
|
||||
}
|
||||
else {
|
||||
skip = 4;
|
||||
}
|
||||
|
||||
uint8_t* ptr = exifdata + skip;
|
||||
size_t size = exifsize - skip;
|
||||
|
||||
while (size > MAX_BYTES_IN_MARKER) {
|
||||
jpeg_write_marker(&cinfo, kExifMarker, ptr,
|
||||
static_cast<unsigned int>(MAX_BYTES_IN_MARKER));
|
||||
|
||||
ptr += MAX_BYTES_IN_MARKER;
|
||||
size -= MAX_BYTES_IN_MARKER;
|
||||
}
|
||||
|
||||
jpeg_write_marker(&cinfo, kExifMarker, ptr,
|
||||
static_cast<unsigned int>(size));
|
||||
}
|
||||
|
||||
free(exifdata);
|
||||
}
|
||||
|
||||
size_t profile_size = heif_image_handle_get_raw_color_profile_size(handle);
|
||||
if (profile_size > 0) {
|
||||
uint8_t* profile_data = static_cast<uint8_t*>(malloc(profile_size));
|
||||
heif_image_handle_get_raw_color_profile(handle, profile_data);
|
||||
jpeg_write_icc_profile(&cinfo, profile_data, (unsigned int) profile_size);
|
||||
free(profile_data);
|
||||
}
|
||||
|
||||
|
||||
if (heif_image_get_bits_per_pixel(image, heif_channel_Y) != 8) {
|
||||
fprintf(stderr, "JPEG writer cannot handle image with >8 bpp.\n");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
int stride_y;
|
||||
const uint8_t* row_y = heif_image_get_plane_readonly(image, heif_channel_Y,
|
||||
&stride_y);
|
||||
int stride_u;
|
||||
const uint8_t* row_u = heif_image_get_plane_readonly(image, heif_channel_Cb,
|
||||
&stride_u);
|
||||
int stride_v;
|
||||
const uint8_t* row_v = heif_image_get_plane_readonly(image, heif_channel_Cr,
|
||||
&stride_v);
|
||||
|
||||
JSAMPARRAY buffer = cinfo.mem->alloc_sarray(
|
||||
reinterpret_cast<j_common_ptr>(&cinfo), JPOOL_IMAGE,
|
||||
cinfo.image_width * cinfo.input_components, 1);
|
||||
JSAMPROW row[1] = {buffer[0]};
|
||||
|
||||
while (cinfo.next_scanline < cinfo.image_height) {
|
||||
size_t offset_y = cinfo.next_scanline * stride_y;
|
||||
const uint8_t* start_y = &row_y[offset_y];
|
||||
size_t offset_u = (cinfo.next_scanline / 2) * stride_u;
|
||||
const uint8_t* start_u = &row_u[offset_u];
|
||||
size_t offset_v = (cinfo.next_scanline / 2) * stride_v;
|
||||
const uint8_t* start_v = &row_v[offset_v];
|
||||
|
||||
JOCTET* bufp = buffer[0];
|
||||
for (JDIMENSION x = 0; x < cinfo.image_width; ++x) {
|
||||
*bufp++ = start_y[x];
|
||||
*bufp++ = start_u[x / 2];
|
||||
*bufp++ = start_v[x / 2];
|
||||
}
|
||||
jpeg_write_scanlines(&cinfo, row, 1);
|
||||
}
|
||||
jpeg_finish_compress(&cinfo);
|
||||
fclose(fp);
|
||||
jpeg_destroy_compress(&cinfo);
|
||||
return true;
|
||||
}
|
74
thirdparty/libheif/HeifConvertTestJNI/encoder_jpeg.h
vendored
Normal file
74
thirdparty/libheif/HeifConvertTestJNI/encoder_jpeg.h
vendored
Normal file
@ -0,0 +1,74 @@
|
||||
/*
|
||||
libheif example application "convert".
|
||||
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2017 struktur AG, Joachim Bauch <bauch@struktur.de>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
*/
|
||||
#ifndef EXAMPLE_ENCODER_JPEG_H
|
||||
#define EXAMPLE_ENCODER_JPEG_H
|
||||
|
||||
#include <csetjmp>
|
||||
#include <cstddef>
|
||||
#include <cstdio>
|
||||
|
||||
#include <jpeglib.h>
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "encoder.h"
|
||||
|
||||
class JpegEncoder : public Encoder
|
||||
{
|
||||
public:
|
||||
JpegEncoder(int quality);
|
||||
|
||||
heif_colorspace colorspace(bool has_alpha) const override
|
||||
{
|
||||
return heif_colorspace_YCbCr;
|
||||
}
|
||||
|
||||
heif_chroma chroma(bool has_alpha, int bit_depth) const override
|
||||
{
|
||||
return heif_chroma_420;
|
||||
}
|
||||
|
||||
void UpdateDecodingOptions(const struct heif_image_handle* handle,
|
||||
struct heif_decoding_options* options) const override;
|
||||
|
||||
bool Encode(const struct heif_image_handle* handle,
|
||||
const struct heif_image* image, const std::string& filename) override;
|
||||
|
||||
private:
|
||||
static const int kDefaultQuality = 90;
|
||||
|
||||
struct ErrorHandler
|
||||
{
|
||||
struct jpeg_error_mgr pub; /* "public" fields */
|
||||
jmp_buf setjmp_buffer; /* for return to caller */
|
||||
};
|
||||
|
||||
static void OnJpegError(j_common_ptr cinfo);
|
||||
|
||||
int quality_;
|
||||
};
|
||||
|
||||
#endif // EXAMPLE_ENCODER_JPEG_H
|
82
thirdparty/libheif/HeifConvertTestJNI/heif-enc.1
vendored
Normal file
82
thirdparty/libheif/HeifConvertTestJNI/heif-enc.1
vendored
Normal file
@ -0,0 +1,82 @@
|
||||
.TH HEIF-ENC 1
|
||||
.SH NAME
|
||||
heif-enc \- convert image to HEIC/HEIF
|
||||
.SH SYNOPSIS
|
||||
.B heif-enc
|
||||
[\fB\-h\fR|\fB--help\fR]
|
||||
[\fB\-q\fR \fIQUALITY\fR|\fB--quality\fR \fIQUALITY\fR]
|
||||
[\fB\-L\fR|\fB--lossless\fR]
|
||||
[\fB\-t\fR \fISIZE\fR|\fB--thumb\fR \fISIZE\fR]
|
||||
[\fB--no-alpha\fR]
|
||||
[\fB--no-thumb-alpha\fR]
|
||||
[\fB\-o\fR \fIFILENAME\fR|\fB--output\fR \fIFILENAME\fR]
|
||||
[\fB\-v\fR|\fB--verbose\fR]
|
||||
[\fB\-P\fR|\fB--params\fR]
|
||||
[\fB\-b\fR \fIDEPTH\fR]
|
||||
[\fB\-p\fR \fINAME\fR\fB=\fR\fIVALUE\fR]
|
||||
.IR filename[.jpg|.png|.y4m]
|
||||
.SH DESCRIPTION
|
||||
.B heif-enc
|
||||
Convert image to HEIC/HEIF.
|
||||
.SH OPTIONS
|
||||
.TP
|
||||
.BR \-q\fR\ \fIQUALITY\fR ", " \-\-quality\fR\ \fIQUALITY\fR
|
||||
Defines quality level between 0 and 100 for the generated output file.
|
||||
.TP
|
||||
.BR \-L ", "\-\-lossless\fR
|
||||
Generate lossless output (\fB-q\fR has no effect)
|
||||
.TP
|
||||
.BR \-t\fR\ \fISIZE\fR ", " \-\-thumb\fR\ \fISIZE\fR
|
||||
Generate thumbnail with maximum size \fISIZE\fR pixels (default: off).
|
||||
.TP
|
||||
.BR \-\-no-alpha\fR
|
||||
Do not save alpha channel.
|
||||
.TP
|
||||
.BR \-\-no-thumb-alpha\fR
|
||||
Do not save alpha channel in thumbnail image.
|
||||
.TP
|
||||
.BR \-o\fR\ \fIFILENAME\fR ", " \-\-output\fR\ \fIFILENAME\fR
|
||||
Output filename (optional).
|
||||
.TP
|
||||
.BR \-v ", "\-\-verbose\fR
|
||||
Enable logging output (more \fB\-v\fR will increase logging level).
|
||||
.TP
|
||||
.BR \-P ", "\-\-params\fR
|
||||
Show all encoder parameters.
|
||||
.TP
|
||||
.BR \-b\fR\ \fIDEPTH\fR
|
||||
Bit-depth of generated HEIF file when using 16-bit PNG input (default: 10 bit).
|
||||
.TP
|
||||
.BR \-p\fR\ \fINAME\fR\fB=\fR\fIVALUE\fR
|
||||
Set additional encoder parameters. See \fBNOTES\fR below.
|
||||
.SH EXIT STATUS
|
||||
.PP
|
||||
\fB0\fR
|
||||
.RS 4
|
||||
Success
|
||||
.RE
|
||||
.PP
|
||||
\fB1\fR
|
||||
.RS 4
|
||||
Failure (syntax or usage error; error while loading, converting or writing image).
|
||||
.RE
|
||||
.SH NOTES
|
||||
The available input formats depend on the libraries that were available at
|
||||
compile time. Supported are JPEG, PNG and Y4M, the file type is determined based
|
||||
on the extension of the input file.
|
||||
|
||||
When specifying multiple source images, they will all be saved into the same
|
||||
HEIF file.
|
||||
|
||||
When using the x265 encoder, you may pass it any of its parameters by
|
||||
prefixing the parameter name with \fBx265:\fR.
|
||||
Hence, to set the \fBctu\fR parameter, you will have to set \fBx265:ctu\fR
|
||||
in libheif (e.g.: \fB-p x265:ctu=64\fR).
|
||||
|
||||
Note that there is no checking for valid parameters when using the prefix.
|
||||
.SH BUGS
|
||||
Please reports bugs or issues at https://github.com/strukturag/libheif
|
||||
.SH AUTHORS
|
||||
Dirk Farin, struktur AG
|
||||
.SH COPYRIGHT
|
||||
Copyright \[co] 2017 struktur AG
|
35
thirdparty/libheif/HeifConvertTestJNI/heif-info.1
vendored
Normal file
35
thirdparty/libheif/HeifConvertTestJNI/heif-info.1
vendored
Normal file
@ -0,0 +1,35 @@
|
||||
.TH HEIF-INFO 1
|
||||
.SH NAME
|
||||
heif-info \- show information on HEIC/HEIF file
|
||||
.SH SYNOPSIS
|
||||
.B heif-info
|
||||
[\fB\-d\fR|\fB--dump-boxes\fR]
|
||||
[\fB\-h\fR|\fB--help\fR]
|
||||
.IR filename
|
||||
.SH DESCRIPTION
|
||||
.B heif-info
|
||||
Show information on HEIC/HEIF file.
|
||||
.SH OPTIONS
|
||||
.TP
|
||||
.BR \-d ", " \-\-dump-boxes\fR
|
||||
Show a low-level dump of all MP4 file boxes.
|
||||
.TP
|
||||
.BR \-help ", " \-\-help\fR
|
||||
Show help.
|
||||
.SH EXIT STATUS
|
||||
.PP
|
||||
\fB0\fR
|
||||
.RS 4
|
||||
Success
|
||||
.RE
|
||||
.PP
|
||||
\fB1\fR
|
||||
.RS 4
|
||||
Failure (syntax or usage error; error while loading image).
|
||||
.RE
|
||||
.SH BUGS
|
||||
Please reports bugs or issues at https://github.com/strukturag/libheif
|
||||
.SH AUTHORS
|
||||
Dirk Farin, struktur AG
|
||||
.SH COPYRIGHT
|
||||
Copyright \[co] 2017 struktur AG
|
33
thirdparty/libheif/HeifConvertTestJNI/heif-thumbnailer.1
vendored
Normal file
33
thirdparty/libheif/HeifConvertTestJNI/heif-thumbnailer.1
vendored
Normal file
@ -0,0 +1,33 @@
|
||||
.TH HEIF-THUMBNAILER 1
|
||||
.SH NAME
|
||||
heif-thumbnailer \- create thumbnails from HEIC/HEIF files
|
||||
.SH SYNOPSIS
|
||||
.B heif-thumbnailer
|
||||
[\fB\-s\fR \fISIZE\fR]
|
||||
.IR filename
|
||||
.IR output
|
||||
.SH DESCRIPTION
|
||||
.B heif-thumbnailer
|
||||
Create thumbnail images from HEIC/HEIF files that can be used for example by Nautilus.
|
||||
.SH OPTIONS
|
||||
.TP
|
||||
.BR \-s\fR\ \fISIZE\fR
|
||||
Defines the maximum width and height of the thumbnail to generate.
|
||||
Default is 512 pixel.
|
||||
.SH EXIT STATUS
|
||||
.PP
|
||||
\fB0\fR
|
||||
.RS 4
|
||||
Success
|
||||
.RE
|
||||
.PP
|
||||
\fB1\fR
|
||||
.RS 4
|
||||
Failure (syntax or usage error; error while loading, converting or writing image).
|
||||
.RE
|
||||
.SH BUGS
|
||||
Please reports bugs or issues at https://github.com/strukturag/libheif
|
||||
.SH AUTHORS
|
||||
Dirk Farin, struktur AG
|
||||
.SH COPYRIGHT
|
||||
Copyright \[co] 2018 struktur AG
|
1330
thirdparty/libheif/HeifConvertTestJNI/heif_enc.cc
vendored
Normal file
1330
thirdparty/libheif/HeifConvertTestJNI/heif_enc.cc
vendored
Normal file
File diff suppressed because it is too large
Load Diff
365
thirdparty/libheif/HeifConvertTestJNI/heif_info.cc
vendored
Normal file
365
thirdparty/libheif/HeifConvertTestJNI/heif_info.cc
vendored
Normal file
@ -0,0 +1,365 @@
|
||||
/*
|
||||
libheif example application "heif-info".
|
||||
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2017 struktur AG, Dirk Farin <farin@struktur.de>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
*/
|
||||
#if defined(HAVE_CONFIG_H)
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include <errno.h>
|
||||
#include <string.h>
|
||||
#include <vector>
|
||||
|
||||
#if defined(HAVE_UNISTD_H)
|
||||
|
||||
#include <unistd.h>
|
||||
|
||||
#else
|
||||
#define STDOUT_FILENO 1
|
||||
#endif
|
||||
|
||||
#include <libheif/heif.h>
|
||||
|
||||
#include <fstream>
|
||||
#include <iostream>
|
||||
#include <memory>
|
||||
#include <getopt.h>
|
||||
#include <assert.h>
|
||||
|
||||
|
||||
/*
|
||||
image: 20005 (1920x1080), primary
|
||||
thumbnail: 20010 (320x240)
|
||||
alpha channel: 20012 (1920x1080)
|
||||
metadata: Exif
|
||||
|
||||
image: 1920x1080 (20005), primary
|
||||
thumbnail: 320x240 (20010)
|
||||
alpha channel: 1920x1080 (20012)
|
||||
|
||||
info *file
|
||||
info -w 20012 -o out.265 *file
|
||||
info -d // dump
|
||||
*/
|
||||
|
||||
static struct option long_options[] = {
|
||||
//{"write-raw", required_argument, 0, 'w' },
|
||||
//{"output", required_argument, 0, 'o' },
|
||||
{(char* const) "dump-boxes", no_argument, 0, 'd'},
|
||||
{(char* const) "help", no_argument, 0, 'h'},
|
||||
{0, 0, 0, 0}
|
||||
};
|
||||
|
||||
const char* fourcc_to_string(uint32_t fourcc)
|
||||
{
|
||||
static char fcc[5];
|
||||
fcc[0] = (char) ((fourcc >> 24) & 0xFF);
|
||||
fcc[1] = (char) ((fourcc >> 16) & 0xFF);
|
||||
fcc[2] = (char) ((fourcc >> 8) & 0xFF);
|
||||
fcc[3] = (char) ((fourcc >> 0) & 0xFF);
|
||||
fcc[4] = 0;
|
||||
return fcc;
|
||||
}
|
||||
|
||||
void show_help(const char* argv0)
|
||||
{
|
||||
fprintf(stderr, " heif-info libheif version: %s\n", heif_get_version());
|
||||
fprintf(stderr, "------------------------------------\n");
|
||||
fprintf(stderr, "usage: heif-info [options] image.heic\n");
|
||||
fprintf(stderr, "\n");
|
||||
fprintf(stderr, "options:\n");
|
||||
//fprintf(stderr," -w, --write-raw ID write raw compressed data of image 'ID'\n");
|
||||
//fprintf(stderr," -o, --output NAME output file name for image selected by -w\n");
|
||||
fprintf(stderr, " -d, --dump-boxes show a low-level dump of all MP4 file boxes\n");
|
||||
fprintf(stderr, " -h, --help show help\n");
|
||||
}
|
||||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
bool dump_boxes = false;
|
||||
|
||||
bool write_raw_image = false;
|
||||
heif_item_id raw_image_id;
|
||||
std::string output_filename = "output.265";
|
||||
|
||||
while (true) {
|
||||
int option_index = 0;
|
||||
int c = getopt_long(argc, argv, "dh", long_options, &option_index);
|
||||
if (c == -1)
|
||||
break;
|
||||
|
||||
switch (c) {
|
||||
case 'd':
|
||||
dump_boxes = true;
|
||||
break;
|
||||
case 'h':
|
||||
show_help(argv[0]);
|
||||
return 0;
|
||||
case 'w':
|
||||
write_raw_image = true;
|
||||
raw_image_id = atoi(optarg);
|
||||
break;
|
||||
case 'o':
|
||||
output_filename = optarg;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (optind != argc - 1) {
|
||||
show_help(argv[0]);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
(void) raw_image_id;
|
||||
(void) write_raw_image;
|
||||
|
||||
const char* input_filename = argv[optind];
|
||||
|
||||
// ==============================================================================
|
||||
// show MIME type
|
||||
|
||||
{
|
||||
const static int bufSize = 50;
|
||||
|
||||
uint8_t buf[bufSize];
|
||||
FILE* fh = fopen(input_filename, "rb");
|
||||
if (fh) {
|
||||
std::cout << "MIME type: ";
|
||||
int n = (int) fread(buf, 1, bufSize, fh);
|
||||
const char* mime_type = heif_get_file_mime_type(buf, n);
|
||||
if (*mime_type == 0) {
|
||||
std::cout << "unknown\n";
|
||||
}
|
||||
else {
|
||||
std::cout << mime_type << "\n";
|
||||
}
|
||||
|
||||
fclose(fh);
|
||||
|
||||
char fourcc[5];
|
||||
fourcc[4]=0;
|
||||
heif_brand_to_fourcc( heif_read_main_brand(buf,bufSize), fourcc );
|
||||
std::cout << "main brand: " << fourcc << "\n";
|
||||
|
||||
heif_brand2* brands=nullptr;
|
||||
int nBrands=0;
|
||||
struct heif_error err=heif_list_compatible_brands(buf, n, &brands, &nBrands);
|
||||
if (err.code) {
|
||||
std::cerr << "error reading brands: " << err.message << "\n";
|
||||
}
|
||||
else {
|
||||
std::cout << "compatible brands: ";
|
||||
for (int i=0;i<nBrands;i++) {
|
||||
heif_brand_to_fourcc(brands[i], fourcc);
|
||||
if (i>0) {
|
||||
std::cout << ", ";
|
||||
}
|
||||
std::cout << fourcc;
|
||||
}
|
||||
|
||||
std::cout << "\n";
|
||||
|
||||
heif_free_list_of_compatible_brands(brands);
|
||||
}
|
||||
}
|
||||
|
||||
std::cout << "\n";
|
||||
}
|
||||
|
||||
// ==============================================================================
|
||||
|
||||
std::shared_ptr<heif_context> ctx(heif_context_alloc(),
|
||||
[](heif_context* c) { heif_context_free(c); });
|
||||
if (!ctx) {
|
||||
fprintf(stderr, "Could not create context object\n");
|
||||
return 1;
|
||||
}
|
||||
|
||||
struct heif_error err;
|
||||
err = heif_context_read_from_file(ctx.get(), input_filename, nullptr);
|
||||
|
||||
if (dump_boxes) {
|
||||
heif_context_debug_dump_boxes_to_file(ctx.get(), STDOUT_FILENO); // dump to stdout
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (err.code != 0) {
|
||||
std::cerr << "Could not read HEIF/AVIF file: " << err.message << "\n";
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
// ==============================================================================
|
||||
|
||||
|
||||
int numImages = heif_context_get_number_of_top_level_images(ctx.get());
|
||||
std::vector<heif_item_id> IDs(numImages);
|
||||
heif_context_get_list_of_top_level_image_IDs(ctx.get(), IDs.data(), numImages);
|
||||
|
||||
for (int i = 0; i < numImages; i++) {
|
||||
struct heif_image_handle* handle;
|
||||
struct heif_error err = heif_context_get_image_handle(ctx.get(), IDs[i], &handle);
|
||||
if (err.code) {
|
||||
std::cerr << err.message << "\n";
|
||||
return 10;
|
||||
}
|
||||
|
||||
int width = heif_image_handle_get_width(handle);
|
||||
int height = heif_image_handle_get_height(handle);
|
||||
|
||||
int primary = heif_image_handle_is_primary_image(handle);
|
||||
|
||||
printf("image: %dx%d (id=%d)%s\n", width, height, IDs[i], primary ? ", primary" : "");
|
||||
|
||||
|
||||
// --- thumbnails
|
||||
|
||||
int nThumbnails = heif_image_handle_get_number_of_thumbnails(handle);
|
||||
std::vector<heif_item_id> thumbnailIDs(nThumbnails);
|
||||
|
||||
nThumbnails = heif_image_handle_get_list_of_thumbnail_IDs(handle, thumbnailIDs.data(), nThumbnails);
|
||||
|
||||
for (int thumbnailIdx = 0; thumbnailIdx < nThumbnails; thumbnailIdx++) {
|
||||
heif_image_handle* thumbnail_handle;
|
||||
err = heif_image_handle_get_thumbnail(handle, thumbnailIDs[thumbnailIdx], &thumbnail_handle);
|
||||
if (err.code) {
|
||||
std::cerr << err.message << "\n";
|
||||
return 10;
|
||||
}
|
||||
|
||||
int th_width = heif_image_handle_get_width(thumbnail_handle);
|
||||
int th_height = heif_image_handle_get_height(thumbnail_handle);
|
||||
|
||||
printf(" thumbnail: %dx%d\n", th_width, th_height);
|
||||
|
||||
heif_image_handle_release(thumbnail_handle);
|
||||
}
|
||||
|
||||
|
||||
// --- color profile
|
||||
|
||||
uint32_t profileType = heif_image_handle_get_color_profile_type(handle);
|
||||
printf(" color profile: %s\n", profileType ? fourcc_to_string(profileType) : "no");
|
||||
|
||||
|
||||
// --- depth information
|
||||
|
||||
bool has_depth = heif_image_handle_has_depth_image(handle);
|
||||
bool has_alpha = heif_image_handle_has_alpha_channel(handle);
|
||||
bool premultiplied_alpha = false;
|
||||
|
||||
if (has_alpha) {
|
||||
premultiplied_alpha = heif_image_handle_is_premultiplied_alpha(handle);
|
||||
}
|
||||
|
||||
printf(" alpha channel: %s %s\n", has_alpha ? "yes" : "no",
|
||||
premultiplied_alpha ? "(premultiplied)" : "");
|
||||
printf(" depth channel: %s\n", has_depth ? "yes" : "no");
|
||||
|
||||
heif_item_id depth_id;
|
||||
int nDepthImages = heif_image_handle_get_list_of_depth_image_IDs(handle, &depth_id, 1);
|
||||
if (has_depth) { assert(nDepthImages == 1); }
|
||||
else { assert(nDepthImages == 0); }
|
||||
(void) nDepthImages;
|
||||
|
||||
if (has_depth) {
|
||||
struct heif_image_handle* depth_handle;
|
||||
err = heif_image_handle_get_depth_image_handle(handle, depth_id, &depth_handle);
|
||||
if (err.code) {
|
||||
fprintf(stderr, "cannot get depth image: %s\n", err.message);
|
||||
return 1;
|
||||
}
|
||||
|
||||
printf(" (%dx%d)\n",
|
||||
heif_image_handle_get_width(depth_handle),
|
||||
heif_image_handle_get_height(depth_handle));
|
||||
|
||||
const struct heif_depth_representation_info* depth_info;
|
||||
if (heif_image_handle_get_depth_image_representation_info(handle, depth_id, &depth_info)) {
|
||||
|
||||
printf(" z-near: ");
|
||||
if (depth_info->has_z_near) printf("%f\n", depth_info->z_near); else printf("undefined\n");
|
||||
printf(" z-far: ");
|
||||
if (depth_info->has_z_far) printf("%f\n", depth_info->z_far); else printf("undefined\n");
|
||||
printf(" d-min: ");
|
||||
if (depth_info->has_d_min) printf("%f\n", depth_info->d_min); else printf("undefined\n");
|
||||
printf(" d-max: ");
|
||||
if (depth_info->has_d_max) printf("%f\n", depth_info->d_max); else printf("undefined\n");
|
||||
|
||||
printf(" representation: ");
|
||||
switch (depth_info->depth_representation_type) {
|
||||
case heif_depth_representation_type_uniform_inverse_Z:
|
||||
printf("inverse Z\n");
|
||||
break;
|
||||
case heif_depth_representation_type_uniform_disparity:
|
||||
printf("uniform disparity\n");
|
||||
break;
|
||||
case heif_depth_representation_type_uniform_Z:
|
||||
printf("uniform Z\n");
|
||||
break;
|
||||
case heif_depth_representation_type_nonuniform_disparity:
|
||||
printf("non-uniform disparity\n");
|
||||
break;
|
||||
default:
|
||||
printf("unknown\n");
|
||||
}
|
||||
|
||||
if (depth_info->has_d_min || depth_info->has_d_max) {
|
||||
printf(" disparity_reference_view: %d\n", depth_info->disparity_reference_view);
|
||||
}
|
||||
|
||||
heif_depth_representation_info_free(depth_info);
|
||||
}
|
||||
|
||||
heif_image_handle_release(depth_handle);
|
||||
}
|
||||
|
||||
heif_image_handle_release(handle);
|
||||
}
|
||||
|
||||
#if 0
|
||||
std::cout << "num images: " << heif_context_get_number_of_top_level_images(ctx.get()) << "\n";
|
||||
|
||||
struct heif_image_handle* handle;
|
||||
err = heif_context_get_primary_image_handle(ctx.get(), &handle);
|
||||
if (err.code != 0) {
|
||||
std::cerr << "Could not get primage image handle: " << err.message << "\n";
|
||||
return 1;
|
||||
}
|
||||
|
||||
struct heif_image* image;
|
||||
err = heif_decode_image(handle, &image, heif_colorspace_undefined, heif_chroma_undefined, NULL);
|
||||
if (err.code != 0) {
|
||||
heif_image_handle_release(handle);
|
||||
std::cerr << "Could not decode primage image: " << err.message << "\n";
|
||||
return 1;
|
||||
}
|
||||
|
||||
heif_image_release(image);
|
||||
heif_image_handle_release(handle);
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
172
thirdparty/libheif/HeifConvertTestJNI/heif_test.cc
vendored
Normal file
172
thirdparty/libheif/HeifConvertTestJNI/heif_test.cc
vendored
Normal file
@ -0,0 +1,172 @@
|
||||
/*
|
||||
libheif example application "heif-test".
|
||||
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2017 struktur AG, Dirk Farin <farin@struktur.de>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
*/
|
||||
#if defined(HAVE_CONFIG_H)
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include <errno.h>
|
||||
#include <string.h>
|
||||
|
||||
#if defined(HAVE_UNISTD_H)
|
||||
|
||||
#include <unistd.h>
|
||||
|
||||
#else
|
||||
#define STDOUT_FILENO 1
|
||||
#endif
|
||||
|
||||
#include <libheif/heif_cxx.h>
|
||||
|
||||
#include <fstream>
|
||||
#include <iostream>
|
||||
#include <memory>
|
||||
#include <getopt.h>
|
||||
#include <assert.h>
|
||||
|
||||
|
||||
static struct option long_options[] = {
|
||||
//{"write-raw", required_argument, 0, 'w' },
|
||||
//{"output", required_argument, 0, 'o' },
|
||||
{(char* const) "decode-img", required_argument, 0, 'd'},
|
||||
{(char* const) "metadata", required_argument, 0, 'm'},
|
||||
{0, 0, 0, 0}
|
||||
};
|
||||
|
||||
void show_help(const char* argv0)
|
||||
{
|
||||
fprintf(stderr, " heif-test libheif version: %s\n", heif_get_version());
|
||||
fprintf(stderr, "------------------------------------\n");
|
||||
fprintf(stderr, "usage: heif-test [options] image.heic\n");
|
||||
fprintf(stderr, "\n");
|
||||
fprintf(stderr, "options:\n");
|
||||
fprintf(stderr, " -d, --decode-img ID decode image and output raw pixel data of all planes\n");
|
||||
fprintf(stderr, " -m, --metadata ID output metadata\n");
|
||||
fprintf(stderr, " -h, --help show help\n");
|
||||
}
|
||||
|
||||
|
||||
std::pair<heif_item_id, heif_item_id> parse_id_pair(const std::string& s)
|
||||
{
|
||||
std::string::size_type p = s.find_first_of(':');
|
||||
if (p == std::string::npos) {
|
||||
fprintf(stderr, "id pair has to be in this format: 'ID:ID'\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
std::pair<heif_item_id, heif_item_id> pair;
|
||||
pair.first = atoi(s.substr(0, p).c_str());
|
||||
pair.second = atoi(s.substr(p + 1).c_str());
|
||||
return pair;
|
||||
}
|
||||
|
||||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
std::vector<heif_item_id> image_IDs;
|
||||
std::vector<std::pair<heif_item_id, heif_item_id>> metadata_IDs; // first: image, second: metadata
|
||||
|
||||
while (true) {
|
||||
int option_index = 0;
|
||||
int c = getopt_long(argc, argv, "d:m:h", long_options, &option_index);
|
||||
if (c == -1)
|
||||
break;
|
||||
|
||||
switch (c) {
|
||||
case 'd':
|
||||
image_IDs.push_back(atoi(optarg));
|
||||
break;
|
||||
case 'm':
|
||||
metadata_IDs.push_back(parse_id_pair(optarg));
|
||||
break;
|
||||
case 'h':
|
||||
show_help(argv[0]);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
if (optind != argc - 1) {
|
||||
show_help(argv[0]);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
const char* input_filename = argv[optind];
|
||||
|
||||
// ==============================================================================
|
||||
|
||||
try {
|
||||
heif::Context ctx;
|
||||
ctx.read_from_file(input_filename);
|
||||
|
||||
|
||||
// --- dump images
|
||||
|
||||
for (auto id : image_IDs) {
|
||||
heif::ImageHandle handle = ctx.get_image_handle(id);
|
||||
|
||||
heif::Image img = handle.decode_image(heif_colorspace_undefined, heif_chroma_undefined);
|
||||
|
||||
std::vector<heif_channel> channel_candidates{
|
||||
heif_channel_Y,
|
||||
heif_channel_Cb,
|
||||
heif_channel_Cr,
|
||||
heif_channel_R,
|
||||
heif_channel_G,
|
||||
heif_channel_B,
|
||||
heif_channel_Alpha,
|
||||
heif_channel_interleaved
|
||||
};
|
||||
|
||||
for (heif_channel channel : channel_candidates) {
|
||||
if (img.has_channel(channel)) {
|
||||
int width = img.get_width(channel);
|
||||
int height = img.get_height(channel);
|
||||
int bytes = (img.get_bits_per_pixel(channel) + 7) / 8;
|
||||
|
||||
int stride;
|
||||
const uint8_t* p = img.get_plane(channel, &stride);
|
||||
for (int y = 0; y < height; y++) {
|
||||
fwrite(p + y * stride, width, bytes, stdout);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// --- dump metadata
|
||||
|
||||
for (auto idpair : metadata_IDs) {
|
||||
heif::ImageHandle handle = ctx.get_image_handle(idpair.first);
|
||||
std::vector<uint8_t> data = handle.get_metadata(idpair.second);
|
||||
fwrite(data.data(), data.size(), 1, stdout);
|
||||
}
|
||||
}
|
||||
catch (const heif::Error& err) {
|
||||
std::cerr << err.get_message() << "\n";
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
208
thirdparty/libheif/HeifConvertTestJNI/heif_thumbnailer.cc
vendored
Normal file
208
thirdparty/libheif/HeifConvertTestJNI/heif_thumbnailer.cc
vendored
Normal file
@ -0,0 +1,208 @@
|
||||
/*
|
||||
libheif thumbnailer for Gnome desktop.
|
||||
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2018 struktur AG, Dirk Farin <farin@struktur.de>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
*/
|
||||
#if defined(HAVE_CONFIG_H)
|
||||
# include "config.h"
|
||||
#endif
|
||||
|
||||
|
||||
#if defined(HAVE_UNISTD_H)
|
||||
# include <unistd.h>
|
||||
#endif
|
||||
|
||||
#include <string>
|
||||
#include <iostream>
|
||||
#include <cassert>
|
||||
#include <libheif/heif.h>
|
||||
#include "encoder.h"
|
||||
|
||||
#if HAVE_LIBPNG
|
||||
# include "encoder_png.h"
|
||||
#endif
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
#include "getopt.h"
|
||||
#endif
|
||||
|
||||
|
||||
static int usage(const char* command)
|
||||
{
|
||||
fprintf(stderr, "usage: %s [-s size] [-p] <filename> <output>\n", command);
|
||||
fprintf(stderr, " -p Render thumbnail from primary image, even if thumbnail is stored in image.\n");
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
int opt;
|
||||
int size = 512; // default thumbnail size
|
||||
bool thumbnail_from_primary_image_only = false;
|
||||
|
||||
while ((opt = getopt(argc, argv, "s:hp")) != -1) {
|
||||
switch (opt) {
|
||||
case 's':
|
||||
size = atoi(optarg);
|
||||
break;
|
||||
case 'p':
|
||||
thumbnail_from_primary_image_only = true;
|
||||
break;
|
||||
case 'h':
|
||||
default:
|
||||
return usage(argv[0]);
|
||||
}
|
||||
}
|
||||
|
||||
if (optind + 2 > argc) {
|
||||
// Need input and output filenames as additional arguments.
|
||||
return usage(argv[0]);
|
||||
}
|
||||
|
||||
std::string input_filename(argv[optind++]);
|
||||
std::string output_filename(argv[optind++]);
|
||||
|
||||
|
||||
// --- read heif file
|
||||
|
||||
std::shared_ptr<heif_context> context(heif_context_alloc(),
|
||||
[](heif_context* c) { heif_context_free(c); });
|
||||
|
||||
struct heif_error err;
|
||||
err = heif_context_read_from_file(context.get(), input_filename.c_str(), nullptr);
|
||||
if (err.code != 0) {
|
||||
std::cerr << "Could not read HEIF file: " << err.message << "\n";
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
|
||||
// --- get primary image
|
||||
|
||||
struct heif_image_handle* image_handle = NULL;
|
||||
err = heif_context_get_primary_image_handle(context.get(), &image_handle);
|
||||
if (err.code) {
|
||||
std::cerr << "Could not read HEIF image : " << err.message << "\n";
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
// --- if image has a thumbnail, use that instead
|
||||
|
||||
if (!thumbnail_from_primary_image_only) {
|
||||
heif_item_id thumbnail_ID;
|
||||
int nThumbnails = heif_image_handle_get_list_of_thumbnail_IDs(image_handle, &thumbnail_ID, 1);
|
||||
if (nThumbnails > 0) {
|
||||
struct heif_image_handle* thumbnail_handle;
|
||||
err = heif_image_handle_get_thumbnail(image_handle, thumbnail_ID, &thumbnail_handle);
|
||||
if (err.code) {
|
||||
std::cerr << "Could not read HEIF image : " << err.message << "\n";
|
||||
return 1;
|
||||
}
|
||||
|
||||
// replace image handle with thumbnail handle
|
||||
|
||||
heif_image_handle_release(image_handle);
|
||||
image_handle = thumbnail_handle;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
// --- decode the image (or its thumbnail)
|
||||
|
||||
std::unique_ptr<Encoder> encoder(new PngEncoder());
|
||||
|
||||
struct heif_decoding_options* decode_options = heif_decoding_options_alloc();
|
||||
encoder->UpdateDecodingOptions(image_handle, decode_options);
|
||||
decode_options->convert_hdr_to_8bit = true;
|
||||
|
||||
int bit_depth = 8;
|
||||
|
||||
struct heif_image* image = NULL;
|
||||
err = heif_decode_image(image_handle,
|
||||
&image,
|
||||
encoder->colorspace(false),
|
||||
encoder->chroma(false, bit_depth),
|
||||
decode_options);
|
||||
if (err.code) {
|
||||
std::cerr << "Could not decode HEIF image : " << err.message << "\n";
|
||||
return 1;
|
||||
}
|
||||
|
||||
assert(image);
|
||||
|
||||
// --- compute output thumbnail size
|
||||
|
||||
int input_width = heif_image_handle_get_width(image_handle);
|
||||
int input_height = heif_image_handle_get_height(image_handle);
|
||||
|
||||
if (input_width > size || input_height > size) {
|
||||
int thumbnail_width;
|
||||
int thumbnail_height;
|
||||
|
||||
if (input_width > input_height) {
|
||||
thumbnail_height = input_height * size / input_width;
|
||||
thumbnail_width = size;
|
||||
}
|
||||
else if (input_height > 0) {
|
||||
thumbnail_width = input_width * size / input_height;
|
||||
thumbnail_height = size;
|
||||
}
|
||||
else {
|
||||
thumbnail_width = thumbnail_height = 0;
|
||||
}
|
||||
|
||||
|
||||
// --- output thumbnail smaller than HEIF thumbnail -> scale down
|
||||
|
||||
struct heif_image* scaled_image = NULL;
|
||||
err = heif_image_scale_image(image, &scaled_image,
|
||||
thumbnail_width, thumbnail_height,
|
||||
NULL);
|
||||
if (err.code) {
|
||||
std::cerr << "Could not scale image : " << err.message << "\n";
|
||||
return 1;
|
||||
}
|
||||
|
||||
heif_image_release(image);
|
||||
image = scaled_image;
|
||||
}
|
||||
|
||||
|
||||
|
||||
// --- write thumbnail image to PNG
|
||||
|
||||
bool written = encoder->Encode(image_handle, image, output_filename.c_str());
|
||||
if (!written) {
|
||||
fprintf(stderr, "could not write image\n");
|
||||
return 1;
|
||||
}
|
||||
|
||||
heif_image_release(image);
|
||||
|
||||
heif_image_handle_release(image_handle);
|
||||
|
||||
return 0;
|
||||
}
|
414
thirdparty/libheif/HeifConvertTestJNI/org_sleuthkit_autopsy_modules_pictureanalyzer_impls_HeifJNI.cc
vendored
Normal file
414
thirdparty/libheif/HeifConvertTestJNI/org_sleuthkit_autopsy_modules_pictureanalyzer_impls_HeifJNI.cc
vendored
Normal file
@ -0,0 +1,414 @@
|
||||
/**
|
||||
This code is based almost entirely on https://github.com/strukturag/libheif/blob/master/examples/heif_convert.cc with small changes for JNI.
|
||||
|
||||
libheif example application "convert".
|
||||
MIT License
|
||||
Copyright (c) 2017 struktur AG, Joachim Bauch <bauch@struktur.de>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
**/
|
||||
|
||||
#include <jni.h>
|
||||
|
||||
#ifndef _Included_org_sleuthkit_autopsy_modules_pictureanalyzer_impls_HeifJNI
|
||||
#define _Included_org_sleuthkit_autopsy_modules_pictureanalyzer_impls_HeifJNI
|
||||
|
||||
//#if defined(HAVE_CONFIG_H)
|
||||
//#include "config.h"
|
||||
//#endif
|
||||
//
|
||||
//#include <cstring>
|
||||
//
|
||||
//#if defined(HAVE_UNISTD_H)
|
||||
//
|
||||
//#include <unistd.h>
|
||||
//
|
||||
//#endif
|
||||
|
||||
#include <fstream>
|
||||
#include <iostream>
|
||||
#include <sstream>
|
||||
#include <cassert>
|
||||
#include <algorithm>
|
||||
#include <vector>
|
||||
#include <cctype>
|
||||
|
||||
#include <libheif/heif.h>
|
||||
|
||||
#include "encoder.h"
|
||||
#include "encoder_jpeg.h"
|
||||
|
||||
#define UNUSED(x) (void)x
|
||||
|
||||
#endif
|
||||
|
||||
class ContextReleaser
|
||||
{
|
||||
public:
|
||||
ContextReleaser(struct heif_context* ctx) : ctx_(ctx)
|
||||
{}
|
||||
|
||||
~ContextReleaser()
|
||||
{
|
||||
heif_context_free(ctx_);
|
||||
}
|
||||
|
||||
private:
|
||||
struct heif_context* ctx_;
|
||||
};
|
||||
|
||||
jint throwException(JNIEnv* env, const char* exceptionType, const char* message)
|
||||
{
|
||||
jclass exClass;
|
||||
exClass = env->FindClass(exceptionType);
|
||||
return env->ThrowNew(exClass, message);
|
||||
}
|
||||
|
||||
|
||||
jint throwIllegalArgument(JNIEnv* env, const char* message)
|
||||
{
|
||||
std::string className = "java/lang/IllegalArgumentException";
|
||||
return throwException(env, className.c_str(), message);
|
||||
}
|
||||
|
||||
jint throwIllegalState(JNIEnv* env, const char* message)
|
||||
{
|
||||
std::string className = "java/lang/IllegalStateException";
|
||||
return throwException(env, className.c_str(), message);
|
||||
}
|
||||
|
||||
//void println(JNIEnv* env, std::string message)
|
||||
//{
|
||||
// // Get system class
|
||||
// jclass syscls = env->FindClass("java/lang/System");
|
||||
// // Lookup the "out" field
|
||||
// jfieldID fid = env->GetStaticFieldID(syscls, "out", "Ljava/io/PrintStream;");
|
||||
// jobject out = env->GetStaticObjectField(syscls, fid);
|
||||
// // Get PrintStream class
|
||||
// jclass pscls = env->FindClass("java/io/PrintStream");
|
||||
// // Lookup printLn(String)
|
||||
// jmethodID mid = env->GetMethodID(pscls, "println", "(Ljava/lang/String;)V");
|
||||
// // Invoke the method
|
||||
// jchar* cppstr = (jchar*)message.c_str(); // make an array of jchar (UTF-16 unsigned short encoding)
|
||||
// jstring str = env->NewString(cppstr, message.length());
|
||||
// env->CallVoidMethod(out, mid, str);
|
||||
//}
|
||||
|
||||
|
||||
int convertToDisk
|
||||
(JNIEnv* env, jclass cls, jbyteArray byteArr, jstring outputPath) {
|
||||
|
||||
size_t arrLen = env->GetArrayLength(byteArr);
|
||||
boolean isCopy;
|
||||
jbyte* nativeByteArr = env->GetByteArrayElements(byteArr, &isCopy);
|
||||
std::string output_filename = env->GetStringUTFChars(outputPath, 0);
|
||||
const int quality = 100;
|
||||
|
||||
enum heif_filetype_result filetype_check = heif_check_filetype((const uint8_t*)nativeByteArr, 12);
|
||||
if (filetype_check == heif_filetype_no) {
|
||||
env->ReleaseByteArrayElements(byteArr, nativeByteArr, 0);
|
||||
throwIllegalArgument(env, "Input file is not an HEIF/AVIF file");
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (filetype_check == heif_filetype_yes_unsupported) {
|
||||
env->ReleaseByteArrayElements(byteArr, nativeByteArr, 0);
|
||||
throwIllegalArgument(env, "Input file is an unsupported HEIF/AVIF file type");
|
||||
return 1;
|
||||
}
|
||||
|
||||
// --- read the HEIF file
|
||||
|
||||
struct heif_context* ctx = heif_context_alloc();
|
||||
if (!ctx) {
|
||||
env->ReleaseByteArrayElements(byteArr, nativeByteArr, 0);
|
||||
throwIllegalState(env, "Could not create context object");
|
||||
return 1;
|
||||
}
|
||||
|
||||
ContextReleaser cr(ctx);
|
||||
struct heif_error err;
|
||||
err = heif_context_read_from_memory_without_copy(ctx, (void*)nativeByteArr, arrLen, nullptr);
|
||||
if (err.code != 0) {
|
||||
env->ReleaseByteArrayElements(byteArr, nativeByteArr, 0);
|
||||
std::string err_message = "Could not read HEIF/AVIF file:";
|
||||
err_message += err.message;
|
||||
throwIllegalState(env, err_message.c_str());
|
||||
return 1;
|
||||
}
|
||||
|
||||
int num_images = heif_context_get_number_of_top_level_images(ctx);
|
||||
if (num_images == 0) {
|
||||
env->ReleaseByteArrayElements(byteArr, nativeByteArr, 0);
|
||||
throwIllegalState(env, "File doesn't contain any images");
|
||||
return 1;
|
||||
}
|
||||
|
||||
//printf("File contains %d images\n", num_images);
|
||||
|
||||
std::vector<heif_item_id> image_IDs(num_images);
|
||||
num_images = heif_context_get_list_of_top_level_image_IDs(ctx, image_IDs.data(), num_images);
|
||||
|
||||
std::string filename;
|
||||
std::unique_ptr<Encoder> encoder;
|
||||
encoder.reset(new JpegEncoder(quality));
|
||||
|
||||
size_t image_index = 1; // Image filenames are "1" based.
|
||||
|
||||
for (int idx = 0; idx < num_images; ++idx) {
|
||||
|
||||
if (num_images > 1) {
|
||||
std::ostringstream s;
|
||||
s << output_filename.substr(0, output_filename.find_last_of('.'));
|
||||
s << "-" << image_index;
|
||||
s << output_filename.substr(output_filename.find_last_of('.'));
|
||||
filename.assign(s.str());
|
||||
}
|
||||
else {
|
||||
filename.assign(output_filename);
|
||||
}
|
||||
|
||||
|
||||
struct heif_image_handle* handle;
|
||||
err = heif_context_get_image_handle(ctx, image_IDs[idx], &handle);
|
||||
if (err.code) {
|
||||
env->ReleaseByteArrayElements(byteArr, nativeByteArr, 0);
|
||||
std::string err_message = "Could not read HEIF/AVIF image ";
|
||||
err_message += idx;
|
||||
err_message += ": ";
|
||||
err_message += err.message;
|
||||
throwIllegalState(env, err_message.c_str());
|
||||
return 1;
|
||||
}
|
||||
|
||||
int has_alpha = heif_image_handle_has_alpha_channel(handle);
|
||||
struct heif_decoding_options* decode_options = heif_decoding_options_alloc();
|
||||
encoder->UpdateDecodingOptions(handle, decode_options);
|
||||
|
||||
//decode_options->strict_decoding = strict_decoding;
|
||||
|
||||
int bit_depth = heif_image_handle_get_luma_bits_per_pixel(handle);
|
||||
if (bit_depth < 0) {
|
||||
heif_decoding_options_free(decode_options);
|
||||
heif_image_handle_release(handle);
|
||||
env->ReleaseByteArrayElements(byteArr, nativeByteArr, 0);
|
||||
throwIllegalState(env, "Input image has undefined bit-depth");
|
||||
return 1;
|
||||
}
|
||||
|
||||
struct heif_image* image;
|
||||
err = heif_decode_image(handle,
|
||||
&image,
|
||||
encoder->colorspace(has_alpha),
|
||||
encoder->chroma(has_alpha, bit_depth),
|
||||
decode_options);
|
||||
heif_decoding_options_free(decode_options);
|
||||
if (err.code) {
|
||||
heif_image_handle_release(handle);
|
||||
std::string err_message = "Could not decode image: ";
|
||||
err_message += idx;
|
||||
err_message += ": ";
|
||||
err_message += err.message;
|
||||
env->ReleaseByteArrayElements(byteArr, nativeByteArr, 0);
|
||||
throwIllegalState(env, err_message.c_str());
|
||||
return 1;
|
||||
}
|
||||
|
||||
// show decoding warnings
|
||||
|
||||
/*for (int i = 0;; i++) {
|
||||
int n = heif_image_get_decoding_warnings(image, i, &err, 1);
|
||||
if (n == 0) {
|
||||
break;
|
||||
}
|
||||
|
||||
std::cerr << "Warning: " << err.message << "\n";
|
||||
}*/
|
||||
|
||||
/*char imageMessageBuffer[256];
|
||||
sprintf(imageMessageBuffer, "Image: %B", image);
|
||||
throwIllegalArgument(env, imageMessageBuffer);*/
|
||||
|
||||
if (image) {
|
||||
bool written = encoder->Encode(handle, image, filename);
|
||||
if (!written) {
|
||||
printf("could not write image");
|
||||
}
|
||||
else {
|
||||
printf("Written to %s\n", filename.c_str());
|
||||
}
|
||||
heif_image_release(image);
|
||||
|
||||
|
||||
int has_depth = heif_image_handle_has_depth_image(handle);
|
||||
if (has_depth) {
|
||||
heif_item_id depth_id;
|
||||
int nDepthImages = heif_image_handle_get_list_of_depth_image_IDs(handle, &depth_id, 1);
|
||||
assert(nDepthImages == 1);
|
||||
(void)nDepthImages;
|
||||
|
||||
struct heif_image_handle* depth_handle;
|
||||
err = heif_image_handle_get_depth_image_handle(handle, depth_id, &depth_handle);
|
||||
if (err.code) {
|
||||
heif_image_handle_release(handle);
|
||||
env->ReleaseByteArrayElements(byteArr, nativeByteArr, 0);
|
||||
throwIllegalState(env, "Could not read depth channel");
|
||||
return 1;
|
||||
}
|
||||
|
||||
int depth_bit_depth = heif_image_handle_get_luma_bits_per_pixel(depth_handle);
|
||||
|
||||
struct heif_image* depth_image;
|
||||
err = heif_decode_image(depth_handle,
|
||||
&depth_image,
|
||||
encoder->colorspace(false),
|
||||
encoder->chroma(false, depth_bit_depth),
|
||||
nullptr);
|
||||
if (err.code) {
|
||||
heif_image_handle_release(depth_handle);
|
||||
heif_image_handle_release(handle);
|
||||
env->ReleaseByteArrayElements(byteArr, nativeByteArr, 0);
|
||||
std::string err_message = "Could not decode depth image: ";
|
||||
err_message += err.message;
|
||||
throwIllegalState(env, err_message.c_str());
|
||||
return 1;
|
||||
}
|
||||
|
||||
std::ostringstream s;
|
||||
s << output_filename.substr(0, output_filename.find('.'));
|
||||
s << "-depth";
|
||||
s << output_filename.substr(output_filename.find('.'));
|
||||
|
||||
written = encoder->Encode(depth_handle, depth_image, s.str());
|
||||
if (!written) {
|
||||
printf("could not write depth image");
|
||||
}
|
||||
else {
|
||||
printf("Depth image written to %s\n", s.str().c_str());
|
||||
}
|
||||
|
||||
heif_image_release(depth_image);
|
||||
heif_image_handle_release(depth_handle);
|
||||
}
|
||||
|
||||
|
||||
// --- aux images
|
||||
|
||||
int nAuxImages = heif_image_handle_get_number_of_auxiliary_images(handle, LIBHEIF_AUX_IMAGE_FILTER_OMIT_ALPHA | LIBHEIF_AUX_IMAGE_FILTER_OMIT_DEPTH);
|
||||
|
||||
//char numImages[256];
|
||||
//sprintf(numImages, "Found %d images", nAuxImages);
|
||||
//throwIllegalArgument(env, numImages);
|
||||
|
||||
if (nAuxImages > 0) {
|
||||
|
||||
std::vector<heif_item_id> auxIDs(nAuxImages);
|
||||
heif_image_handle_get_list_of_auxiliary_image_IDs(handle,
|
||||
LIBHEIF_AUX_IMAGE_FILTER_OMIT_ALPHA | LIBHEIF_AUX_IMAGE_FILTER_OMIT_DEPTH,
|
||||
auxIDs.data(), nAuxImages);
|
||||
|
||||
for (heif_item_id auxId : auxIDs) {
|
||||
|
||||
struct heif_image_handle* aux_handle;
|
||||
err = heif_image_handle_get_auxiliary_image_handle(handle, auxId, &aux_handle);
|
||||
if (err.code) {
|
||||
heif_image_handle_release(handle);
|
||||
env->ReleaseByteArrayElements(byteArr, nativeByteArr, 0);
|
||||
throwIllegalState(env, "Could not read auxiliary image");
|
||||
return 1;
|
||||
}
|
||||
|
||||
int aux_bit_depth = heif_image_handle_get_luma_bits_per_pixel(aux_handle);
|
||||
|
||||
struct heif_image* aux_image;
|
||||
err = heif_decode_image(aux_handle,
|
||||
&aux_image,
|
||||
encoder->colorspace(false),
|
||||
encoder->chroma(false, aux_bit_depth),
|
||||
nullptr);
|
||||
if (err.code) {
|
||||
heif_image_handle_release(aux_handle);
|
||||
heif_image_handle_release(handle);
|
||||
env->ReleaseByteArrayElements(byteArr, nativeByteArr, 0);
|
||||
std::string err_message = "Could not decode auxiliary image: ";
|
||||
err_message += err.message;
|
||||
throwIllegalState(env, err_message.c_str());
|
||||
return 1;
|
||||
}
|
||||
|
||||
const char* auxTypeC = nullptr;
|
||||
err = heif_image_handle_get_auxiliary_type(aux_handle, &auxTypeC);
|
||||
if (err.code) {
|
||||
heif_image_handle_release(aux_handle);
|
||||
heif_image_handle_release(handle);
|
||||
env->ReleaseByteArrayElements(byteArr, nativeByteArr, 0);
|
||||
std::string err_message = "Could not get type of auxiliary image: ";
|
||||
err_message += err.message;
|
||||
throwIllegalState(env, err_message.c_str());
|
||||
return 1;
|
||||
}
|
||||
|
||||
std::string auxType = std::string(auxTypeC);
|
||||
|
||||
heif_image_handle_free_auxiliary_types(aux_handle, &auxTypeC);
|
||||
|
||||
std::ostringstream s;
|
||||
s << output_filename.substr(0, output_filename.find('.'));
|
||||
s << "-" + auxType;
|
||||
s << output_filename.substr(output_filename.find('.'));
|
||||
throwIllegalArgument(env, s.str().c_str());
|
||||
|
||||
|
||||
std::string output_message = "Writing to output: ";
|
||||
output_message += s.str();
|
||||
|
||||
written = encoder->Encode(aux_handle, aux_image, s.str());
|
||||
if (!written) {
|
||||
printf("could not write auxiliary image");
|
||||
}
|
||||
else {
|
||||
printf("Auxiliary image written to %s\n", s.str().c_str());
|
||||
}
|
||||
|
||||
heif_image_release(aux_image);
|
||||
heif_image_handle_release(aux_handle);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
heif_image_handle_release(handle);
|
||||
}
|
||||
|
||||
image_index++;
|
||||
}
|
||||
|
||||
env->ReleaseByteArrayElements(byteArr, nativeByteArr, 0);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
extern "C" {
|
||||
/*
|
||||
* Class: org_sleuthkit_autopsy_modules_pictureanalyzer_impls_HeifJNI
|
||||
* Method: convertToDisk
|
||||
* Signature: ([BLjava/lang/String;)V
|
||||
*/
|
||||
JNIEXPORT int JNICALL Java_org_sleuthkit_autopsy_modules_pictureanalyzer_impls_HeifJNI_convertToDisk
|
||||
(JNIEnv* env, jclass cls, jbyteArray byteArr, jstring outputPath) {
|
||||
return convertToDisk(env, cls, byteArr, outputPath);
|
||||
}
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
/* DO NOT EDIT THIS FILE - it is machine generated */
|
||||
#include <jni.h>
|
||||
/* Header for class org_sleuthkit_autopsy_modules_pictureanalyzer_impls_HeifJNI */
|
||||
|
||||
#ifndef _Included_org_sleuthkit_autopsy_modules_pictureanalyzer_impls_HeifJNI
|
||||
#define _Included_org_sleuthkit_autopsy_modules_pictureanalyzer_impls_HeifJNI
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
/*
|
||||
* Class: org_sleuthkit_autopsy_modules_pictureanalyzer_impls_HeifJNI
|
||||
* Method: convertToDisk
|
||||
* Signature: ([BLjava/lang/String;)V
|
||||
*/
|
||||
JNIEXPORT int JNICALL Java_org_sleuthkit_autopsy_modules_pictureanalyzer_impls_HeifJNI_convertToDisk
|
||||
(JNIEnv *, jclass, jbyteArray, jstring);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif
|
18
thirdparty/libheif/README.txt
vendored
Normal file
18
thirdparty/libheif/README.txt
vendored
Normal file
@ -0,0 +1,18 @@
|
||||
This project relies heavily on libheif: https://github.com/strukturag/libheif/ and specifically, the example here: https://github.com/strukturag/libheif/blob/master/examples/heif_convert.cc.
|
||||
|
||||
In order to build this, the project requires vcpkg (directions here: https://vcpkg.io/en/getting-started.html), cmake (https://cmake.org/download/), and visual studio build tools for cmake (I downloaded visual studio 17 2022). This project will require the following vcpkg dependencies:
|
||||
|
||||
libde265:x64-windows
|
||||
libheif:x64-windows
|
||||
libjpeg-turbo:x64-windows
|
||||
x265:x64-windows
|
||||
vcpkg-cmake-config:x64-windows
|
||||
vcpkg-cmake:x64-windows
|
||||
|
||||
or something other than the suffix :x64-windows for different architectures.
|
||||
|
||||
In order to build,
|
||||
1) from command line, set directory to HeifConvertTestJNI\dist
|
||||
2) You can rebuild the vcxproj in this directory by running: cmake -G "Visual Studio 17 2022" -A x64 -S .. "-DCMAKE_TOOLCHAIN_FILE=PATH_TO_VCPKG_INSTALL/scripts/buildsystems/vcpkg.cmake"
|
||||
3) The binaries can be created by running: cmake --build . --config Release
|
||||
* The "-A x64" flag can be substituted with relevant architecture.
|
BIN
thirdparty/libheif/Release/heif-convert.dll
vendored
Normal file
BIN
thirdparty/libheif/Release/heif-convert.dll
vendored
Normal file
Binary file not shown.
BIN
thirdparty/libheif/Release/heif.dll
vendored
Normal file
BIN
thirdparty/libheif/Release/heif.dll
vendored
Normal file
Binary file not shown.
BIN
thirdparty/libheif/Release/jpeg62.dll
vendored
Normal file
BIN
thirdparty/libheif/Release/jpeg62.dll
vendored
Normal file
Binary file not shown.
BIN
thirdparty/libheif/Release/libde265.dll
vendored
Normal file
BIN
thirdparty/libheif/Release/libde265.dll
vendored
Normal file
Binary file not shown.
BIN
thirdparty/libheif/Release/libx265.dll
vendored
Normal file
BIN
thirdparty/libheif/Release/libx265.dll
vendored
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user