Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9273755
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T16:11:17+00:00 2026-06-18T16:11:17+00:00

I have to admit I’m new to WebKit so asking the right question is

  • 0

I have to admit I’m new to WebKit so asking the right question is not that easy.

What I have is the WebKit from WebKit.org. It updates, builds, I can debug – I got it working on Windows.

What I’m interested in is how to generate the stub files for some IDL files that I have. I understand the high level picture:

  1. Write the interfaces using the IDL language
  2. Generate stub files (.h & .cpp files).
  3. Add your code in the previously generated stub files.

I’ve specified my IDL files in “WebCore.gypi”. I’ve specified then the path to my IDL files in “WebCore.gyp”. Apparently this is not enough as building the WebKit doesn’t generate the stub files for my IDL files.

I’ve suspected at one point that maybe my IDL files contain undefined attributes but everything seems fine.

Any tips? Also, do you know of any explicit “How to”?

Thanks!

Edit 130206:

I dug some more and apparently WebKit interacts with several build systems; for example GYP is for Chromium. I honestly didn’t expect that complication so I didn’t mention I needed to generate binding for Safari which has a different build system and as such its own unique “how to”.
So, the question would now be, how does the Safari build system work? Where do I need to place my IDL files? Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T16:11:18+00:00Added an answer on June 18, 2026 at 4:11 pm

    Well, I can tell you what helped me. Unfortunately I still couldn’t find any documentation so a lot of trial and error was involved.

    If you want to generate JS bindings for Safari you have to:

    1. Modify ‘DerivedSources.make’.
    2. Make sure your IDL files are correct.

    ‘DerivedSources.make’ can be found in ‘\WebKit\Source\WebCore\’. Inside this make file you have to specify the following:

    1. The path to your folder (containing the IDL files) in ‘VPATH’.
    2. Each and all of your IDL files in ‘BINDINGS_IDLS’.
    3. Again the path to your folder in ‘IDL_INCLUDES’.

    Build WebKit. If after this step you still can’t see your JSXXX.h and JSXXX.cpp files (genererated for each XXX.IDL file) than you have to check your IDL files.

    In my case nothing was generated after the build step and I got an error like this:

    6>Next token should be implements, but MyModule at module MyModule {
    6> IDLParser.pm:750 at /WebKit/Source/WebCore/bindings/scripts//IDLParser.pm line 129.
    6> in /WebKit/Source/WebCore/MyFolder/XXX.idl at /WebKit/Source/WebCore/bindings/scripts//IDLParser.pm line 173.
    6>/WebKit/Source/WebCore/DerivedSources.make:1024: recipe for target `XXX.h’ failed
    6>make: * [XXX.h] Error 255

    The problem was that each of the IDL interfaces where enclosed in a module (namespace) called MyModule as you can see above. I’ve removed all this modules (keeping the interfaces of course) and at the next build everything was generated just fine. Using your own module name seems to not be as straight-forward as enclosing the IDL interfaces with it; most probably you’d be forced to write custom bindings to accomplish this (which is not recommended by the WebKit team).

    So that was it for me, hope it’s also helpful to you.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have to admit that I'm completely new to R. Thus, my question may
I have to admit that I'm new to Java and Android. db4o seems to
first of all, I have to admit that I am new to Perl, so
I have to admit that I'm rather new to C++ and Boost Statecharts. I
I have to admit that having not even tried to code this myself this
I have to admit in advance that I'm quite new to MVC, I've been
ok, i have to admit that until now i still do not know the
I have to admit that most of the win32 api stuff I am not
After looking around (for not terribly long I have to admit) I wonder if
I admit that I have almost none experience of unittesting. I did a try

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.