diff --git a/tools/platforms/AndroidPlatform.hx b/tools/platforms/AndroidPlatform.hx index 4d4caaaf1..8451d2a70 100644 --- a/tools/platforms/AndroidPlatform.hx +++ b/tools/platforms/AndroidPlatform.hx @@ -459,6 +459,11 @@ class AndroidPlatform extends PlatformTarget project.haxeflags.push("-xml " + targetDirectory + "/types.xml"); } + if (project.targetFlags.exists("json")) + { + project.haxeflags.push("--json " + targetDirectory + "/types.json"); + } + var context = project.templateContext; context.CPP_DIR = targetDirectory + "/obj"; diff --git a/tools/platforms/FlashPlatform.hx b/tools/platforms/FlashPlatform.hx index 21828d2a3..b6994c556 100644 --- a/tools/platforms/FlashPlatform.hx +++ b/tools/platforms/FlashPlatform.hx @@ -139,6 +139,11 @@ class FlashPlatform extends PlatformTarget project.haxeflags.push("-xml " + targetDirectory + "/types.xml"); } + if (project.targetFlags.exists("json")) + { + project.haxeflags.push("--json " + targetDirectory + "/types.json"); + } + if (Log.verbose) { project.haxedefs.set("verbose", 1); diff --git a/tools/platforms/HTML5Platform.hx b/tools/platforms/HTML5Platform.hx index a5bbaf76b..f76b862d7 100644 --- a/tools/platforms/HTML5Platform.hx +++ b/tools/platforms/HTML5Platform.hx @@ -353,6 +353,11 @@ class HTML5Platform extends PlatformTarget project.haxeflags.push("-xml " + targetDirectory + "/types.xml"); } + if (project.targetFlags.exists("json")) + { + project.haxeflags.push("--json " + targetDirectory + "/types.json"); + } + if (Log.verbose) { project.haxedefs.set("verbose", 1); diff --git a/tools/platforms/IOSPlatform.hx b/tools/platforms/IOSPlatform.hx index e13a9cdff..cd1cca661 100644 --- a/tools/platforms/IOSPlatform.hx +++ b/tools/platforms/IOSPlatform.hx @@ -169,6 +169,11 @@ class IOSPlatform extends PlatformTarget { project.haxeflags.push("-xml " + targetDirectory + "/types.xml"); } + + if (project.targetFlags.exists("json")) + { + project.haxeflags.push("--json " + targetDirectory + "/types.json"); + } if (project.targetFlags.exists("final")) { diff --git a/tools/platforms/LinuxPlatform.hx b/tools/platforms/LinuxPlatform.hx index 61b00e828..66a1d0b46 100644 --- a/tools/platforms/LinuxPlatform.hx +++ b/tools/platforms/LinuxPlatform.hx @@ -556,6 +556,11 @@ class LinuxPlatform extends PlatformTarget project.haxeflags.push("-xml " + targetDirectory + "/types.xml"); } + if (project.targetFlags.exists("json")) + { + project.haxeflags.push("--json " + targetDirectory + "/types.json"); + } + var context = generateContext(); context.OUTPUT_DIR = targetDirectory; diff --git a/tools/platforms/MacPlatform.hx b/tools/platforms/MacPlatform.hx index 6c540b430..64b89f565 100644 --- a/tools/platforms/MacPlatform.hx +++ b/tools/platforms/MacPlatform.hx @@ -507,6 +507,11 @@ class MacPlatform extends PlatformTarget project.haxeflags.push("-xml " + targetDirectory + "/types.xml"); } + if (project.targetFlags.exists("json")) + { + project.haxeflags.push("--json " + targetDirectory + "/types.json"); + } + for (asset in project.assets) { if (asset.embed && asset.sourcePath == "") diff --git a/tools/platforms/TVOSPlatform.hx b/tools/platforms/TVOSPlatform.hx index 76714971c..bf67f7897 100644 --- a/tools/platforms/TVOSPlatform.hx +++ b/tools/platforms/TVOSPlatform.hx @@ -168,6 +168,11 @@ class TVOSPlatform extends PlatformTarget project.haxeflags.push("-xml " + targetDirectory + "/types.xml"); } + if (project.targetFlags.exists("json")) + { + project.haxeflags.push("--json " + targetDirectory + "/types.json"); + } + if (project.targetFlags.exists("final")) { project.haxedefs.set("final", ""); diff --git a/tools/platforms/TizenPlatform.hx b/tools/platforms/TizenPlatform.hx index 0ad18008d..49bc7e948 100644 --- a/tools/platforms/TizenPlatform.hx +++ b/tools/platforms/TizenPlatform.hx @@ -227,6 +227,11 @@ class TizenPlatform extends PlatformTarget project.haxeflags.push("-xml " + targetDirectory + "/types.xml"); } + if (project.targetFlags.exists("json")) + { + project.haxeflags.push("--json " + targetDirectory + "/types.json"); + } + var context = project.templateContext; context.CPP_DIR = targetDirectory + "/obj"; context.OUTPUT_DIR = targetDirectory; diff --git a/tools/platforms/WindowsPlatform.hx b/tools/platforms/WindowsPlatform.hx index a3019c0ae..98c5eea32 100644 --- a/tools/platforms/WindowsPlatform.hx +++ b/tools/platforms/WindowsPlatform.hx @@ -921,6 +921,11 @@ class WindowsPlatform extends PlatformTarget project.haxeflags.push("-xml " + targetDirectory + "/types.xml"); } + if (project.targetFlags.exists("json")) + { + project.haxeflags.push("--json " + targetDirectory + "/types.json"); + } + for (asset in project.assets) { if (asset.embed && asset.sourcePath == "") @@ -1067,6 +1072,11 @@ class WindowsPlatform extends PlatformTarget project.haxeflags.push("-xml " + targetDirectory + "/types.xml"); } + if (project.targetFlags.exists("json")) + { + project.haxeflags.push("--json " + targetDirectory + "/types.json"); + } + if (Log.verbose) { project.haxedefs.set("verbose", 1);