gwenael Posted February 19, 2014 Share Posted February 19, 2014 Hi there, For those who didn't know about it, there is a tools set under Tools\BuildOurOwnBabylonJS. More about it here: https://github.com/BabylonJS/Babylon.js/tree/master/Tools/BuildOurOwnBabylonJS If you feel like adding files to BabylonJS, please update Tools\BuildOurOwnBabylonJS\BuildOurOwnBabylonJS\babylonJS.xml. This file is used to determine in which order the files must be included. For now, we don't use the dependsOn tags (see Tools\BuildOurOwnBabylonJS\BuildOurOwnBabylonJS\babylonJS.xsd) since we need some time with Deltakosh to go through all BabylonJS files to figure out which file depends on which files and then udpate babylonJS.xml to use dependsOn tags. So, for now, please insert the lines corresponding to the files that you add at the right place. By right place, I mean in the opposite order that you would insert them in a html file. Example: babylon.axis.js depends on babylon.math.js index.html:<script src="Babylon/Math/babylon.math.js"></script><script src="Babylon/Math/babylon.axis.js"></script>babylonJS.xml:<script src="Babylon/Math/babylon.axis.js"></script><script src="Babylon/Math/babylon.math.js"></script>and later, it will be<script src="Babylon/Math/babylon.axis.js"> <dependsOn scriptref="math"/></script><script id="math" src="Babylon/Math/babylon.math.js"></script>or<script id="math" src="Babylon/Math/babylon.math.js"></script><script src="Babylon/Math/babylon.axis.js"> <dependsOn scriptref="math"/></script> since the system doesn't care about the order if dependsOn tags are used. Moreover, once dependsOn tags will be used, the system will warn about loop dependencies. GameMonetize 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.