Pebble-Backup / cloudpebble

CloudPebble source. Here be dragons.
http://cloudpebble.net/
MIT License
1 stars 0 forks source link

Add support for editing compiler flags #39

Open tbe opened 7 years ago

tbe commented 7 years ago

Issue by jamesmattis Thursday Oct 23, 2014 at 20:06 GMT # Sample: Friday Sep 13, 2013 at 22:58 GMT Originally opened as https://github.com/pebble/cloudpebble/issues/110


It would be great to have support for editing the wscript file to change build settings, or at least have some sort of interface for adding & editing CFLAGS. Things like this for example:

ctx.env.CFLAGS.append('-DUSE_FIXED_POINT=1')

Add/Delete/Toggle on/off.

tbe commented 7 years ago

Comment by jamesmattis Thursday Oct 23, 2014 at 20:41 GMT # Sample: Friday Sep 13, 2013 at 22:58 GMT


Wanted to add a few more comments after reading some stuff in the developers forum on this topic.

I want the ability to add or set CFLAGS and share code between multiple projects. So, some shared code folder perhaps, and the ability to have the system automatically edit the wscript file so that the appropriate shared code gets built for your project.

I don't however want or need direct wscript editing ability. Just some means of having the system edit the wscript file in some standard ways.

tbe commented 7 years ago

Comment by Katharine Thursday Oct 23, 2014 at 20:47 GMT # Sample: Friday Sep 13, 2013 at 22:58 GMT


CFLAGS is one thing, and I'll do those at some point.

Shared code is a harder problem. They don't live in the same feature request, in any case.

tbe commented 7 years ago

Comment by ron064 Monday Nov 10, 2014 at 02:24 GMT # Sample: Friday Sep 13, 2013 at 22:58 GMT


@jamesmattis It's not clear to me how CFLAGS can do anything you can't do with simple define in the project. for the other subject, I'm opening a similar issue.

tbe commented 7 years ago

Comment by jamesmattis Monday Nov 10, 2014 at 18:47 GMT # Sample: Friday Sep 13, 2013 at 22:58 GMT


Though that's true...my strong suspicion is that there are many developers coming to develop on CloudPebble with little C experience and minimal C preprocessor experience. I think for those types of users, providing some interface that would give them with a list of common options that they could select or add to their project via CFLAGS would really benefit them.

James

On Sun, Nov 9, 2014 at 6:24 PM, Ron Ravid notifications@github.com wrote:

@jamesmattis https://github.com/jamesmattis It's not clear to me how CFLAGS can do anything you can't do with simple define in the project. for the other subject, I'm opening a similar issue.

— Reply to this email directly or view it on GitHub https://github.com/pebble/cloudpebble/issues/110#issuecomment-62333171.