CEF Build Options

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

CEF Build Options

Postby Oliver » Tue Apr 07, 2020 2:22 am

Hello,

we're using CEF for a very minimalistic use case of simple rendering web pages. Meaning we wouldn't need any additional functionalities like sandboxing, dev tools, printing, spell check etc. For Chromium there is the content module.

Are there build options to strip functionalities from CEF ?

Thank you,
Oliver
Oliver
Newbie
 
Posts: 2
Joined: Tue Apr 07, 2020 2:04 am

Re: CEF Build Options

Postby magreenblatt » Tue Apr 07, 2020 11:39 am

There are no build options that will make a substantial difference in library binary size. You can run without some of the *.pak files. See the README.txt file for details.
magreenblatt
Site Admin
 
Posts: 12408
Joined: Fri May 29, 2009 6:57 pm

Re: CEF Build Options

Postby Oliver » Tue Apr 07, 2020 11:56 am

Ok thank you.

Also a bit related to that. I was wondering on which compilation targets are supported ? I was trying to switch to uwp by setting the GN_DEFINE: target_os=winuwp but i was running into a bunch of errors during generation. Target "win" is working just fine.

Code: Select all
Creating f:\Git\code\chromium_git\chromium\src\out\Release_GN_x86 directory.
ERROR Unresolved dependencies.
//:chromium_builder_asan(//build/toolchain/win:uwp_x86)
  needs //v8:v8_shell(//build/toolchain/win:clang_x86)
//chrome/browser/resources:resources_unitjs_tests_action(//build/toolchain/win:uwp_x86)
  needs //v8:v8_shell(//build/toolchain/win:clang_x86)
//chrome/browser/resources/gaia_auth_host:login_unitjs_tests_action(//build/toolchain/win:uwp_x86)
  needs //v8:v8_shell(//build/toolchain/win:clang_x86)
//chrome/test/data/webui:browser_tests_js_mojo_lite_webui_action(//build/toolchain/win:uwp_x86)
  needs //v8:v8_shell(//build/toolchain/win:clang_x86)
//chrome/test/data/webui:browser_tests_js_webui_action(//build/toolchain/win:uwp_x86)
  needs //v8:v8_shell(//build/toolchain/win:clang_x86)
//chrome/test/data/webui:interactive_ui_tests_js_webui_action(//build/toolchain/win:uwp_x86)
  needs //v8:v8_shell(//build/toolchain/win:clang_x86)
//chrome/test/data/webui:unit_tests_js_action(//build/toolchain/win:uwp_x86)
  needs //v8:v8_shell(//build/toolchain/win:clang_x86)
//tools/v8_context_snapshot:generate_v8_context_snapshot(//build/toolchain/win:uwp_x86)
  needs //tools/v8_context_snapshot:v8_context_snapshot_generator(//build/toolchain/win:clang_x86)
//v8:generate_bytecode_builtins_list(//build/toolchain/win:uwp_x86)
  needs //v8:bytecode_builtins_list_generator(//build/toolchain/win:clang_x86)
//v8:run_gen-regexp-special-case(//build/toolchain/win:uwp_x86)
  needs //v8:gen-regexp-special-case(//build/toolchain/win:clang_x86)
//v8:run_mksnapshot_default(//build/toolchain/win:uwp_x86)
  needs //v8:mksnapshot(//build/toolchain/win:clang_x86)
//v8:run_torque(//build/toolchain/win:uwp_x86)
  needs //v8:torque(//build/toolchain/win:clang_x86)
//v8/tools/debug_helper:run_mkgrokdump(//build/toolchain/win:uwp_x86)
  needs //v8/test/mkgrokdump:mkgrokdump(//build/toolchain/win:clang_x86)

Traceback (most recent call last):
  File "tools\gclient_hook.py", line 146, in <module>
    RunAction(src_dir, cmd)
  File "f:\Git\code\chromium_git\chromium\src\cef\tools\gclient_util.py", line 36, in RunAction
    command, cwd=dir, always_show_header=True, print_stdout=True)
  File "f:\Git\code\depot_tools\gclient_utils.py", line 656, in CheckCallAndFilter
    rv, args, kwargs.get('cwd', None), None, None)


Should what work and I'm just missing something ?

Thank you,
Oliver
Oliver
Newbie
 
Posts: 2
Joined: Tue Apr 07, 2020 2:04 am

Re: CEF Build Options

Postby magreenblatt » Tue Apr 07, 2020 12:01 pm

CEF does not support UWP as a build target. What results do you get from building Chromium (chrome or content_shell target) with target_os=winuwp?
magreenblatt
Site Admin
 
Posts: 12408
Joined: Fri May 29, 2009 6:57 pm


Return to Support Forum

Who is online

Users browsing this forum: Majestic-12 [Bot] and 50 guests