Index: dart/utils/apidoc/apidoc.gyp |
diff --git a/dart/utils/apidoc/apidoc.gyp b/dart/utils/apidoc/apidoc.gyp |
index df2e4c5c9173c95f14d5b41fc5fdbfcd6a004451..4d351c3693a7df3f69107ce5f3df86f5a5e8ac6f 100644 |
--- a/dart/utils/apidoc/apidoc.gyp |
+++ b/dart/utils/apidoc/apidoc.gyp |
@@ -66,12 +66,18 @@ |
'../../sdk/bin/dart.bat', |
'../../sdk/bin/dart2js', |
'../../sdk/bin/dart2js.bat', |
+ '../../tools/only_in_release_mode.py', |
], |
'outputs': [ |
'<(PRODUCT_DIR)/api_docs/index.html', |
'<(PRODUCT_DIR)/api_docs/client-static.js', |
], |
'action': [ |
+ 'python', |
+ '../../tools/only_in_release_mode.py', |
+ '--outputs=<(_outputs)', |
+ '--mode=$(DART_BUILD_MODE)', |
+ '--', |
'<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)dart<(EXECUTABLE_SUFFIX)', |
'--package-root=<(PRODUCT_DIR)/packages/', |
'apidoc.dart', |