Skip to content

Commit 7eec69d

Browse files
committed
Initial commit/WIP/warning might explode
1 parent 108150e commit 7eec69d

File tree

7,080 files changed

+3113368
-23
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

7,080 files changed

+3113368
-23
lines changed

.clang-format

Lines changed: 127 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,127 @@
1+
# Commented out parameters are those with the same value as base LLVM style
2+
# We can uncomment them if we want to change their value, or enforce the
3+
# chosen value in case the base style changes (last sync: Clang 6.0.1).
4+
---
5+
### General config, applies to all languages ###
6+
BasedOnStyle: LLVM
7+
AccessModifierOffset: -4
8+
AlignAfterOpenBracket: DontAlign
9+
# AlignConsecutiveAssignments: false
10+
# AlignConsecutiveDeclarations: false
11+
# AlignEscapedNewlines: Right
12+
# AlignOperands: true
13+
AlignTrailingComments: false
14+
AllowAllParametersOfDeclarationOnNextLine: false
15+
# AllowShortBlocksOnASingleLine: false
16+
AllowShortCaseLabelsOnASingleLine: true
17+
AllowShortFunctionsOnASingleLine: Inline
18+
AllowShortIfStatementsOnASingleLine: true
19+
# AllowShortLoopsOnASingleLine: false
20+
# AlwaysBreakAfterDefinitionReturnType: None
21+
# AlwaysBreakAfterReturnType: None
22+
# AlwaysBreakBeforeMultilineStrings: false
23+
# AlwaysBreakTemplateDeclarations: false
24+
# BinPackArguments: true
25+
# BinPackParameters: true
26+
# BraceWrapping:
27+
# AfterClass: false
28+
# AfterControlStatement: false
29+
# AfterEnum: false
30+
# AfterFunction: false
31+
# AfterNamespace: false
32+
# AfterObjCDeclaration: false
33+
# AfterStruct: false
34+
# AfterUnion: false
35+
# AfterExternBlock: false
36+
# BeforeCatch: false
37+
# BeforeElse: false
38+
# IndentBraces: false
39+
# SplitEmptyFunction: true
40+
# SplitEmptyRecord: true
41+
# SplitEmptyNamespace: true
42+
# BreakBeforeBinaryOperators: None
43+
# BreakBeforeBraces: Attach
44+
# BreakBeforeInheritanceComma: false
45+
BreakBeforeTernaryOperators: false
46+
# BreakConstructorInitializersBeforeComma: false
47+
BreakConstructorInitializers: AfterColon
48+
# BreakStringLiterals: true
49+
ColumnLimit: 120
50+
# CommentPragmas: '^ IWYU pragma:'
51+
# CompactNamespaces: false
52+
ConstructorInitializerAllOnOneLineOrOnePerLine: true
53+
ConstructorInitializerIndentWidth: 8
54+
ContinuationIndentWidth: 8
55+
Cpp11BracedListStyle: false
56+
# DerivePointerAlignment: false
57+
# DisableFormat: false
58+
# ExperimentalAutoDetectBinPacking: false
59+
# FixNamespaceComments: true
60+
# ForEachMacros:
61+
# - foreach
62+
# - Q_FOREACH
63+
# - BOOST_FOREACH
64+
# IncludeBlocks: Preserve
65+
IncludeCategories:
66+
- Regex: '".*"'
67+
Priority: 1
68+
- Regex: '^<.*\.h>'
69+
Priority: 2
70+
- Regex: '^<.*'
71+
Priority: 3
72+
# IncludeIsMainRegex: '(Test)?$'
73+
IndentCaseLabels: true
74+
# IndentPPDirectives: None
75+
IndentWidth: 4
76+
# IndentWrappedFunctionNames: false
77+
# JavaScriptQuotes: Leave
78+
# JavaScriptWrapImports: true
79+
# KeepEmptyLinesAtTheStartOfBlocks: true
80+
# MacroBlockBegin: ''
81+
# MacroBlockEnd: ''
82+
# MaxEmptyLinesToKeep: 1
83+
# NamespaceIndentation: None
84+
# PenaltyBreakAssignment: 2
85+
# PenaltyBreakBeforeFirstCallParameter: 19
86+
# PenaltyBreakComment: 300
87+
# PenaltyBreakFirstLessLess: 120
88+
# PenaltyBreakString: 1000
89+
# PenaltyExcessCharacter: 1000000
90+
# PenaltyReturnTypeOnItsOwnLine: 60
91+
# PointerAlignment: Right
92+
# RawStringFormats:
93+
# - Delimiter: pb
94+
# Language: TextProto
95+
# BasedOnStyle: google
96+
# ReflowComments: true
97+
# SortIncludes: true
98+
# SortUsingDeclarations: true
99+
# SpaceAfterCStyleCast: false
100+
# SpaceAfterTemplateKeyword: true
101+
# SpaceBeforeAssignmentOperators: true
102+
# SpaceBeforeParens: ControlStatements
103+
# SpaceInEmptyParentheses: false
104+
# SpacesBeforeTrailingComments: 1
105+
# SpacesInAngles: false
106+
# SpacesInContainerLiterals: true
107+
# SpacesInCStyleCastParentheses: false
108+
# SpacesInParentheses: false
109+
# SpacesInSquareBrackets: false
110+
TabWidth: 4
111+
UseTab: Never
112+
---
113+
### C++ specific config ###
114+
Language: Cpp
115+
Standard: Cpp11
116+
---
117+
### ObjC specific config ###
118+
Language: ObjC
119+
Standard: Cpp03
120+
ObjCBlockIndentWidth: 4
121+
# ObjCSpaceAfterProperty: false
122+
# ObjCSpaceBeforeProtocolList: true
123+
---
124+
### Java specific config ###
125+
Language: Java
126+
# BreakAfterJavaFieldAnnotations: false
127+
...

.disabled_appveyor.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
os: Visual Studio 2015
2+
3+
environment:
4+
HOME: "%HOMEDRIVE%%HOMEPATH%"
5+
PYTHON: C:\Python27
6+
SCONS_CACHE_ROOT: "%HOME%\\scons_cache"
7+
SCONS_CACHE_LIMIT: 1024
8+
matrix:
9+
- VS: C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat
10+
GD_PLATFORM: windows
11+
TOOLS: yes
12+
TARGET: release_debug
13+
ARCH: amd64
14+
15+
init:
16+
- ps: if ($env:APPVEYOR_REPO_BRANCH -ne "master") { $env:APPVEYOR_CACHE_SKIP_SAVE = "true" }
17+
18+
cache:
19+
- "%SCONS_CACHE_ROOT%"
20+
21+
install:
22+
- SET "PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
23+
- pip install -U wheel # needed for pip install scons to work, otherwise a flag is missing
24+
- pip install scons==3.0.1
25+
- if defined VS call "%VS%" %ARCH% # if defined - so we can also use mingw
26+
27+
before_build:
28+
- echo %GD_PLATFORM%
29+
- python --version
30+
- scons --version
31+
- cl.exe
32+
- set "SCONS_CACHE=%SCONS_CACHE_ROOT%\%APPVEYOR_REPO_BRANCH%"
33+
34+
build_script:
35+
- scons platform=%GD_PLATFORM% target=%TARGET% tools=%TOOLS% debug_symbols=no verbose=yes progress=no gdnative_wrapper=yes

.disabled_travis.yml

Lines changed: 145 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,145 @@
1+
language: cpp
2+
3+
# OS config, depends on actual 'os' in build matrix
4+
dist: xenial
5+
6+
stages:
7+
- check
8+
- build
9+
10+
env:
11+
global:
12+
- SCONS_CACHE=$HOME/.scons_cache
13+
- SCONS_CACHE_LIMIT=1024
14+
- OPTIONS="debug_symbols=no verbose=yes progress=no builtin_libpng=yes"
15+
- secure: "uch9QszCgsl1qVbuzY41P7S2hWL2IiNFV4SbAYRCdi0oJ9MIu+pVyrQdpf3+jG4rH6j4Rffl+sN17Zz4dIDDioFL1JwqyCqyCyswR8uACC0Rr8gr4Mi3+HIRbv+2s2P4cIQq41JM8FJe84k9jLEMGCGh69w+ibCWoWs74CokYVA="
16+
17+
cache:
18+
directories:
19+
- $SCONS_CACHE
20+
21+
matrix:
22+
include:
23+
- name: Static checks (clang-format)
24+
stage: check
25+
env: STATIC_CHECKS=yes
26+
os: linux
27+
compiler: gcc
28+
addons:
29+
apt:
30+
sources:
31+
- llvm-toolchain-xenial-8
32+
packages:
33+
- clang-format-8
34+
35+
- name: Linux editor (debug, GCC 9, with Mono)
36+
stage: build
37+
env: PLATFORM=x11 TOOLS=yes TARGET=debug CACHE_NAME=${PLATFORM}-tools-mono-gcc-9 MATRIX_EVAL="CC=gcc-9 && CXX=g++-9" EXTRA_ARGS="module_mono_enabled=yes mono_glue=no warnings=extra werror=yes"
38+
os: linux
39+
compiler: gcc-9
40+
addons:
41+
apt:
42+
sources:
43+
- mono
44+
- ubuntu-toolchain-r-test
45+
packages:
46+
- &gcc9_deps [gcc-9, g++-9]
47+
- &linux_deps [libasound2-dev, libgl1-mesa-dev, libglu1-mesa-dev, libx11-dev, libxcursor-dev, libxi-dev, libxinerama-dev, libxrandr-dev]
48+
- &linux_mono_deps [mono-devel, msbuild, nuget]
49+
50+
coverity_scan:
51+
project:
52+
name: "godotengine/godot"
53+
description: "Godot Engine Coverity scans"
54+
notification_email: [email protected]
55+
build_command_prepend: ""
56+
build_command: "scons p=x11 -j2 $OPTIONS"
57+
branch_pattern: coverity_scan
58+
59+
- name: Linux export template (release, Clang)
60+
stage: build
61+
env: PLATFORM=x11 TOOLS=no TARGET=release CACHE_NAME=${PLATFORM}-clang EXTRA_ARGS="warnings=extra werror=yes"
62+
os: linux
63+
compiler: clang
64+
addons:
65+
apt:
66+
packages:
67+
- *linux_deps
68+
69+
- name: Android export template (release_debug, Clang)
70+
stage: build
71+
env: PLATFORM=android TOOLS=no TARGET=release_debug CACHE_NAME=${PLATFORM}-clang EXTRA_ARGS="warnings=extra werror=yes"
72+
os: linux
73+
compiler: clang
74+
75+
- name: macOS editor (debug, Clang)
76+
stage: build
77+
env: PLATFORM=osx TOOLS=yes TARGET=debug CACHE_NAME=${PLATFORM}-tools-clang
78+
os: osx
79+
compiler: clang
80+
81+
- name: iOS export template (debug, Clang)
82+
stage: build
83+
env: PLATFORM=iphone TOOLS=no TARGET=debug CACHE_NAME=${PLATFORM}-clang
84+
os: osx
85+
compiler: clang
86+
87+
- name: Linux headless editor (release_debug, GCC 9, testing project exporting and script running)
88+
stage: build
89+
env: PLATFORM=server TOOLS=yes TARGET=release_debug CACHE_NAME=${PLATFORM}-tools-gcc-9 MATRIX_EVAL="CC=gcc-9 && CXX=g++-9" EXTRA_ARGS="warnings=extra werror=yes" TEST_PROJECT=yes
90+
os: linux
91+
compiler: gcc-9
92+
addons:
93+
apt:
94+
sources:
95+
- ubuntu-toolchain-r-test
96+
packages:
97+
- *gcc9_deps
98+
- *linux_deps
99+
100+
- name: Linux export template (release_debug, GCC 5, without 3D support)
101+
stage: build
102+
env: PLATFORM=x11 TOOLS=no TARGET=release_debug CACHE_NAME=${PLATFORM}-gcc-5 EXTRA_ARGS="disable_3d=yes"
103+
os: linux
104+
compiler: gcc
105+
addons:
106+
apt:
107+
packages:
108+
- *linux_deps
109+
110+
before_install:
111+
- eval "${MATRIX_EVAL}"
112+
- if [ "$STATIC_CHECKS" = "yes" ]; then
113+
unset SCONS_CACHE;
114+
fi
115+
116+
install:
117+
- pip install --user scons;
118+
- if [ "$TRAVIS_OS_NAME" = "linux" ] && [ "$PLATFORM" = "android" ]; then
119+
misc/travis/android-tools-linux.sh;
120+
fi
121+
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then
122+
export PATH=${PATH}:/Users/travis/Library/Python/2.7/bin;
123+
fi
124+
- if [ "$TRAVIS_OS_NAME" = "osx" ] && [ "$PLATFORM" = "android" ]; then
125+
misc/travis/android-tools-osx.sh;
126+
fi
127+
128+
before_script:
129+
- if [ "$PLATFORM" = "android" ]; then
130+
export ANDROID_HOME=$TRAVIS_BUILD_DIR/godot-dev/build-tools/android-sdk;
131+
export ANDROID_NDK_ROOT=$TRAVIS_BUILD_DIR/godot-dev/build-tools/android-ndk;
132+
fi
133+
134+
script:
135+
- if [ "$STATIC_CHECKS" = "yes" ]; then
136+
sh ./misc/travis/clang-format.sh;
137+
else
138+
scons -j2 CC=$CC CXX=$CXX platform=$PLATFORM tools=$TOOLS target=$TARGET $OPTIONS $EXTRA_ARGS;
139+
140+
if [ "$TEST_PROJECT" = "yes" ]; then
141+
git clone --depth 1 "https://github.com/godotengine/godot-tests.git";
142+
sed -i "s:custom_template/release=\"\":custom_template/release=\"$(readlink -e bin/godot_server.x11.opt.tools.64)\":" godot-tests/tests/project_export/export_presets.cfg;
143+
godot-tests/tests/project_export/test_project.sh "bin/godot_server.x11.opt.tools.64";
144+
fi
145+
fi

.editorconfig

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
indent_style = space
7+
indent_size = 4
8+
insert_final_newline = true
9+
10+
[*.{cpp,hpp,c,h,mm}]
11+
trim_trailing_whitespace = true
12+
13+
[{*.{py,cs},SConstruct,SCsub}]
14+
indent_style = space
15+
indent_size = 4
16+
17+
[.travis.yml]
18+
indent_style = space
19+
indent_size = 2

.github/CODEOWNERS

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Lines starting with '#' are comments.
2+
# Each line is a file pattern followed by one or more owners.
3+
# Owners can be @users, @org/teams or emails
4+
5+
/doc/ @godotengine/documentation
6+
doc_classes/* @godotengine/documentation
7+
8+
# Rendering
9+
/drivers/gl_context/ @reduz
10+
/drivers/gles2/ @reduz
11+
/drivers/gles3/ @reduz
12+
13+
# Audio
14+
/drivers/alsa/ @marcelofg55
15+
/drivers/alsamidi/ @marcelofg55
16+
/drivers/coreaudio/ @marcelofg55
17+
/drivers/coremidi/ @marcelofg55
18+
/drivers/pulseaudio/ @marcelofg55
19+
/drivers/wasapi/ @marcelofg55
20+
/drivers/winmidi/ @marcelofg55
21+
/drivers/xaudio2/ @marcelofg55
22+
23+
/drivers/unix/ @hpvb
24+
/drivers/windows/ @hpvb
25+
26+
/editor/icons/ @djrm
27+
28+
/misc/ @akien-mga
29+
30+
/modules/bullet/ @AndreaCatania
31+
/modules/csg/ @BastiaanOlij
32+
/modules/enet/ @godotengine/network
33+
/modules/gdnative/*arvr/ @BastiaanOlij
34+
/modules/gdscript/ @vnen @bojidar-bg
35+
/modules/mbedtls/ @godotengine/network
36+
/modules/mobile_vr/ @BastiaanOlij
37+
/modules/mono/ @neikeq
38+
/modules/opensimplex/ @JFonS
39+
/modules/regex/ @LeeZH
40+
/modules/upnp/ @godotengine/network
41+
/modules/websocket/ @godotengine/network
42+
43+
/platform/javascript/ @eska014
44+
/platform/uwp/ @vnen
45+
46+
/server/physics*/ @reduz @AndreaCatania
47+
/server/visual*/ @reduz
48+
49+
/thirdparty/ @akien-mga

0 commit comments

Comments
 (0)