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(CCFLAGS="-DPACKAGE=\\\"" + domain + "\\\"")
19 gtkardour.Append(CXXFLAGS="-DPACKAGE=\\\"" + domain + "\\\"")
20 gtkardour.Append(CXXFLAGS="-DLIBSIGC_DISABLE_DEPRECATED")
21 gtkardour.Append(CXXFLAGS="-DFLOWCANVAS_AA")
22 gtkardour.Append(PACKAGE=domain)
23 gtkardour.Append(POTFILE=domain + '.pot')
27 libraries['gtkmm2ext'],
28 libraries['flowcanvas'],
33 libraries['libgnomecanvas2'],
34 libraries['libgnomecanvasmm'],
45 libraries['soundtouch'],
46 libraries['samplerate'],
49 libraries['libglademm']
53 gtkardour.Merge ([ libraries['fst']])
55 skipped_files=Split("""
59 gtkardour_files=Split("""
67 ardour_ui_dependents.cc
73 automation_gain_line.cc
75 automation_pan_line.cc
76 automation_time_axis.cc
93 editor_canvas_events.cc
96 editor_export_audio.cc
106 editor_region_list.cc
110 editor_selection_list.cc
111 editor_tempodisplay.cc
114 gain_automation_time_axis.cc
123 imageframe_socket_handler.cc
124 imageframe_time_axis.cc
125 imageframe_time_axis_group.cc
126 imageframe_time_axis_view.cc
134 marker_time_axis_view.cc
137 meter_bridge_strip.cc
140 new_session_dialog.cc
143 pan_automation_time_axis.cc
151 redirect_automation_line.cc
152 redirect_automation_time_axis.cc
159 route_redirect_selection.cc
167 time_axis_view_item.cc
175 glade_files=glob.glob('glade/*.glade')
177 intl_files = gtkardour_files + glade_files + glob.glob('*.h')
179 mtest_files=Split("""
183 itest_files=Split("""
188 vst_files = [ 'vst_pluginui.cc' ]
191 extra_sources += vst_files
193 intl_files += extra_sources
195 gtkardour.Append(CCFLAGS="-D_REENTRANT -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE")
196 gtkardour.Append(CXXFLAGS="-DDATA_DIR=\\\""+final_prefix+"/share\\\"")
197 gtkardour.Append(CXXFLAGS="-DLOCALEDIR=\\\""+final_prefix+"/share/locale\\\"")
198 gtkardour.Append(CXXFLAGS="-DGLADEPATH=\\\""+final_prefix+"/share/ardour/glade\\\"")
200 versionflag = '-DVERSIONSTRING=\\\"' + env['VERSION'] + '\\\"'
202 gtkardour.Append(CXXFLAGS=versionflag)
204 gtkardour.VersionBuild(['version.cc','version.h'], 'SConscript')
206 executable = 'ardour.bin'
208 ardour = gtkardour.Program(target = executable, source = gtkardour_files + extra_sources)
209 mtest = gtkardour.Program(target = 'mtest', source = mtest_files)
210 #itest = gtkardour.Program(target = 'itest', source = itest_files)
215 Default (env.VersionedExecutable ('tagged_executable', ardour))
218 Export('gtkardour', 'intl_files')
219 SConscript ('po/SConscript')
224 env.Alias('install', env.InstallAs(os.path.join(install_prefix, 'bin')+'/ardour', ardour))
225 env.Alias('install', env.Install(os.path.join(config_prefix, 'ardour'), 'ardour_ui.rc'))
226 env.Alias('install', env.Install(os.path.join(config_prefix, 'ardour'), 'ardour-menus.xml'))
227 env.Alias('install', env.Install(os.path.join(install_prefix, 'share/ardour'), 'splash.ppm'))
228 env.Alias('install', env.Install(os.path.join(install_prefix, 'share/ardour/glade'), glade_files))
231 env.Alias ('tarball', env.Distribute (env['DISTTREE'],
233 'i18n.h', 'gettext.h',
234 'editor_xpms', 'misc_xpms', 'transport_xpms',
235 'ardour_ui.rc', 'splash.ppm'
237 gtkardour_files + vst_files + glade_files +
238 glob.glob('po/*.po') + glob.glob('*.h')))
240 # generate a prototype full-featured ardour_ui.rc file
242 env.Alias ('protorc', env.Command ('proto.rc', gtkardour_files, """
243 grep set_name $SOURCES | \
244 sed 's/.*("\([a-zA-Z_][a-zA-Z_]*\)").*/\\1/' | \
245 grep -v '\\.' | sort | uniq | \
246 awk '/\\./ {} { printf ("style \\"%s\\"\\n{\\n\
247 fg[NORMAL] = { 0, 0, 0 }\\n\
248 fg[ACTIVE] = { 0, 0, 0 }\\n\
249 fg[SELECTED] = { 0, 0, 0 }\\n\
250 bg[NORMAL] = { 0, 0, 0 }\\n\
251 bg[ACTIVE] = { 0, 0, 0 }\\n\
252 bg[SELECTED] = { 0, 0, 0 }\\n\
253 }\\nwidget \\"*%s\\" style \\"%s\\"\\nwidget \\"*%s*\\" style \\"%s\\"\\n\\n", \
254 $$0, $$0, $$0, $$0, $$0) }' > $TARGET && \
255 grep 'color_map\[[a-zA-Z_][a-zA-Z]*\]' $SOURCES | \
256 sed 's/.*\[\([a-zA-Z_][a-zA-Z_]*\)].*/\\1/'| \
258 awk '{ printf ("style \\"%s\\"\\n{\\n\
259 fg[NORMAL] = { 0, 0, 0 }\\n\
260 fg[ACTIVE] = { 0, 0, 0 }\\n\
261 }\\nwidget \\"*%s\\" style \\"%s\\"\\n \\n\\n", $$0, $$0, $$0) }' >> $TARGET ;