xref: /aosp_15_r20/frameworks/rs/script_api/Generator.h (revision e1eccf28f96817838ad6867f7f39d2351ec11f56)
1*e1eccf28SAndroid Build Coastguard Worker /*
2*e1eccf28SAndroid Build Coastguard Worker  * Copyright (C) 2015 The Android Open Source Project
3*e1eccf28SAndroid Build Coastguard Worker  *
4*e1eccf28SAndroid Build Coastguard Worker  * Licensed under the Apache License, Version 2.0 (the "License");
5*e1eccf28SAndroid Build Coastguard Worker  * you may not use this file except in compliance with the License.
6*e1eccf28SAndroid Build Coastguard Worker  * You may obtain a copy of the License at
7*e1eccf28SAndroid Build Coastguard Worker  *
8*e1eccf28SAndroid Build Coastguard Worker  *      http://www.apache.org/licenses/LICENSE-2.0
9*e1eccf28SAndroid Build Coastguard Worker  *
10*e1eccf28SAndroid Build Coastguard Worker  * Unless required by applicable law or agreed to in writing, software
11*e1eccf28SAndroid Build Coastguard Worker  * distributed under the License is distributed on an "AS IS" BASIS,
12*e1eccf28SAndroid Build Coastguard Worker  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13*e1eccf28SAndroid Build Coastguard Worker  * See the License for the specific language governing permissions and
14*e1eccf28SAndroid Build Coastguard Worker  * limitations under the License.
15*e1eccf28SAndroid Build Coastguard Worker  */
16*e1eccf28SAndroid Build Coastguard Worker 
17*e1eccf28SAndroid Build Coastguard Worker #ifndef ANDROID_RS_API_GENERATOR_GENERATOR_H
18*e1eccf28SAndroid Build Coastguard Worker #define ANDROID_RS_API_GENERATOR_GENERATOR_H
19*e1eccf28SAndroid Build Coastguard Worker 
20*e1eccf28SAndroid Build Coastguard Worker // Generates the RenderScript header files.  The implementation is in GenerateHeaderFiles.cpp.
21*e1eccf28SAndroid Build Coastguard Worker bool generateHeaderFiles(const std::string& directory);
22*e1eccf28SAndroid Build Coastguard Worker 
23*e1eccf28SAndroid Build Coastguard Worker // Generates the Java and RenderScript test files.  The implementation is in GenerateTestFiles.cpp.
24*e1eccf28SAndroid Build Coastguard Worker bool generateTestFiles(const std::string& directory, unsigned int versionOfTestFiles);
25*e1eccf28SAndroid Build Coastguard Worker 
26*e1eccf28SAndroid Build Coastguard Worker /* Generates the documentation files.  The implementation is in
27*e1eccf28SAndroid Build Coastguard Worker  * GenerateDocumentation.cpp. This function generates the .jd files needed by
28*e1eccf28SAndroid Build Coastguard Worker  * the documentation system.
29*e1eccf28SAndroid Build Coastguard Worker  */
30*e1eccf28SAndroid Build Coastguard Worker bool generateDocumentation(const std::string& director);
31*e1eccf28SAndroid Build Coastguard Worker 
32*e1eccf28SAndroid Build Coastguard Worker /* Generates the RSFunctionsList.cpp file.  Also generates script test files that are used
33*e1eccf28SAndroid Build Coastguard Worker  * when testing slang and that can be used to manually verify the list.
34*e1eccf28SAndroid Build Coastguard Worker  * The implementation is in GenerateRSFunctionsList.cpp.
35*e1eccf28SAndroid Build Coastguard Worker  */
36*e1eccf28SAndroid Build Coastguard Worker bool generateRSFunctionsList(const std::string& slangTestDirectory, unsigned int maxApiLevel);
37*e1eccf28SAndroid Build Coastguard Worker 
38*e1eccf28SAndroid Build Coastguard Worker #endif  // ANDROID_RS_API_GENERATOR_GENERATOR_H
39