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. 21 bool generateHeaderFiles(const std::string& directory); 22 23 // Generates the Java and RenderScript test files. The implementation is in GenerateTestFiles.cpp. 24 bool generateTestFiles(const std::string& directory, unsigned int versionOfTestFiles); 25 26 /* Generates the documentation files. The implementation is in 27 * GenerateDocumentation.cpp. This function generates the .jd files needed by 28 * the documentation system. 29 */ 30 bool generateDocumentation(const std::string& director); 31 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. 35 */ 36 bool generateRSFunctionsList(const std::string& slangTestDirectory, unsigned int maxApiLevel); 37 38 #endif // ANDROID_RS_API_GENERATOR_GENERATOR_H 39