UWP support

43 views
Skip to first unread message

Tekman

unread,
Mar 13, 2020, 8:47:48 PM3/13/20
to v8-users
Hi,

Is it possible to build V8 with UWP (Windows Store App) support? I found a couple of references to "winuwp" in BUILD.GN, but trying to build with target_os="winuwp" produces an error:

gn gen .\v8\out\x64\UWP-Debug --args='v8_enable_i18n_support=false is_component_build=false v8_monolithic=true v8_use_external_startup_data=false treat_warnings_as_errors=false use_custom_libcxx=false target_os=""winuwp"" target_cpu=""x64"" v8_enable_pointer_compression=true is_clang=false'
ERROR 
Unresolved dependencies.
//:generate_bytecode_builtins_list(//build/toolchain/win:uwp_x64)
  needs 
//:bytecode_builtins_list_generator(//build/toolchain/win:clang_x64)
//:run_mksnapshot_default(//build/toolchain/win:uwp_x64)
  needs 
//:mksnapshot(//build/toolchain/win:clang_x64)
//:run_torque(//build/toolchain/win:uwp_x64)
  needs 
//:torque(//build/toolchain/win:clang_x64)
//tools/debug_helper:run_mkgrokdump(//build/toolchain/win:uwp_x64)
  needs 
//test/mkgrokdump:mkgrokdump(//build/toolchain/win:clang_x64)

Any tips are appreciated.
Thank you!

chopeace

unread,
Mar 14, 2020, 8:06:47 PM3/14/20
to v8-users
You can see the possible target os on your platform by this : gn help target_os.
In my case, for example, the command over shows the list like below :

Possible values
  - "android"
  - "chromeos"
  - "ios"
  - "linux"
  - "nacl"
  - "mac"
  - "win"

2020년 3월 14일 토요일 오전 9시 47분 48초 UTC+9, Tekman 님의 말:

Tekman

unread,
Mar 16, 2020, 6:32:35 PM3/16/20
to v8-users
I see the same thing, but the code for winuwp obviously exists throughout the various python and gn build scripts.

For example, if I pass target_os="winuwp" target_cpu="arm64" that succeeds and produces an output folder with a ninja build script (the code doesn't actually build, but clearly all the build scripts accept the inputs as valid).

I ran the win32 build of v8.dll through WACK and most of the forbidden APIs come from the CRT / STL functions not using the "Store App" version of the VCRuntime. I presume V8 has supported UWP at some point (or is still supporting it with some undocumented missing pieces). If anyone tried embedding V8 in a UWP application with some success, any tips are appreciated.

Thank you!
Reply all
Reply to author
Forward
0 new messages