From 8a38b5ef120f24d8e0d58faf5f74fd55b0f477a9 Mon Sep 17 00:00:00 2001 From: Patrick Balestra Date: Wed, 30 Jan 2019 22:31:12 +0100 Subject: [PATCH 1/3] Add example code for build rules --- Docs/ProjectSpec.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Docs/ProjectSpec.md b/Docs/ProjectSpec.md index 40dde69c..09570b6b 100644 --- a/Docs/ProjectSpec.md +++ b/Docs/ProjectSpec.md @@ -487,6 +487,15 @@ targets: - [ ] **outputFiles**: **[String]** - The list of output files - [ ] **outputFilesCompilerFlags**: **[String]** - The list of compiler flags to apply to the output files +```yaml +targets: + MyTarget: + buildRules: + - filePattern: "*.xcassets" + script: generate_assets.py + - fileType: sourcecode.swift + script: pre_process_swift.py +``` ### Target Scheme From 7d7b5b4e214cf7e5e94e4c976f273dab197e65d2 Mon Sep 17 00:00:00 2001 From: Patrick Balestra Date: Thu, 31 Jan 2019 19:03:19 +0100 Subject: [PATCH 2/3] Add one more build rule example --- Docs/ProjectSpec.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Docs/ProjectSpec.md b/Docs/ProjectSpec.md index 09570b6b..b0b41cf4 100644 --- a/Docs/ProjectSpec.md +++ b/Docs/ProjectSpec.md @@ -495,6 +495,11 @@ targets: script: generate_assets.py - fileType: sourcecode.swift script: pre_process_swift.py + - filePattern: "*.txt" + name: My Build Rule + compilerSpec: com.apple.xcode.tools.swift.compiler + outputFiles: + - $(SRCROOT)/Generated.swift ``` ### Target Scheme From a2bf91c1573ebb8ee2f6b3cadf3f0d2c9eb3d29e Mon Sep 17 00:00:00 2001 From: Patrick Balestra Date: Fri, 1 Feb 2019 18:07:49 +0100 Subject: [PATCH 3/3] Remove tabs --- Docs/ProjectSpec.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Docs/ProjectSpec.md b/Docs/ProjectSpec.md index b0b41cf4..e43f0e9c 100644 --- a/Docs/ProjectSpec.md +++ b/Docs/ProjectSpec.md @@ -498,8 +498,8 @@ targets: - filePattern: "*.txt" name: My Build Rule compilerSpec: com.apple.xcode.tools.swift.compiler - outputFiles: - - $(SRCROOT)/Generated.swift + outputFiles: + - $(SRCROOT)/Generated.swift ``` ### Target Scheme