blob: 2cbc37f693b8963c98461e7cafee272e6c7657eb [file] [log] [blame]
Jean-Luc Brouilletc5184e22015-03-13 13:51:24 -07001/*
2 * Copyright (C) 2015 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#ifndef ANDROID_RS_API_GENERATOR_GENERATOR_H
18#define ANDROID_RS_API_GENERATOR_GENERATOR_H
19
20// Generates the RenderScript header files. The implementation is in GenerateHeaderFiles.cpp.
Jean-Luc Brouillet66fea242015-04-09 16:47:59 -070021bool generateHeaderFiles(const std::string& directory);
Jean-Luc Brouilletc5184e22015-03-13 13:51:24 -070022
23// Generates the Java and RenderScript test files. The implementation is in GenerateTestFiles.cpp.
Yang Ni12398d82015-09-18 14:57:07 -070024bool generateTestFiles(const std::string& directory, unsigned int versionOfTestFiles);
Jean-Luc Brouilletc5184e22015-03-13 13:51:24 -070025
I-Jui (Ray) Sung32d35202017-06-21 13:32:57 -070026/* Generates the documentation files. The implementation is in
27 * GenerateDocumentation.cpp. This function generates the .jd files needed by
28 * the documentation system.
Jean-Luc Brouillet2217eb72015-04-24 14:41:48 -070029 */
I-Jui (Ray) Sung32d35202017-06-21 13:32:57 -070030bool generateDocumentation(const std::string& director);
Jean-Luc Brouilletc5184e22015-03-13 13:51:24 -070031
Pirama Arumuga Nainare0c0bd72020-07-26 22:12:00 -070032/* Generates the RSFunctionsList.cpp file. Also generates script test files that are used
33 * when testing slang and that can be used to manually verify the list.
34 * The implementation is in GenerateRSFunctionsList.cpp.
Jean-Luc Brouillet36090672015-04-07 15:15:53 -070035 */
Pirama Arumuga Nainare0c0bd72020-07-26 22:12:00 -070036bool generateRSFunctionsList(const std::string& slangTestDirectory, unsigned int maxApiLevel);
Jean-Luc Brouillet36090672015-04-07 15:15:53 -070037
Jean-Luc Brouilletc5184e22015-03-13 13:51:24 -070038#endif // ANDROID_RS_API_GENERATOR_GENERATOR_H