blob: 786d188f14df7b8ac40c66e07ff9c056ab64e6e4 [file] [log] [blame]
#!/usr/bin/env python
#
# Copyright (C) 2016 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
"""Update .bp and .mk files under test/vts-testcase/hal.
Among .bp and .mk files affected are:
1. test/vts-testcase/hal/Android.bp
2. files matching: test/vts-testcase/hal/<hal_name>/<hal_version>/Android.bp
Usage:
cd test/vts-testcase/hal; ./script/update_makefiles.py
"""
from build.build_rule_gen import BuildRuleGen
import os
import sys
if __name__ == "__main__":
print 'Updating build rules.'
warning_header = (
'// This file was auto-generated. Do not edit manually.\n'
'// Use test/vts-testcase/hal/script/update_makefiles.py to generate this file.\n\n')
build_rule_gen = BuildRuleGen(warning_header)
build_rule_gen.UpdateBuildRule()