blob: 7a9dd28d2caf745506b06347e500cb843506a7ab [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.
Jean-Luc Brouillet66fea242015-04-09 16:47:59 -070024bool generateTestFiles(const std::string& directory, int versionOfTestFiles);
Jean-Luc Brouilletc5184e22015-03-13 13:51:24 -070025
Jean-Luc Brouillet2217eb72015-04-24 14:41:48 -070026/* Generates the documentation files. The implementation is in GenerateDocumentation.cpp.
27 * If forVerification is false (the default), we generate the .jd files needed by the
28 * documentation system. If it's true, we generate complete .html files for local debugging.
29 */
30bool generateDocumentation(const std::string& director, bool forVerification);
Jean-Luc Brouilletc5184e22015-03-13 13:51:24 -070031
Jean-Luc Brouillet36090672015-04-07 15:15:53 -070032/* Generates the RSStubsWhiteList.cpp file. Also generates script test files that are used
33 * when testing slang and that can be used to manually verify the white list.
34 * The implementation is in GenerateStubsWhiteList.cpp.
35 */
36bool generateStubsWhiteList(const std::string& slangTestDirectory, int maxApiLevel);
37
Jean-Luc Brouilletc5184e22015-03-13 13:51:24 -070038#endif // ANDROID_RS_API_GENERATOR_GENERATOR_H