media/webrtc/trunk/build/copy_test_data_ios.gypi

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
michael@0 2 # Use of this source code is governed by a BSD-style license that can be
michael@0 3 # found in the LICENSE file.
michael@0 4
michael@0 5 # This file is meant to be included into an action to copy test data files into
michael@0 6 # an iOS app bundle. To use this the following variables need to be defined:
michael@0 7 # test_data_files: list: paths to test data files or directories
michael@0 8 # test_data_prefix: string: a directory prefix that will be prepended to each
michael@0 9 # output path. Generally, this should be the base
michael@0 10 # directory of the gypi file containing the unittest
michael@0 11 # target (e.g. "base" or "chrome").
michael@0 12 #
michael@0 13 # To use this, create a gyp target with the following form:
michael@0 14 # {
michael@0 15 # 'target_name': 'my_unittests',
michael@0 16 # 'conditions': [
michael@0 17 # ['OS == "ios"', {
michael@0 18 # 'actions': [
michael@0 19 # {
michael@0 20 # 'action_name': 'copy_test_data',
michael@0 21 # 'variables': {
michael@0 22 # 'test_data_files': [
michael@0 23 # 'path/to/datafile.txt',
michael@0 24 # 'path/to/data/directory/',
michael@0 25 # ]
michael@0 26 # 'test_data_prefix' : 'prefix',
michael@0 27 # },
michael@0 28 # 'includes': ['path/to/this/gypi/file'],
michael@0 29 # },
michael@0 30 # ],
michael@0 31 # }],
michael@0 32 # }
michael@0 33 #
michael@0 34
michael@0 35 {
michael@0 36 'inputs': [
michael@0 37 '<!@pymod_do_main(copy_test_data_ios --inputs <(test_data_files))',
michael@0 38 ],
michael@0 39 'outputs': [
michael@0 40 '<!@pymod_do_main(copy_test_data_ios -o <(PRODUCT_DIR)/<(_target_name).app/<(test_data_prefix) --outputs <(test_data_files))',
michael@0 41 ],
michael@0 42 'action': [
michael@0 43 'python',
michael@0 44 '<(DEPTH)/build/copy_test_data_ios.py',
michael@0 45 '-o', '<(PRODUCT_DIR)/<(_target_name).app/<(test_data_prefix)',
michael@0 46 '<(_inputs)',
michael@0 47 ],
michael@0 48 }

mercurial