Code Monkey home page Code Monkey logo

Comments (4)

rakuco avatar rakuco commented on August 22, 2024

The fonts are downloaded as part of the gclient runhooks process, which is why they're not being found in the tarball when you run your build.

I see a few different options depending on what exactly you want to do with content_shell:

  1. Add "check out depot_tools" and "run gclient runhooks" as steps to your recipe. The downside is that you will also need to create a .gclient file and a lot more hooks will be run (e.g. the one that downloads clang).
  2. Check out depot_tools, but run the hook that downloads fonts manually (e.g. you invoke download_from_google_storage in the recipe).
  3. Provide the fonts yourself.
  4. Patch the required GN files so that those fonts aren't required. You might need to change content_shell as well since I think it looks for those fonts in order to run (or at least when running in layout test mode).

Is there anything in specific that you need from content_shell that the chrome binary can't provide?

from meta-browser.

joone avatar joone commented on August 22, 2024

I tried the first and second options, but it doesn't work well under proxy environment. I could set proxy, but checking out depot_tools and extra works make the script complicated. The third option works fine, but it's a temporary solution. I think that the fourth option is best.

We could only run content_shell with ozoen-gbm when toolkit_views = false, but chromium is not built with the build flag. Can we add ozone-gbm recipe as part of Chromium recipe even if it only runs content_shell?

from meta-browser.

rakuco avatar rakuco commented on August 22, 2024

We could only run content_shell with ozoen-gbm when toolkit_views = false, but chromium is not built with the build flag. Can we add ozone-gbm recipe as part of Chromium recipe even if it only runs content_shell?

At least for now, this looks like downstream work and I don't see the need to add this to master just yet (and keeping a .bbappend around should be fairly easy). We can revisit this once the work has matured and stabilized though.

from meta-browser.

joone avatar joone commented on August 22, 2024

Okay, thanks!

from meta-browser.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.