Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Unified Diff: third_party/crashpad/crashpad/doc/support/generate_doxygen.py

Issue 2804713002: Update Crashpad to b4095401639ebe2ad33169e5c1d994065cbff1b8 (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/crashpad/crashpad/doc/support/generate_doxygen.py
diff --git a/third_party/crashpad/crashpad/doc/support/generate_doxygen.py b/third_party/crashpad/crashpad/doc/support/generate_doxygen.py
new file mode 100755
index 0000000000000000000000000000000000000000..11dd0ad0df1d879ad97d2916dfbcee688b34060b
--- /dev/null
+++ b/third_party/crashpad/crashpad/doc/support/generate_doxygen.py
@@ -0,0 +1,49 @@
+#!/usr/bin/env python
+# coding: utf-8
+
+# Copyright 2017 The Crashpad Authors. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Generating Doxygen documentation requires Doxygen, http://www.doxygen.org/.
+
+import os
+import shutil
+import subprocess
+import sys
+
+
+def main(args):
+ script_dir = os.path.dirname(__file__)
+ crashpad_dir = os.path.join(script_dir, os.pardir, os.pardir)
+
+ # Run from the Crashpad project root directory.
+ os.chdir(crashpad_dir)
+
+ output_dir = os.path.join('out', 'doc', 'doxygen')
+
+ if os.path.isdir(output_dir) and not os.path.islink(output_dir):
+ shutil.rmtree(output_dir)
+ elif os.path.exists(output_dir):
+ os.unlink(output_dir)
+
+ os.makedirs(output_dir, 0755)
+
+ doxy_file = os.path.join('doc', 'support', 'crashpad.doxy')
+ subprocess.check_call(['doxygen', doxy_file])
+
+ return 0
+
+
+if __name__ == '__main__':
+ sys.exit(main(sys.argv[1:]))
« no previous file with comments | « third_party/crashpad/crashpad/doc/support/generate.sh ('k') | third_party/crashpad/crashpad/doc/support/generate_doxygen.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698