HaxeFoundation / haxe.org-comments

Repository to collect comments of our haxe.org websites
2 stars 2 forks source link

[haxe.org/manual] HXML #11

Open utterances-bot opened 5 years ago

utterances-bot commented 5 years ago

HXML - Haxe - The Cross-platform Toolkit

Haxe is an open source toolkit based on a modern, high level, strictly typed programming language.

https://haxe.org/manual/compiler-usage-hxml.html

T1mL3arn commented 5 years ago

There is a case when library's directory's hxml files can override your project's hxml during compilation. To avoid this include your -lib library before -cp src -main Main. See this haxe#7683 issue for more details.

dreamlover commented 4 years ago

Does two dashes '--' have to be replaced by '-' in HXML file?

RealyUniqueName commented 4 years ago

No

JonasSonn commented 3 years ago

I think it would be a great idea to clarify that using '--run \ [args...]' has a different syntax in the command line compared to HXML files.

CMD is as expected: --run Main arg1 arg2 arg3 HXML arguments should be written at new lines:

--run RunTests
arg1
arg2
arg3

I could not find any resources on it and it might not obvious for a lot of people.

terraquad commented 1 year ago

Can you use definitions (--define <name>=<val>) inside of HXML? If yes, how? Do you write something like --cpp Build/$PLATFORM/cpp? Thank you!

T1mL3arn commented 10 months ago

@terraquad You can use -D <var[=value]> (or --define <var[=value]>. Also see this and this.