haniceboy / gyp

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

Dependency on file list targets breaks when the build directory is renamed #388

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
From https://codereview.chromium.org/83673002/#msg9:

If one does something like
  ./build/gyp_chromium
  mv out another_out
  ninja -C another_out/Release chrome

The build errors out like this:
  '../../out/gypfiles/third_party/WebKit/Source/bindings/main_idl_files_list.tmp',
  needed by 'gen/blink/BindingsDerivedSources.txt', missing and no known
  rule to make it

Original issue reported on code.google.com by raphael.kubo.da.costa@intel.com on 27 Nov 2013 at 11:06

GoogleCodeExporter commented 9 years ago

Original comment by thakis@chromium.org on 27 Nov 2013 at 5:42

GoogleCodeExporter commented 9 years ago
I looked at this. The problem is that actions run in the folder where the gyp 
file defining it lives, but gypfiles is in the build directory. So that's why 
the path is in there. I guess we could do something like:

  GYPFILE=$pwd/gypfiles/path/to.gypcmd; cd ../../actiondir; use $GYPFILE

Original comment by thakis@chromium.org on 8 Dec 2013 at 10:20