summaryrefslogtreecommitdiffstats
path: root/o3d
diff options
context:
space:
mode:
Diffstat (limited to 'o3d')
-rw-r--r--o3d/plugin/idl/get_idl_files.py26
-rw-r--r--o3d/plugin/idl/idl.gyp59
2 files changed, 27 insertions, 58 deletions
diff --git a/o3d/plugin/idl/get_idl_files.py b/o3d/plugin/idl/get_idl_files.py
new file mode 100644
index 0000000..b0cbbcb
--- /dev/null
+++ b/o3d/plugin/idl/get_idl_files.py
@@ -0,0 +1,26 @@
+#!/usr/bin/env python
+# Copyright (c) 2009 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+"""Helper script to generate file lists for idl.gyp."""
+
+import os.path
+import sys
+import types
+
+
+# Read in the manifest files (which are just really simple python files),
+# and scrape out the file lists.
+def main(argv):
+ idl_list_filename = os.path.join('..', 'idl_list.manifest')
+ files = eval(open(idl_list_filename, "r").read())
+ files = [os.path.basename(f) for f in files]
+ files.sort()
+ for file in files:
+ # gyp wants paths with slashes, not backslashes.
+ print file.replace("\\", "/")
+
+
+if __name__ == "__main__":
+ main(sys.argv[1:])
diff --git a/o3d/plugin/idl/idl.gyp b/o3d/plugin/idl/idl.gyp
index 1e710c1..6042ea8 100644
--- a/o3d/plugin/idl/idl.gyp
+++ b/o3d/plugin/idl/idl.gyp
@@ -11,64 +11,7 @@
'idl_out_path': '<(SHARED_INTERMEDIATE_DIR)/idl_glue',
'static_glue_dir': '../../../<(nixysadir)/static_glue/npapi',
'idl_files': [
- 'archive_request.idl',
- 'bitmap.idl',
- 'bounding_box.idl',
- 'buffer.idl',
- 'canvas.idl',
- 'canvas_paint.idl',
- 'canvas_shader.idl',
- 'clear_buffer.idl',
- 'client.idl',
- 'counter.idl',
- 'cursor.idl',
- 'curve.idl',
- 'display_mode.idl',
- 'draw_context.idl',
- 'draw_element.idl',
- 'draw_list.idl',
- 'draw_pass.idl',
- 'effect.idl',
- 'element.idl',
- 'event.idl',
- 'field.idl',
- 'file_request.idl',
- 'function.idl',
- 'material.idl',
- 'matrix4_axis_rotation.idl',
- 'matrix4_composition.idl',
- 'matrix4_scale.idl',
- 'matrix4_translation.idl',
- 'named.idl',
- 'pack.idl',
- 'param.idl',
- 'param_array.idl',
- 'param_object.idl',
- 'param_operation.idl',
- 'plugin.idl',
- 'primitive.idl',
- 'raw_data.idl',
- 'ray_intersection_info.idl',
- 'render_event.idl',
- 'render_node.idl',
- 'render_surface.idl',
- 'render_surface_set.idl',
- 'sampler.idl',
- 'shape.idl',
- 'skin.idl',
- 'standard_param.idl',
- 'state.idl',
- 'state_set.idl',
- 'stream.idl',
- 'stream_bank.idl',
- 'texture.idl',
- 'tick_event.idl',
- 'transform.idl',
- 'tree_traversal.idl',
- 'types.idl',
- 'vector.idl',
- 'vertex_source.idl',
- 'viewport.idl',
+ '<!@(python get_idl_files.py)',
],
},
'target_defaults': {