@@ -58,24 +58,15 @@ private bool LoadV8(TargetInfo Target)
58
58
{
59
59
if ( ( Target . Platform == UnrealTargetPlatform . Win64 ) || ( Target . Platform == UnrealTargetPlatform . Win32 ) )
60
60
{
61
- string LibrariesPath = Path . Combine ( ThirdPartyPath , "v8" , "lib" , "Windows" ) ;
62
-
63
- if ( WindowsPlatform . Compiler == WindowsCompiler . VisualStudio2015 )
64
- {
65
- LibrariesPath = Path . Combine ( LibrariesPath , "MSVC2015" ) ;
66
- }
67
- else
68
- {
69
- LibrariesPath = Path . Combine ( LibrariesPath , "MSVC2013" ) ;
70
- }
61
+ string LibrariesPath = Path . Combine ( ThirdPartyPath , "v8" , "lib" ) ;
71
62
72
63
if ( Target . Platform == UnrealTargetPlatform . Win64 )
73
64
{
74
- LibrariesPath = Path . Combine ( LibrariesPath , "x64 " ) ;
65
+ LibrariesPath = Path . Combine ( LibrariesPath , "Win64 " ) ;
75
66
}
76
67
else
77
- {
78
- LibrariesPath = Path . Combine ( LibrariesPath , "x86 " ) ;
68
+ {
69
+ LibrariesPath = Path . Combine ( LibrariesPath , "Win32 " ) ;
79
70
}
80
71
81
72
if ( Target . Configuration == UnrealTargetConfiguration . Debug )
@@ -85,7 +76,7 @@ private bool LoadV8(TargetInfo Target)
85
76
else
86
77
{
87
78
LibrariesPath = Path . Combine ( LibrariesPath , "Release" ) ;
88
- }
79
+ }
89
80
90
81
PublicAdditionalLibraries . Add ( Path . Combine ( LibrariesPath , "v8_base_0.lib" ) ) ;
91
82
PublicAdditionalLibraries . Add ( Path . Combine ( LibrariesPath , "v8_base_1.lib" ) ) ;
@@ -96,7 +87,7 @@ private bool LoadV8(TargetInfo Target)
96
87
PublicAdditionalLibraries . Add ( Path . Combine ( LibrariesPath , "v8_nosnapshot.lib" ) ) ;
97
88
98
89
Definitions . Add ( string . Format ( "WITH_V8=1" ) ) ;
99
- Definitions . Add ( string . Format ( "WITH_V8_FAST_CALL=1 " ) ) ;
90
+ Definitions . Add ( string . Format ( "WITH_V8_FAST_CALL=0 " ) ) ;
100
91
Definitions . Add ( string . Format ( "WITH_JSWEBSOCKET=1" ) ) ;
101
92
102
93
return true ;
@@ -120,6 +111,23 @@ private bool LoadV8(TargetInfo Target)
120
111
121
112
return true ;
122
113
}
114
+ else if ( Target . Platform == UnrealTargetPlatform . Linux )
115
+ {
116
+ string LibrariesPath = Path . Combine ( ThirdPartyPath , "v8" , "lib" , "Linux" ) ;
117
+ PublicLibraryPaths . Add ( Path . Combine ( LibrariesPath , "x64" ) ) ;
118
+
119
+ PublicAdditionalLibraries . Add ( "v8_base" ) ;
120
+ PublicAdditionalLibraries . Add ( "v8_libbase" ) ;
121
+ PublicAdditionalLibraries . Add ( "v8_libplatform" ) ;
122
+ PublicAdditionalLibraries . Add ( "v8_nosnapshot" ) ;
123
+ RuntimeDependencies . Add ( new RuntimeDependency ( "$(GameDir)/Plugins/UnrealJS/ThirdParty/v8/lib/Linux/x64/libv8.so" ) ) ;
124
+
125
+ Definitions . Add ( string . Format ( "WITH_V8=1" ) ) ;
126
+ Definitions . Add ( string . Format ( "WITH_V8_FAST_CALL=0" ) ) ;
127
+ Definitions . Add ( string . Format ( "WITH_JSWEBSOCKET=0" ) ) ;
128
+
129
+ return true ;
130
+ }
123
131
else if ( Target . Platform == UnrealTargetPlatform . Mac )
124
132
{
125
133
string LibrariesPath = Path . Combine ( ThirdPartyPath , "v8" , "lib" , "Mac" , "x64" ) ;
0 commit comments