Generated Xcode project should include public sources

26 views
Skip to first unread message

b17

unread,
Dec 30, 2016, 11:15:30 AM12/30/16
to gn-dev
Hi,
When generating Xcode projects with gn gen --ide=xcode public source files aren't referenced in the "sources" project. For example, if I have:

executable("exe") {
  public = [
    "file.h",
  ]
  sources = [
    "file.cc",
  ]
}

then only "file.cc" is present in the generated Xcode project and not "file.h". Am I missing something obvious here? Or can this please be changed?

-Kal

Brett Wilson

unread,
Dec 30, 2016, 12:50:48 PM12/30/16
to b17, gn-dev
The public files should be listed so this does sound like a bug.

Brett

b17

unread,
Jan 7, 2017, 6:15:08 AM1/7/17
to gn-dev, b17...@gmail.com, bre...@google.com
Should a bug report be filed?

b17

unread,
Feb 4, 2017, 9:57:05 AM2/4/17
to gn-dev, b17...@gmail.com, bre...@google.com
Maintainer of GN Xcode project generator. Please fix this. ;-))

Sylvain Defresne

unread,
Mar 14, 2017, 5:06:45 AM3/14/17
to b17, gn-dev, Brett Wilson
This should be fixed with https://codereview.chromium.org/2748783002/.
-- Sylvain
Reply all
Reply to author
Forward
0 new messages