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

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

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 'var19': ['<!@(python test.py)'],
michael@0 62 'var20': '<!(python test.py)',
michael@0 63 },
michael@0 64 'actions': [
michael@0 65 {
michael@0 66 'action_name': 'test_action',
michael@0 67 'variables': {
michael@0 68 'var7': '<!(echo <(var5)<(var6))',
michael@0 69 },
michael@0 70 'inputs' : [
michael@0 71 '<(var2)',
michael@0 72 ],
michael@0 73 'outputs': [
michael@0 74 '<(var4)',
michael@0 75 '<(var7)',
michael@0 76 ],
michael@0 77 'action': [
michael@0 78 'echo',
michael@0 79 '<(_inputs)',
michael@0 80 '<(_outputs)',
michael@0 81 ],
michael@0 82 },
michael@0 83 ],
michael@0 84 },
michael@0 85 ],
michael@0 86 }

mercurial