How can I force Haxe to compile all source classes? -


i'm finding when building haxe projects code referenced main or class indirectly/directly referenced in main compiled. how can force haxe compile source .hx files target language? i've tried using dce flags (no, std, , full), none of them seem make difference. working on 3.1.3 haxe version.

update: using macro described in answer below, solution create root level package library building , include package name in macro compiler option include , sub-packages, ensuring haxe compiles classes, regardless of being referenced directly or indirectly through main.

an example of be, if root level package name rootpackage, add additional compiler option so:

--macro include('rootpackage', true) 

i guess you're using haxe 3.1.3 instead of 3.03, don't have such release.

add --macro include(...) in hxml.

doc: http://api.haxe.org/haxe/macro/compiler.html#include

remember use single quotes ('string') instead of double quotes ("string") params.


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -