blob: 4d1be2840fe164d3d886a0e417761c6b4a3f9488 [file] [log] [blame]
Alex Deymoaea4c1c2015-08-19 20:24:43 -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#
Alex Deymo04ef2072015-08-13 08:19:16 -070016{
17 'variables': {
18 'out_dir': '<(SHARED_INTERMEDIATE_DIR)/<(image_out_dir)',
19 },
20 'rules': [
21 {
22 'rule_name': 'tar-bunzip2',
23 'extension': 'bz2',
Alex Deymo04ef2072015-08-13 08:19:16 -070024 'outputs': [
25 # The .flag file is used to mark the timestamp of the file extraction
26 # and re-run this action if a new .bz2 file is generated.
27 '<(out_dir)/<(RULE_INPUT_ROOT).flag',
28 ],
29 'action': [
30 'sh',
31 '-c',
32 'tar -xvf "<(RULE_INPUT_PATH)" -C "<(out_dir)" && touch <(out_dir)/<(RULE_INPUT_ROOT).flag',
33 ],
34 'msvs_cygwin_shell': 0,
35 'process_outputs_as_sources': 1,
36 'message': 'Unpacking file <(RULE_INPUT_PATH)',
37 },
38 ],
39}