Commit Graph

91 Commits

Author SHA1 Message Date
Jamie Dale
63a39cbf09 Added some missing PLATFORM_SUPPORTS_STACK_SYMBOLS defines
Some platforms that implement stack walking weren't setting this to true, and there was also no default for platforms that don't support stack walking.

This define is only used when building with bUseMallocProfiler turned on.

ReviewedBy Gil.Gribb
#platformnotify Josh.Adams

[CL 2700520 by Jamie Dale in Main branch]
2015-09-22 09:52:02 -04:00
Richard Hinckley
6ceaa5aba7 Cleaning out programmer-only comments that were harvested by Doxygen.
#platformnotify Josh.Adams

[CL 2690143 by Richard Hinckley in Main branch]
2015-09-14 09:25:39 -04:00
Peter Sauerbrei
a5dae9f755 PR-1285 - added CanLaunchURL blueprint function
courtesy of derekvanvliet
#platformnotify josh.adams

[CL 2664624 by Peter Sauerbrei in Main branch]
2015-08-21 13:23:18 -04:00
Peter Sauerbrei
38048164c6 UE-19919 - fix for IOS 9 building against Beta 5
#ios

[CL 2656935 by Peter Sauerbrei in Main branch]
2015-08-14 18:17:29 -04:00
Peter Sauerbrei
ff140cba7f fixes to build against IOS 9 beta 4 SDK
#ios9

[CL 2651551 by Peter Sauerbrei in Main branch]
2015-08-11 15:00:24 -04:00
Josh Markiewicz
779cb6e04b #UE4 - moved all http header files into header module
- headers in core and implementations in http were working but only coincidentally
- no way to export any of the platforms if needed because CORE_API was correct for generic platform but would have link errors because all platforms were in HTTP_API
- fixed up platform http calls to reference http module
#platformnotify josh.adams
#codereview sam.zamani, david.nikdel, dmitry.rekman

[CL 2646887 by Josh Markiewicz in Main branch]
2015-08-06 15:52:48 -04:00
Peter Sauerbrei
7089e19d34 PR1287 - addition of GetLocalCurrecyCode and GetLocalCurrencySymbol
#ios
#platformnotify josh.adams

[CL 2614048 by Peter Sauerbrei in Main branch]
2015-07-08 16:02:57 -04:00
Peter Sauerbrei
ab1fef632c PR1284 - added GetPreferredLanguages function for use in blueprints
#ios
#platformnotify josh.adams

[CL 2613890 by Peter Sauerbrei in Main branch]
2015-07-08 14:42:53 -04:00
Michael Trepka
8f5edadc18 Rollback //depot/UE4/Engine/Source/Runtime/Core/Public/IOS/IOSPlatformCompilerPreSetup.h to revision 12
[CL 2611711 by Michael Trepka in Main branch]
2015-07-06 17:44:34 -04:00
Michael Trepka
efa1a2b636 Merging a couple of changes required to build for iOS with Xcode 7
[CL 2611265 by Michael Trepka in Main branch]
2015-07-06 13:16:41 -04:00
Mikolaj Sieluzycki
40e6cc13ed CIS fix, adding missing IOS file.
#platformnotify Josh.Adams

[CL 2610348 by Mikolaj Sieluzycki in Main branch]
2015-07-03 08:09:53 -04:00
Max Preussner
00808a4501 Platform: Fixed iOS ssize_t
[CL 2589370 by Max Preussner in Main branch]
2015-06-16 17:18:03 -04:00
Max Preussner
44137f32ae Platform: Added SSIZE_T type definition (equivalent for ssize_t)
#CodeReview: robert.manuszewski, dmitry.rekman
#platformnotify Josh.Adams

[CL 2589255 by Max Preussner in Main branch]
2015-06-16 16:18:52 -04:00
Peter Sauerbrei
76c669cfce addition of Push Notification code
PR-981
#ios
#platformnotify josh.adams

[CL 2580235 by Peter Sauerbrei in Main branch]
2015-06-08 14:36:40 -04:00
Marc Audy
1a12e9cffe Add a matching PRAGMA_ENABLE_SHADOW_VARIABLE_WARNINGS for PRAGMA_DISABLE_SHADOW_VARIABLE_WARNINGS instead of using basic PRAGMA_POP
[CL 2548029 by Marc Audy in Main branch]
2015-05-12 17:41:47 -04:00
Peter Sauerbrei
51db26c80f fix for debug iOS game crashing
UE-15078
#ios

[CL 2539659 by Peter Sauerbrei in Main branch]
2015-05-06 14:46:56 -04:00
Mike Fricker
290f5e6d82 Miscellaneous fixes for Clang on windows
These changes allow UE4 to compile and run (in Debug) on Clang 3.7 alpha (r231657 only!)
  - Disabled editor source file discovery (crashes with Clang currently)
  - Disabled FThreadIdleStats in UnrealHeaderTool with Clang on Windows (causes link errors due to inlining bugs with Clang and DLL imports)
  - Use MSVC linker by default, even when compiling with Clang (can be tweaked with bAllowClangLinker)
  - Enabled shadow variable warnings on Windows with Clang
  - Limited max size of reflection code source files (Clang on Windows crashes with huge source files)
  - Fixed UE4 deprecation warnings not showing up when using Clang on Windows
  - Make sure initialization list order only triggers a warning on Clang for Windows

Other changes:
  - Fixed issues with pushed pragmas not getting popped (PRAGMA_ENABLE_DEPRECATION_WARNINGS)
  - Removed EMIT_DEPRECATED_WARNING_MESSAGE, wasn't used
  - Fixed various third party library includes not being treated as system headers (prevents compiler warnings)

To test Clang on Windows (beta!!):

- Get latest UE4 main branch (4.9)

- Install LLVM+Clang for Windows version r231657.  It's a quick install, you don't need to compile anything yourself.

- Open UEBuildWindows.cs, and change bCompileWithClang to true.  Be careful not to check that in.  We'll probably make this config-driven later, after the Clang toolchain gets more mature.

- Switch to Debug Editor configuration.  (See below for more info.)

- Rebuild the game or engine

Notes:

- You must use Clang r231657 (3.7.0 alpha).  There are no other releases that I've found that are able to compile UE4 successfully.  Most of the newer releases crash during compiling, and older releases aren't able to digest Windows header files well enough.

- Compiling in Development currently will not work due to bugs with Clangs handling of inlining and DLL exports.  Monolithic builds should work, though.

- Occasionally you may see runtime crashes (stack overflows or access violations) when running UE4 compiled with Clang on Windows.  These may very well be bugs in Clang (remember, we're using an alpha release of Clang 3.7.0.)  Unfortunately without better debugger support, it can be difficult to workaround these

- When debugging, you will only have functions and line numbers, no variables or parameters.  Clang only has preliminary support for Microsoft's PDB format currently.
XGE is fully supported with Clang on Windows.  Best case rebuild times I've seen are 3.5 minutes in Debug.

- Shared PCHs aren't supported yet (similar to on Mac and Linux), so iterative compile times may be slower compared to Visual C++.  However the Clang compiler is actually quite fast for rebuilds, probably because of missing debug info though.

- There may be some compiler warnings that are different between Mac/Linux and Windows.  We haven't done a line-by-line comparison yet.

- Build products and executables for Clang and VC++ overlap on disk.  So you have to rebuild to switch back and forth.  Sorry.

- Clang on Windows has a few bugs that we've had to work around.  You might see some strange things from time to time.  Every new release of Clang has different behavior on Windows.

- We still use the VC++ Linker, even when compiling using Clang.  The new Clang linker (lld.exe) can be enabled with bAllowClangLinker but it will crash when linking some modules.  It also doesn't produce usable debug symbols by Visual Studio (yet).

#codereview mikolaj.sieluzycki

[CL 2532260 by Mike Fricker in Main branch]
2015-04-30 14:24:21 -04:00
Gil Gribb
c8c3d793ea UE4 - remove rhimethods.h and all of the macro stuff relating to that
[CL 2524145 by Gil Gribb in Main branch]
2015-04-24 07:50:10 -04:00
Terence Burns
80cde8f174 Upgraded the facebook SDK to Version 4.01
- Updated the identity, user, friends and sharing functionality, to use the new sdk.
- Added new frameworks for facebook. This should help reduce the amount of wirk in future upgrades.
- Adding an IOS delegates to allow listeners to deal with specific ios event. Namely, openURL.

[CL 2520701 by Terence Burns in Main branch]
2015-04-22 04:09:29 -04:00
Allan Bentham
2d261a1cb9 UERNDR-54 - Support switching device orientation on the fly.
Added iOS rotation support and ES2 + metal handling for backbuffer  resizing.
Fixed ogl issue that could delete gltexture when render buffers are destructed.
Fixed issue with ES2 render target dirty state check that could result in some render targets not being set.
#codereview nick.penwarden

[CL 2511463 by Allan Bentham in Main branch]
2015-04-14 06:15:11 -04:00
Marc Audy
4815482be4 Add a PRAGMA_DISABLE_SHADOW_WARNING to easily wrap third party code that needs shadow variables disabled
Move PRAGMA_POP out of deprecation section and in to general usability

[CL 2510496 by Marc Audy in Main branch]
2015-04-13 13:31:04 -04:00
Peter Sauerbrei
3953fd103f PR983 - iOS app delegate retains launch options
#ios

[CL 2505812 by Peter Sauerbrei in Main branch]
2015-04-08 16:31:09 -04:00
Peter Sauerbrei
db1fdefa49 another warning removed as an error
#ios

[CL 2505800 by Peter Sauerbrei in Main branch]
2015-04-08 16:29:16 -04:00
Dmitry Rekman
c3fb17f0ad iOS: Exempt -Wreorder from -Werror so that it doesn't break builds.
#codereview Peter.Sauerbrei

[CL 2497833 by Dmitry Rekman in Main branch]
2015-03-31 17:33:17 -04:00
Jaroslaw Palczynski
b0bc8bbc87 Added EMIT_CUSTOM_WARNING_AT_LINE macro to emit warnings at given line rather than on macro location.
[CL 2490438 by Jaroslaw Palczynski in Main branch]
2015-03-25 07:44:58 -04:00