blob: e216e468f11b87e3656ca1f08e87757946bec73e [file] [log] [blame]
Jean-Luc Brouilletbcd5b9a2014-03-07 18:00:57 -08001#!/bin/bash
2#
3# Copyright (C) 2014 The Android Open Source Project
4#
5# Licensed under the Apache License, Version 2.0 (the "License");
6# you may not use this file except in compliance with the License.
7# You may obtain a copy of the License at
8#
9# http://www.apache.org/licenses/LICENSE-2.0
10#
11# Unless required by applicable law or agreed to in writing, software
12# distributed under the License is distributed on an "AS IS" BASIS,
13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14# See the License for the specific language governing permissions and
15# limitations under the License.
16#
17
18set -e
Jean-Luc Brouilletc5184e22015-03-13 13:51:24 -070019g++ Generator.cpp Specification.cpp GenerateHtmlDocumentation.cpp GenerateHeaderFiles.cpp GenerateTestFiles.cpp Scanner.cpp Utilities.cpp -g -std=c++11 -Wall -o generator
20
Jean-Luc Brouillet62e09932015-03-22 11:14:07 -070021mkdir -p test
22mkdir -p scriptc
23mkdir -p html
24
Jean-Luc Brouilletbe216382015-03-22 12:44:27 -070025# Because rsIs/Clear/SetObject is documented in rs_object_info but also found in rs_graphics, the latter must appear
26# after the former.
27./generator rs_core.spec rs_value_types.spec rs_object_types.spec rs_allocation_data.spec rs_atomic.spec rs_convert.spec rs_debug.spec rs_for_each.spec rs_io.spec rs_math.spec rs_matrix.spec rs_object_info.spec rs_quaternion.spec rs_time.spec rs_vector_math.spec rs_graphics.spec
Jean-Luc Brouilletc5184e22015-03-13 13:51:24 -070028
Jean-Luc Brouillet62e09932015-03-22 11:14:07 -070029rm -f ../../../cts/tests/tests/renderscript/src/android/renderscript/cts/generated/*
30mv test/* ../../../cts/tests/tests/renderscript/src/android/renderscript/cts/generated/
31rmdir test
Jean-Luc Brouilletc5184e22015-03-13 13:51:24 -070032
Jean-Luc Brouillet62e09932015-03-22 11:14:07 -070033mv scriptc/*.rsh ../scriptc
34rmdir scriptc
Jean-Luc Brouilletc5184e22015-03-13 13:51:24 -070035
Jean-Luc Brouillet62e09932015-03-22 11:14:07 -070036# TODO handle the documentation files.
37rm html/*
38rmdir html
39
Jean-Luc Brouilletc5184e22015-03-13 13:51:24 -070040rm generator