xref: /aosp_15_r20/external/skia/infra/bots/recipe_modules/doxygen/api.py (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1# Copyright 2018 The Chromium Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5
6from recipe_engine import recipe_api
7
8
9class DoxygenApi(recipe_api.RecipeApi):
10  def generate_and_upload(self, skia_dir):
11    with self.m.context(cwd=skia_dir):
12      self.m.run(
13          self.m.step,
14          'generate and upload doxygen',
15          cmd=['python3', self.resource('generate_and_upload_doxygen.py')],
16          abort_on_failure=False)
17