Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Defaulting to specific variant
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Billy O'Neal  
View profile   Translate to Translated (View Original)
 More options May 28 2012, 11:30 am
From: Billy O'Neal <billy.on...@gmail.com>
Date: Mon, 28 May 2012 08:30:27 -0700 (PDT)
Local: Mon, May 28 2012 11:30 am
Subject: Defaulting to specific variant

Hi there. :)

I've got a couple of build variants setup; "release" and "debug", similar
to that described in the Waf book. I'd like to change the way the book does
things though in that it disables the default "build" action. Rather than
disabling this, if possible I'd like to choose the most recently selected
variant (so that while working someone can just type "waf" and have things
work without messing with settings).

Is that possible? (It doesn't seem like the variant can be changed from
inside the build script but figured I'd ask...

Thanks!

Billy3


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Billy O'Neal  
View profile   Translate to Translated (View Original)
 More options May 28 2012, 11:31 am
From: Billy O'Neal <billy.on...@gmail.com>
Date: Mon, 28 May 2012 08:31:53 -0700 (PDT)
Local: Mon, May 28 2012 11:31 am
Subject: Re: Defaulting to specific variant

:sigh: sorry to bother everyone; just realized that I should have searched
before asking and found the answer in there.

Have a nice day,

Billy3


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
mathieu  
View profile  
 More options May 29 2012, 3:08 am
From: mathieu <mathieu.court...@gmail.com>
Date: Tue, 29 May 2012 00:08:02 -0700 (PDT)
Local: Tues, May 29 2012 3:08 am
Subject: Re: Defaulting to specific variant

We could have posted your answer to help the others !
Here is mine :

def init(self):
    from waflib.Build import BuildContext, CleanContext, InstallContext,
UninstallContext
    _all = (BuildContext, CleanContext, InstallContext, UninstallContext)
    for x in ['debug', 'release']:
        for y in _all:
            name = y.__name__.replace('Context','').lower()
            class tmp(y):
                cmd = name + '_' + x
                variant = x
    # default to release
    for y in _all:
       class tmp(y):
           variant = 'release'

MC


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »