media/webrtc/trunk/build/copy_test_data_ios.gypi

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/media/webrtc/trunk/build/copy_test_data_ios.gypi	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,48 @@
     1.4 +# Copyright (c) 2012 The Chromium Authors. All rights reserved.
     1.5 +# Use of this source code is governed by a BSD-style license that can be
     1.6 +# found in the LICENSE file.
     1.7 +
     1.8 +# This file is meant to be included into an action to copy test data files into
     1.9 +# an iOS app bundle. To use this the following variables need to be defined:
    1.10 +#   test_data_files: list: paths to test data files or directories
    1.11 +#   test_data_prefix: string: a directory prefix that will be prepended to each
    1.12 +#                             output path.  Generally, this should be the base
    1.13 +#                             directory of the gypi file containing the unittest
    1.14 +#                             target (e.g. "base" or "chrome").
    1.15 +#
    1.16 +# To use this, create a gyp target with the following form:
    1.17 +# {
    1.18 +#   'target_name': 'my_unittests',
    1.19 +#   'conditions': [
    1.20 +#     ['OS == "ios"', {
    1.21 +#       'actions': [
    1.22 +#         {
    1.23 +#           'action_name': 'copy_test_data',
    1.24 +#           'variables': {
    1.25 +#             'test_data_files': [
    1.26 +#               'path/to/datafile.txt',
    1.27 +#               'path/to/data/directory/',
    1.28 +#             ]
    1.29 +#             'test_data_prefix' : 'prefix',
    1.30 +#           },
    1.31 +#           'includes': ['path/to/this/gypi/file'],
    1.32 +#         },
    1.33 +#       ],
    1.34 +#     }],
    1.35 +# }
    1.36 +#
    1.37 +
    1.38 +{
    1.39 +  'inputs': [
    1.40 +    '<!@pymod_do_main(copy_test_data_ios --inputs <(test_data_files))',
    1.41 +  ],
    1.42 +  'outputs': [
    1.43 +    '<!@pymod_do_main(copy_test_data_ios -o <(PRODUCT_DIR)/<(_target_name).app/<(test_data_prefix) --outputs <(test_data_files))',
    1.44 +  ],
    1.45 +  'action': [
    1.46 +    'python',
    1.47 +    '<(DEPTH)/build/copy_test_data_ios.py',
    1.48 +    '-o', '<(PRODUCT_DIR)/<(_target_name).app/<(test_data_prefix)',
    1.49 +    '<(_inputs)',
    1.50 +  ],
    1.51 +}

mercurial