define.json 21 KB

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