Jump to content

Scripts dependencies, BuildOurOwnBabylonJS


Recommended Posts

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



<script src="Babylon/Math/babylon.math.js"></script><script src="Babylon/Math/babylon.axis.js"></script>


<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>


<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.

Link to comment
Share on other sites

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...