forked from awawa-dev/HyperHDR
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
8 additions
and
981 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ on: [push] | |
|
||
env: | ||
USE_CACHE: "1" | ||
RESET_CACHE: "0" | ||
RESET_CACHE: "1" | ||
|
||
jobs: | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -86,136 +86,16 @@ function(compile_flattbuffer_schema SRC_FBS OUTPUT_DIR) | |
endfunction() | ||
|
||
#============================================================================= | ||
# PROTOBUFFER | ||
# DISABLE EXTERNAL WARNINGS | ||
#============================================================================= | ||
|
||
set(USE_SYSTEM_PROTO_LIBS ${DEFAULT_USE_SYSTEM_PROTO_LIBS} CACHE BOOL "use protobuf library from system") | ||
|
||
if (USE_SYSTEM_PROTO_LIBS) | ||
find_package(Protobuf REQUIRED) | ||
else () | ||
set(protobuf_BUILD_TESTS OFF CACHE BOOL "Build protobuf with tests") | ||
set(protobuf_BUILD_SHARED_LIBS OFF CACHE BOOL "Build protobuf shared") | ||
|
||
if (WIN32) | ||
set(protobuf_MSVC_STATIC_RUNTIME OFF CACHE BOOL "Build protobuf static") | ||
endif() | ||
|
||
add_subdirectory(external/protobuf/cmake) | ||
|
||
if(CMAKE_CROSSCOMPILING) | ||
# when crosscompiling import the protoc executable targets from a file generated by a native build | ||
option(IMPORT_PROTOC "Protoc export file (protoc_export.cmake) from a native build" "IMPORT_PROTOC-FILE_NOT_FOUND") | ||
include(${IMPORT_PROTOC}) | ||
else() | ||
# export the protoc compiler so it can be used when cross compiling | ||
export(TARGETS protoc FILE "${CMAKE_BINARY_DIR}/protoc_export.cmake") | ||
endif() | ||
|
||
# define the include for the protobuf library at the parent scope | ||
set(PROTOBUF_INCLUDE_DIRS "${CMAKE_CURRENT_SOURCE_DIR}/external/protobuf/src") | ||
|
||
# define the protoc executable at the parent scope | ||
set(PROTOBUF_PROTOC_EXECUTABLE "$<TARGET_FILE:protoc>") | ||
endif() | ||
option(protobuf_BUILD_TESTS "" OFF) | ||
set(PROTOBUF_PROTOC_EXECUTABLE ${PROTOBUF_PROTOC_EXECUTABLE} PARENT_SCOPE) | ||
set(PROTOBUF_INCLUDE_DIRS ${PROTOBUF_INCLUDE_DIRS} PARENT_SCOPE) | ||
include_directories(${PROTOBUF_INCLUDE_DIRS}) | ||
|
||
if ( CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX ) | ||
target_compile_options(turbojpeg PRIVATE "-w") | ||
target_compile_options(protoc PRIVATE "-w") | ||
target_compile_options(libprotoc PRIVATE "-w") | ||
target_compile_options(libprotobuf PRIVATE "-w") | ||
target_compile_options(libprotobuf-lite PRIVATE "-w") | ||
endif() | ||
if ( MSVC ) | ||
target_compile_options(turbojpeg PRIVATE "/W0") | ||
target_compile_options(protoc PRIVATE "/W0") | ||
target_compile_options(libprotoc PRIVATE "/W0") | ||
target_compile_options(libprotobuf PRIVATE "/W0") | ||
target_compile_options(libprotobuf-lite PRIVATE "/W0") | ||
endif() | ||
|
||
message(STATUS "Using protobuf compiler: " ${PROTOBUF_PROTOC_EXECUTABLE}) | ||
|
||
#============================================================================= | ||
# Copyright 2009 Kitware, Inc. | ||
# Copyright 2009-2011 Philip Lowman <[email protected]> | ||
# Copyright 2008 Esben Mose Hansen, Ange Optimization ApS | ||
# | ||
# Distributed under the OSI-approved BSD License (the "License"); | ||
# see accompanying file Copyright.txt for details. | ||
# | ||
# This software is distributed WITHOUT ANY WARRANTY; without even the | ||
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
# See the License for more information. | ||
#============================================================================= | ||
# (To distribute this file outside of CMake, substitute the full | ||
# License text for the above reference.) | ||
function(PROTOBUF_GENERATE_CPP SRCS HDRS) | ||
if(NOT ARGN) | ||
message(SEND_ERROR "Error: PROTOBUF_GENERATE_CPP() called without any proto files") | ||
return() | ||
endif() | ||
|
||
if(PROTOBUF_GENERATE_CPP_APPEND_PATH) | ||
# Create an include path for each file specified | ||
foreach(FIL ${ARGN}) | ||
get_filename_component(ABS_FIL ${FIL} ABSOLUTE) | ||
get_filename_component(ABS_PATH ${ABS_FIL} PATH) | ||
list(FIND _protobuf_include_path ${ABS_PATH} _contains_already) | ||
if(${_contains_already} EQUAL -1) | ||
list(APPEND _protobuf_include_path -I ${ABS_PATH}) | ||
endif() | ||
endforeach() | ||
else() | ||
set(_protobuf_include_path -I ${CMAKE_CURRENT_SOURCE_DIR}) | ||
endif() | ||
|
||
if(DEFINED PROTOBUF_IMPORT_DIRS) | ||
foreach(DIR ${PROTOBUF_IMPORT_DIRS}) | ||
get_filename_component(ABS_PATH ${DIR} ABSOLUTE) | ||
list(FIND _protobuf_include_path ${ABS_PATH} _contains_already) | ||
if(${_contains_already} EQUAL -1) | ||
list(APPEND _protobuf_include_path -I ${ABS_PATH}) | ||
endif() | ||
endforeach() | ||
endif() | ||
|
||
if(CMAKE_CROSSCOMPILING OR USE_SYSTEM_PROTO_LIBS) | ||
set(PROTOC_DEPENDENCY ${PROTOBUF_PROTOC_EXECUTABLE}) | ||
else() | ||
set(PROTOC_DEPENDENCY protoc) | ||
endif() | ||
|
||
set(${SRCS}) | ||
set(${HDRS}) | ||
foreach(FIL ${ARGN}) | ||
get_filename_component(ABS_FIL ${FIL} ABSOLUTE) | ||
get_filename_component(FIL_WE ${FIL} NAME_WE) | ||
|
||
list(APPEND ${SRCS} "${CMAKE_CURRENT_BINARY_DIR}/${FIL_WE}.pb.cc") | ||
list(APPEND ${HDRS} "${CMAKE_CURRENT_BINARY_DIR}/${FIL_WE}.pb.h") | ||
|
||
add_custom_command( | ||
OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/${FIL_WE}.pb.cc" | ||
"${CMAKE_CURRENT_BINARY_DIR}/${FIL_WE}.pb.h" | ||
COMMAND ${PROTOBUF_PROTOC_EXECUTABLE} | ||
ARGS --cpp_out ${CMAKE_CURRENT_BINARY_DIR} ${_protobuf_include_path} ${ABS_FIL} | ||
DEPENDS ${ABS_FIL} ${PROTOC_DEPENDENCY} | ||
COMMENT "Running C++ protocol buffer compiler on ${FIL}" | ||
VERBATIM | ||
) | ||
set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/${FIL_WE}.pb.cc" PROPERTY SKIP_AUTOMOC ON) | ||
set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/${FIL_WE}.pb.h" PROPERTY SKIP_AUTOMOC ON) | ||
endforeach() | ||
|
||
set_source_files_properties(${${SRCS}} ${${HDRS}} PROPERTIES GENERATED TRUE) | ||
set(${SRCS} ${${SRCS}} PARENT_SCOPE) | ||
set(${HDRS} ${${HDRS}} PARENT_SCOPE) | ||
endfunction() | ||
|
||
#============================================================================= | ||
# MBEDTLS | ||
|
Submodule protobuf
deleted from
89b14b
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.