Commit d65d58f943ede90be96c73886c2c4fd50e3ea65b

Authored by Arthur Bikmullin
1 parent 01944615

Improved build meta data generation

Showing 1 changed file with 3 additions and 3 deletions
... ... @@ -163,11 +163,13 @@ Class Builder
163 163 Endif
164 164
165 165 If FileType( targetPath ) = FILETYPE_NONE
166   - If FileType( buildPath ) = FILETYPE_NONE CreateDir buildPath
  166 + If FileType( buildPath ) = FILETYPE_NONE CreateDir buildPath
167 167 If FileType( buildPath )<>FILETYPE_DIR Die "Failed to create build dir: "+buildPath
168 168 If Not CopyDir(tcc.target.abspath + "/template", targetPath, True, False) Die "Failed to copy target dir"
169 169 Endif
  170 +
170 171 If FileType( targetPath )<>FILETYPE_DIR Die "Failed to create target dir: "+targetPath
  172 + If buildMetaData Then SaveString(buildMetaData.ToJson(), buildPath + "/build.meta.json")
171 173
172 174 TEXT_FILES=GetConfigVar( "TEXT_FILES" )
173 175 IMAGE_FILES=GetConfigVar( "IMAGE_FILES" )
... ... @@ -189,8 +191,6 @@ Class Builder
189 191 ChangeDir targetPath
190 192 Self.MakeTarget
191 193 ChangeDir cd
192   -
193   - If buildMetaData Then SaveString(buildMetaData.ToJson(), buildPath + "/build.meta.json")
194 194 End
195 195
196 196 Field tcc:TransCC
... ...