XCode and build flags

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

XCode and build flags

Tim Burgess-5
Hi,

I got my cxxflags, etc. Values on my Mac and need to plug them into my XCode Build Settings. This is, absurdly, a signifiant accessibility challenge, so I don’t want to have to do it more than once for this project. I also want to make the project files as portable as possible for distrubtion on GitHub.

To this end, I’d like to check that there’s no good reason that I can’t modify the paths in the —cxxflags and —libs output by replacing /users/tim/ with ~/

best wishes.

Tim Burgess

--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to [hidden email]
or visit http://groups.google.com/group/wx-users
Reply | Threaded
Open this post in threaded view
|

RE: XCode and build flags

Steve Barnes
Hi Tim,

Daft as it might sound I think that there are actually some reasons for using absolute paths in the output of the configure step - these include the possibility that the build might be being performed without having the user logged on, e.g. automatic builds from Jenkins, chron jobs, etc.

In these cases as you are not logged on, (or possibly a different user account is being used to build the code), so ~/ is not the same as /users/time/ - you would be better off using environmental variables such as "$(WXROOT)/build/osx/setup/cocoa/include" and "$(WXROOT)/include".

This would maximise portability.

Hope that helps

Steve

> -----Original Message-----
> From: [hidden email] <[hidden email]> On Behalf
> Of Tim Burgess
> Sent: 01 November 2018 09:10
> To: wx-users <[hidden email]>
> Subject: XCode and build flags
>
> Hi,
>
> I got my cxxflags, etc. Values on my Mac and need to plug them into my XCode
> Build Settings. This is, absurdly, a signifiant accessibility challenge, so I don’t
> want to have to do it more than once for this project. I also want to make the
> project files as portable as possible for distrubtion on GitHub.
>
> To this end, I’d like to check that there’s no good reason that I can’t modify the
> paths in the —cxxflags and —libs output by replacing /users/tim/ with ~/
>
> best wishes.
>
> Tim Burgess
>
> --
> Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.
>
> To unsubscribe, send email to [hidden email]
> or visit http://groups.google.com/group/wx-users

--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to [hidden email]
or visit http://groups.google.com/group/wx-users
Reply | Threaded
Open this post in threaded view
|

Re: XCode and build flags

Tim Burgess-5
Good points - thanks for pointing them out.


best wishes.

Tim Burgess


> On 1 Nov 2018, at 21:01, Steve Barnes <[hidden email]> wrote:
>
> Hi Tim,
>
> Daft as it might sound I think that there are actually some reasons for using absolute paths in the output of the configure step - these include the possibility that the build might be being performed without having the user logged on, e.g. automatic builds from Jenkins, chron jobs, etc.
>
> In these cases as you are not logged on, (or possibly a different user account is being used to build the code), so ~/ is not the same as /users/time/ - you would be better off using environmental variables such as "$(WXROOT)/build/osx/setup/cocoa/include" and "$(WXROOT)/include".
>
> This would maximise portability.
>
> Hope that helps
>
> Steve
>
>> -----Original Message-----
>> From: [hidden email] <[hidden email]> On Behalf
>> Of Tim Burgess
>> Sent: 01 November 2018 09:10
>> To: wx-users <[hidden email]>
>> Subject: XCode and build flags
>>
>> Hi,
>>
>> I got my cxxflags, etc. Values on my Mac and need to plug them into my XCode
>> Build Settings. This is, absurdly, a signifiant accessibility challenge, so I don’t
>> want to have to do it more than once for this project. I also want to make the
>> project files as portable as possible for distrubtion on GitHub.
>>
>> To this end, I’d like to check that there’s no good reason that I can’t modify the
>> paths in the —cxxflags and —libs output by replacing /users/tim/ with ~/
>>
>> best wishes.
>>
>> Tim Burgess
>>
>> --
>> Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.
>>
>> To unsubscribe, send email to [hidden email]
>> or visit http://groups.google.com/group/wx-users
>
> --
> Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.
>
> To unsubscribe, send email to [hidden email]
> or visit http://groups.google.com/group/wx-users

--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to [hidden email]
or visit http://groups.google.com/group/wx-users