summaryrefslogtreecommitdiffstats
path: root/platform/android/detect.py
Commit message (Collapse)AuthorAgeFilesLines
* SCons: Move platform-specific Opus config to its moduleRémi Verschelde2019-03-021-6/+0
|
* SCons: Drop unused MPC_FIXED_POINT defineRémi Verschelde2019-01-161-1/+1
|
* Android: Add support for x86_64 architectureRémi Verschelde2019-01-161-2/+15
| | | | | | | Like arm64v8, this is only supported by API 21 and later, so we enforce 21 as min API for x86_64. Part of #25030.
* Don't use -ffast-math or other unsafe math optimizationsHein-Pieter van Braam2019-01-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Godot supports many different compilers and for production releases we have to support 3 currently: GCC8, Clang6, and MSVC2017. These compilers all do slightly different things with -ffast-math and it is causing issues now. See #24841, #24540, #10758, #10070. And probably other complaints about physics differences between release and release_debug builds. I've done some performance comparisons on Linux x86_64. All tests are ran 20 times. Bunnymark: (higher is better) (bunnies) min max stdev average fast-math 7332 7597 71 7432 this pr 7379 7779 108 7621 (102%) FPBench (gdscript port http://fpbench.org/) (lower is better) (ms) fast-math 15441 16127 192 15764 this pr 15671 16855 326 16001 (99%) Float_add (adding floats in a tight loop) (lower is better) (sec) fast-math 5.49 5.78 0.07 5.65 this pr 5.65 5.90 0.06 5.76 (98%) Float_div (dividing floats in a tight loop) (lower is better) (sec) fast-math 11.70 12.36 0.18 11.99 this pr 11.92 12.32 0.12 12.12 (99%) Float_mul (multiplying floats in a tight loop) (lower is better) (sec) fast-math 11.72 12.17 0.12 11.93 this pr 12.01 12.62 0.17 12.26 (97%) I have also looked at FPS numbers for tps-demo, 3d platformer, 2d platformer, and sponza and could not find any measurable difference. I believe that given the issues and oft-reported (physics) glitches on release builds I believe that the couple of percent of tight-loop floating point performance regression is well worth it. This fixes #24540 and fixes #24841
* Remove trailing whitespaceRémi Verschelde2018-11-201-3/+3
| | | | | With `sed -i $(rg -l '[[:blank:]]*$' -g'!thirdparty') -e 's/[[:blank:]]*$//g'` (+ manual revert of some thirdparty code under `platform/android`).
* Dont use equality operators with None singleton in python fileslupoDharkael2018-10-271-2/+2
|
* No need to link with libandroid_support in NDK 17Wojciech Milkowski2018-08-281-1/+2
| | | | | | According to https://github.com/bytedeco/javacpp/pull/244 in NDK 17 libandroid_support library is not needed any more, and on armv8 is already gone which breaks compilation.
* Merge pull request #20507 from rdhafidh/android_libcpp_shared_masterRémi Verschelde2018-08-231-14/+23
|\ | | | | add support libc++_shared on android (master)
| * add support libc++_shared stl on androidRidwan Abdul Hafidh2018-08-231-14/+23
| |
* | Update detect.pyTiago Quendera2018-08-171-1/+1
|/ | | Fixed a typo in detect.py
* -Fix disable_3d flagJuan Linietsky2018-07-211-2/+7
| | | | -Add extra flag optimize=[size,speed] to be able to prioritize size
* Fixed android arm64v8Colin Kinloch2017-12-231-6/+13
|
* Fixed Android NDK unified header detection for python 3Colin Kinloch2017-12-171-1/+1
|
* Cleanup old references to GLES2 rendererRémi Verschelde2017-11-191-1/+1
| | | | | | | | | There are still some left in the Android Java code, even stuff to swap between GLES1 and GLES2 support from early Godot days... would be good to see some cleanup there too one day. The "graphics/api" option for Android exports is removed, as only GLES 3.0 is supported. It can be readded when GLES 2.0 support comes back. Fixes #13004.
* change matrix and enable caching for Android, iOS and macOS (cross-compile)Rhody Lugo2017-11-131-2/+9
|
* add missing distutils.version.LooseVersion importRhody Lugo2017-11-091-0/+1
|
* unified headers fixRhody Lugo2017-11-091-14/+8
|
* Compile Android with STL enabled by defaultAndreaCatania2017-11-081-1/+1
|
* add support for Android NDK unified headersRhody Lugo2017-11-061-3/+36
|
* Use BoolVariable in platform-specific options.Elliott Sales de Andrade2017-09-251-7/+7
|
* Use BoolVariable for module options.Elliott Sales de Andrade2017-09-251-1/+1
|
* Use BoolVariable in target/component/advanced options.Elliott Sales de Andrade2017-09-251-1/+1
|
* Use EnumVariable for choice-based build options.Elliott Sales de Andrade2017-09-251-1/+2
|
* Make GDNative work on AndroidRuslan Mustakov2017-08-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | The changes include work done to ensure that GDNative apps and Nim integration specifically can run on Android. The changes have been tested on our WIP game, which uses godot-nim and depends on several third-party .so libs, and Platformer demo to ensure nothing got broken. - .so libraries are exported to lib/ folder in .apk, instead of assets/, because that's where Android expects them to be and it resolves the library name into "lib/<ABI>/<name>", where <ABI> is the ABI matching the current device. So we establish the convention that Android .so files in the project must be located in the folder corresponding to the ABI they were compiled for. - Godot callbacks (event handlers) are now called from the same thread from which Main::iteration is called. It is also what Godot now considers to be the main thread, because Main::setup is also called from there. This makes threading on Android more consistent with other platforms, making the code that depends on Thread::get_main_id more portable (GDNative has such code). - Sizes of GDNative API types have been fixed to work on 32-bit platforms.
* Make build scripts Python3 compatibleMatthias Hoelzl2017-08-271-12/+12
| | | | | | | | - The Windows, UWP, Android (on Windows) and Linux builds are tested with Scons 3.0 alpha using Python 3. - OSX and iOS should hopefully work but are not tested since I don't have a Mac. - Builds using SCons 2.5 and Python 2 should not be impacted.
* Merge pull request #9838 from RandomShaper/android-arm64Rémi Verschelde2017-08-011-8/+20
|\ | | | | Add support for ARMv8 (64-bit) on Android
| * Add support for ARMv8 (64-bit) on AndroidPedro J. Estébanez2017-07-251-8/+20
| |
* | Remove ANDROID definePedro J. Estébanez2017-07-251-1/+1
|/ | | | | | Fixes GDNative build error on Android. It's also discouraged by Google to rely on it. In case someone needs to check, use ``__ANDROID__`` instead, provided by the very same compiler.
* Fix android export templates buildRuslan Mustakov2017-07-201-14/+14
| | | | | | | | This commit fixes errors occurring during Android export template builds. This required modification in third-party library (libpng) to compile with NEON. Most likely a similar patch will be applied by them and we could then replace the modified version.
* Buildsystem: Improve detect.py readability and fix issuesRémi Verschelde2017-07-011-90/+62
| | | | | | | | | | | | | | | | | | | Tried to organize the configure(env) calls in sections, using the same order for all platforms whenever possible. Apart from cosmetic changes, the following issues were fixed: - Android: cleanup linkage, remove GLESv1_CM and GLESv2 - iPhone: Remove obsolete "ios_gles22_override" option - OSX: * Fix bits detection (default to 64) and remove obsolete "force_64_bits" option (closes #9449) * Make "fat" bits argument explicit - Server: sync with X11 - Windows: clean up old DirectX 9 stuff - X11: * Do not require system OpenSSL for building (closes #9443) * Fix typo'ed use_leak_sanitizer option * Fix .llvm suffix overriding custom extra_suffix
* Improve/harmonize mobile buildsPedro J. Estébanez2017-05-271-1/+1
|
* Fix crash on Android-x86Pedro J. Estébanez2017-04-051-0/+2
|
* SCons: Add option to toggle warnings (on by default)Rémi Verschelde2017-03-261-3/+1
| | | | | | | | All the warnings are factored out of the platform-specific files and moved to SConstruct. Will have to check that it does not introduce regressions on some platforms/compilers. (cherry picked from commit 31107daa1a41fe9ab3c7c1868479e78e16848333)
* Export template management dialog.Juan Linietsky2017-03-211-2/+2
| | | | Missing download (need to discuss this!)
* Update/fix Android buildPedro J. Estébanez2016-11-131-7/+7
| | | | | Fix wrong path for 32-bit Windows, which fixes #7084 Exclude 32-bit Windows from multi-threaded linking because it's not supported by the NDK Remove 32-bit Linux as there is no NDK variant for it
* scons: Reorder options for clarityRémi Verschelde2016-11-031-1/+0
| | | | Also prefix all thirdparty-related toggles with `builtin`.
* Improve Android build (Clang + tidyness)Pedro J. Estébanez2016-11-021-89/+102
|
* style: Various other PEP8 fixes in Python filesRémi Verschelde2016-11-011-2/+2
| | | | | | | | | | | | Done with `autopep8 --select=E7`, fixes: - E701 - Put colon-separated compound statement on separate lines. - E702 - Put semicolon-separated compound statement on separate lines. - E703 - Put semicolon-separated compound statement on separate lines. - E711 - Fix comparison with None. - E712 - Fix (trivial case of) comparison with boolean. - E713 - Fix (trivial case of) non-membership check. - E721 - Fix various deprecated code (via lib2to3).
* style: Fix PEP8 blank lines issues in Python filesRémi Verschelde2016-11-011-2/+5
| | | | | | | | | | | Done with `autopep8 --select=E3,W3`, fixes: - E301 - Add missing blank line. - E302 - Add missing 2 blank lines. - E303 - Remove extra blank lines. - E304 - Remove blank line following function decorator. - E309 - Add missing blank line. - W391 - Remove trailing blank lines.
* style: Fix PEP8 whitespace issues in Python filesRémi Verschelde2016-11-011-110/+110
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Done with `autopep8 --select=E2,W2`, fixes: - E201 - Remove extraneous whitespace. - E202 - Remove extraneous whitespace. - E203 - Remove extraneous whitespace. - E211 - Remove extraneous whitespace. - E221 - Fix extraneous whitespace around keywords. - E222 - Fix extraneous whitespace around keywords. - E223 - Fix extraneous whitespace around keywords. - E224 - Remove extraneous whitespace around operator. - E225 - Fix missing whitespace around operator. - E226 - Fix missing whitespace around operator. - E227 - Fix missing whitespace around operator. - E228 - Fix missing whitespace around operator. - E231 - Add missing whitespace. - E231 - Fix various deprecated code (via lib2to3). - E241 - Fix extraneous whitespace around keywords. - E242 - Remove extraneous whitespace around operator. - E251 - Remove whitespace around parameter '=' sign. - E261 - Fix spacing after comment hash. - E262 - Fix spacing after comment hash. - E265 - Format block comments. - E271 - Fix extraneous whitespace around keywords. - E272 - Fix extraneous whitespace around keywords. - E273 - Fix extraneous whitespace around keywords. - E274 - Fix extraneous whitespace around keywords. - W291 - Remove trailing whitespace. - W293 - Remove trailing whitespace.
* style: Start applying PEP8 to Python files, indentation issuesRémi Verschelde2016-11-011-212/+212
| | | | | | | | | | | | | | | | | | | Done with `autopep8 --select=E1`, fixes: - E101 - Reindent all lines. - E112 - Fix under-indented comments. - E113 - Fix over-indented comments. - E115 - Fix under-indented comments. - E116 - Fix over-indented comments. - E121 - Fix a badly indented line. - E122 - Fix a badly indented line. - E123 - Fix a badly indented line. - E124 - Fix a badly indented line. - E125 - Fix indentation undistinguish from the next logical line. - E126 - Fix a badly indented line. - E127 - Fix a badly indented line. - E128 - Fix a badly indented line. - E129 - Fix a badly indented line.
* Fixed tiny error in detect.py causing compilation for Android to fail.Randy Tan Shaoxian2016-10-221-1/+1
| | | | (cherry picked from commit c9d7f77c6ffea4691fba2071caec2d63d927b4d1)
* Merge pull request #6723 from bvbfan/patch-1Rémi Verschelde2016-10-171-8/+9
|\ | | | | Correct OS architecture detection
| * Correct OS architecture detectionAnthony Fieroni2016-10-111-8/+9
| | | | | | | | Signed-off-by: Anthony Fieroni <bvbfan@abv.bg>
* | Theora: Don't compile unnecessary files, rename "x86_opt_*"Błażej Szczygieł2016-10-161-1/+1
| |
* | zlib: Split thirdparty files, simplify scons optionRémi Verschelde2016-10-151-1/+0
| |
* | ogg/vorbis/opus: Make them modules and unbundle thirdparty libsRémi Verschelde2016-10-151-1/+2
| | | | | | | | | | | | | | | | | | Took the opportunity to undo the Godot changed made to the opus source. The opus module should eventually be built in its own environment to avoid polluting others with too many include dirs and defines. TODO: Fix the platform/ stuff for opus.
* | Drop nedmalloc which is apparently not used anymoreRémi Verschelde2016-10-141-3/+2
| |
* | Fix compile flags not getting to the Android buildPedro J. Estébanez2016-10-041-3/+3
|/
* Revert "Change Android float ABI to hard"Juan Linietsky2016-09-101-8/+5
|