lymneu / gyp

Automatically exported from code.google.com/p/gyp
0 stars 0 forks source link

Pathname Relativization and Default Values for Variables (%) #444

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Use the following gyp files :

config.gypi : 
{
  'variables': {
    'src_path%': 'src/'
  }
}

sub_directory/app.gyp :
{
  'targets': [
    {
      'target_name': 'test',
      'type': 'executable',
      'sources': [
        '<(src_paths)/file.c'
      ],
    },
  ],
}

2. run gyp : gyp -d variables --depth ./ --include config.gypi 
sub_directory/app.gyp

What is the expected output? What do you see instead?
In app.gyp, src_path variable should be expanded to ../src/ but instead it's 
src/

What version of the product are you using? On what operating system?
r1967 (August 19th). Linux Debian.

Please provide any additional information below.
See attached file for a patch.

Original issue reported on code.google.com by efy...@gmail.com on 19 Aug 2014 at 12:14

Attachments: