(include_subdirs unqualified)

(env
	(_
		(flags (:standard -w -3 -w -23 -thread))
	)
)

(library
	(name haxe)
	(libraries
		extc extproc extlib_leftovers ilib javalib mbedtls neko objsize pcre2 camlp-streams swflib ttflib ziplib
		json
		unix str bigarray threads dynlink
		xml-light extlib ptmap sha
		luv
	)
	(modules (:standard \ haxe))
	(preprocess (per_module
		((pps sedlex.ppx) json lexer)
	))
	(wrapped false)
)

(executable
	(name haxe)
	(public_name haxe)
	(package haxe)
	(libraries haxe)
	(modules haxe)
	(link_flags (:include ../lib.sexp))
	; Uncomment to enable bytecode output for ocamldebug support
	; (modes byte)
)