define.json 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865
  1. [
  2. {
  3. "name": "AbsolutePath",
  4. "define": "absolute-path",
  5. "doc": "Print absolute file path in trace output."
  6. },
  7. {
  8. "name": "AdvancedTelemetry",
  9. "define": "advanced-telemetry",
  10. "doc": "Allow the SWF to be measured with Monocle tool.",
  11. "platforms": ["flash"],
  12. "deprecated": "The flash target will be removed for Haxe 5"
  13. },
  14. {
  15. "name": "AnalyzerOptimize",
  16. "define": "analyzer-optimize",
  17. "doc": "Perform advanced optimizations."
  18. },
  19. {
  20. "name": "AnalyzerTimes",
  21. "define": "times.analyzer",
  22. "deprecatedDefine": "analyzer-times",
  23. "doc": "Record detailed timers for the analyzer",
  24. "params": ["level: 0 | 1 | 2"]
  25. },
  26. {
  27. "name": "AnnotateSource",
  28. "define": "annotate-source",
  29. "doc": "Add additional comments to generated source code.",
  30. "platforms": ["cpp"]
  31. },
  32. {
  33. "name": "CheckXmlProxy",
  34. "define": "check-xml-proxy",
  35. "doc": "Check the used fields of the XML proxy."
  36. },
  37. {
  38. "name": "CoreApi",
  39. "define": "core-api",
  40. "doc": "Defined in the core API context."
  41. },
  42. {
  43. "name": "Cppia",
  44. "define": "cppia",
  45. "doc": "Generate cpp instruction assembly."
  46. },
  47. {
  48. "name": "NoCppiaAst",
  49. "define": "nocppiaast",
  50. "doc": "Use legacy cppia generation."
  51. },
  52. {
  53. "name": "Dce",
  54. "define": "dce",
  55. "doc": "Set the dead code elimination mode. (default: std)",
  56. "params": ["mode: std | full | no"],
  57. "default": "std",
  58. "links": ["https://haxe.org/manual/cr-dce.html"]
  59. },
  60. {
  61. "name": "DceDebug",
  62. "define": "dce-debug",
  63. "doc": "Show DCE log.",
  64. "links": ["https://haxe.org/manual/cr-dce.html"]
  65. },
  66. {
  67. "name": "Debug",
  68. "define": "debug",
  69. "doc": "Activated when compiling with -debug."
  70. },
  71. {
  72. "name": "DisableHxbCache",
  73. "define": "disable-hxb-cache",
  74. "doc": "Use in-memory cache instead of hxb powered cache."
  75. },
  76. {
  77. "name": "DisableHxbOptimizations",
  78. "define": "disable-hxb-optimizations",
  79. "doc": "Disable shortcuts used by hxb cache to speed up display requests."
  80. },
  81. {
  82. "name": "DisableUnicodeStrings",
  83. "define": "disable-unicode-strings",
  84. "doc": "Disable Unicode support in `String` type.",
  85. "platforms": ["cpp"]
  86. },
  87. {
  88. "name": "Display",
  89. "define": "display",
  90. "doc": "Activated during completion.",
  91. "links": ["https://haxe.org/manual/cr-completion.html"]
  92. },
  93. {
  94. "name": "DisplayStdin",
  95. "define": "display-stdin",
  96. "doc": "Read the contents of a file specified in `--display` from standard input."
  97. },
  98. {
  99. "name": "DllExport",
  100. "define": "dll-export",
  101. "doc": "GenCPP experimental linking.",
  102. "platforms": ["cpp"]
  103. },
  104. {
  105. "name": "DocGen",
  106. "define": "doc-gen",
  107. "doc": "Do not perform any removal/change in order to correctly generate documentation."
  108. },
  109. {
  110. "name": "Dump",
  111. "define": "dump",
  112. "doc": "Dump typed AST in dump subdirectory using specified mode or non-prettified default.",
  113. "params": ["mode: pretty | record | position | legacy"]
  114. },
  115. {
  116. "name": "DumpPath",
  117. "define": "dump-path",
  118. "doc": "Path to generate dumps to (default: \"dump\").",
  119. "default": "dump",
  120. "params": ["path"]
  121. },
  122. {
  123. "name": "DumpDependencies",
  124. "define": "dump-dependencies",
  125. "doc": "Dump the classes dependencies in a dump subdirectory."
  126. },
  127. {
  128. "name": "DumpIgnoreVarIds",
  129. "define": "dump-ignore-var-ids",
  130. "doc": "Remove variable IDs from non-pretty dumps (helps with diff).",
  131. "default": "1"
  132. },
  133. {
  134. "name": "DynamicInterfaceClosures",
  135. "define": "dynamic-interface-closures",
  136. "doc": "Use slow path for interface closures to save space.",
  137. "platforms": ["cpp"]
  138. },
  139. {
  140. "name": "EvalCallStackDepth",
  141. "define": "eval-call-stack-depth",
  142. "doc": "Set maximum call stack depth for eval. (default: 1000)",
  143. "platforms": ["eval"],
  144. "default": "1000",
  145. "params": ["depth"]
  146. },
  147. {
  148. "name": "EvalDebugger",
  149. "define": "eval-debugger",
  150. "doc": "Support debugger in macro/interp mode. Allows `host:port` value to open a socket. Implies eval-stack.",
  151. "platforms": ["eval"]
  152. },
  153. {
  154. "name": "EvalPrintDepth",
  155. "define": "eval-print-depth",
  156. "doc": "Set maximum print depth (before replacing with '<...>') for eval. (default: 5)",
  157. "platforms": ["eval"],
  158. "default": "5",
  159. "params": ["depth"]
  160. },
  161. {
  162. "name": "EvalPrettyPrint",
  163. "define": "eval-pretty-print",
  164. "doc": "Enable indented output for eval printing.",
  165. "platforms": ["eval"]
  166. },
  167. {
  168. "name": "EvalStack",
  169. "define": "eval-stack",
  170. "doc": "Record stack information in macro/interp mode.",
  171. "platforms": ["eval"]
  172. },
  173. {
  174. "name": "EvalTimes",
  175. "define": "times.eval",
  176. "deprecatedDefine": "eval-times",
  177. "doc": "Record per-method execution times in macro/interp mode. Implies eval-stack.",
  178. "platforms": ["eval"]
  179. },
  180. {
  181. "name": "FailFast",
  182. "define": "fail-fast",
  183. "doc": "Abort compilation when first error occurs."
  184. },
  185. {
  186. "name": "FilterTimes",
  187. "define": "times.filter",
  188. "deprecatedDefine": "filter-times",
  189. "doc": "Record per-filter execution times upon --times."
  190. },
  191. {
  192. "name": "Fdb",
  193. "define": "fdb",
  194. "doc": "Enable full flash debug infos for FDB interactive debugging.",
  195. "platforms": ["flash"],
  196. "deprecated": "The flash target will be removed for Haxe 5"
  197. },
  198. {
  199. "name": "FileExtension",
  200. "define": "file-extension",
  201. "doc": "Output filename extension for cpp source code.",
  202. "platforms": ["cpp"]
  203. },
  204. {
  205. "name": "FlashStrict",
  206. "define": "flash-strict",
  207. "doc": "More strict typing for flash target.",
  208. "platforms": ["flash"],
  209. "deprecated": "The flash target will be removed for Haxe 5"
  210. },
  211. {
  212. "name": "FlashUseStage",
  213. "define": "flash-use-stage",
  214. "doc": "Keep the SWF library initial stage.",
  215. "platforms": ["flash"],
  216. "deprecated": "The flash target will be removed for Haxe 5"
  217. },
  218. {
  219. "name": "ForceNativeProperty",
  220. "define": "force-native-property",
  221. "doc": "Tag all properties with `:nativeProperty` metadata for 3.1 compatibility.",
  222. "platforms": ["cpp"]
  223. },
  224. {
  225. "name": "Haxe3Compat",
  226. "define": "haxe3compat",
  227. "doc": "Gives warnings about transition from Haxe 3.x to Haxe 4.0.",
  228. "deprecated": "This flag is no longer supported in Haxe 5"
  229. },
  230. {
  231. "name": "HaxeBoot",
  232. "define": "haxe-boot",
  233. "doc": "Give the name 'haxe' to the flash boot class instead of a generated name.",
  234. "platforms": ["flash"],
  235. "deprecated": "The flash target will be removed for Haxe 5"
  236. },
  237. {
  238. "name": "HaxeVer",
  239. "define": "haxe-ver",
  240. "doc": "The current Haxe version value as decimal number. E.g. 3.407 for 3.4.7.",
  241. "reserved": true
  242. },
  243. {
  244. "name": "Haxe",
  245. "define": "haxe",
  246. "doc": "The current Haxe version value in SemVer format.",
  247. "reserved": true
  248. },
  249. {
  250. "name": "Haxe3",
  251. "define": "haxe3",
  252. "doc": "The current Haxe major version is >= 3.",
  253. "default": "1",
  254. "reserved": true
  255. },
  256. {
  257. "name": "Haxe4",
  258. "define": "haxe4",
  259. "doc": "The current Haxe major version is >= 4.",
  260. "default": "1",
  261. "reserved": true
  262. },
  263. {
  264. "name": "Haxe5",
  265. "define": "haxe5",
  266. "doc": "The current Haxe major version is >= 5.",
  267. "default": "1",
  268. "reserved": true
  269. },
  270. {
  271. "name": "HaxeNext",
  272. "define": "haxe-next",
  273. "doc": "Enable experimental features that are meant to be released on next Haxe version."
  274. },
  275. {
  276. "name": "HaxeOutputFile",
  277. "define": "HAXE_OUTPUT_FILE",
  278. "doc": "Force the full output name of the executable/library without library prefix and debug suffix.",
  279. "platforms": ["cpp"],
  280. "params": ["name"]
  281. },
  282. {
  283. "name": "HaxeOutputPart",
  284. "define": "HAXE_OUTPUT_PART",
  285. "doc": "Output name of the executable/library. (default: main class name)",
  286. "platforms": ["cpp"],
  287. "params": ["name"]
  288. },
  289. {
  290. "name": "Hlc",
  291. "define": "hlc",
  292. "doc": "Defined by compiler when using hl/c target.",
  293. "platforms": ["hl"],
  294. "reserved": true
  295. },
  296. {
  297. "name": "HlVer",
  298. "define": "hl-ver",
  299. "doc": "The HashLink version to target. (default: 1.15.0)",
  300. "platforms": ["hl"],
  301. "params": ["version"]
  302. },
  303. {
  304. "name": "HxbTimes",
  305. "define": "times.hxb",
  306. "deprecatedDefine": "hxb-times",
  307. "doc": "Display hxb timing when used with `--times`."
  308. },
  309. {
  310. "name": "HxcppApiLevel",
  311. "define": "hxcpp-api-level",
  312. "doc": "Provided to allow compatibility between hxcpp versions.",
  313. "platforms": ["cpp"],
  314. "reserved": true
  315. },
  316. {
  317. "name": "HxcppGcGenerational",
  318. "define": "HXCPP-GC-GENERATIONAL",
  319. "doc": "Experimental Garbage Collector.",
  320. "platforms": ["cpp"]
  321. },
  322. {
  323. "name": "HxcppDebugger",
  324. "define": "HXCPP-DEBUGGER",
  325. "doc": "Include additional information for hxcpp-debugger.",
  326. "platforms": ["cpp"]
  327. },
  328. {
  329. "name": "HxcppGcMoving",
  330. "define": "HXCPP-GC-MOVING",
  331. "doc": "Allow garbage collector to move memory to reduce fragmentation",
  332. "platforms": ["cpp"]
  333. },
  334. {
  335. "name": "HxcppGcSummary",
  336. "define": "HXCPP-GC-SUMMARY",
  337. "doc": "Print small profiling summary at end of program",
  338. "platforms": ["cpp"]
  339. },
  340. {
  341. "name": "HxcppGcDynamicSize",
  342. "define": "HXCPP-GC-DYNAMIC-SIZE",
  343. "doc": "Monitor GC times and expand memory working space if required",
  344. "platforms": ["cpp"]
  345. },
  346. {
  347. "name": "HxcppGcBigBlocks",
  348. "define": "HXCPP-GC-BIG-BLOCKS",
  349. "doc": "Allow working memory greater than 1 Gig",
  350. "platforms": ["cpp"]
  351. },
  352. {
  353. "name": "HxcppGcDebugLevel",
  354. "define": "HXCPP-GC-DEBUG-LEVEL",
  355. "doc": "Number 1-4 indicating additional debugging in GC",
  356. "platforms": ["cpp"]
  357. },
  358. {
  359. "name": "HxcppDebugLink",
  360. "define": "HXCPP-DEBUG-LINK",
  361. "doc": "Add symbols to final binary, even in release mode.",
  362. "platforms": ["cpp"]
  363. },
  364. {
  365. "name": "HxcppStackTrace",
  366. "define": "HXCPP-STACK-TRACE",
  367. "doc": "Have valid function-level stack traces, even in release mode.",
  368. "platforms": ["cpp"]
  369. },
  370. {
  371. "name": "HxcppStackLine",
  372. "define": "HXCPP-STACK-LINE",
  373. "doc": "Include line information in stack traces, even in release mode.",
  374. "platforms": ["cpp"]
  375. },
  376. {
  377. "name": "HxcppCheckPointer",
  378. "define": "HXCPP-CHECK-POINTER",
  379. "doc": "Add null-pointer checks, even in release mode.",
  380. "platforms": ["cpp"]
  381. },
  382. {
  383. "name": "HxcppProfiler",
  384. "define": "HXCPP-PROFILER",
  385. "doc": "Add profiler support",
  386. "platforms": ["cpp"]
  387. },
  388. {
  389. "name": "HxcppTelemetry",
  390. "define": "HXCPP-TELEMETRY",
  391. "doc": "Add telemetry support",
  392. "platforms": ["cpp"]
  393. },
  394. {
  395. "name": "HxcppCpp11",
  396. "define": "HXCPP-CPP11",
  397. "doc": "Use C++11 features and link libraries",
  398. "platforms": ["cpp"]
  399. },
  400. {
  401. "name": "HxcppVerbose",
  402. "define": "HXCPP-VERBOSE",
  403. "doc": "Print extra output from build tool.",
  404. "platforms": ["cpp"]
  405. },
  406. {
  407. "name": "HxcppTimes",
  408. "define": "HXCPP-TIMES",
  409. "doc": "Show some basic profiling information",
  410. "platforms": ["cpp"]
  411. },
  412. {
  413. "name": "HxcppM32",
  414. "define": "HXCPP-M32",
  415. "doc": "Force 32-bit compile for current desktop",
  416. "platforms": ["cpp"]
  417. },
  418. {
  419. "name": "HxcppM64",
  420. "define": "HXCPP-M64",
  421. "doc": "Force 64-bit compile for current desktop",
  422. "platforms": ["cpp"]
  423. },
  424. {
  425. "name": "HxcppArm64",
  426. "define": "HXCPP-ARM64",
  427. "doc": "Compile arm-based devices for 64 bits",
  428. "platforms": ["cpp"]
  429. },
  430. {
  431. "name": "HxcppLinuxArm64",
  432. "define": "HXCPP-LINUX-ARM64",
  433. "doc": "Run on a linux ARM64 device",
  434. "platforms": ["cpp"]
  435. },
  436. {
  437. "name": "HxcppSmartStings",
  438. "define": "hxcpp-smart-strings",
  439. "doc": "Use wide strings in hxcpp. (Turned on by default unless `-D disable-unicode-strings` is specified.)",
  440. "platforms": ["cpp"]
  441. },
  442. {
  443. "name": "IncludePrefix",
  444. "define": "include-prefix",
  445. "doc": "Prepend path to generated include files.",
  446. "platforms": ["cpp"]
  447. },
  448. {
  449. "name": "Interp",
  450. "define": "interp",
  451. "doc": "The code is compiled to be run with `--interp`."
  452. },
  453. {
  454. "name": "JsClassic",
  455. "define": "js-classic",
  456. "doc": "Don't use a function wrapper and strict mode in JS output.",
  457. "platforms": ["js"]
  458. },
  459. {
  460. "name": "JsEs",
  461. "define": "js-es",
  462. "doc": "Generate JS compliant with given ES standard version. (default: 5)",
  463. "platforms": ["js"],
  464. "params": ["version: 3 | 5 | 6"],
  465. "links": ["https://haxe.org/manual/target-javascript-es6.html"]
  466. },
  467. {
  468. "name": "JsEnumsAsArrays",
  469. "define": "js-enums-as-arrays",
  470. "doc": "Generate enum representation as array instead of as object.",
  471. "platforms": ["js"]
  472. },
  473. {
  474. "name": "JsGlobal",
  475. "define": "js_global",
  476. "doc": "Customizes the global object name.",
  477. "platforms": ["js"]
  478. },
  479. {
  480. "name": "JsUnflatten",
  481. "define": "js-unflatten",
  482. "doc": "Generate nested objects for packages and types.",
  483. "platforms": ["js"]
  484. },
  485. {
  486. "name": "JsSourceMap",
  487. "define": "js-source-map",
  488. "doc": "Generate JavaScript source map even in non-debug mode. Deprecated in favor of `-D source-map`.",
  489. "platforms": ["js"]
  490. },
  491. {
  492. "name": "SourceMap",
  493. "define": "source-map",
  494. "doc": "Generate source map for compiled files.",
  495. "platforms": ["php", "js"]
  496. },
  497. {
  498. "name": "JvmCompressionLevel",
  499. "define": "jvm.compression-level",
  500. "doc": "Set the compression level of the generated file between 0 (no compression) and 9 (highest compression). Default: 6",
  501. "platforms": ["jvm"]
  502. },
  503. {
  504. "name": "JvmDynamicLevel",
  505. "define": "jvm.dynamic-level",
  506. "doc": "Controls the amount of dynamic support code being generated. 0 = none, 1 = field read/write optimization (default), 2 = compile-time method closures",
  507. "platforms": ["jvm"]
  508. },
  509. {
  510. "name": "LoopUnrollMaxCost",
  511. "define": "loop-unroll-max-cost",
  512. "doc": "Maximum cost (number of expressions * iterations) before loop unrolling is canceled. (default: 250)",
  513. "default": "250",
  514. "params": ["cost"]
  515. },
  516. {
  517. "name": "LuaJit",
  518. "define": "lua-jit",
  519. "doc": "Enable the jit compiler for lua (version 5.2 only).",
  520. "platforms": ["lua"]
  521. },
  522. {
  523. "name": "LuaVanilla",
  524. "define": "lua-vanilla",
  525. "doc": "Generate code lacking compiled extern lib support (e.g. utf8).",
  526. "platforms": ["lua"]
  527. },
  528. {
  529. "name": "LuaVer",
  530. "define": "lua-ver",
  531. "doc": "The lua version to target.",
  532. "platforms": ["lua"],
  533. "params": ["version"]
  534. },
  535. {
  536. "name": "Macro",
  537. "define": "macro",
  538. "doc": "Defined when code is compiled in the macro context.",
  539. "links": ["https://haxe.org/manual/macro.html"],
  540. "reserved": true
  541. },
  542. {
  543. "name": "MacroTimes",
  544. "define": "times.macro",
  545. "deprecatedDefine": "macro-times",
  546. "doc": "Display per-macro timing when used with `--times`."
  547. },
  548. {
  549. "name": "NekoSource",
  550. "define": "neko-source",
  551. "doc": "Output neko source instead of bytecode.",
  552. "platforms": ["neko"]
  553. },
  554. {
  555. "name": "NekoNoHaxelibPaths",
  556. "define": "neko-no-haxelib-paths",
  557. "doc": "Disable hard-coded Haxelib ndll paths.",
  558. "platforms": [
  559. "neko"
  560. ]
  561. },
  562. {
  563. "name": "NekoV1",
  564. "define": "neko-v1",
  565. "doc": "Keep Neko 1.x compatibility.",
  566. "platforms": ["neko"]
  567. },
  568. {
  569. "name": "NetworkSandbox",
  570. "define": "network-sandbox",
  571. "doc": "Use local network sandbox instead of local file access one.",
  572. "platforms": ["flash"],
  573. "deprecated": "The flash target will be removed for Haxe 5"
  574. },
  575. {
  576. "name": "NoCompilation",
  577. "define": "no-compilation",
  578. "doc": "Disable final compilation.",
  579. "platforms": ["cpp", "hl"]
  580. },
  581. {
  582. "name": "NoDebug",
  583. "define": "no-debug",
  584. "doc": "Remove all debug macros from cpp output."
  585. },
  586. {
  587. "name": "NoDeprecationWarnings",
  588. "define": "no-deprecation-warnings",
  589. "doc": "Do not warn if fields annotated with `@:deprecated` are used.",
  590. "deprecated": "Use -w to configure warnings. See https://haxe.org/manual/cr-warnings.html for more information."
  591. },
  592. {
  593. "name": "NoFlashOverride",
  594. "define": "no-flash-override",
  595. "doc": "Change overrides on some basic classes into HX suffixed methods",
  596. "platforms": ["flash"],
  597. "deprecated": "The flash target will be removed for Haxe 5"
  598. },
  599. {
  600. "name": "NoOpt",
  601. "define": "no-opt",
  602. "doc": "Disable optimizations."
  603. },
  604. {
  605. "name": "NoInline",
  606. "define": "no-inline",
  607. "doc": "Disable inlining.",
  608. "links": ["https://haxe.org/manual/class-field-inline.html"]
  609. },
  610. {
  611. "name": "KeepInlinePositions",
  612. "define": "keep-inline-positions",
  613. "doc": "Don't substitute positions of inlined expressions with the position of the place of inlining.",
  614. "links": ["https://haxe.org/manual/class-field-inline.html"]
  615. },
  616. {
  617. "name": "NoMacroCache",
  618. "define": "no-macro-cache",
  619. "doc": "Disable macro context caching."
  620. },
  621. {
  622. "name": "NoSwfCompress",
  623. "define": "no-swf-compress",
  624. "doc": "Disable SWF output compression.",
  625. "platforms": ["flash"],
  626. "deprecated": "The flash target will be removed for Haxe 5"
  627. },
  628. {
  629. "name": "NoTraces",
  630. "define": "no-traces",
  631. "doc": "Disable all trace calls."
  632. },
  633. {
  634. "name": "Objc",
  635. "define": "objc",
  636. "doc": "Sets the hxcpp output to Objective-C++ classes. Must be defined for interop.",
  637. "platforms": ["cpp"]
  638. },
  639. {
  640. "name": "OldErrorFormat",
  641. "define": "old-error-format",
  642. "doc": "Use Haxe 3.x zero-based column error messages instead of new one-based format.",
  643. "deprecated": "OldErrorFormat has been removed in Haxe 5"
  644. },
  645. {
  646. "name": "PhpPrefix",
  647. "define": "php-prefix",
  648. "doc": "Root namespace for generated php classes. E.g. if compiled with`-D php-prefix=some.sub`, then all classes will be generated in `\\some\\sub` namespace.",
  649. "platforms": ["php"],
  650. "params": ["dot-separated namespace"]
  651. },
  652. {
  653. "name": "PhpLib",
  654. "define": "php-lib",
  655. "doc": "Select the name for the php lib folder.",
  656. "platforms": ["php"],
  657. "params": ["folder name"]
  658. },
  659. {
  660. "name": "PhpFront",
  661. "define": "php-front",
  662. "doc": "Select the name for the php front file. (default: `index.php`)",
  663. "platforms": ["php"],
  664. "params": ["filename"]
  665. },
  666. {
  667. "name": "PythonVersion",
  668. "define": "python-version",
  669. "doc": "The python version to target. (default: 3.3)",
  670. "platforms": ["python"],
  671. "params": ["version"]
  672. },
  673. {
  674. "name": "RealPosition",
  675. "define": "real-position",
  676. "doc": "Removes position comments in Php output.",
  677. "platforms": ["php"]
  678. },
  679. {
  680. "name": "RetainUntypedMeta",
  681. "define": "retain-untyped-meta",
  682. "doc": "Prevents arbitrary expression metadata from being discarded upon typing."
  683. },
  684. {
  685. "name": "Scriptable",
  686. "define": "scriptable",
  687. "doc": "GenCPP internal.",
  688. "platforms": ["cpp"]
  689. },
  690. {
  691. "name": "ShallowExpose",
  692. "define": "shallow-expose",
  693. "doc": "Expose types to surrounding scope of Haxe generated closure without writing to window object.",
  694. "platforms": ["js"]
  695. },
  696. {
  697. "name": "SourceHeader",
  698. "define": "source-header",
  699. "doc": "Print value as comment on top of generated files, use '' value to disable."
  700. },
  701. {
  702. "name": "SourceMapContent",
  703. "define": "source-map-content",
  704. "doc": "Include the Haxe sources as part of the JS source map.",
  705. "platforms": ["js"]
  706. },
  707. {
  708. "name": "Static",
  709. "define": "static",
  710. "doc": "Defined if the current target is static.",
  711. "reserved": true
  712. },
  713. {
  714. "name": "StdEncodingUtf8",
  715. "define": "std-encoding-utf8",
  716. "doc": "Force utf8 encoding for stdin, stdout and stderr",
  717. "platforms": ["python"]
  718. },
  719. {
  720. "name": "Swc",
  721. "define": "swc",
  722. "doc": "Output a SWC instead of a SWF.",
  723. "platforms": ["flash"],
  724. "reserved": true,
  725. "deprecated": "The flash target will be removed for Haxe 5"
  726. },
  727. {
  728. "name": "SwfCompressLevel",
  729. "define": "swf-compress-level",
  730. "doc": "Set the amount of compression for the SWF output.",
  731. "platforms": ["flash"],
  732. "params": ["level: 1-9"],
  733. "deprecated": "The flash target will be removed for Haxe 5"
  734. },
  735. {
  736. "name": "SwfDebugPassword",
  737. "define": "swf-debug-password",
  738. "doc": "Set a password for debugging.",
  739. "platforms": ["flash"],
  740. "params": ["password"],
  741. "deprecated": "The flash target will be removed for Haxe 5"
  742. },
  743. {
  744. "name": "SwfDirectBlit",
  745. "define": "swf-direct-blit",
  746. "doc": "Use hardware acceleration to blit graphics.",
  747. "platforms": ["flash"],
  748. "deprecated": "The flash target will be removed for Haxe 5"
  749. },
  750. {
  751. "name": "SwfGpu",
  752. "define": "swf-gpu",
  753. "doc": "Use GPU compositing features when drawing graphics.",
  754. "platforms": ["flash"],
  755. "deprecated": "The flash target will be removed for Haxe 5"
  756. },
  757. {
  758. "name": "SwfHeader",
  759. "define": "swf-header",
  760. "doc": "define SWF header (width:height:fps:color)",
  761. "platforms": ["flash"],
  762. "deprecated": "The flash target will be removed for Haxe 5"
  763. },
  764. {
  765. "name": "SwfMetadata",
  766. "define": "swf-metadata",
  767. "doc": "Include contents of the given file as metadata in the SWF.",
  768. "platforms": ["flash"],
  769. "params": ["file"],
  770. "deprecated": "The flash target will be removed for Haxe 5"
  771. },
  772. {
  773. "name": "SwfPreloaderFrame",
  774. "define": "swf-preloader-frame",
  775. "doc": "Insert empty first frame in SWF.",
  776. "platforms": ["flash"],
  777. "deprecated": "The flash target will be removed for Haxe 5"
  778. },
  779. {
  780. "name": "SwfProtected",
  781. "define": "swf-protected",
  782. "doc": "Compile Haxe `private` as `protected` in the SWF instead of `public`.",
  783. "platforms": ["flash"],
  784. "deprecated": "The flash target will be removed for Haxe 5"
  785. },
  786. {
  787. "name": "SwfScriptTimeout",
  788. "define": "swf-script-timeout",
  789. "doc": "Maximum ActionScript processing time before script stuck dialog box displays.",
  790. "platforms": ["flash"],
  791. "params": ["time in seconds"],
  792. "deprecated": "The flash target will be removed for Haxe 5"
  793. },
  794. {
  795. "name": "SwfUseDoAbc",
  796. "define": "swf-use-doabc",
  797. "doc": "Use `DoAbc` SWF-tag instead of `DoAbcDefine`.",
  798. "platforms": ["flash"],
  799. "deprecated": "The flash target will be removed for Haxe 5"
  800. },
  801. {
  802. "name": "Sys",
  803. "define": "sys",
  804. "doc": "Defined for all system platforms.",
  805. "reserved": true
  806. },
  807. {
  808. "name": "UseNekoc",
  809. "define": "use-nekoc",
  810. "doc": "Use `nekoc` compiler instead of the internal one.",
  811. "platforms": ["neko"]
  812. },
  813. {
  814. "name": "Utf16",
  815. "define": "utf16",
  816. "doc": "Defined for all platforms that use UTF-16 string encoding with UCS-2 API.",
  817. "reserved": true
  818. },
  819. {
  820. "name": "Vcproj",
  821. "define": "vcproj",
  822. "doc": "GenCPP internal.",
  823. "platforms": ["cpp"]
  824. },
  825. {
  826. "name": "WarnVarShadowing",
  827. "define": "warn-var-shadowing",
  828. "doc": "Warn about shadowing variable declarations.",
  829. "deprecated": "Use -w to configure warnings. See https://haxe.org/manual/cr-warnings.html for more information."
  830. },
  831. {
  832. "name": "NoTre",
  833. "define": "no-tre",
  834. "doc": "Disable tail recursion elimination."
  835. },
  836. {
  837. "name": "MessageReporting",
  838. "define": "message.reporting",
  839. "doc": "Select message reporting mode for compiler output. (default: pretty)",
  840. "default": "pretty",
  841. "params": ["mode: classic | pretty | indent"]
  842. },
  843. {
  844. "name": "MessageNoColor",
  845. "define": "message.no-color",
  846. "doc": "Disable ANSI color codes in message reporting."
  847. },
  848. {
  849. "name": "MessageAbsolutePositions",
  850. "define": "message.absolute-positions",
  851. "doc": "Use absolute character positions instead of line/columns for message reporting."
  852. },
  853. {
  854. "name": "MessageLogFile",
  855. "define": "message.log-file",
  856. "doc": "Path to a text file to write message reporting to, in addition to regular output."
  857. },
  858. {
  859. "name": "MessageLogFormat",
  860. "define": "message.log-format",
  861. "doc": "Select message reporting mode for message log file. (default: indent)",
  862. "default": "indent",
  863. "params": ["format: classic | pretty | indent"]
  864. }
  865. ]