7 Import('env install_prefix final_prefix config_prefix libraries i18n version')
12 # this defines the version number of the GTK interface to ardour
17 gtkardour.Append(DOMAIN=domain, MAJOR=1,MINOR=0,MICRO=2)
18 gtkardour.Append(CXXFLAGS="-DPACKAGE=\\\"" + domain + "\\\"")
19 gtkardour.Append(CCFLAGS="-DLIBSIGC_DISABLE_DEPRECATED")
20 gtkardour.Append(PACKAGE=domain)
21 gtkardour.Append(POTFILE=domain + '.pot')
23 gtkardour.Merge ( [libraries['ardour'],
24 libraries['gtkmm2ext'],
29 libraries['libgnomecanvasmm'],
38 libraries['libgnomecanvas2'],
40 libraries['soundtouch'],
42 libraries['samplerate'],
47 gtkardour.Merge ([ libraries['fst']])
49 gtkardour_files=Split("""
54 automation_gain_line.cc
58 gain_automation_time_axis.cc
66 pan_automation_time_axis.cc
68 redirect_automation_line.cc
69 redirect_automation_time_axis.cc
70 route_redirect_selection.cc
74 ardour_ui_dependents.cc
76 automation_pan_line.cc
80 imageframe_time_axis.cc
81 imageframe_time_axis_view.cc
85 marker_time_axis_view.cc
97 editor_canvas_events.cc
99 editor_export_audio.cc
103 imageframe_time_axis_group.cc
107 editor_tempodisplay.cc
113 automation_time_axis.cc
119 imageframe_socket_handler.cc
122 time_axis_view_item.cc
132 editor_edit_groups.cc
137 editor_region_list.cc
140 editor_selection_list.cc
148 new_session_dialog.cc
160 vst_files = [ 'vst_pluginui.cc' ]
163 extra_sources += vst_files
165 gtkardour.Append(CCFLAGS="-D_REENTRANT -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE")
166 gtkardour.Append(CXXFLAGS="-DDATA_DIR=\\\""+final_prefix+"/share\\\"")
167 gtkardour.Append(CXXFLAGS="-DLOCALEDIR=\\\""+final_prefix+"/share/locale\\\"")
169 versionflag = '-DVERSIONSTRING=\\\"' + env['VERSION'] + '\\\"'
171 gtkardour.Append(CXXFLAGS=versionflag)
173 gtkardour.VersionBuild(['version.cc','version.h'], 'SConscript')
175 executable = 'ardour.bin'
177 ardour = gtkardour.Program(target = executable, source = gtkardour_files + extra_sources)
182 Default (env.VersionedExecutable ('tagged_executable', ardour))
185 i18n (gtkardour, gtkardour_files + extra_sources, env)
190 env.Alias('install', env.InstallAs(os.path.join(install_prefix, 'bin')+'/ardour', ardour))
191 env.Alias('install', env.Install(os.path.join(config_prefix, 'ardour'), 'ardour_ui.rc'))
192 env.Alias('install', env.Install(os.path.join(install_prefix, 'share/ardour'), 'splash.ppm'))
195 env.Alias ('tarball', env.Distribute (env['DISTTREE'],
197 'i18n.h', 'gettext.h',
198 'editor_xpms', 'misc_xpms', 'transport_xpms',
199 'ardour_ui.rc', 'splash.ppm'
201 gtkardour_files + vst_files +
202 glob.glob('po/*.po') + glob.glob('*.h')))
204 # generate a prototype full-featured ardour_ui.rc file
206 env.Alias ('protorc', env.Command ('proto.rc', gtkardour_files, """
207 grep set_name $SOURCES | \
208 sed 's/.*("\([a-zA-Z_][a-zA-Z_]*\)").*/\\1/' | \
209 grep -v '\\.' | sort | uniq | \
210 awk '/\\./ {} { printf ("style \\"%s\\"\\n{\\n\
211 fg[NORMAL] = { 0, 0, 0 }\\n\
212 fg[ACTIVE] = { 0, 0, 0 }\\n\
213 fg[SELECTED] = { 0, 0, 0 }\\n\
214 bg[NORMAL] = { 0, 0, 0 }\\n\
215 bg[ACTIVE] = { 0, 0, 0 }\\n\
216 bg[SELECTED] = { 0, 0, 0 }\\n\
217 }\\nwidget \\"*%s\\" style \\"%s\\"\\nwidget \\"*%s*\\" style \\"%s\\"\\n\\n", \
218 $$0, $$0, $$0, $$0, $$0) }' > $TARGET && \
219 grep 'color_map\[[a-zA-Z_][a-zA-Z]*\]' $SOURCES | \
220 sed 's/.*\[\([a-zA-Z_][a-zA-Z_]*\)].*/\\1/'| \
222 awk '{ printf ("style \\"%s\\"\\n{\\n\
223 fg[NORMAL] = { 0, 0, 0 }\\n\
224 fg[ACTIVE] = { 0, 0, 0 }\\n\
225 }\\nwidget \\"*%s\\" style \\"%s\\"\\n \\n\\n", $$0, $$0, $$0) }' >> $TARGET ;