diff options
author | Robin Gareus <robin@gareus.org> | 2015-01-28 23:50:07 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2015-01-28 23:50:07 +0100 |
commit | 6b360950cefdf6b2b1847cbfde5b0b61220928a9 (patch) | |
tree | d62358fe508c8ee9db7ddad5da8ad6742b596789 /gtk2_ardour/wscript | |
parent | bc3f606e16280855790ebfb4e60b827ba290766e (diff) |
guess what?!
Diffstat (limited to 'gtk2_ardour/wscript')
-rw-r--r-- | gtk2_ardour/wscript | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/gtk2_ardour/wscript b/gtk2_ardour/wscript index 57637e7a2a..1bb632b027 100644 --- a/gtk2_ardour/wscript +++ b/gtk2_ardour/wscript @@ -257,6 +257,20 @@ gtk2_ardour_sources = [ 'video_tool_paths.cc' ] +def enoify (major, minor): + if major == 3: + return "\\n\\\"E-No\\\"" + elif major == 4: + if minor == 0: + return "\\n\\\"No Pussyfooting\\\"" + elif minor == 1: + return "\\n\\\"Here Come the Warm Jets\\\"" + elif minor == 2: + return "\\n\\\"Taking Tiger Mountain\\\"" + elif minor == 3: + return "\\n\\\"Lady June's Linguistic Leprosy\\\"" + return "\\\"\\\"" + def options(opt): autowaf.set_options(opt) @@ -285,7 +299,8 @@ def configure(conf): bak = conf.env['define_key'] conf.define('VERSIONSTRING', str (conf.env['VERSION'])) - conf.env['define_key'] = ['VERSIONSTRING'] + conf.define('CODENAME', enoify(int(conf.env['MAJOR']), int(conf.env['MINOR']))) + conf.env['define_key'] = ['VERSIONSTRING', 'CODENAME' ] conf.write_config_header('gtk2ardour-version.h') conf.env['define_key'] = bak; |