chamberlainpi
chamberlainpi

Reputation: 5241

How to exclude classes when compiling SWC from Haxe?

This question is specifically for creating SWCs from Haxe in FlashDevelop (not from AS3 code).

Is there a compiler argument to specify some classes to NOT be compiled within a SWC? And if so, is it possible to get rid of "Main", "Lib", etc. (the most common classes embedded in the SWC by default) while compiling everything else?

Upvotes: 1

Views: 646

Answers (1)

deltaluca
deltaluca

Reputation: 1652

For Nape I compile the swcs like:

haxe --macro "include('nape')" --macro "include('zpp_nape')" ...

with no -main flag, this builds a .swc that includes only the classes from the nape and zpp_nape packages.

This will still include the haxe std library, but no-one has complained so far.

Upvotes: 2

Related Questions