What's meaning the toolsset 'target' and 'host'

70 views
Skip to first unread message

Chine Gary

unread,
Sep 1, 2015, 3:11:52 AM9/1/15
to chromi...@chromium.org
When I build a project,it always come to the toolset 'host' but not 'target',but my shared library only support the 'target' build.
How do I check the build script to make the build only done on 'target' toolset?


Thanks,
Gary

Primiano Tucci

unread,
Sep 1, 2015, 1:57:59 PM9/1/15
to xiaod...@gmail.com, chromi...@chromium.org
Not sure I understand what is the actual question here.
Are you maybe looking for stuff like this in gyp (similarly host_toolchain on gn) ?

'toolsets': ['host', 'target'],

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev

Daniel Bratell

unread,
Sep 2, 2015, 8:54:11 AM9/2/15
to chromi...@chromium.org, Chine Gary
On Tue, 01 Sep 2015 09:10:46 +0200, Chine Gary <xiaod...@gmail.com> wrote:

When I build a project,it always come to the toolset 'host' but not 'target',but my shared library only support the 'target' build.
How do I check the build script to make the build only done on 'target' toolset?

Assuming gyp here, then your gyp target is typically pulled in through a dependency and it will use the same toolset as the parent by default.

If you have a "host" gyp-target and want to depend on a "target" gyp-target then use the hash syntax:

'dependencies': [
  'mylib#target',
],

/Daniel

--
/* Opera Software, Linköping, Sweden: CEST (UTC+2) */

Dirk Pranke

unread,
Sep 2, 2015, 12:10:45 PM9/2/15
to Daniel Bratell, chromi...@chromium.org, Chine Gary
There is a limited amount of documentation on this here:


Suggestions for improving it are welcome.

-- Dirk

--
Reply all
Reply to author
Forward
0 new messages