media/webrtc/trunk/tools/gyp/test/variables/commands/commands-repeated.gyp

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) 2009 Google Inc. 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 is a simple test file to make sure that variable substitution
michael@0 6 # happens correctly. Run "run_tests.py" using python to generate the
michael@0 7 # output from this gyp file.
michael@0 8
michael@0 9 {
michael@0 10 'variables': {
michael@0 11 'pi': 'import math; print math.pi',
michael@0 12 'third_letters': "<(other_letters)HIJK",
michael@0 13 'letters_list': 'ABCD',
michael@0 14 'other_letters': '<(letters_list)EFG',
michael@0 15 'check_included': '<(included_variable)',
michael@0 16 'check_lists': [
michael@0 17 '<(included_variable)',
michael@0 18 '<(third_letters)',
michael@0 19 ],
michael@0 20 'check_int': 5,
michael@0 21 'check_str_int': '6',
michael@0 22 'check_list_int': [
michael@0 23 7,
michael@0 24 '8',
michael@0 25 9,
michael@0 26 ],
michael@0 27 'not_int_1': ' 10',
michael@0 28 'not_int_2': '11 ',
michael@0 29 'not_int_3': '012',
michael@0 30 'not_int_4': '13.0',
michael@0 31 'not_int_5': '+14',
michael@0 32 'negative_int': '-15',
michael@0 33 'zero_int': '0',
michael@0 34 },
michael@0 35 'includes': [
michael@0 36 'commands.gypi',
michael@0 37 ],
michael@0 38 'targets': [
michael@0 39 {
michael@0 40 'target_name': 'foo',
michael@0 41 'type': 'none',
michael@0 42 'variables': {
michael@0 43 'var1': '<!(["python", "-c", "<(pi)"])',
michael@0 44 'var2': '<!(python -c "print \'<!(python -c "<(pi)") <(letters_list)\'")',
michael@0 45 'var3': '<!(python -c "print \'<(letters_list)\'")',
michael@0 46 'var4': '<(<!(python -c "print \'letters_list\'"))',
michael@0 47 'var5': 'letters_',
michael@0 48 'var6': 'list',
michael@0 49 'var7': '<(check_int)',
michael@0 50 'var8': '<(check_int)blah',
michael@0 51 'var9': '<(check_str_int)',
michael@0 52 'var10': '<(check_list_int)',
michael@0 53 'var11': ['<@(check_list_int)'],
michael@0 54 'var12': '<(not_int_1)',
michael@0 55 'var13': '<(not_int_2)',
michael@0 56 'var14': '<(not_int_3)',
michael@0 57 'var15': '<(not_int_4)',
michael@0 58 'var16': '<(not_int_5)',
michael@0 59 'var17': '<(negative_int)',
michael@0 60 'var18': '<(zero_int)',
michael@0 61 # A second set with different names to make sure they only execute the
michael@0 62 # commands once.
michael@0 63 'var1prime': '<!(["python", "-c", "<(pi)"])',
michael@0 64 'var2prime': '<!(python -c "print \'<!(python -c "<(pi)") <(letters_list)\'")',
michael@0 65 'var3prime': '<!(python -c "print \'<(letters_list)\'")',
michael@0 66 'var4prime': '<(<!(python -c "print \'letters_list\'"))',
michael@0 67 },
michael@0 68 'actions': [
michael@0 69 {
michael@0 70 'action_name': 'test_action',
michael@0 71 'variables': {
michael@0 72 'var7': '<!(echo <(var5)<(var6))',
michael@0 73 },
michael@0 74 'inputs' : [
michael@0 75 '<(var2)',
michael@0 76 ],
michael@0 77 'outputs': [
michael@0 78 '<(var4)',
michael@0 79 '<(var7)',
michael@0 80 ],
michael@0 81 'action': [
michael@0 82 'echo',
michael@0 83 '<(_inputs)',
michael@0 84 '<(_outputs)',
michael@0 85 ],
michael@0 86 },
michael@0 87 # Again with the same vars to make sure the right things happened.
michael@0 88 {
michael@0 89 'action_name': 'test_action_prime',
michael@0 90 'variables': {
michael@0 91 'var7': '<!(echo <(var5)<(var6))',
michael@0 92 },
michael@0 93 'inputs' : [
michael@0 94 '<(var2)',
michael@0 95 ],
michael@0 96 'outputs': [
michael@0 97 '<(var4)',
michael@0 98 '<(var7)',
michael@0 99 ],
michael@0 100 'action': [
michael@0 101 'echo',
michael@0 102 '<(_inputs)',
michael@0 103 '<(_outputs)',
michael@0 104 ],
michael@0 105 },
michael@0 106 # And one more time with the other vars...
michael@0 107 {
michael@0 108 'action_name': 'test_action_prime_prime',
michael@0 109 'variables': {
michael@0 110 'var7': '<!(echo <(var5)<(var6))',
michael@0 111 },
michael@0 112 'inputs' : [
michael@0 113 '<(var2prime)',
michael@0 114 ],
michael@0 115 'outputs': [
michael@0 116 '<(var4prime)',
michael@0 117 '<(var7)',
michael@0 118 ],
michael@0 119 'action': [
michael@0 120 'echo',
michael@0 121 '<(_inputs)',
michael@0 122 '<(_outputs)',
michael@0 123 ],
michael@0 124 },
michael@0 125 ],
michael@0 126 },
michael@0 127 ],
michael@0 128 }

mercurial