-
Notifications
You must be signed in to change notification settings - Fork 6.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding port file for v8 #2324
Adding port file for v8 #2324
Conversation
Hi, I've tried your port, but there're some issues.
2 logs files are empty, and I'm pretty sure Git.exe is installed and on the path. |
Thanks for trying it out. Before that error, was there an output line that says "Git found: [something]"? Perhaps |
Here is the full output:
Seems it failed to find git, which I've installed with Chocolatey.
|
Can you edit your initial post to contain "Fixes #372"? |
It's weird that suddenly FindGit worked, but there was a new issue:
x64-windows-err.log:
|
ok, I'v found the problem. And there is another problem, looks that this port doesn't copy BTW, does this port support static build? |
I haven't tried static build, but I'll give it a shot. That's how I did it when I had that problem, but it's already in |
I think maybe the depot tools update affected the v8.dll build issue. I wasn't seeing it before, and now I am. |
I think the new depot_tools might have changed something with the |
I see the problem, in portfile.cmake:95, you forgot to add a "\n" at the line end, so the generated args.gn was like:
|
The latest fixes work better for me. the v8.dll problem seemed to be some strange side effect of them updating the depot_tools, so I generated the build files using a different method. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you consider Linux and MacOS?
是否考虑下 Linux 和 MacOS?
ports/v8/portfile.cmake
Outdated
|
||
include(vcpkg_common_functions) | ||
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src) | ||
vcpkg_download_distfile(ARCHIVE |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
depot_tools.zip will change with the version, why not directly git clone?
depot_tools.zip 会随着版本变化,为什么不直接 git clone ?
ports/v8/portfile.cmake
Outdated
vcpkg_execute_required_process( | ||
COMMAND ${SOURCE_PATH}/gclient.bat | ||
WORKING_DIRECTORY ${SOURCE_PATH} | ||
LOGNAME ${TARGET_TRIPLET} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the same as the log name that follows, which can lead to indistinguishable.
这里与后面的日志名称相同,会导致无法区分。
ports/v8/portfile.cmake
Outdated
|
||
message(STATUS "Switching to checkout of v8 version 6.3") | ||
|
||
find_package(Git) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use find_program(GIT NAMES git git.cmd)
, for example vcpkg_apply_patches.cmake
.
使用
find_program(GIT NAMES git git.cmd)
,例如vcpkg_apply_patches.cmake
。
ports/v8/portfile.cmake
Outdated
WORKING_DIRECTORY ${SOURCE_PATH}/v8/v8 | ||
LOGNAME ${TARGET_TRIPLET} | ||
) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sync is required after checkout because checkout does not update submodule to the appropriate version.
checkout 后需要 sync,因为 checkout 并没有将 submodule 更新到合适版本。
Is there any particular reason why this PR is suspended? |
ug, I had a few updates to this PR but ended up making a mess when pushing my change because of how I merged the latest master branch into it. I attempted to force-push to undo the mess but it ended up closing the PR. I have stuck all the changes into dev/philc/tkerwin-master for now until I can sort it all out. |
v8 has a quite convoluted build system.
This is the general sequence of events:
Make sure to initialize the Visual Studio command line environment before running
vcpkg install v8:x64-windows
i.e. run"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
or the equivalent on your systemFixes #372