Ryan Sleevi
unread,Oct 1, 2012, 6:39:19 PM10/1/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Mark Mentovai, Evan Martin, Eric Boren, to...@chromium.org, Nico Weber, gyp-developer
This has come up in a related form with the Chrome for Android's team
use of Java, and their desire to take shared libraries and package
them up for distribution to testers. In short, wanting to know the
final filename(s) of the outputs of a given target, to be able to
create a 'copies' rule or use it in an action.
Right now, it's hacky-and-it-works , see
http://src.chromium.org/viewvc/chrome/trunk/src/net/net.gyp?view=annotate#l2242
'input_shlib_path':
'<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)net_unittests<(SHARED_LIB_SUFFIX)',
For packaging a fat library, I would imagine
'copies': [
{ 'destination': '<(PRODUCT_DIR)/dist',
'files': [ '<(LIB_DIR)/<(LIB_PREFIX)target_name<(LIB_SUFFIX)' ],
},
],
Yes, all of this (currently) relies on generator-specific magic, but
it's worked so far, and at least has the benefit of having an explicit
step to make it clear about what the expected final result is.