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']
52 if gtkardour['FFT_ANALYSIS']:
53 gtkardour.Merge ([libraries['fftw3f']])
56 gtkardour.Merge ([ libraries['fst']])
58 skipped_files=Split("""
62 gtkardour_files=Split("""
69 ardour_ui_dependents.cc
76 automation_gain_line.cc
78 automation_pan_line.cc
79 automation_time_axis.cc
97 editor_canvas_events.cc
100 editor_export_audio.cc
110 editor_region_list.cc
114 editor_selection_list.cc
115 editor_tempodisplay.cc
118 export_session_dialog.cc
119 export_region_dialog.cc
120 export_range_markers_dialog.cc
121 gain_automation_time_axis.cc
130 imageframe_socket_handler.cc
131 imageframe_time_axis.cc
132 imageframe_time_axis_group.cc
133 imageframe_time_axis_view.cc
141 marker_time_axis_view.cc
144 meter_bridge_strip.cc
147 new_session_dialog.cc
150 pan_automation_time_axis.cc
158 redirect_automation_line.cc
159 redirect_automation_time_axis.cc
166 route_redirect_selection.cc
175 time_axis_view_item.cc
183 fft_analysis_files=Split("""
189 glade_files=glob.glob('glade/*.glade')
191 intl_files = gtkardour_files + glade_files + glob.glob('*.h')
193 mtest_files=Split("""
197 itest_files=Split("""
202 vst_files = [ 'vst_pluginui.cc' ]
205 extra_sources += vst_files
207 if env['FFT_ANALYSIS']:
208 extra_sources += fft_analysis_files
211 intl_files += extra_sources
213 gtkardour.Append(CCFLAGS="-D_REENTRANT -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE")
214 gtkardour.Append(CXXFLAGS="-DDATA_DIR=\\\""+final_prefix+"/share\\\"")
215 gtkardour.Append(CXXFLAGS="-DLOCALEDIR=\\\""+final_prefix+"/share/locale\\\"")
216 gtkardour.Append(CXXFLAGS="-DGLADEPATH=\\\""+final_prefix+"/share/ardour/glade\\\"")
218 versionflag = '-DVERSIONSTRING=\\\"' + env['VERSION'] + '\\\"'
220 gtkardour.Append(CXXFLAGS=versionflag)
222 gtkardour.VersionBuild(['version.cc','version.h'], 'SConscript')
224 executable = 'ardour.bin'
226 ardour = gtkardour.Program(target = executable, source = gtkardour_files + extra_sources)
227 mtest = gtkardour.Program(target = 'mtest', source = mtest_files)
228 itest = gtkardour.Program(target = 'itest', source = itest_files)
233 Default (env.VersionedExecutable ('tagged_executable', ardour))
236 Export('gtkardour', 'intl_files')
237 SConscript ('po/SConscript')
242 env.Alias('install', env.InstallAs(os.path.join(install_prefix, 'bin')+'/ardour', ardour))
243 env.Alias('install', env.Install(os.path.join(config_prefix, 'ardour'), 'ardour2_ui.rc'))
244 env.Alias('install', env.Install(os.path.join(config_prefix, 'ardour'), 'ardour.menus'))
245 env.Alias('install', env.Install(os.path.join(config_prefix, 'ardour'), 'ardour.bindings'))
246 env.Alias('install', env.Install(os.path.join(install_prefix, 'share/ardour'), 'splash.ppm'))
247 env.Alias('install', env.Install(os.path.join(install_prefix, 'share/ardour/glade'), glade_files))
250 env.Alias ('tarball', env.Distribute (env['DISTTREE'],
252 'i18n.h', 'gettext.h',
253 'editor_xpms', 'misc_xpms',
254 'crossfade_xpms.h', 'meter_xpms.h',
255 'ardour2_ui.rc', 'splash.ppm',
256 'ardour.menus', 'ardour.bindings'
258 gtkardour_files + vst_files + glade_files +
259 glob.glob('po/*.po') + glob.glob('*.h')))
261 # generate a prototype full-featured ardour_ui.rc file
263 env.Alias ('protorc', env.Command ('proto.rc', gtkardour_files, """
264 grep set_name $SOURCES | \
265 sed 's/.*("\([a-zA-Z_][a-zA-Z_]*\)").*/\\1/' | \
266 grep -v '\\.' | sort | uniq | \
267 awk '/\\./ {} { printf ("style \\"%s\\"\\n{\\n\
268 fg[NORMAL] = { 0, 0, 0 }\\n\
269 fg[ACTIVE] = { 0, 0, 0 }\\n\
270 fg[SELECTED] = { 0, 0, 0 }\\n\
271 bg[NORMAL] = { 0, 0, 0 }\\n\
272 bg[ACTIVE] = { 0, 0, 0 }\\n\
273 bg[SELECTED] = { 0, 0, 0 }\\n\
274 }\\nwidget \\"*%s\\" style \\"%s\\"\\nwidget \\"*%s*\\" style \\"%s\\"\\n\\n", \
275 $$0, $$0, $$0, $$0, $$0) }' > $TARGET && \
276 grep 'color_map\[[a-zA-Z_][a-zA-Z]*\]' $SOURCES | \
277 sed 's/.*\[\([a-zA-Z_][a-zA-Z_]*\)].*/\\1/'| \
279 awk '{ printf ("style \\"%s\\"\\n{\\n\
280 fg[NORMAL] = { 0, 0, 0 }\\n\
281 fg[ACTIVE] = { 0, 0, 0 }\\n\
282 }\\nwidget \\"*%s\\" style \\"%s\\"\\n \\n\\n", $$0, $$0, $$0) }' >> $TARGET ;