[fpc-pascal] pas2js Webgl unit committed

Mattias Gaertner nc-gaertnma at netcologne.de
Wed May 2 12:28:01 CEST 2018


On Wed, 2 May 2018 16:28:10 +0700
Ryan Joseph <ryan at thealchemistguild.com> wrote:

> > On May 2, 2018, at 2:08 PM, Michael Van Canneyt <michael at freepascal.org> wrote:
> > 
> > Yes. the fpmkunit needs to be the latest version, for the AddLibrary call. I will see if I can work around it.  
> 
> So I need to build the entire compiler and I get pas2js in the end? I didn’t realize it was built on the entire FPC compiler but I guess that makes sense.

pas2js can be built with the released fpc 3.0.4 too.
The problem is the fpmake files as Michael pointed out. They should be
adapted to support fpc 3.0.4.

 
> Just for fun I made a PHP script to parse that .idl file. :) Not sure if it works on other files but it only took a few hours and seems to work ok. Should be easy to hack with.
> 
> https://github.com/genericptr/pas2js-IDL-parser
> 
> php pas2js_idl_parser.php /Users/ryanjoseph/Downloads/webgl.idl 
> 
> ========
> 
> unit webgl;

What is the difference to the existing webgl.pas?

Mattias



More information about the fpc-pascal mailing list