Home | History | Annotate | Download | only in src
      1 # Copyright (c) 2009 Google Inc. All rights reserved.
      2 # Use of this source code is governed by a BSD-style license that can be
      3 # found in the LICENSE file.
      4 
      5 {
      6   'targets': [
      7     {
      8       'target_name': 'copies1',
      9       'type': 'none',
     10       'copies': [
     11         {
     12           'destination': 'copies-out',
     13           'files': [
     14             'file1',
     15           ],
     16         },
     17       ],
     18     },
     19     {
     20       'target_name': 'copies2',
     21       'type': 'none',
     22       'copies': [
     23         {
     24           'destination': '<(PRODUCT_DIR)/copies-out',
     25           'files': [
     26             'file2',
     27           ],
     28         },
     29       ],
     30     },
     31     # Copy a directory tree.
     32     {
     33       'target_name': 'copies_recursive',
     34       'type': 'none',
     35       'copies': [
     36         {
     37           'destination': '<(PRODUCT_DIR)/copies-out',
     38           'files': [
     39             'directory/',
     40           ],
     41         },
     42       ],
     43     },
     44     # Copy a directory from deeper in the tree (this should not reproduce the
     45     # entire directory path in the destination, only the final directory).
     46     {
     47       'target_name': 'copies_recursive_depth',
     48       'type': 'none',
     49       'copies': [
     50         {
     51           'destination': '<(PRODUCT_DIR)/copies-out',
     52           'files': [
     53             'parentdir/subdir/',
     54           ],
     55         },
     56       ],
     57     },
     58     # Verify that a null 'files' list doesn't gag the generators.
     59     {
     60       'target_name': 'copies_null',
     61       'type': 'none',
     62       'copies': [
     63         {
     64           'destination': '<(PRODUCT_DIR)/copies-null',
     65           'files': [],
     66         },
     67       ],
     68     },
     69   ],
     70 }
     71