aboutsummaryrefslogtreecommitdiff
path: root/platform/windows (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Return and repair file loggingRuslan Mustakov2017-11-212-11/+3
| | | | And make it configurable, too.
* Rename the version's "revision" to "build"Rémi Verschelde2017-11-201-1/+1
| | | | | | | | That "revision" was inherited from SVN days but had been since then used to give information about the build: "custom_build", "official", "<some distro's build>". It can now be overridden with the BUILD_NAME environment variable.
* Pass engine name and version parts as proper stringsRémi Verschelde2017-11-202-5/+5
| | | | | | Removes the need for _MKSTR all over the place which has the drawback of converting _MKSTR(UNKNOWN_DEFINE) to "UKNOWN_DEFINE" instead of throwing a compilation error.
* Merge pull request #12988 from akien-mga/xdg-home-pathsRémi Verschelde2017-11-202-11/+54
|\ | | | | Add support for XDG Base Directory spec
| * Add initial support for the XDG Base Directory specRémi Verschelde2017-11-192-10/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Spec version 0.7 from https://standards.freedesktop.org/basedir-spec/basedir-spec-0.7.html (latest as of this commit). Three virtual methods are added to OS for the various XDG paths we will use: - OS::get_data_path gives XDG_DATA_HOME, or if missing: ~/.local/share on X11, ~/Library/Application Support/ on macOS and %APPDATA% on Windows - OS::get_config_path gives XDG_CONFIG_HOME, or if missing: ~/.config on X11, ~/Library/Application Support/ on macOS and %APPDATA% on Windows - OS::get_cache_path gives XDG_CACHE_HOME, or if missing: ~/.cache on X11, ~/Library/Caches on macOS and %APPDATA% on Windows So for Windows there are no changes, for Linux we follow the full split spec and for macOS stuff will move from ~/.godot to ~/Library/Application Support/Godot. Support for system-wide installation of templates on Unix was removed for now, as it's a bit hackish and I don't think anyone uses it. user:// will still be OS::get_data_path() + "/godot/app_userdata/$name" by default, but when using the application/config/use_shared_user_dir option it will now use XDG_DATA_HOME/$name, e.g. ~/.local/share/MyGame. For now everything still goes in EditorSettings::get_settings_dir(), but this will be changed in a later commit to make use of the new splitting where relevant. Part of #3513.
| * Rename OS::get_data_dir to OS::get_user_data_dirRémi Verschelde2017-11-172-3/+3
| | | | | | | | | | Will be needed to avoid confusion with system data path (XDG_DATA_HOME) and editor data dir in upcoming refactoring.
* | Cleanup old references to GLES2 rendererRémi Verschelde2017-11-193-26/+4
|/ | | | | | | | | 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.
* Disable OpenGL warnings unless running with -v, closes #7171Juan Linietsky2017-11-131-1/+1
|
* Make video mode initialization more intuitive, fixes #12022Juan Linietsky2017-11-092-7/+0
|
* Merge pull request #12262 from AndreaCatania/pplugJuan Linietsky2017-11-033-19/+2
|\ | | | | Physics server plug
| * Implemented physics plugAndreaCatania2017-11-043-19/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Moved init_physics Implemented physics 2D plug Fix clang Fix clang Fix static check Fix clang Fix static check Moved physics server initialization Moved physics server settings initialization
* | SCons: make use_lto a global option and opt-in for iphoneRémi Verschelde2017-11-021-1/+0
| | | | | | | | Supersedes #12553, see discussion in #12552.
* | Disable logging until the logs location is sorted outRémi Verschelde2017-10-291-1/+3
| | | | | | | | Temporary workaround for #12277.
* | detect.py: Fix KeyError if using MinGW and LTOmhilbrunner2017-10-271-4/+1
| |
* | Cleanup unnecessary debug printsRémi Verschelde2017-10-211-1/+0
|/
* Fixed wrong Virtual-KeyCode(0x12) pair on Windows platform (#12073)Indah Sylvia2017-10-141-1/+1
|
* Drop unusued LEGACYGL_ENABLED checkRémi Verschelde2017-10-132-2/+2
| | | | [ci skip]
* OS::execute can now read from stderr too when executing with a pipeMarcelo Fernandez2017-10-032-2/+2
|
* Merge pull request #11568 from endragor/loggersAndreas Haas2017-10-025-136/+216
|\ | | | | Extract logging logic
| * Extract logging logicRuslan Mustakov2017-09-255-136/+216
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously logging logic was scattered over OS class implementations with plenty of duplication. Major changes in this commit: - Extracted logging logic into a separate Logger hierarchy. It allows easy configuration of logging mechanism depending on compile-time or run-time configuration. - Implemented RotatedFileLogger which is usually used with StdLogger, providing persistency of logs. It is often important to be able to obtain logs of the game even in production to be able to understand what happened prior to some problem. On mobile there previously was no way to obtain the logs aside from having the device connected to your machine. - flush() is not performed in release mode for every logged line. It is only performed for errors.
* | Merge pull request #11575 from marcelofg55/move_path_to_trashPoommetee Ketson2017-10-022-0/+29
|\ \ | | | | | | FileSystemDock will now remove files/dirs to trashcan using OS::move_to_trash
| * | FileSystemDock will now remove files/dirs to trashcan using OS::move_to_trashMarcelo Fernandez2017-09-252-0/+29
| |/
* | Reduce gcc lto build time by telling the linker toFelix M. Cobos2017-09-261-1/+4
| | | | | | | | use the number of jobs indicated by -j
* | Use BoolVariable in platform-specific options.Elliott Sales de Andrade2017-09-251-3/+3
| |
* | 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
|/
* Fix gcc ltoHein-Pieter van Braam2017-09-231-2/+7
| | | | | This repairs LTO on X11 and adds it to MingW targets. The difference in linktime is substantial, but runtime performance is quite a bit better.
* Merge pull request #11243 from hpvb/add-debug-info-on-releaseRémi Verschelde2017-09-212-2/+21
|\ | | | | Create separate debug info files by default
| * Create separate debug info files by defaultHein-Pieter van Braam2017-09-162-2/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now that we have a built-in stacktrace on a segfault it would be useful to have debug information on debug_release builds so that bugreports can include this information. Without this debug info we will still get function names in the backtrace but not file location. This commit will by default build all targets with minimal debug info and then strip the information into separate files. On MacOS this is a .dSYM file, on Linux/MingW this is a .debug file. MacOSX will automatically load a dSYM file if it exists in its debugger. On Linux/MingW we create a 'gnu debuglink' meaning that gdb and friends will automatically find the debug symbols if they exist. Existing workflow for developers does not change at all, except that we now create two instead of one build artifact by default. This commit also adds a 'debug_symbols' option to X11, MacOS, and MingW targets. The default is 'yes' which corresponds to -g1. The alternatives are 'no' (don't generate debug infos at all) or 'full' which runs with -g2. A target=debug build will now build with -g3.
* | Rename pos to position in user facing methods and variablesletheed2017-09-202-2/+2
| | | | | | | | | | | | | | | | | | | | | | Rename user facing methods and variables as well as the corresponding C++ methods according to the folloming changes: * pos -> position * rot -> rotation * loc -> location C++ variables are left as is.
* | Prevent running the crash_handler when a debugger is present on windowsMarcelo Fernandez2017-09-182-19/+23
| |
* | Merge pull request #11252 from marcelofg55/fix_noaudio_crashRémi Verschelde2017-09-171-6/+1
|\ \ | |/ |/| Fix crash when no audio driver is available
| * Fix crash when no audio driver is availableMarcelo Fernandez2017-09-131-6/+1
| |
* | Merge pull request #11230 from maxim-sheronov/fix_enum_bindingsThomas Herzog2017-09-154-14/+14
|\ \ | | | | | | Fix enums bindings
| * | Fix enums bindingsMaxim Sheronov2017-09-134-14/+14
| | | | | | | | | | | | | | | Add missed bindings for enums Move some enums to class to have correct output of api.json
* | | Buildsystem: Windows cross-compilation on Linux defaults to 64-bitRémi Verschelde2017-09-131-3/+6
| |/ |/|
* | Added a crash handler to dump the backtrace on Windows, Linux and OS XMarcelo Fernandez2017-09-137-15/+307
| |
* | Style: Apply clang-format to @reduz's changesRémi Verschelde2017-09-131-8/+6
| | | | | | | | [ci skip]
* | HiDPI support on Windows.. yes this is all it took.Juan Linietsky2017-09-121-0/+22
|/
* Remove assignment and declarations in if statementsHein-Pieter van Braam2017-09-083-8/+23
| | | | | | After discussing with @reduz and @akien-mga it was decided that we do not allow assignments or declarations in if statements. This PR removes the instances of this I could find by automated means.
* Fix files headerPoommetee Ketson2017-09-012-2/+2
|
* Added new WASAPI driver for WindowsMarcelo Fernandez2017-08-273-1/+10
|
* Use HTTPS URL for Godot's website in the headersRémi Verschelde2017-08-2723-23/+23
|
* Free memory when Main::setup returns an errorWilson E. Alvarez2017-08-251-1/+6
|
* Merge pull request #10487 from marcelofg55/curscr_as_defaultRémi Verschelde2017-08-222-6/+6
|\ | | | | p_screen param from get_screen_* funcs now default to the current screen
| * p_screen param from get_screen_* funcs now default to the current screenMarcelo Fernandez2017-08-212-6/+6
| |
* | Removed unnecessary assignmentsWilson E. Alvarez2017-08-211-2/+1
|/
* Windows: Drop support for obsolete MinGWRémi Verschelde2017-08-181-34/+19
| | | | | | | | The version we support is MinGW-w64: https://sourceforge.net/p/mingw-w64 The old original MinGW from which it was forked (https://sourceforge.net/projects/mingw), is no longer maintained and useless for us. Fixes #10396.
* Workaround missing WM_TOUCH on mingw-w64 < 4.0Rémi Verschelde2017-08-181-4/+3
| | | | Upstream bug report: https://sourceforge.net/p/mingw-w64/bugs/460/
* Windows: Drop support for Vista (0x0600)Rémi Verschelde2017-08-181-2/+4
| | | | | | | | | | | We need the efficient SRWLock methods which are not supported on Vista, and loading them dynamically while providing fallbacks is not worth the effort. Closes #10243. Sorry Vista users... As you are running a supported which is no longer supported by Microsoft (https://support.microsoft.com/en-us/help/13853/windows-lifecycle-fact-sheet), we can only encourage you to upgrade to a more recent version if you can, or switch to Linux, which should give your old hardware a new youth.