Add **Web platform with Emscripten**
This commit is contained in:
@@ -74,6 +74,9 @@ public class Main : EngineModule
|
||||
case TargetPlatform.iOS:
|
||||
options.SourcePaths.Add(Path.Combine(FolderPath, "Default"));
|
||||
break;
|
||||
case TargetPlatform.Web:
|
||||
options.SourcePaths.Add(Path.Combine(FolderPath, "Web"));
|
||||
break;
|
||||
default: throw new InvalidPlatformException(options.Platform.Target);
|
||||
}
|
||||
}
|
||||
|
||||
12
Source/Engine/Main/Web/main.cpp
Normal file
12
Source/Engine/Main/Web/main.cpp
Normal file
@@ -0,0 +1,12 @@
|
||||
// Copyright (c) Wojciech Figat. All rights reserved.
|
||||
|
||||
#if PLATFORM_WEB
|
||||
|
||||
#include "Engine/Engine/Engine.h"
|
||||
|
||||
int main()
|
||||
{
|
||||
return Engine::Main(TEXT(""));
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user