title: Unity3d iOS c++ native library plugin. How to?
body: <p>I'm using <a href="http://google.github.io/liquidfun/" rel="nofollow">this</a> c++ particle physics library in my game. So far I have it working in unity on android and windows.<br>
  I'm now looking into getting it working on iOS and it seems like quite a daunting task.
  The library is a superset of Box2D so it is quite a large complex library.
  Here is my idea for tackling this, I'm hoping someone with some experience can say if they think this might work, or if not suggest a better way of doing it.</p>
  
  <p>My idea is to..
  Use Unitys 'Automated plugin integration' where you add your .cpp and .h source files to the Assets\Plugins\iOS folder and it sym links them in the xcode project (whatever that means)<br>
  The problem here is that subfolders are not supported so I would have to flatten the directory structure of the Box2D project and put everything in one folder. My idea is to do this using a python script that will change all the include statements in the source code so for example..  </p>
  
  <pre><code>   #include &lt;Box2D/Common/b2Settings.h&gt;   
  </code></pre>
  
  <p>would be changed to..  </p>
  
  <pre><code>   #include &lt;b2Settings.h&gt;  
  </code></pre>
  
  <p>Is there a reason this would not work? </p>