简体   繁体   中英

Do Haxe .hxml build configs support variables?

My Haxe build has several targets and I have to manually c/p changes to each target. Can .hxml files handle variables?

No, but you can reduce duplication with --each and --next :

-main Example
-lib examplelib

--each
-neko bin/example.n

--next
-java bin/java

--next
-cpp bin/cpp32
-D HXCPP_M32

--next
-cpp bin/cpp64
-D HXCPP_M64

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM