Skip to content

Setting the main class

devboy edited this page Apr 4, 2012 · 1 revision

To set the Main class of your project, simply assign it to compile.options.main as a String.

define "MyProject" do
  compile.using :hxswf # Or any other haXe compiler
  compile.options.main = "mypackage.MyMainClass"
end
Clone this wiki locally