aboutsummaryrefslogtreecommitdiff
path: root/platform/windows/detect.py
Commit message (Collapse)AuthorAgeFilesLines
* 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 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.
* Create separate debug info files by defaultHein-Pieter van Braam2017-09-161-1/+11
| | | | | | | | | | | | | | | | | | | | | | 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.
* 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-131-1/+1
|
* Added new WASAPI driver for WindowsMarcelo Fernandez2017-08-271-1/+3
|
* 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.
* 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.
* Make MinGW test less verbose on non-Bash shellsRémi Verschelde2017-07-251-9/+2
| | | | | The &> construct seems to be Bash-specific. Supersedes #9755.
* Buildsystem: Improve detect.py readability and fix issuesRémi Verschelde2017-07-011-195/+77
| | | | | | | | | | | | | | | | | | | 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
* -Fix eternal black screen on WindowsJuan Linietsky2017-04-091-1/+1
| | | | -Disabled warnings on windows, need to properly set up warnings
* SCons: Add option to toggle warnings (on by default)Rémi Verschelde2017-03-261-1/+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)
* Fix typos in source code using codespellRémi Verschelde2017-03-241-1/+1
| | | | From https://github.com/lucasdemarchi/codespell
* Improvements to scons defined WINVER/_WIN32_WINNTFabio Alessandrelli2017-01-121-1/+3
|
* Merge pull request #7493 from neikeq/pr-mingw-bitsRémi Verschelde2017-01-101-1/+1
|\ | | | | Detect bits when building with MinGW
| * Detect bits when building with MinGWIgnacio Etcheverry2017-01-101-1/+1
| |
* | Windows: Define _WIN32_WINRT to 0x0600 (Vista)Rémi Verschelde2017-01-081-0/+4
| | | | | | | | | | | | | | | | Passed as a compiler define to be sure it is always define before windows.h is loaded. This means that Godot officially requires Vista API or later, it will not work on Windows XP or earlier. Also fix a bogus check for Windows 7 API.
* | Merge remote-tracking branch 'origin/gles3' into gles3-on-masterRémi Verschelde2017-01-021-2/+2
|\ \ | |/ |/| | | | | Various merge conflicts have been fixed manually and some mistakes might have been made - time will tell :)
| * Godot works on Windows again..reduz2016-12-211-2/+2
| |
* | scons: Reorder options for clarityRémi Verschelde2016-11-031-2/+0
| | | | | | | | Also prefix all thirdparty-related toggles with `builtin`.
* | style: Various other PEP8 fixes in Python filesRémi Verschelde2016-11-011-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | 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-10/+7
| | | | | | | | | | | | | | | | | | | | | | 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-89/+89
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-218/+218
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | fix bug introduced by #6501yg2f2016-10-261-13/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ( @Akien : this PR is for current HEAD only, not to be cherry-picked for 2.1.1 ) this is manual revertion of #6501 which introduced a bug that prevented scons from detecting Mingw under Windows when MSVC was installed. (thanks to @vnen for finding this) AND it fixes the actual bug that prevented scons from detecting MSVC standalone compiler ( a confusions between ``VSINSTALLDIR`` and ``VCINSTALLDIR`` ) The freeware Standalone MSVC C++ Build Tools are available here : http://landinghub.visualstudio.com/visual-cpp-build-tools
* | Theora: Don't compile unnecessary files, rename "x86_opt_*"Błażej Szczygieł2016-10-161-3/+3
| |
* | zlib: Split thirdparty files, simplify scons optionRémi Verschelde2016-10-151-0/+1
| |
* | glew: Split thirdparty files and isolate envRémi Verschelde2016-10-151-1/+0
|/ | | | | | 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.
* scons detects standalone MSVC on Windowsyg2f2016-09-161-9/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Under Windows, Scons is now capable of detecting and compiling with standalone MSVC compilers (aka "Visual C++ Build Tools"). http://landinghub.visualstudio.com/visual-cpp-build-tools Tried with version 2015, and native x86 and x64 compilers under Windows 10 pro 64 and Windows 8.1 64, with the default Win8 SDK provided by the "Visual C++ Build Tools" web-installer. Follow the same compiling instructions than for compiling with Visual Studio, except that Visual Studio is no more required. KNOWN ISSUES : - ``methods.detect_visual_c_compiler_version()`` will emit a warning message on computers where the ``VSINSTALLDIR`` environement variable is not present. But it should compile just fine and still automatically detects the 32 or 64 bits according to the compiler you picked. TODO : - eventually, update ``platform/winrt/dectet.py`` with function ``methods.msvc_is_detected()`` and try to compile winrt/UWP with these standalone compilers (if you did not select Win10 SDK when installing the standalone tools, you can run it again). - update doc to make users aware of "Visual C++ Build Tools" aka "stadalone MSVC". - eventually, update ``methods.detect_visual_c_compiler_version()``
* Implement missing WinRT functionsGeorge Marques2016-09-031-69/+9
| | | | | | | | - Fix buildsystem for WinRT/UWP platform. - Add audio driver and joystick mapping for WinRT. - Enable thread class for WinRT. - Refactor MSVC compiler architecture detection to methods.py, so it can be used by Windows and WinRT.
* fix to mingw buildJuan Linietsky2016-08-201-1/+1
|
* ENet windows compilation fixes.Juan Linietsky2016-08-201-3/+2
| | | | | For reference, when you include a Windows header (be it directly windows.h or something that includes it) put it at the end of the includes. it seems I forgot.
* -make freetype build for all platforms the same, default as builtin except ↵Juan Linietsky2016-06-091-9/+0
| | | | | | on x11. closes #5119
* GLEW: Define static + enabled and includes via SConsRémi Verschelde2016-06-081-2/+2
| | | | | | | | This allows us not to have to hack our definitions in the upstream files, making it easier to upgrade to newer versions in the future. For the include paths to work, the headers are moved to a GL subfolder to match their upstream location.
* removed dependency on shcore.dll to get DPIJuan Linietsky2016-06-011-1/+1
| | | | fixes #4973
* hidpi for now not available on mingw, sorryJuan Linietsky2016-05-291-1/+1
|
* DPI Detection supportJuan Linietsky2016-05-291-2/+2
| | | | | Windows only for now. Many builds may break (older visual studio, mingw32)
* fix freetype paths on osx and mingwJuan Linietsky2016-05-291-2/+3
|
* Finalized DynamicFont implementationJuan Linietsky2016-05-291-2/+2
| | | | | | -DynamicFont uses Freetype by default -Editor fonts are now scalable thanks to this -Cleaned up documentation browser and added fonts for this
* Fix windows 64-bits build.George Marques2016-05-031-0/+2
| | | | | | | The change in `tools/doc/doc_data.cpp` is needed because the MSVC compiler does not support variable length arrays. Fix #4113
* Fixes 64 bit MSVC builds, disables bits parameterAleksandar Danilovic2016-04-101-0/+89
| | | | | | | | Also Enables automatic detection of architecture for the MSVC compilers. Builds without assembly optimisations for x64 Closes issue #3098 Signed-off-by: Aleksandar Danilovic <greatgames.alexandar@gmail.com>
* Remove trailing spacesRémi Verschelde2016-04-021-29/+29
|
* -removed buggy flags, makes mingw+32 bits+optimized work again,Juan Linietsky2016-02-041-1/+1
|
* Revert "make msvc 64bits build again, fixes #3098"George Marques2016-01-261-1/+1
| | | | This reverts commit b21ce6cecbd75ae3281177c4890902586ca710f7.
* -Many fixes to windows build system with Mingw on Windows. Fixes #2690Juan Linietsky2016-01-251-35/+1
|
* Fix 32 bit windows export crashmrezai2016-01-161-2/+8
|
* make msvc 64bits build again, fixes #3098Juan Linietsky2016-01-101-1/+1
| | | | disabled assembly for msvc 64 bits, as it is not supported
* Better gamepad supporthondres2015-12-181-2/+2
|