Home | History | Annotate | Download | only in analyzer
      1 # Copyright (c) 2014 Google Inc. All rights reserved.
      2 # Use of this source code is governed by a BSD-style license that can be
      3 # found in the LICENSE file.
      4 
      5 {
      6   'variables': {
      7     'test_variable%': 0,
      8     'variable_path': 'subdir',
      9    },
     10   'targets': [
     11     {
     12       'target_name': 'exe',
     13       'type': 'executable',
     14       'dependencies': [
     15         'subdir/subdir.gyp:foo',
     16       ],
     17       'sources': [
     18         'foo.c',
     19         '<(variable_path)/subdir_source2.c',
     20       ],
     21       'conditions': [
     22         ['test_variable==1', {
     23           'sources': [
     24             'conditional_source.c',
     25           ],
     26         }],
     27       ],
     28       'actions': [
     29         {
     30           'action_name': 'action',
     31           'inputs': [
     32             '<(PRODUCT_DIR)/product_dir_input.c',
     33             'action_input.c',
     34           ],
     35           'outputs': [
     36             'action_output.c',
     37           ],
     38         },
     39       ],
     40       'rules': [
     41         {
     42           'rule_name': 'rule',
     43           'extension': 'pdf',
     44           'inputs': [
     45             'rule_input.c',
     46           ],
     47           'outputs': [
     48             'rule_output.pdf',
     49           ],
     50         },
     51       ],
     52     },
     53   ],
     54 }
     55