summaryrefslogtreecommitdiffstats
path: root/o3d/samples/samples.gyp
diff options
context:
space:
mode:
Diffstat (limited to 'o3d/samples/samples.gyp')
-rw-r--r--o3d/samples/samples.gyp26
1 files changed, 26 insertions, 0 deletions
diff --git a/o3d/samples/samples.gyp b/o3d/samples/samples.gyp
index 5c5a195..27d96f1 100644
--- a/o3d/samples/samples.gyp
+++ b/o3d/samples/samples.gyp
@@ -11,9 +11,35 @@
],
'targets': [
{
+ 'target_name': 'split_samples',
+ 'type': 'none',
+ 'rules': [
+ {
+ 'rule_name': 'split_sample',
+ 'extension': 'html',
+ 'inputs': [
+ 'split_samples.py',
+ ],
+ 'outputs': [
+ '<(PRODUCT_DIR)/samples/<(RULE_INPUT_NAME)',
+ '<(PRODUCT_DIR)/samples/<(RULE_INPUT_ROOT).js',
+ ],
+ 'action': ['python', '<@(_inputs)',
+ '--products', '<(PRODUCT_DIR)/samples',
+ '--samples', '.',
+ '<(RULE_INPUT_PATH)',
+ ],
+ },
+ ],
+ 'sources': [
+ '<!@(python split_samples.py --samples . --find_candidates)',
+ ],
+ },
+ {
'target_name': 'samples',
'type': 'none',
'dependencies': [
+ 'split_samples',
'<!(python samples_gen.py):build_samples',
],
},