I checked all over, and I can't find an answer (or perhaps I'm not so good at searching). Anyways, is it possible to compile a project to a native library, basically exporting all classes using the language's built-in namespace paradigm and remove the requirement of the compiler's -main <class>
. The use case would be to build a library in Haxe that could be compiled to a language and used like any other class/library native to that language. For example, compiling a PHP library and using it in a non-Haxe PHP project.
Thanks!
# Main class
#-main TestCoreMainSWF
--macro include('com')
--macro include('de')
--macro include('msignal')
# used haxelibs
-lib air3
-lib munit
-lib hamcrest
-lib openfl
-lib lime
# local source directories
-cp ../../src/hx
-cp ../../test/hx
# ActionScript specific
-cp ../../src/hx-as
-cp ../../test/hx-as
# no dead code elimination
-dce no
# private hx field -> protected flash field -> breaks some APIs (msignal)!
# -D swf-protected
# swf settings
-swf-version 12
-swf-header 1024:768:30:FFFFFF
# output file
-swf ../../out/swc/library.swc
Check wighawag post about hxcpp externs and creating a cpp static lib from haxe. Is this what you're looking for?
http://www.wighawag.com/blog/2014/12/Hxcpp-extern
--
To post to this group haxe...@googlegroups.com
http://groups.google.com/group/haxelang?hl=en
---
You received this message because you are subscribed to the Google Groups "Haxe" group.
For more options, visit https://groups.google.com/d/optout.