Great.  I am assuming these files are lldb_private, the instructions are 
slightly different for SB API files.

Open the lldb.xcworkspace in the top-level lldb directory.  Select the Project 
Navigator from the Navigators on the LHS of the Xcode window, and figure out 
where in the project hierarchy your new files should go.  For instance, if they 
relate to targets & live processes, they go in Source->Target, if expressions 
in the Source->Expressions folder, etc.  Note, even if the headers & source 
files are separated into source & include on disk, we put them into the same 
Group in the project hierarchy.

Anyway, once you've determined what group you want them to go into, select that 
group in the Project Navigator and do File->Add Files.  In the file picker, 
first select all the .cpp files, and add them.  In the dialog that comes up, 
add the files to the lldb-core Target.  Also make sure the files are "relative 
to Group" but that's the default value so you shouldn't have to change that 
setting.

Then do it again for the include files, but in that case DON'T add them to any 
target.  The reason for this is that Xcode has some trickery to allow you to 
access headers as if they were in a directory with an explicit -I, without 
providing the path relative to include, but then those files wouldn't build 
with cmake.  If you don't add them to the project, then this won't happen...

Note, you can check your work in the Utilities viewer - which you can open by 
clicking the right-most control on the toolbar - whose tooltip is "Hide or Show 
Utilities".  That will show target ownership, etc.

Then clean & build to make sure everything worked.

Jim


> On Jun 22, 2015, at 2:47 AM, Ewan Crawford <e...@codeplay.com> wrote:
> 
> Hiya Jim, I do have access to an OSX system with Xcode. It would be good to 
> know how to add files for future reference.
> 
> 
> http://reviews.llvm.org/D9404
> 
> EMAIL PREFERENCES
>  http://reviews.llvm.org/settings/panel/emailpreferences/
> 
> 


_______________________________________________
lldb-commits mailing list
lldb-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/lldb-commits

Reply via email to