Browse Source

makewheel: Add PandaViewController.h to wheel on iOS.

Donny Lawrence 6 years ago
parent
commit
cb1bbb87c9
1 changed files with 5 additions and 0 deletions
  1. 5 0
      makepanda/makewheel.py

+ 5 - 0
makepanda/makewheel.py

@@ -785,6 +785,11 @@ if __debug__:
 
                 whl.write_file(target_path, source_path)
 
+    if 'ios' in target_info.platform_tag:
+        # Copy over the PandaViewController.h header file.
+        include_dir = join(output_dir, 'include/panda3d')
+        whl.write_file('deploy_libs/include/PandaViewController.h', join(include_dir, 'PandaViewController.h'))
+
     # Add plug-ins.
     for lib in PLUGIN_LIBS:
         plugin_name = 'lib' + lib