-
Notifications
You must be signed in to change notification settings - Fork 133
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
1 parent
07f7192
commit fc7f28d
Showing
635 changed files
with
378 additions
and
197,557 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
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,32 @@ | ||
# SPDX-License-Identifier: MIT | ||
|
||
if(MSVC) | ||
add_compile_options( | ||
# C4100: unreferenced formal parameter | ||
# - MSVC has no `__attribute__((unused))` and omitting parameter names | ||
# wouldn't be standard C | ||
$<$<COMPILE_LANGUAGE:C>:/wd4100> | ||
# C4127: conditional expression is constant | ||
# - macros from uthash emit `do {} while(0);` and this triggers on | ||
# `while(0)` | ||
/wd4127 | ||
# C4200: nonstandard extension used: zero-sized array in struct/union | ||
# - MSVC does not recognise C99 flexible array members as standard | ||
/wd4200 | ||
# C4210: nonstandard extension used: function given file scope | ||
# - MSVC does not recognize extern inside of functions as standard | ||
/wd4210 | ||
# C4701 and 4703: potentially ininitialized (pointer) variable used | ||
# - detection is so primitive that it spams innumerable false positives | ||
/wd4701 /wd4703 | ||
# C4702: unreachable code | ||
# - macros from uthash causing problems again | ||
/wd4702 | ||
) | ||
else() | ||
add_compile_options( | ||
-Wmissing-include-dirs -Wconversion | ||
$<$<COMPILE_LANGUAGE:CXX>:-fno-exceptions> | ||
$<$<COMPILE_LANGUAGE:C>:-Wstrict-prototypes> | ||
) | ||
endif() |
File renamed without changes.
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,27 @@ | ||
# SPDX-License-Identifier: MIT | ||
|
||
if(CLIENT OR SERVER) | ||
set(IMAGE_IMPL QT) | ||
set(FILE_IO_IMPL QT) | ||
if(QT_VERSION_MAJOR EQUAL 5) | ||
set(ZIP_IMPL KARCHIVE) | ||
else() | ||
set(ZIP_IMPL LIBZIP) | ||
endif() | ||
elseif(EMSCRIPTEN) | ||
set(IMAGE_IMPL LIBS) | ||
set(FILE_IO_IMPL STDIO) | ||
else() | ||
set(IMAGE_IMPL LIBS CACHE STRING "PNG and JPEG implementation (LIBS, QT)") | ||
string(TOUPPER IMAGE_IMPL ${IMAGE_IMPL}) | ||
|
||
set(FILE_IO_IMPL STDIO CACHE STRING "Default file I/O (STDIO, QT)") | ||
string(TOUPPER FILE_IO_IMPL ${FILE_IO_IMPL}) | ||
|
||
set(ZIP_IMPL LIBZIP CACHE STRING "ZIP folder implementation (LIBZIP, KARCHIVE)") | ||
string(TOUPPER ZIP_IMPL ${ZIP_IMPL}) | ||
endif() | ||
|
||
add_feature_info("Image library implementation (IMAGE_IMPL)" ON ${IMAGE_IMPL}) | ||
add_feature_info("File I/O implementation (FILE_IO_IMPL)" ON ${FILE_IO_IMPL}) | ||
add_feature_info("ZIP implementation (ZIP_IMPL)" ON ${ZIP_IMPL}) |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# SPDX-License-Identifier: MIT | ||
|
||
function(get_ignore_warnings_in_directory out_var) | ||
get_directory_property(options COMPILE_OPTIONS) | ||
if(MSVC) | ||
list(TRANSFORM options REPLACE "/W[0-9]$" "/W0") | ||
list(TRANSFORM options REPLACE "/W([0-9]{4})" "/wd\\1") | ||
else() | ||
list(TRANSFORM options REPLACE "-W(no-)?([^=]+)(=.*$)?" "-Wno-\\2") | ||
endif() | ||
set(${out_var} "${options}" PARENT_SCOPE) | ||
endfunction() |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.