On Wed, Feb 25, 2015 at 5:20 AM, Malek Musleh <[email protected]> wrote: > Hi, > > I am trying to instrument the v8 source code with callable functions defined > in a separate (external library). > Specifically, I am inserting these instrumentation function calls in > ./src/ic/arm/ic-arm.cc > > Is the main Makefile (v8/Makefile) the best place to include a link against > my external library or is there a more formal > way of doing so? > > I have access to the source code of the external library, so theoretically I > could include the library source files within the v8 build structure, > but from past experiences, it would seem this would be the undesirable > approach. > > Malek
I think you should be able to add it to the 'libraries' element in the appropriate 'link_settings' section in tools/gyp/v8.gyp. You will probably also need to update one of the 'include_dirs' elements if the external library comes with its own headers. If you are going to integrate V8 with a downstream project that also builds with GYP, you should also update the appropriate 'direct_dependent_settings' section to make downstream pick up the required link settings automatically. -- -- v8-users mailing list [email protected] http://groups.google.com/group/v8-users --- You received this message because you are subscribed to the Google Groups "v8-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
