Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
onlyoffice_core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
onlyoffice_core
Commits
cf4d74a7
Commit
cf4d74a7
authored
Oct 11, 2017
by
Oleg Korshul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
v8 6.0 windows
parent
90c06332
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
23 additions
and
42 deletions
+23
-42
Common/3dParty/v8/build.bat
Common/3dParty/v8/build.bat
+9
-4
Common/3dParty/v8/change_projects.bat
Common/3dParty/v8/change_projects.bat
+0
-34
Common/3dParty/v8/fetch.bat
Common/3dParty/v8/fetch.bat
+6
-1
Common/3dParty/v8/fix-depot_tools.ps1
Common/3dParty/v8/fix-depot_tools.ps1
+1
-1
Common/3dParty/v8/fix-static_crt.ps1
Common/3dParty/v8/fix-static_crt.ps1
+2
-0
Common/3dParty/v8/v8.pri
Common/3dParty/v8/v8.pri
+5
-2
No files found.
Common/3dParty/v8/build.bat
View file @
cf4d74a7
...
...
@@ -2,9 +2,14 @@ SET SCRIPTPATH=%~dp0
CD
/D
%~dp0
SET
PATH
=
%SCRIPTPATH%
depot_tools
;
%PATH%
set
DEPOT_TOOLSPWIN_TOOLCHAIN
=
0
SET
DEPOT_TOOLSPWIN_TOOLCHAIN
=
0
SET
GYP_MSVS_VERSION
=
2015
cd
v8
call
python
tools
/dev/v
8
gen
.py
x64
.release
call
gn
gen
out
.gn/x64.release
-
-args
=
'is_debug=false target_cpu="x64" v8_target_cpu="x64" v8_static_library=true is_component_build=false v8_use_snapshot=false is_clang=false use_sysroot=false'
call
ninja
-C
out
.gn/x64.release
\ No newline at end of file
call
gn
gen
out
.gn/win_64
-
-args
=
"is_debug=false target_cpu=\"
x64
\
" v8_target_cpu=\"
x64
\
" v8_static_library=true is_component_build=false v8_use_snapshot=false is_clang=false"
cd
../
call
powershell
-File
.\fix
-static
_crt.ps1
cd
v8
call
ninja
-C
out
.gn/win_64
\ No newline at end of file
Common/3dParty/v8/change_projects.bat
deleted
100644 → 0
View file @
90c06332
SET
SCRIPTPATH
=
%~dp0
CD
/D
%~dp0
cd
"
%SCRIPTPATH%
v8\tools\gyp"
call
powershell
-Command
"(gc v8_base_0.vcxproj) -replace '<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>', '<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>' | Out-File -Encoding 'UTF8' v8_base_0.vcxproj"
call
powershell
-Command
"(gc v8_base_0.vcxproj) -replace '<RuntimeLibrary>MultiThreaded</RuntimeLibrary>', '<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>' | Out-File -Encoding 'UTF8' v8_base_0.vcxproj"
call
powershell
-Command
"(gc v8_base_1.vcxproj) -replace '<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>', '<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>' | Out-File -Encoding 'UTF8' v8_base_1.vcxproj"
call
powershell
-Command
"(gc v8_base_1.vcxproj) -replace '<RuntimeLibrary>MultiThreaded</RuntimeLibrary>', '<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>' | Out-File -Encoding 'UTF8' v8_base_1.vcxproj"
call
powershell
-Command
"(gc v8_base_2.vcxproj) -replace '<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>', '<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>' | Out-File -Encoding 'UTF8' v8_base_2.vcxproj"
call
powershell
-Command
"(gc v8_base_2.vcxproj) -replace '<RuntimeLibrary>MultiThreaded</RuntimeLibrary>', '<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>' | Out-File -Encoding 'UTF8' v8_base_2.vcxproj"
call
powershell
-Command
"(gc v8_base_3.vcxproj) -replace '<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>', '<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>' | Out-File -Encoding 'UTF8' v8_base_3.vcxproj"
call
powershell
-Command
"(gc v8_base_3.vcxproj) -replace '<RuntimeLibrary>MultiThreaded</RuntimeLibrary>', '<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>' | Out-File -Encoding 'UTF8' v8_base_3.vcxproj"
call
powershell
-Command
"(gc v8_libbase.vcxproj) -replace '<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>', '<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>' | Out-File -Encoding 'UTF8' v8_libbase.vcxproj"
call
powershell
-Command
"(gc v8_libbase.vcxproj) -replace '<RuntimeLibrary>MultiThreaded</RuntimeLibrary>', '<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>' | Out-File -Encoding 'UTF8' v8_libbase.vcxproj"
call
powershell
-Command
"(gc v8_libplatform.vcxproj) -replace '<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>', '<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>' | Out-File -Encoding 'UTF8' v8_libplatform.vcxproj"
call
powershell
-Command
"(gc v8_libplatform.vcxproj) -replace '<RuntimeLibrary>MultiThreaded</RuntimeLibrary>', '<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>' | Out-File -Encoding 'UTF8' v8_libplatform.vcxproj"
call
powershell
-Command
"(gc v8_nosnapshot.vcxproj) -replace '<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>', '<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>' | Out-File -Encoding 'UTF8' v8_nosnapshot.vcxproj"
call
powershell
-Command
"(gc v8_nosnapshot.vcxproj) -replace '<RuntimeLibrary>MultiThreaded</RuntimeLibrary>', '<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>' | Out-File -Encoding 'UTF8' v8_nosnapshot.vcxproj"
call
powershell
-Command
"(gc mksnapshot.vcxproj) -replace '<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>', '<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>' | Out-File -Encoding 'UTF8' mksnapshot.vcxproj"
call
powershell
-Command
"(gc mksnapshot.vcxproj) -replace '<RuntimeLibrary>MultiThreaded</RuntimeLibrary>', '<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>' | Out-File -Encoding 'UTF8' mksnapshot.vcxproj"
cd
"
%SCRIPTPATH%
v8\third_party\icu"
call
powershell
-Command
"(gc icui18n.vcxproj) -replace '<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>', '<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>' | Out-File -Encoding 'UTF8' icui18n.vcxproj"
call
powershell
-Command
"(gc icui18n.vcxproj) -replace '<RuntimeLibrary>MultiThreaded</RuntimeLibrary>', '<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>' | Out-File -Encoding 'UTF8' icui18n.vcxproj"
call
powershell
-Command
"(gc icuuc.vcxproj) -replace '<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>', '<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>' | Out-File -Encoding 'UTF8' icuuc.vcxproj"
call
powershell
-Command
"(gc icuuc.vcxproj) -replace '<RuntimeLibrary>MultiThreaded</RuntimeLibrary>', '<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>' | Out-File -Encoding 'UTF8' icuuc.vcxproj"
Common/3dParty/v8/fetch.bat
View file @
cf4d74a7
SET
SCRIPTPATH
=
%~dp0
CD
/D
%~dp0
SET
DEPOT_TOOLSPWIN_TOOLCHAIN
=
0
SET
GYP_MSVS_VERSION
=
2015
if
exist
"depot_tools"
(
echo
"depot_tools already fetched"
)
else
(
call
git
clone
https
://chromium.googlesource.com/chromium/tools/depot_tools.git
call
powershell
-File
.\fix
-depot
_tools.ps1
)
SET
PATH
=
%SCRIPTPATH%
depot_tools
;
%PATH%
call
gclient
call
./depot_tools/fetch
v8
cd
v8
call
git
checkout
-b
6
.0
-t
branch
-heads
/6.0
SET
DEPOT_TOOLSPWIN_TOOLCHAIN
=
0
SET
GYP_MSVS_VERSION
=
2015
call
gclient
sync
Common/3dParty/v8/fix-depot_tools.ps1
View file @
cf4d74a7
$gclient_path
=
"depot_tools\gclient.bat"
$fetch_path
=
"depot_tools\fetch.bat"
(
Get-Content
$gclient_path
)
|
ForEach-Object
{
$_
-replace
"^(
`"
%~dp0python
`"
)"
,
"call
$
&"
}
|
Set-Content
$gclient_path
(
Get-Content
$fetch_path
)
|
ForEach-Object
{
$_
-replace
"^(%~dp0python)"
,
"call
$
&"
}
|
Set-Content
$fetch_path
(
Get-Content
$fetch_path
)
|
ForEach-Object
{
$_
-replace
"^(%~dp0python)"
,
"call
$
&"
}
|
Set-Content
$fetch_path
\ No newline at end of file
Common/3dParty/v8/fix-static_crt.ps1
0 → 100644
View file @
cf4d74a7
$gn_path
=
"v8\build\config\win\BUILD.gn"
(
Get-Content
$gn_path
)
|
ForEach-Object
{
$_
-replace
":static_crt"
,
":dynamic_crt"
}
|
Set-Content
$gn_path
Common/3dParty/v8/v8.pri
View file @
cf4d74a7
...
...
@@ -6,14 +6,17 @@ INCLUDEPATH += \
$$CORE_V8_PATH_INCLUDE/include
core_windows {
CORE_V8_PATH_LIBS = $$CORE_V8_PATH_INCLUDE/out.gn/$$CORE_BUILDS_PLATFORM_PREFIX_$$CORE_BUILDS_CONFIGURATION_PREFIX/obj
#
CORE_V8_PATH_LIBS = $$CORE_V8_PATH_INCLUDE/out.gn/$$CORE_BUILDS_PLATFORM_PREFIX_$$CORE_BUILDS_CONFIGURATION_PREFIX/obj
LIBS += -L$$CORE_V8_PATH_LIBS -lv8_base
_0 -lv8_base_1 -lv8_base_2 -lv8_base_3 -lv8_libbase -lv8_libplatform
-lv8_snapshot -lv8_libsampler
LIBS += -L$$CORE_V8_PATH_LIBS -lv8_base
-lv8_libplatform -lv8_libbase
-lv8_snapshot -lv8_libsampler
LIBS += -L$$CORE_V8_PATH_LIBS/third_party/icu -licui18n -licuuc
LIBS += -lwinmm
LIBS += -ladvapi32
LIBS += -lShell32
LIBS += -lDbgHelp
LIBS += -lShlwapi
}
core_linux {
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment