Jewel will probably need JSRoyale
On 9/11/18, 1:31 PM, "Carlos Rovira" <[email protected]> wrote:
That's oool Josh!, I'll try to try "JS" instead of "JSRoyale", that seems
more correct.
thanks! :)
El mar., 11 sept. 2018 a las 19:21, Josh Tynjala (<[email protected]>)
escribió:
> Hey Piotr,
>
> There's something a little strange in your compiler options that you
> should probably fix:
>
> You're specifying JSRoyale and js-config.xml together, but these two
> aren't necessarily compatible. Here's what you have in your compiler
> options:
>
> -compiler.targets=SWF,JSRoyale
> -load-config=d:\royale_nightly_js_swf\frameworks\js-config.xml
>
> However, it should either be this:
>
> -compiler.targets=SWF,JSRoyale
> -load-config=d:\royale_nightly_js_swf\frameworks\royale-config.xml
>
> or maybe this (depending on if you want Royale components or pure JS):
>
> -compiler.targets=SWF,JS
> -load-config=d:\royale_nightly_js_swf\frameworks\js-config.xml
>
> Basically, you use JSRoyale with royale-config.xml, or you use JS with
> js-config.xml. The JSRoyale and JS targets produce very similar output,
but
> it's best not to assume that they're exactly the same in all cases.
>
> (As a side note, it's worth mentioning that there's also the JSNode target
> that's meant to work with node-config.xml. JSNode also produces different
> output than JSRoyale or JS because it generates code for Node.js)
>
> One last thing. In order to use -compiler.targets=SWF,JS to build a SWC,
> you'll need my compiler changes from yesterday. For some reason, that was
> throwing an exception, while -compiler.targets=SWF,JSRoyale did not. I
> suspect that this may be why you were using JSRoyale instead of JS, but
now
> JS should work too!
>
> - Josh
>
> On 2018/09/11 09:45:52, Piotr Zarzycki <[email protected]> wrote:
> > Hi Guys,
> >
> > I'm having difficulties with using created Royale SWC in some project. I
> > have two projects. (I've uploaded them on onedrive so you can try it
> > yourself).
> >
> > Using SWF version of prepared swc I'm able to build project with
> > compiler.targets=SWF. Unfortunately using JS version of that SWC I'm not
> > able to build project with it. [1]
> >
> > 1. Library itself [2] - It contains configurations
compile-swf-config.xml
> > and compile-js-config.xml. Folder "bin" has swc JS and SWF version.
> >
> > 2. Consumer of library [3] - This one is configured with Moonshine and
> > VSCode.
> >
> > I'm building JS and SWF version of SWC using following command lines [4]
> >
> > Does anyone is seeing what could be wrong ? Those command lines [4] are
> > based on how Royale is building swcs Basic, Jewel etc.
> >
> > [1]
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpaste.apache.org%2FtvhY&data=02%7C01%7Caharui%40adobe.com%7C0269d62e776e469999cc08d618259024%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636722946940896698&sdata=B2094%2FbUr5UagOsLyev0GvyGNfG9mOGHTAcHwoAXofo%3D&reserved=0
> > [2]
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2F1drv.ms%2Fu%2Fs!ApVpLyjpHDC2hZwM9OY5sNinrirEvQ&data=02%7C01%7Caharui%40adobe.com%7C0269d62e776e469999cc08d618259024%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636722946940906702&sdata=di98xHqUTNgQpS1fO7BQXzIRWIyx2OGBCVJl93mh5IQ%3D&reserved=0
> > [3]
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2F1drv.ms%2Fu%2Fs!ApVpLyjpHDC2hZwNgXaX_G_qZip39g&data=02%7C01%7Caharui%40adobe.com%7C0269d62e776e469999cc08d618259024%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636722946940906702&sdata=BK35o1j4c4gLQFQ1fU0VBXJzL22D5VKG13SKTPEHDdQ%3D&reserved=0
> > [4]
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpaste.apache.org%2FOtDR&data=02%7C01%7Caharui%40adobe.com%7C0269d62e776e469999cc08d618259024%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636722946940906702&sdata=tLE%2B2741ffC30d3Nz7MW%2BjjNhyicr%2B38%2BcVH155On4E%3D&reserved=0
> >
> > Thanks,
> > --
> >
> > Piotr Zarzycki
> >
> > Patreon:
*https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.patreon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com%7C0269d62e776e469999cc08d618259024%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636722946940906702&sdata=i8vsvL1leBKljSGLnJ7RF7%2FzBsAjRd5HrNV1HG51ntw%3D&reserved=0
> >
<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.patreon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com%7C0269d62e776e469999cc08d618259024%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636722946940906702&sdata=i8vsvL1leBKljSGLnJ7RF7%2FzBsAjRd5HrNV1HG51ntw%3D&reserved=0>*
> >
>
--
Carlos Rovira
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fabout.me%2Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%7C0269d62e776e469999cc08d618259024%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636722946940906702&sdata=b%2FBTw9QPdidBGwPDOLEwxTbjasQtWotNLVwbm%2Bv4K14%3D&reserved=0