[haiku-development] Jam dependency on generated header

  • From: Jessica Hamilton <jessica.l.hamilton@xxxxxxxxx>
  • To: "haiku-development@xxxxxxxxxxxxx" <haiku-development@xxxxxxxxxxxxx>
  • Date: Wed, 10 Sep 2014 15:11:33 +1200

Hey,

Am trying to tidy up my patch for #10732, but running into issues
getting Jam to pickup a dependency correctly.

In src/bin/writembr/Jamfile, I have:

Object [ FGristFiles mbr.bin ] : mbr.nasm ;

DataFileToSourceFile [ FGristFiles MBR.h ] : [ FGristFiles mbr.bin ] :
kMBR : kMBRSize ;

And in src/add-ons/kernel/partitioning_systems/intel/Jamfile, I can't
seem to get it to depend on MBR.h correctly, so the
DataFileToSourceFile rule never gets invoked.

If I jam writembr; jam intel, then MBR.h gets generated from writembr,
and then the intel add-on successfully finds MBR.h.

In the Jamfile I have:

UseHeaders ] FDirName $(HAIKU_COMMON_PLATFORM_OBJECT_DIR) bin writembr ] ;

And this sets up the include path correctly; but I have no idea for
making the generated MBR.h happen.

- Jessica

Other related posts: