michael@0: # Copyright (c) 2012 The Chromium Authors. All rights reserved. michael@0: # Use of this source code is governed by a BSD-style license that can be michael@0: # found in the LICENSE file. michael@0: michael@0: # This file is meant to be included into an action to copy test data files into michael@0: # an iOS app bundle. To use this the following variables need to be defined: michael@0: # test_data_files: list: paths to test data files or directories michael@0: # test_data_prefix: string: a directory prefix that will be prepended to each michael@0: # output path. Generally, this should be the base michael@0: # directory of the gypi file containing the unittest michael@0: # target (e.g. "base" or "chrome"). michael@0: # michael@0: # To use this, create a gyp target with the following form: michael@0: # { michael@0: # 'target_name': 'my_unittests', michael@0: # 'conditions': [ michael@0: # ['OS == "ios"', { michael@0: # 'actions': [ michael@0: # { michael@0: # 'action_name': 'copy_test_data', michael@0: # 'variables': { michael@0: # 'test_data_files': [ michael@0: # 'path/to/datafile.txt', michael@0: # 'path/to/data/directory/', michael@0: # ] michael@0: # 'test_data_prefix' : 'prefix', michael@0: # }, michael@0: # 'includes': ['path/to/this/gypi/file'], michael@0: # }, michael@0: # ], michael@0: # }], michael@0: # } michael@0: # michael@0: michael@0: { michael@0: 'inputs': [ michael@0: '