Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

-js-root                       Tells ExternC to generate JS instead of AS and place it in the specified folder
-as-root  Tells ExternC to generate AS and place it in the specified folder
-class-to-function  Name of JS classes to output as a Function
-external  Files of externs
-external-externs  Not sure what this is forexterns Similar to -external-library-path for externs. Basically, a way to specify some types that are needed at compile time without including them in the final output.
-exclude (class, name)  Name of method in class to skip
-field-exclude (class, field)  Name of var in class to skip
-class-exclude (class)  Name of class to skip
-named-module  Not sure about this one either.

About js-root:

ExternC parses most JS, including some JS not already formatted as GCC Externs.  Normally it outputs AS.  But sometimes we want it to output true GCC Externs because otherwise GCC will complain.  Eventually, ExternC could parse any JS and be used to generate Externs.