Jean-Luc Brouillet | c5184e2 | 2015-03-13 13:51:24 -0700 | [diff] [blame] | 1 | /* |
| 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 Brouillet | 66fea24 | 2015-04-09 16:47:59 -0700 | [diff] [blame] | 21 | bool generateHeaderFiles(const std::string& directory); |
Jean-Luc Brouillet | c5184e2 | 2015-03-13 13:51:24 -0700 | [diff] [blame] | 22 | |
| 23 | // Generates the Java and RenderScript test files. The implementation is in GenerateTestFiles.cpp. |
Yang Ni | 12398d8 | 2015-09-18 14:57:07 -0700 | [diff] [blame] | 24 | bool generateTestFiles(const std::string& directory, unsigned int versionOfTestFiles); |
Jean-Luc Brouillet | c5184e2 | 2015-03-13 13:51:24 -0700 | [diff] [blame] | 25 | |
I-Jui (Ray) Sung | 32d3520 | 2017-06-21 13:32:57 -0700 | [diff] [blame] | 26 | /* 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 Brouillet | 2217eb7 | 2015-04-24 14:41:48 -0700 | [diff] [blame] | 29 | */ |
I-Jui (Ray) Sung | 32d3520 | 2017-06-21 13:32:57 -0700 | [diff] [blame] | 30 | bool generateDocumentation(const std::string& director); |
Jean-Luc Brouillet | c5184e2 | 2015-03-13 13:51:24 -0700 | [diff] [blame] | 31 | |
Pirama Arumuga Nainar | e0c0bd7 | 2020-07-26 22:12:00 -0700 | [diff] [blame] | 32 | /* 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 Brouillet | 3609067 | 2015-04-07 15:15:53 -0700 | [diff] [blame] | 35 | */ |
Pirama Arumuga Nainar | e0c0bd7 | 2020-07-26 22:12:00 -0700 | [diff] [blame] | 36 | bool generateRSFunctionsList(const std::string& slangTestDirectory, unsigned int maxApiLevel); |
Jean-Luc Brouillet | 3609067 | 2015-04-07 15:15:53 -0700 | [diff] [blame] | 37 | |
Jean-Luc Brouillet | c5184e2 | 2015-03-13 13:51:24 -0700 | [diff] [blame] | 38 | #endif // ANDROID_RS_API_GENERATOR_GENERATOR_H |