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']])
54 gtkardour.Append(CCFLAGS='-DFFT_ANALYSIS')
57 gtkardour.Merge ([ libraries['fst']])
59 skipped_files=Split("""
63 gtkardour_files=Split("""
70 ardour_ui_dependents.cc
77 automation_gain_line.cc
79 automation_pan_line.cc
80 automation_time_axis.cc
95 editor_audio_import.cc
98 editor_canvas_events.cc
100 editor_edit_groups.cc
101 editor_export_audio.cc
111 editor_region_list.cc
115 editor_selection_list.cc
116 editor_tempodisplay.cc
119 export_session_dialog.cc
120 export_region_dialog.cc
121 export_range_markers_dialog.cc
122 gain_automation_time_axis.cc
131 imageframe_socket_handler.cc
132 imageframe_time_axis.cc
133 imageframe_time_axis_group.cc
134 imageframe_time_axis_view.cc
142 marker_time_axis_view.cc
145 meter_bridge_strip.cc
148 new_session_dialog.cc
151 pan_automation_time_axis.cc
159 redirect_automation_line.cc
160 redirect_automation_time_axis.cc
167 route_redirect_selection.cc
176 time_axis_view_item.cc
184 fft_analysis_files=Split("""
190 glade_files=glob.glob('glade/*.glade')
191 pixmap_files=glob.glob('pixmaps/*.xpm')
193 intl_files = gtkardour_files + glade_files + glob.glob('*.h')
195 mtest_files=Split("""
199 itest_files=Split("""
204 vst_files = [ 'vst_pluginui.cc' ]
207 extra_sources += vst_files
209 if env['FFT_ANALYSIS']:
210 extra_sources += fft_analysis_files
213 intl_files += extra_sources
215 gtkardour.Append(CCFLAGS="-D_REENTRANT -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE")
216 gtkardour.Append(CXXFLAGS="-DLOCALEDIR=\\\""+final_prefix+"/share/locale\\\"")
217 gtkardour.Append(CXXFLAGS="-DGLADEPATH=\\\""+final_prefix+"/share/ardour/glade\\\"")
219 versionflag = '-DVERSIONSTRING=\\\"' + env['VERSION'] + '\\\"'
221 gtkardour.Append(CXXFLAGS=versionflag)
223 gtkardour.VersionBuild(['version.cc','version.h'], 'SConscript')
225 executable = 'ardour.bin'
227 ardour = gtkardour.Program(target = executable, source = gtkardour_files + extra_sources)
228 mtest = gtkardour.Program(target = 'mtest', source = mtest_files)
229 itest = gtkardour.Program(target = 'itest', source = itest_files)
232 my_subst_dict['%INSTALL_PREFIX%'] = install_prefix
234 ardoursh = env.SubstInFile ('ardour.sh','ardour.sh.in', SUBST_DICT = my_subst_dict);
239 Default (env.VersionedExecutable ('tagged_executable', ardour))
242 Export('gtkardour', 'intl_files')
243 SConscript ('po/SConscript')
247 # the executable - into the library dir
248 env.Alias('install', env.Install(os.path.join(install_prefix, 'lib/ardour2'), ardour))
249 # the script - into the bin dir
250 env.Alias('install', env.InstallAs(os.path.join(install_prefix, 'bin')+'/ardour2', ardoursh))
251 env.Alias('install', Execute(Chmod (os.path.join(install_prefix, 'bin')+'/ardour2', 0755)))
252 # configuration files
253 env.Alias('install', env.Install(os.path.join(config_prefix, 'ardour2'), 'ardour2_ui.rc'))
254 env.Alias('install', env.Install(os.path.join(config_prefix, 'ardour2'), 'ardour.menus'))
255 env.Alias('install', env.Install(os.path.join(config_prefix, 'ardour2'), 'ardour.bindings'))
256 env.Alias('install', env.Install(os.path.join(config_prefix, 'ardour2'), 'ardour.colors'))
258 env.Alias('install', env.Install(os.path.join(install_prefix, 'share/ardour2'), 'splash.ppm'))
259 env.Alias('install', env.Install(os.path.join(install_prefix, 'share/ardour2/pixmaps'), pixmap_files))
260 env.Alias('install', env.Install(os.path.join(install_prefix, 'share/ardour2/glade'), glade_files))
263 env.Alias ('tarball', env.Distribute (env['DISTTREE'],
265 'i18n.h', 'gettext.h',
266 'ardour2_ui.rc', 'splash.ppm',
267 'ardour.menus', 'ardour.bindings', 'ardour.colors',
270 gtkardour_files + vst_files + glade_files + pixmap_files +
271 glob.glob('po/*.po') + glob.glob('*.h')))
273 # generate a prototype full-featured ardour_ui.rc file
275 env.Alias ('protorc', env.Command ('proto.rc', gtkardour_files, """
276 grep set_name $SOURCES | \
277 sed 's/.*("\([a-zA-Z_][a-zA-Z_]*\)").*/\\1/' | \
278 grep -v '\\.' | sort | uniq | \
279 awk '/\\./ {} { printf ("style \\"%s\\"\\n{\\n\
280 fg[NORMAL] = { 0, 0, 0 }\\n\
281 fg[ACTIVE] = { 0, 0, 0 }\\n\
282 fg[SELECTED] = { 0, 0, 0 }\\n\
283 bg[NORMAL] = { 0, 0, 0 }\\n\
284 bg[ACTIVE] = { 0, 0, 0 }\\n\
285 bg[SELECTED] = { 0, 0, 0 }\\n\
286 }\\nwidget \\"*%s\\" style \\"%s\\"\\nwidget \\"*%s*\\" style \\"%s\\"\\n\\n", \
287 $$0, $$0, $$0, $$0, $$0) }' > $TARGET && \
288 grep 'color_map\[[a-zA-Z_][a-zA-Z]*\]' $SOURCES | \
289 sed 's/.*\[\([a-zA-Z_][a-zA-Z_]*\)].*/\\1/'| \
291 awk '{ printf ("style \\"%s\\"\\n{\\n\
292 fg[NORMAL] = { 0, 0, 0 }\\n\
293 fg[ACTIVE] = { 0, 0, 0 }\\n\
294 }\\nwidget \\"*%s\\" style \\"%s\\"\\n \\n\\n", $$0, $$0, $$0) }' >> $TARGET ;