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(PACKAGE=domain)
20 gtkardour.Append(POTFILE=domain + '.pot')
22 gtkardour.Merge ( [libraries['ardour'],
23 libraries['gtkmm2ext'],
28 libraries['libgnomecanvasmm'],
37 libraries['libgnomecanvas2'],
39 libraries['soundtouch'],
41 libraries['samplerate'],
46 gtkardour.Merge ([ libraries['fst']])
48 gtkardour_files=Split("""
53 automation_gain_line.cc
57 gain_automation_time_axis.cc
65 pan_automation_time_axis.cc
67 redirect_automation_line.cc
68 redirect_automation_time_axis.cc
69 route_redirect_selection.cc
73 ardour_ui_dependents.cc
75 automation_pan_line.cc
79 imageframe_time_axis.cc
80 imageframe_time_axis_view.cc
84 marker_time_axis_view.cc
96 editor_canvas_events.cc
98 editor_export_audio.cc
102 imageframe_time_axis_group.cc
106 editor_tempodisplay.cc
112 automation_time_axis.cc
118 imageframe_socket_handler.cc
121 time_axis_view_item.cc
131 editor_edit_groups.cc
136 editor_region_list.cc
139 editor_selection_list.cc
147 new_session_dialog.cc
159 vst_files = [ 'vst_pluginui.cc' ]
162 extra_sources += vst_files
164 gtkardour.Append(CCFLAGS="-D_REENTRANT -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE")
165 gtkardour.Append(CXXFLAGS="-DDATA_DIR=\\\""+final_prefix+"/share\\\"")
166 gtkardour.Append(CXXFLAGS="-DLOCALEDIR=\\\""+final_prefix+"/share/locale\\\"")
168 versionflag = '-DVERSIONSTRING=\\\"' + env['VERSION'] + '\\\"'
170 gtkardour.Append(CXXFLAGS=versionflag)
172 gtkardour.VersionBuild(['version.cc','version.h'], 'SConscript')
174 executable = 'ardour.bin'
176 ardour = gtkardour.Program(target = executable, source = gtkardour_files + extra_sources)
181 Default (env.VersionedExecutable ('tagged_executable', ardour))
184 i18n (gtkardour, gtkardour_files + extra_sources, env)
189 env.Alias('install', env.InstallAs(os.path.join(install_prefix, 'bin')+'/ardour', ardour))
190 env.Alias('install', env.Install(os.path.join(config_prefix, 'ardour'), 'ardour_ui.rc'))
191 env.Alias('install', env.Install(os.path.join(install_prefix, 'share/ardour'), 'splash.ppm'))
194 env.Alias ('tarball', env.Distribute (env['DISTTREE'],
196 'i18n.h', 'gettext.h',
197 'editor_xpms', 'misc_xpms', 'transport_xpms',
198 'ardour_ui.rc', 'splash.ppm'
200 gtkardour_files + vst_files +
201 glob.glob('po/*.po') + glob.glob('*.h')))
203 # generate a prototype full-featured ardour_ui.rc file
205 env.Alias ('protorc', env.Command ('proto.rc', gtkardour_files, """
206 grep set_name $SOURCES | \
207 sed 's/.*("\([a-zA-Z_][a-zA-Z_]*\)").*/\\1/' | \
208 grep -v '\\.' | sort | uniq | \
209 awk '/\\./ {} { printf ("style \\"%s\\"\\n{\\n\
210 fg[NORMAL] = { 0, 0, 0 }\\n\
211 fg[ACTIVE] = { 0, 0, 0 }\\n\
212 fg[SELECTED] = { 0, 0, 0 }\\n\
213 bg[NORMAL] = { 0, 0, 0 }\\n\
214 bg[ACTIVE] = { 0, 0, 0 }\\n\
215 bg[SELECTED] = { 0, 0, 0 }\\n\
216 }\\nwidget \\"*%s\\" style \\"%s\\"\\nwidget \\"*%s*\\" style \\"%s\\"\\n\\n", \
217 $$0, $$0, $$0, $$0, $$0) }' > $TARGET && \
218 grep 'color_map\[[a-zA-Z_][a-zA-Z]*\]' $SOURCES | \
219 sed 's/.*\[\([a-zA-Z_][a-zA-Z_]*\)].*/\\1/'| \
221 awk '{ printf ("style \\"%s\\"\\n{\\n\
222 fg[NORMAL] = { 0, 0, 0 }\\n\
223 fg[ACTIVE] = { 0, 0, 0 }\\n\
224 }\\nwidget \\"*%s\\" style \\"%s\\"\\n \\n\\n", $$0, $$0, $$0) }' >> $TARGET ;