On 1/19/16, 11:54 AM, "OK" <okrue...@edscha.com> wrote:
> >To be sure I'm on the right track: >Using the -sdk-js-lib option (Called from my FlexJS project) tells the >compiler to include the cross-compiled .js files that are located inside >the >Flex library project, right? Yes. >But I don't understand the relation to the .swc file. After running >"External tools (Flex JS JS COMPC)" >on the library project the .js files are created successfully but there's >no >.swc file. Using "Project->Clean..." creates a .swc that works with the >flash version but it seems not with FlexJS. Right, the "FlexJS CompC" external tool doesn't currently know how to package the results into a SWC. We currently package the .js files by running the regular library project build but with include-file options that point to the output JS files, but it expects the output JS files to be in a js/out folder. The advantage of packaging the .JS files into the .SWC is that you then don't need any additional -sdk-js-lib options in your application build settings. But you are correct that a clean will destroy the .JS files so unless you use Ant, it might be a pain to package the .JS fiies into the SWC. >Is it sufficient for the sdk-js-lib option to pass the "root folder" of >the >.js files? In fact, that's what you have to do and is probably the key problem. The compiler is looking at the package name and trying to map it to folders, so I think you want to stop and "bin" in your -sdk-js-lib parameter. It should figure out org/puremvc/as3 from there. Hope that works, Alex