Rémi Verschelde
5b27f05e7e
Fix console output for MinGW compilers
...
Reworked patch from @jay3d (#7116 ).
(cherry picked from commit f28ff8a208
)
2017-01-12 19:15:27 +01:00
volzhs
2e74bdab35
Add alert window on Android
...
(cherry picked from commit 9a20068ab7
)
2017-01-12 19:15:26 +01:00
BastiaanOlij
ef009a8b91
Set minimum version to 10.9 building OSX
...
(cherry picked from commit da5651fbb9
)
2017-01-12 19:15:26 +01:00
Fabio Alessandrelli
00fdcf3cd0
IP_Address now handle IPv4 and IPv6 transparently
...
IP_Address changes:
- Converts to and from String transparently while handling IPv4 as IPv6
mapped (::ffff:[IP]) address internally.
- Completely remove AddrType enum.
- Setting/Getting of ip array is now only possible through dedicated functions
(ie. set_ipv4, get_ipv4, set_ipv6, get_ipv6)
- Add function to know if the address is a valid IPv4 (for IP implementation and enet)
(cherry picked from commit 1aff508dd9
)
2017-01-04 00:46:33 +01:00
Fabio Alessandrelli
e8a6cbc897
Migrate int.IP_TYPE_ constants to IP.TYPE_
...
(cherry picked from commit c18c5013f8
)
2017-01-04 00:46:32 +01:00
Fabio Alessandrelli
47ae6c6507
Move V6ONLY flag selection inside helpers
...
(cherry picked from commit 4d90a4fcd5
)
2017-01-04 00:46:32 +01:00
Fabio Alessandrelli
5e79ac72b7
Automatically map IPv4 address to IPv6 when needed
...
(cherry picked from commit 9200da58e4
)
2017-01-04 00:46:32 +01:00
Fabio Alessandrelli
a46a643f90
Use an instance variable for ip_type in raw sockets
...
PacketPeerUDP/StreamPeerTCP/TCP_Server now uses an instance variable
to store the selected ip_type (IPv4/IPv6/ANY, where ANY = dual stack).
All calls to resolve addresses, sending/receving data, connecting/listening
will use that socket type.
(cherry picked from commit 95bdd97768
)
2017-01-04 00:46:32 +01:00
Fabio Alessandrelli
c030e602e5
Properly handle tcp connection failure
...
(cherry picked from commit 4f07b595a1
)
2017-01-04 00:46:32 +01:00
Fabio Alessandrelli
1a7f14b206
[IPv6] Fix windows build script (link to ws2_32)
2016-12-11 18:12:46 +01:00
Fabio Alessandrelli
754e9aa60a
TCP/UDP Listen sockets can now be set to IPv6 only
...
(cherry picked from commit eb27e993f0
)
2016-12-11 18:12:46 +01:00
Fabio Alessandrelli
70a6791150
Fix windows debugger connection problems.
...
Unify network socket creation between platform.
Ensure IPV6_V6ONLY flag is not set on sockets (allow IPv4 connection in IPv6 socket, dual-stack).
(cherry picked from commit 812908e236
)
2016-12-11 18:12:45 +01:00
Fabio Alessandrelli
6e0de0cce8
TCPServer listen now default to IP type ANY (v6 socket with v4 support)
...
(cherry picked from commit ee69bd81cf
)
2016-12-11 18:12:45 +01:00
Fabio Alessandrelli
04def2161e
Fix PacketPeerUDP get_packet_port()
...
Properly convert port field from network to system ordering on incoming packets.
(cherry picked from commit 25e29972a9
)
2016-12-11 18:12:45 +01:00
Fabio Alessandrelli
b3443fd848
Pass correct address size (ipv4,ipv6) to socket connect, bind, sendto
...
The address size passed to network system calls now reflects the the actual IP type (v4 or v6).
Fix Windows and OSX ipv6 sockets
(cherry picked from commit 80e911647c
)
2016-12-11 12:35:06 +01:00
Ariel Manzur
d8b0070b8c
added windows support for ipv6, cleaned up unix code
...
(cherry picked from commit 672225b710
)
2016-12-11 12:35:06 +01:00
eska
5ede1a1226
Emit asm.js code into a dedicated file for asm.js export
...
This helps prevent browser lockups during start-up at the cost of having
to distribute an extra file.
2016-12-04 02:52:14 +01:00
eska
17422f1f86
Add fullscreen features in web export
...
- Implement fullscreen control, get_window_size, get_screen_size
- Fix fullscreen resolution
2016-12-04 02:52:14 +01:00
eska
49e22aa83f
Fix some mouse bugs in WebAssembly/asm.js
...
- Emit mouse wheel release events
- Set button masks, fixes #5092
2016-12-03 15:33:59 +01:00
eska
6d86a63648
OS additions and fixes for WebAssembly/asm.js
...
- Implement alert, shell_open, set_window_title
- Add locale lookup, fixes #2477
- Print without color control sequences
- Move get_executable_path implementation to OS_JavaScript
2016-12-03 15:33:32 +01:00
Rémi Verschelde
a3582fa3cb
png: Allow building shared freetype with bundled libpng
...
This was the behaviour when building Godot 2.1, which allows to build against
Ubuntu 12.04 and its freetype that links old libpng12, while still bundling
libpng16.
(cherry picked from commit 4965ddfaa1
)
2016-11-19 14:09:12 +01:00
Rémi Verschelde
326978dcce
Revert "libpng: Fix erroneously linking against libpng12 on old distros"
...
This reverts commits 5fa1bb331a
and ec4be71fad
.
Looks like Debian/Ubuntu are not even shipping libpng16 nowadays in their
stable releases, we'll have to go back to statically linking our own
libpng16 to wait for them to stop being 5 years behind everybody.
(cherry picked from commit c32766a482
)
2016-11-19 13:40:53 +01:00
Rémi Verschelde
76233a3022
libpng: Same fix as previous commit for server platform
...
(cherry picked from commit ec4be71fad
)
2016-11-19 13:26:30 +01:00
Rémi Verschelde
220bcbf7c0
libpng: Fix erroneously linking against libpng12 on old distros
...
This bit us for 2.1.1 binaries built on Ubuntu 12.04 LTS where
libpng.pc apparently prioritizes libpng12.
(cherry picked from commit 5fa1bb331a
)
2016-11-19 13:00:17 +01:00
Pedro J. Estébanez
19ce11b908
Update/fix Android build
...
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
(cherry picked from commit 5a26459c06
)
2016-11-15 08:44:53 +01:00
Pedro J. Estébanez
221346521c
Make Android export quicker (especially on Windows)
...
(cherry picked from commit 56721e5d9d
)
2016-11-15 08:35:15 +01:00
volzhs
3e127ce3fd
Fix Directory.dir_exist/get_current_dir for 'res://' on Android
...
Fix #7014
(cherry picked from commit 8d454ed9a7
)
2016-11-15 08:34:51 +01:00
ISylvox
0413d85add
vsnc --> vsync
...
(cherry picked from commit b5c383fd61
)
2016-11-15 08:34:43 +01:00
Rémi Verschelde
cd828bd5fc
server: Allow building against system libraries
...
(cherry picked from commit 5e360fe178
)
2016-11-03 22:55:24 +01:00
Rémi Verschelde
ce54b6ea8b
scons: Reorder options for clarity
...
Also prefix all thirdparty-related toggles with `builtin`.
(cherry picked from commit cc95d4448c
)
2016-11-03 08:41:10 +01:00
Pedro J. Estébanez
f629b1fd3e
Improve Android build (Clang + tidyness)
...
(cherry picked from commit b18ff942be
)
2016-11-02 22:34:17 +01:00
Rémi Verschelde
eaf803f71e
style: Various other PEP8 fixes in Python files
...
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-02 22:30:34 +01:00
Rémi Verschelde
a7389217f8
style: Fix PEP8 blank lines issues in Python files
...
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-02 22:29:36 +01:00
Rémi Verschelde
e259bf8bbb
style: Fix PEP8 whitespace issues in Python files
...
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-02 22:28:28 +01:00
Rémi Verschelde
561c1f17a1
style: Start applying PEP8 to Python files, indentation issues
...
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-11-02 22:26:55 +01:00
George Marques
7a17d72e84
Fix extraneous NULL character on HTML export
...
Fix #2801
(cherry picked from commit 604ddd691c
)
2016-10-30 23:58:41 +01:00
George Marques
52bf8bd168
Fix the hiding of mouse cursor before interaction
...
Fix part of #6633
(cherry picked from commit 414d58e6c0
)
2016-10-30 23:58:32 +01:00
Błażej Szczygieł
85a7105345
SCons: Use colored output if available, change "colored"->"verbose"
...
(cherry picked from commit 2bf4553fe0
)
2016-10-30 14:51:34 +01:00
Rémi Verschelde
5a49e45d21
SCsub: Add python shebang as a hint for syntax highlighting
...
Also switch existing shebangs to "better" /usr/bin/env python.
(cherry picked from commit fc8ccd5b8c
)
2016-10-30 14:51:34 +01:00
Błażej Szczygieł
7143401e25
Theora: Don't compile unnecessary files, rename "x86_opt_*"
...
(cherry picked from commit 4ffa8f224d
)
2016-10-30 14:51:34 +01:00
Rémi Verschelde
d96842b80e
freetype: Make it a module and split thirdparty library
...
Comment out the weird workaround for building on Windows at it might
not be needed anymore. Testing needed to confirm.
(cherry picked from commit edbc0c0d0b
)
2016-10-30 14:51:33 +01:00
Rémi Verschelde
f1bd2f6f56
zlib: Split thirdparty files, simplify scons option
...
(cherry picked from commit cbf52606f4
)
2016-10-30 14:51:33 +01:00
Rémi Verschelde
e04ec9565b
glew: Split thirdparty files and isolate env
...
Not fully happy about the way this one interacts with the various
platforms. Maybe the platform_config.h should be generated by the
SCsub instead of passing a define just to know where is the header.
(cherry picked from commit 36738ddda4
)
2016-10-30 14:51:33 +01:00
Rémi Verschelde
1022705707
squish: Move to a module and split thirdparty lib
...
(cherry picked from commit 8311a78df5
)
2016-10-30 14:51:33 +01:00
Rémi Verschelde
c8a97c3678
mpc: Move to a module and split thirdparty libmpcdec
...
(cherry picked from commit 5c12c9e69b
)
2016-10-30 14:51:33 +01:00
Rémi Verschelde
82e8721715
theora: Move to a module and split thirdparty lib
...
Same rationale as the previous commits.
(cherry picked from commit cfcc8a20e8
)
2016-10-30 14:51:32 +01:00
Rémi Verschelde
4cd640f684
openssl: Move to a module and split thirdparty lib
...
Same rationale as the previous commits.
(cherry picked from commit 422196759f
)
Removed the winrt-specific parts.
2016-10-30 14:51:32 +01:00
Rémi Verschelde
995dcb610c
ogg/vorbis/opus/speex: Make them modules and unbundle thirdparty libs
...
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.
(cherry picked from commit d9a291f641
)
speex module was only added while cherry-picking, as speex is removed
in the master branch but we don't want to break compatibility in 2.1.x.
Unbundling wasn't done as the module uses the internal speex_free,
so it would require some more work.
2016-10-30 14:51:31 +01:00
Rémi Verschelde
55414bc573
webp: Make it a module and unbundle libwebp thirdparty files
...
Note that there are two Godot-specific changes made to libwebp
for the javascript/HTML5 platform. They are documented in the
README.md.
(cherry picked from commit ee3cf211c6
)
2016-10-30 14:51:30 +01:00
Rémi Verschelde
575e986bde
png: Split library to thirdparty dir and allow unbundling
...
Uses the new structure agreed upon in #6157 , but the thirdparty/ folder
does not behave following a logic similar to that of modules/ yet.
The png driver can't be moved to a module as discussed in #6157 , as it's
required by core together with a few other ImageLoader implementations
(see drivers/register_driver_types.cpp:register_core_driver_types())
Dropped the possibility to disable PNG support, it's a core component
of Godot.
(cherry picked from commit 5fef84a135
)
2016-10-30 14:51:30 +01:00
Rémi Verschelde
846db09038
Drop nedmalloc which is apparently not used anymore
...
(cherry picked from commit f63bf12193
)
2016-10-30 14:51:30 +01:00
Randy Tan Shaoxian
c9d7f77c6f
Fixed tiny error in detect.py causing compilation for Android to fail.
2016-10-20 21:17:21 +08:00
Andreas Haas
e88a540b91
osx: Support gamepad input.
...
Fixes #3881
Vibration support is not optimal yet as it doesn't try to emulate the "weak" and "strong" motor strength,
but just takes the parameter with the highest value for the vibration gain.
(cherry picked from commit 8c886b9d7a
)
2016-10-18 18:34:16 +02:00
volzhs
00b0f3dfde
Fix crash when using Directory.dir_exists(path) on Android
...
(cherry picked from commit 4a57821349
)
2016-10-17 20:50:57 +02:00
Anthony Fieroni
b4edaa892d
Correct OS architecture detection
...
Signed-off-by: Anthony Fieroni <bvbfan@abv.bg>
(cherry picked from commit f87e32696d
)
2016-10-17 20:48:05 +02:00
Pedro J. Estébanez
82dfaf7af6
Fix compile flags not getting to the Android build
...
(cherry picked from commit 7f51bb7b1c
)
2016-10-09 17:34:36 +02:00
Pedro J. Estébanez
12d4d65668
Improve debug focus behavior
...
Fix focusing debugged game on Windows
Add re-focusing editor on continue
(cherry picked from commit 66dac878ac
)
2016-10-09 17:29:59 +02:00
Marc Gilleron
268b3446c6
Windows: prevent huge prints from crashing the engine
...
(cherry picked from commit 0c09de3ef1
)
2016-10-09 17:23:08 +02:00
syskrank
4b2243f82e
removed confusing "if(true)" statement with empty "else" block
...
(cherry picked from commit af4b0db1e4
)
2016-10-09 17:22:36 +02:00
romeojulietthotel
228ee4363e
Use pkgconfig to locate ALSA libs ( #6119 )
...
* This allows building when ALSA libs are in a non-standard location. PKG_CONFIG_PATH alone is not enough as the final link fails. Adding this makes the final link succeed.
* The extra LIBS flag for alsa is not needed so removing.
(cherry picked from commit 94d6757a0d
)
2016-10-09 17:21:17 +02:00
Andreas Haas
d1ad94acf0
x11: Fix event.is_action() for release of modifier keys
...
The bug was that the release events for these also had the modifier state set, so the event comparison
failed.
Fixes #5901
(cherry picked from commit 6fcf2b2bd8
)
2016-10-09 17:20:57 +02:00
Pedro J. Estébanez
45a5769162
Fix manifest generation bug in Android export
...
(cherry picked from commit 2c9d98bb48
)
2016-10-09 17:20:27 +02:00
Pedro J. Estébanez
f90370886f
Fix (potentially) Android libs packaging issue ( #5645 )
...
(cherry picked from commit e9065632c6
)
2016-09-18 23:11:18 +02:00
Rémi Verschelde
fd58f8dce8
Move templates and distribution stuff to tools/dist
...
Also removed the obsolete iOS xcode template.
(cherry picked from commit 3efe1231f0
)
2016-09-18 23:04:26 +02:00
Mario Schlack
9ea76ff46d
Hide the mouse cursor when MOUSE_MODE_CAPTURED is activated.
...
(cherry picked from commit f0b6a242cc
)
2016-09-01 08:46:03 +02:00
Andreas Haas
37fc61f986
x11: Use proper sonames for loading libXrandr.
...
(cherry picked from commit f59860f464
)
2016-09-01 08:38:24 +02:00
marcelofg55
0c76ba32cc
Crashfix for OSX on Sierra beta
...
(cherry picked from commit bf320fd4ea
)
2016-08-09 18:47:13 +02:00
Skyfrit
c56ea7cf91
Android: Rename values-zh to values-zh-rCN ( #6063 )
...
(cherry picked from commit 4f6a21b0df
)
2016-08-08 18:15:55 +02:00
Skyfrit
1913e4a040
Android: Add support for Traditional Chinese (HK) ( #6061 )
...
(cherry picked from commit 664b5b5137
)
2016-08-08 18:15:49 +02:00
Skyfrit
2b35ba4815
Android: Add support for Traditional Chinese (TW) ( #6061 )
...
(cherry picked from commit 8ab4acd17f
)
2016-08-08 18:15:43 +02:00
marcelofg55
fd6f62fd9a
Fix set_window_size not setting the correct size on OSX
...
(cherry picked from commit 38de4d24ef
)
2016-08-03 17:52:10 +02:00
George Marques
0bc589a0c7
Fix Windows resource script
2016-07-27 15:35:49 -03:00
George Marques
b48fd16add
Improve Windows application details
2016-07-27 12:37:12 -03:00
Rémi Verschelde
fd659e869b
Windows: Make alert message box use MB_TASKMODAL
...
This flag pauses the current running thread, allowing for the user to see the
alert and acknowledge it before the thread continues (and e.g. crashes :)).
Thanks to @SuperUserNameMan for finding it.
Ref: https://msdn.microsoft.com/en-us/library/windows/desktop/ms645505(v=vs.85).aspx
2016-07-26 15:16:45 +02:00
Rémi Verschelde
dc3c32b488
Merge pull request #5894 from vnen/windows-set-position
...
Avoid changing position when the window is fullscreen
2016-07-24 17:55:25 +02:00
Juan Linietsky
9213400cd5
Merge pull request #5415 from volzhs/improve-android-payment
...
Improve android payment
2016-07-24 12:18:13 -03:00
George Marques
7be70c5a3c
Avoid changing position when the window is fullscreen
2016-07-24 12:07:59 -03:00
Rémi Verschelde
82d18f4c1c
Merge pull request #5845 from hurikhan/x11_cleanup
...
Code cleanup in platform/x11
2016-07-22 08:35:26 +02:00
Mario Schlack
503f9ab9d9
Code cleanup in platform/x11
2016-07-21 21:11:34 +02:00
Mario Schlack
d04ada3973
Implement OS.request_attention() for X11
2016-07-21 19:40:36 +02:00
Rémi Verschelde
b623acb718
Merge pull request #5841 from vnen/fix-windows-wheel
...
Fix mouse wheel event position on Windows
2016-07-21 17:31:24 +02:00
Rémi Verschelde
93de25f68a
Merge pull request #5837 from hurikhan/android_cleanup
...
Minor code formatting in platform/android
2016-07-21 17:31:14 +02:00
GungnirInd
2c1a74fb3a
Implement OS.request_attention() for OSX ( #5662 )
...
Keeps bouncing icon until user focuses window
2016-07-21 17:30:20 +02:00
Rémi Verschelde
d723e5a62f
Merge pull request #5560 from vnen/os-request-attention
...
Add OS.request_attention() for Windows
2016-07-21 17:29:45 +02:00
George Marques
f4c0bc20c3
Fix mouse wheel event position on Windows
2016-07-21 12:14:25 -03:00
Mario Schlack
beaa56bff2
Minor code formatting in platform/android
2016-07-21 12:07:01 +02:00
Rémi Verschelde
b1cca17053
Merge pull request #5835 from volzhs/issue-5831
...
Fix compile error if use android_stl=yes
2016-07-21 10:37:18 +02:00
volzhs
01e39ecec8
Fix compile error if use android_stl=yes
2016-07-21 17:31:46 +09:00
Rémi Verschelde
5274f2a126
Merge pull request #5819 from hurikhan/android_getScreenDPI
...
Implement get_screen_dpi() on Android
2016-07-21 09:09:49 +02:00
Mario Schlack
0717893772
Implement get_screen_dpi() on Android
2016-07-20 14:54:48 +02:00
Juan Linietsky
0988970c1f
Fixed properly not save signals that already exist in their base scenes, closes #5656
2016-07-19 21:26:12 -03:00
Juan Linietsky
587826f879
remove GLU dependency, closes #3787
2016-07-18 17:25:03 -03:00
volzhs
79cb91dc84
Add querying details of IAP items for android
2016-07-18 23:45:58 +09:00
volzhs
f26f181ba9
Fix can't get all info if user purchases many items and not consumed
2016-07-18 23:45:58 +09:00
Rémi Verschelde
8de5aedb9e
Merge pull request #5718 from jay3d/master
...
Added gyroscope support to Godot and Android
2016-07-18 00:52:15 +02:00
Rémi Verschelde
523e46ad0a
Revert "Make editor compatible with Windows high contrast themes"
...
This reverts commit 85a5290ee8
.
The patch itself is good and it could maybe be readded in the future,
but right now Microsoft forced its Windows 10 "update" on people with older
Intel HD Graphics 3000 IGP without ensuring that they can ship proper drivers,
and such users seem to get Godot crashing due to this patch. Sorry :(
Closes #5452 .
2016-07-18 00:24:21 +02:00
Jamil Halabi
370ae3512d
Added gyroscope support to Godot and Android
2016-07-16 01:43:32 +08:00
Rémi Verschelde
26baaf447a
WinRT: Add missing license file for ANGLE
...
Also drop the unused "All rights reserved" FunctionDiscoveryKeys_devpkey.h
Fixes #4859 .
2016-07-14 08:49:02 +02:00
sanikoyes
978cb0e884
Fix crash in FileAccessJAndroid::file_exists (does not free local ref)
2016-07-11 12:41:54 +08:00
Juan Linietsky
d279d060e1
Merge pull request #5077 from RandomShaper/improve-android-build
...
Improve Android build
2016-07-10 13:57:17 -03:00