summaryrefslogtreecommitdiff
path: root/platform/android/detect.py
AgeCommit message (Collapse)Author
2017-08-30Make GDNative work on AndroidRuslan Mustakov
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.
2017-08-27Make build scripts Python3 compatibleMatthias Hoelzl
- 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.
2017-08-01Merge pull request #9838 from RandomShaper/android-arm64Rémi Verschelde
Add support for ARMv8 (64-bit) on Android
2017-07-25Add support for ARMv8 (64-bit) on AndroidPedro J. Estébanez
2017-07-25Remove ANDROID definePedro J. Estébanez
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.
2017-07-20Fix android export templates buildRuslan Mustakov
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.
2017-07-01Buildsystem: Improve detect.py readability and fix issuesRémi Verschelde
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
2017-05-27Improve/harmonize mobile buildsPedro J. Estébanez
2017-04-05Fix crash on Android-x86Pedro J. Estébanez
2017-03-26SCons: Add option to toggle warnings (on by default)Rémi Verschelde
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)
2017-03-21Export template management dialog.Juan Linietsky
Missing download (need to discuss this!)
2016-11-13Update/fix Android buildPedro J. Estébanez
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
2016-11-03scons: Reorder options for clarityRémi Verschelde
Also prefix all thirdparty-related toggles with `builtin`.
2016-11-02Improve Android build (Clang + tidyness)Pedro J. Estébanez
2016-11-01style: Various other PEP8 fixes in Python filesRémi Verschelde
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).
2016-11-01style: Fix PEP8 blank lines issues in Python filesRémi Verschelde
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.
2016-11-01style: Fix PEP8 whitespace issues in Python filesRémi Verschelde
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.
2016-11-01style: Start applying PEP8 to Python files, indentation issuesRémi Verschelde
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.
2016-10-22Fixed tiny error in detect.py causing compilation for Android to fail.Randy Tan Shaoxian
(cherry picked from commit c9d7f77c6ffea4691fba2071caec2d63d927b4d1)
2016-10-17Merge pull request #6723 from bvbfan/patch-1Rémi Verschelde
Correct OS architecture detection
2016-10-16Theora: Don't compile unnecessary files, rename "x86_opt_*"Błażej Szczygieł
2016-10-15zlib: Split thirdparty files, simplify scons optionRémi Verschelde
2016-10-15ogg/vorbis/opus: Make them modules and unbundle thirdparty libsRémi Verschelde
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.
2016-10-14Drop nedmalloc which is apparently not used anymoreRémi Verschelde
2016-10-11Correct OS architecture detectionAnthony Fieroni
Signed-off-by: Anthony Fieroni <bvbfan@abv.bg>
2016-10-04Fix compile flags not getting to the Android buildPedro J. Estébanez
2016-09-10Revert "Change Android float ABI to hard"Juan Linietsky
2016-09-09Change Android float ABI to hardPedro J. Estébanez
2016-07-21Fix compile error if use android_stl=yesvolzhs
2016-06-27Make Android build smarter (SCons + Gradle)Pedro J. Estébanez
Upgrade Gradle and Android plugin for Gradle Disable all signing and zip-aligning for the export templates Give correct names to generated APKs Put .so files built by SCons right where Gradle has to pick them according to arch & build type Downgrade NDK platform to 14 to match minSdkVersion
2016-06-01Remove Make-related flags from Android buildGeorge Marques
They were wrongly placed, creating a file named "-fpic" instead of applying "-fpic" to the build. This file was in .gitignore, which made it less noticiable. This also adds build.gradle to .gitignore.
2016-05-19Android buildsystem: Drop obsolete NDK_TOOLCHAIN argumentRémi Verschelde
It was a duplicate of NDK_TARGET, and not used for anything.
2016-05-01OSX: Fix lib suffix for Android lib (#4499)Rémi Verschelde
Fixes #1452.
2016-04-02Remove trailing spacesRémi Verschelde
2016-03-20Add support for gnu-libstc++-4.9 needed by recent NDK versionsblubee
The 4.9 version is the default one, people can still build using 4.8 with older NDK versions by setting the (optional) NDK_TARGET and NDK_TARGET_X86 environment variables.
2016-01-25Combies driver split and spawn fix, closes #3265Juan Linietsky
2016-01-08-Removed ANT build system for Android, as it was deprecated by GoogleJuan Linietsky
-Added new Gradle build system, as it is the required build system
2015-12-01Merge pull request #2963 from akien-mga/pr-opus-arm-optRémi Verschelde
Enable opus ARM optimisations only on ARM
2015-12-01Enable opus ARM optimisations only on ARMRémi Verschelde
i.e. do not enable it for x86. Fixes #2962.
2015-11-250theora compilation fixesJuan Linietsky
2015-10-17Merge pull request #2474 from masoudbh3/android-armeabi-v7aJuan Linietsky
Fix android build script
2015-10-13Merge branch 'master' of https://github.com/okamstudio/godotJuan Linietsky
Conflicts: platform/windows/detect.py
2015-10-02Add support for Opus audio formatGeorge Marques
2015-09-26Fixed theora playback. Removed theoraplayer.Juan Linietsky
Still need to get proper audio output latency in some platforms.
2015-09-16Fix android build scriptmasoud bh
some fixes for android build script. remove armv6,x86 options and add "android_arch" option for select compiler architecture (armv7,armv6,x86)(default armv7). add architecture suffix for output files and you can compile for several architecture simultaneously. example: libgodot.android.opt.debug.armv7.so libgodot.android.opt.debug.armv7.neon.so libgodot.android.opt.debug.armv6.so libgodot.android.opt.debug.x86.so now we can enable/disable neon on armv7 with "android_neon" option (default enable). add "NDK_TARGET_X86" option for select toolchain to use for the NDK x86 (default x86-4.8). change inputs model for "ndk_platform" option (default android-15). fix armv7 ccflags. with this patch, must put libgodot_android.so file in specific architecture folder: armv7 (default): <android-java>/libs/armeabi-v7a/ armv6: <android-java>/libs/armeabi/ x86: <android-java>/libs/x86/
2015-09-03merged some stuff for okamJuan Linietsky
2015-07-24Fixes compile bug for Android template on Windows.PeaceSells
2015-03-31read depth fixesJuan Linietsky
2015-03-31fixes for light2d in androids that do not supportJuan Linietsky
read depth
2015-01-102D Rewrite Step [1]Juan Linietsky
-=-=-=-=-=-=-=-=-=- -Moved drawing code to a single function that takes linked list (should make it easier to optimize in the future). -Implemented Z ordering of 2D nodes. Node2D and those that inherit have a visibility/Z property that affects drawing order (besides the tree order) -Removed OpenGL ES 1.x support. Good riddance!