-
Notifications
You must be signed in to change notification settings - Fork 6.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[draco, flatbuffers, forge] Update to new version (#6796)
- Loading branch information
Showing
14 changed files
with
99 additions
and
210 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
Source: draco | ||
Version: 1.3.3-2 | ||
Version: 1.3.5 | ||
Description: A library for compressing and decompressing 3D geometric meshes and point clouds. It is intended to improve the storage and transmission of 3D graphics. | ||
Build-Depends: |
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 |
---|---|---|
@@ -1,30 +1,15 @@ | ||
diff --git a/src/draco/core/symbol_coding_utils.h b/src/draco/core/symbol_coding_utils.h | ||
index be2183d..eaaca00 100644 | ||
--- a/src/draco/core/symbol_coding_utils.h | ||
+++ b/src/draco/core/symbol_coding_utils.h | ||
@@ -41,7 +41,9 @@ typename std::make_unsigned<IntTypeT>::type ConvertSignedIntToSymbol( | ||
if (val >= 0) { | ||
return static_cast<UnsignedType>(val) << 1; | ||
} | ||
- val = -(val + 1); // Map -1 to 0, -2 to -1, etc.. | ||
+ // Map -1 to 0, -2 to -1, etc.. | ||
+ val += 1; | ||
+ val *= -1; | ||
UnsignedType ret = static_cast<UnsignedType>(val); | ||
ret <<= 1; | ||
ret |= 1; | ||
diff --git a/src/draco/io/parser_utils.cc b/src/draco/io/parser_utils.cc | ||
index 1aa52cc..cfbbdbd 100644 | ||
--- a/src/draco/io/parser_utils.cc | ||
+++ b/src/draco/io/parser_utils.cc | ||
@@ -150,7 +150,9 @@ bool ParseSignedInt(DecoderBuffer *buffer, int32_t *value) { | ||
uint32_t v; | ||
if (!ParseUnsignedInt(buffer, &v)) | ||
return false; | ||
- *value = (sign < 0) ? -v : v; | ||
+ if (sign < 0) | ||
+ v *= -1; | ||
+ *value = v; | ||
return true; | ||
} | ||
|
||
diff --git a/src/draco/io/parser_utils.cc b/src/draco/io/parser_utils.cc | ||
index 0a22ba1..9862949 100644 | ||
--- a/src/draco/io/parser_utils.cc | ||
+++ b/src/draco/io/parser_utils.cc | ||
@@ -150,7 +150,9 @@ bool ParseSignedInt(DecoderBuffer *buffer, int32_t *value) { | ||
uint32_t v; | ||
if (!ParseUnsignedInt(buffer, &v)) | ||
return false; | ||
- *value = (sign < 0) ? -v : v; | ||
+ if (sign < 0) | ||
+ v *= -1; | ||
+ *value = v; | ||
return true; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/src/draco/core/bit_utils.h b/src/draco/core/bit_utils.h | ||
index f63cd07..0f6baaf 100644 | ||
--- a/src/draco/core/bit_utils.h | ||
+++ b/src/draco/core/bit_utils.h | ||
@@ -26,6 +26,8 @@ | ||
#include <intrin.h> | ||
#endif // defined(_MSC_VER) | ||
|
||
+#pragma warning(disable:4146) | ||
+ | ||
namespace draco { | ||
|
||
// Returns the number of '1' bits within the input 32 bit integer. |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
Source: flatbuffers | ||
Version: 1.10.0-1 | ||
Version: 1.11.0 | ||
Description: Memory Efficient Serialization Library http://google.github.io/flatbuffers/ | ||
FlatBuffers is an efficient cross platform serialization library for games and other memory constrained apps. It allows you to directly access serialized data without unpacking/parsing it first, while still having great forwards/backwards compatibility. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
diff --git a/src/util.cpp b/src/util.cpp | ||
index c1bb197..658e116 100644 | ||
--- a/src/util.cpp | ||
+++ b/src/util.cpp | ||
@@ -239,9 +239,15 @@ bool ReadEnvironmentVariable(const char *var_name, std::string *_value) { | ||
#ifdef _MSC_VER | ||
__pragma(warning(disable : 4996)); // _CRT_SECURE_NO_WARNINGS | ||
#endif | ||
+#if _WIN32_WINNT < 0x0A00 | ||
auto env_str = std::getenv(var_name); | ||
if (!env_str) return false; | ||
if (_value) *_value = std::string(env_str); | ||
+#else | ||
+ //There is no support for environment variables in UWP | ||
+ var_name; // Do nothing | ||
+ *_value = std::string(""); | ||
+#endif | ||
return true; | ||
} | ||
|
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 |
---|---|---|
@@ -1,13 +1,13 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index a3388dd..699ea3b 100644 | ||
index 119855a..945085a 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -104,7 +104,7 @@ set(FlatBuffers_GRPCTest_SRCS | ||
@@ -155,7 +155,7 @@ set(FlatBuffers_GRPCTest_SRCS | ||
# source_group(Compiler FILES ${FlatBuffers_Compiler_SRCS}) | ||
# source_group(Tests FILES ${FlatBuffers_Tests_SRCS}) | ||
|
||
-if(EXISTS "${CMAKE_TOOLCHAIN_FILE}") | ||
+if(EXISTS "${CMAKE_TOOLCHAIN_FILE}" AND NOT DEFINED VCPKG_TOOLCHAIN) | ||
# do not apply any global settings if the toolchain | ||
# is being configured externally | ||
elseif(APPLE) | ||
message(STATUS "Using toolchain file: ${CMAKE_TOOLCHAIN_FILE}.") |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
Source: forge | ||
Version: 1.0.3-1 | ||
Version: 1.0.4-1 | ||
Description: Helps with high performance visualizations involving OpenGL-CUDA/OpenCL interop. | ||
Build-Depends: glfw3, glm, glbinding, freetype, boost-functional, freeimage, fontconfig (!windows) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
diff --git a/extern/glad/CMakeLists.txt b/extern/glad/CMakeLists.txt | ||
index c8c8d86..27adf86 100644 | ||
--- a/extern/glad/CMakeLists.txt | ||
+++ b/extern/glad/CMakeLists.txt | ||
@@ -2,15 +2,19 @@ add_library(forge_glad_interface INTERFACE) | ||
|
||
target_include_directories(forge_glad_interface | ||
INTERFACE | ||
- ${CMAKE_CURRENT_SOURCE_DIR}/include | ||
+ $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include> | ||
) | ||
|
||
target_sources(forge_glad_interface | ||
INTERFACE | ||
- ${CMAKE_CURRENT_SOURCE_DIR}/src/glad.c | ||
+ $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src/glad.c> | ||
) | ||
|
||
target_link_libraries(forge_glad_interface | ||
INTERFACE | ||
- ${CMAKE_DL_LIBS} | ||
+ $<BUILD_INTERFACE:${CMAKE_DL_LIBS}> | ||
) | ||
+ | ||
+if (NOT BUILD_SHARED_LIBS) | ||
+ install(TARGETS forge_glad_interface EXPORT ForgeTargets) | ||
+endif () | ||
\ No newline at end of file |
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 was deleted.
Oops, something went wrong.