| OLD | NEW |
| 1 # Copyright 2009, Google Inc. | 1 # Copyright 2009, Google Inc. |
| 2 # All rights reserved. | 2 # All rights reserved. |
| 3 # | 3 # |
| 4 # Redistribution and use in source and binary forms, with or without | 4 # Redistribution and use in source and binary forms, with or without |
| 5 # modification, are permitted provided that the following conditions are | 5 # modification, are permitted provided that the following conditions are |
| 6 # met: | 6 # met: |
| 7 # | 7 # |
| 8 # * Redistributions of source code must retain the above copyright | 8 # * Redistributions of source code must retain the above copyright |
| 9 # notice, this list of conditions and the following disclaimer. | 9 # notice, this list of conditions and the following disclaimer. |
| 10 # * Redistributions in binary form must reproduce the above | 10 # * Redistributions in binary form must reproduce the above |
| (...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 247 | 247 |
| 248 env.Append(BUILDERS = {'ConvertJsonSampleAssets' : model_builder}) | 248 env.Append(BUILDERS = {'ConvertJsonSampleAssets' : model_builder}) |
| 249 | 249 |
| 250 x_up_env = env.Clone(UP_AXIS='1,0,0') | 250 x_up_env = env.Clone(UP_AXIS='1,0,0') |
| 251 y_up_env = env.Clone(UP_AXIS='0,1,0') | 251 y_up_env = env.Clone(UP_AXIS='0,1,0') |
| 252 z_up_env = env.Clone(UP_AXIS='0,0,1') | 252 z_up_env = env.Clone(UP_AXIS='0,0,1') |
| 253 | 253 |
| 254 models = [ | 254 models = [ |
| 255 {'path': 'beachdemo/convert_assets/beachdemo.zip', 'env': z_up_env}, | 255 {'path': 'beachdemo/convert_assets/beachdemo.zip', 'env': z_up_env}, |
| 256 {'path': 'beachdemo/convert_assets/beach-low-poly.dae', 'env': z_up_env}, | 256 {'path': 'beachdemo/convert_assets/beach-low-poly.dae', 'env': z_up_env}, |
| 257 | 257 {'path': 'GoogleIO-2009/convert_assets/background.zip', 'env': y_up_env}, |
| 258 {'path': 'GoogleIO-2009/convert_assets/character.zip', 'env': y_up_env}, |
| 258 | 259 |
| 259 {'path': 'home-configurators/convert_cbassets/House_Roofless.kmz', | 260 {'path': 'home-configurators/convert_cbassets/House_Roofless.kmz', |
| 260 'env': z_up_env}, | 261 'env': z_up_env}, |
| 261 {'path': 'home-configurators/convert_cbassets/Agra_Rug.kmz', 'env': z_up_env}, | 262 {'path': 'home-configurators/convert_cbassets/Agra_Rug.kmz', 'env': z_up_env}, |
| 262 {'path': 'home-configurators/convert_cbassets/Asimi_Rug.kmz', 'env': z_up_env}
, | 263 {'path': 'home-configurators/convert_cbassets/Asimi_Rug.kmz', 'env': z_up_env}
, |
| 263 {'path': 'home-configurators/convert_cbassets/Camden_Chair.kmz', | 264 {'path': 'home-configurators/convert_cbassets/Camden_Chair.kmz', |
| 264 'env': z_up_env}, | 265 'env': z_up_env}, |
| 265 {'path': 'home-configurators/convert_cbassets/Elements_Bookshelf.kmz', | 266 {'path': 'home-configurators/convert_cbassets/Elements_Bookshelf.kmz', |
| 266 'env': z_up_env}, | 267 'env': z_up_env}, |
| 267 {'path': 'home-configurators/convert_cbassets/Ferrara_Rug.kmz', | 268 {'path': 'home-configurators/convert_cbassets/Ferrara_Rug.kmz', |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 339 # and the artifacts directory in the name of sanity -- so we don't | 340 # and the artifacts directory in the name of sanity -- so we don't |
| 340 # have to do a build whenever we change a .js file in order to test | 341 # have to do a build whenever we change a .js file in order to test |
| 341 # the change. We only generate them if the sources exist because we | 342 # the change. We only generate them if the sources exist because we |
| 342 # might not map them in all the time. | 343 # might not map them in all the time. |
| 343 if os.path.exists( | 344 if os.path.exists( |
| 344 model['env'].File("$SAMPLE_ASSETS/" + model['path']).abspath): | 345 model['env'].File("$SAMPLE_ASSETS/" + model['path']).abspath): |
| 345 converted = model['env'].ConvertJsonSampleAssets( | 346 converted = model['env'].ConvertJsonSampleAssets( |
| 346 source = "$SAMPLE_ASSETS/" + model['path'], | 347 source = "$SAMPLE_ASSETS/" + model['path'], |
| 347 target = model['path']) | 348 target = model['path']) |
| 348 model['env'].Publish('samples', 'asset_files', converted); | 349 model['env'].Publish('samples', 'asset_files', converted); |
| OLD | NEW |