-
Notifications
You must be signed in to change notification settings - Fork 202
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' into sabrih/MAYA-101460/pxr_mesh_write_part1
- Loading branch information
Showing
278 changed files
with
10,284 additions
and
3,242 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 |
---|---|---|
@@ -0,0 +1,79 @@ | ||
--- | ||
Language: Cpp | ||
|
||
BasedOnStyle: WebKit | ||
AlignAfterOpenBracket: AlwaysBreak | ||
AlignConsecutiveMacros: 'true' | ||
AlignConsecutiveDeclarations: 'true' | ||
AlignEscapedNewlines: Left | ||
AlignTrailingComments: 'true' | ||
AllowAllConstructorInitializersOnNextLine: 'false' | ||
AllowAllParametersOfDeclarationOnNextLine: 'false' | ||
AllowShortCaseLabelsOnASingleLine: 'true' | ||
AllowShortIfStatementsOnASingleLine: Never | ||
AllowShortLambdasOnASingleLine: All | ||
AllowShortLoopsOnASingleLine: 'true' | ||
AlwaysBreakTemplateDeclarations: MultiLine | ||
BinPackArguments: 'false' | ||
BinPackParameters: 'false' | ||
BreakBeforeTernaryOperators: 'true' | ||
BreakConstructorInitializers: BeforeComma | ||
BreakInheritanceList: BeforeComma | ||
ColumnLimit: '100' | ||
FixNamespaceComments: 'true' | ||
IncludeBlocks: Regroup | ||
IncludeCategories: | ||
|
||
# Desired final ordering: | ||
# 1. Related header | ||
# 2. All private headers | ||
# 3. All public headers from this repository (maya-usd) | ||
# 4. Pixar + USD headers | ||
# 5. Autodesk + Maya headers | ||
# 6. Other libraries' headers | ||
# 7. C++ standard library headers | ||
# 8. C system headers | ||
# 9. Conditional includes | ||
|
||
# 1. Related header | ||
# Handled by the default IncludeIsMainRegex regex, and auto-assigned | ||
# Priority 0 | ||
|
||
# 3. All public headers from this repository (maya-usd) | ||
- Regex: '^<(mayaUsd|hdMaya|AL|usdMaya)/' | ||
Priority: 3 | ||
|
||
# 4. Pixar + USD headers | ||
- Regex: '^<pxr/' | ||
Priority: 4 | ||
|
||
# 5. Autodesk + Maya headers | ||
- Regex: '^<(maya|ufe)/' | ||
Priority: 5 | ||
|
||
# 7. C++ standard library headers | ||
# angle brackets, no directory, no extension | ||
- Regex: '^<[A-Za-z0-9_-]+>$' | ||
Priority: 7 | ||
|
||
# 8. C system headers | ||
# angle brackets, no directory, end with ".h" | ||
- Regex: '^<[A-Za-z0-9_-]+\.h>$' | ||
Priority: 8 | ||
|
||
# 2. All private headers | ||
- Regex: '^"' | ||
Priority: 2 | ||
|
||
# 6. Other libraries' headers | ||
- Regex: '^<' | ||
Priority: 6 | ||
|
||
# 9. Conditional includes | ||
# Not reordered by clang-format, we need to manually make sure these come last | ||
|
||
MaxEmptyLinesToKeep: '1' | ||
NamespaceIndentation: None | ||
UseTab: Never | ||
|
||
... |
Empty 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
\.c$ | ||
\.cc$ | ||
\.cpp$ | ||
\.cxx$ | ||
\.h$ | ||
\.hh$ | ||
\.hpp$ | ||
\.hxx$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
#------------------------------------------------------------------------------ | ||
# compiler flags/definitions | ||
#------------------------------------------------------------------------------ | ||
set(gnu_clang_flags | ||
# we want to be as strict as possible | ||
-Wall | ||
$<$<BOOL:${BUILD_STRICT_MODE}>:-Werror> | ||
# optimization | ||
-msse3 | ||
# disable warnings | ||
-Wno-deprecated | ||
-Wno-deprecated-declarations | ||
-Wno-unused-local-typedefs | ||
) | ||
|
||
set(msvc_flags | ||
# we want to be as strict as possible | ||
/W3 | ||
$<$<BOOL:${BUILD_STRICT_MODE}>:/WX> | ||
# enable pdb generation. | ||
/Zi | ||
# standards compliant. | ||
/Zc:inline | ||
/Zc:rvalueCast | ||
# enable multiprocessor builds. | ||
/MP | ||
# enable exception handling. | ||
/EHsc | ||
# disable warnings | ||
/wd4244 | ||
/wd4267 | ||
/wd4273 | ||
/wd4305 | ||
/wd4506 | ||
/wd4996 | ||
/wd4180 | ||
) | ||
|
||
set(msvc_definitions | ||
# Make sure WinDef.h does not define min and max macros which | ||
# will conflict with std::min() and std::max(). | ||
NOMINMAX | ||
|
||
_CRT_SECURE_NO_WARNINGS | ||
_SCL_SECURE_NO_WARNINGS | ||
|
||
# Boost | ||
BOOST_ALL_DYN_LINK | ||
BOOST_CONFIG_SUPPRESS_OUTDATED_MESSAGE | ||
|
||
# Needed to prevent Python from adding a define for snprintf | ||
# since it was added in Visual Studio 2015. | ||
HAVE_SNPRINTF | ||
) | ||
|
||
#------------------------------------------------------------------------------ | ||
# compiler configuration | ||
#------------------------------------------------------------------------------ | ||
# Do not use GNU extension | ||
# Use -std=c++11 instead of -std=gnu++11 | ||
set(CMAKE_CXX_EXTENSIONS OFF) | ||
|
||
function(mayaUsd_compile_config TARGET) | ||
# required compiler feature | ||
# Require C++14 if we're either building for Maya 2019 or later, or if we're building against | ||
# USD 20.05 or later. Otherwise require C++11. | ||
if ((MAYA_APP_VERSION VERSION_GREATER_EQUAL 2019) OR (USD_VERSION_NUM VERSION_GREATER_EQUAL 2005)) | ||
target_compile_features(${TARGET} | ||
PRIVATE | ||
cxx_std_14 | ||
) | ||
else() | ||
target_compile_features(${TARGET} | ||
PRIVATE | ||
cxx_std_11 | ||
) | ||
endif() | ||
if(IS_GNU OR IS_CLANG) | ||
target_compile_options(${TARGET} | ||
PRIVATE | ||
${gnu_clang_flags} | ||
) | ||
elseif(IS_MSVC) | ||
target_compile_options(${TARGET} | ||
PRIVATE | ||
${msvc_flags} | ||
) | ||
target_compile_definitions(${TARGET} | ||
PRIVATE | ||
${msvc_definitions} | ||
) | ||
endif() | ||
endfunction() |
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
Oops, something went wrong.