diff --git a/gtk2_ardour/small-splash.png b/gtk2_ardour/icons/ardour-small-splash.png similarity index 100% rename from gtk2_ardour/small-splash.png rename to gtk2_ardour/icons/ardour-small-splash.png diff --git a/gtk2_ardour/splash.png b/gtk2_ardour/icons/ardour-splash.png similarity index 100% rename from gtk2_ardour/splash.png rename to gtk2_ardour/icons/ardour-splash.png diff --git a/gtk2_ardour/windows_icon.rc b/gtk2_ardour/windows_icon.rc deleted file mode 100644 index 4fc17d0fd2..0000000000 --- a/gtk2_ardour/windows_icon.rc +++ /dev/null @@ -1 +0,0 @@ -IDI_ICON1 ICON DISCARDABLE "icons/ardour.ico" diff --git a/gtk2_ardour/wscript b/gtk2_ardour/wscript index 083dd754de..f603170a57 100644 --- a/gtk2_ardour/wscript +++ b/gtk2_ardour/wscript @@ -792,10 +792,11 @@ def build(bld): obj.install_path = bld.env['CONFDIR'] # Icons/Images + lowercase_appname = Options.options.program_name.lower(); bld.install_files(os.path.join (bld.env['DATADIR'], 'icons'), bld.path.ant_glob('icons/*.png')) bld.install_files(os.path.join (bld.env['DATADIR'], 'pixmaps'), bld.path.ant_glob('pixmaps/*.xpm')) - bld.install_files(bld.env['DATADIR'], 'splash.png') - bld.install_files(bld.env['DATADIR'], 'small-splash.png') + bld.install_as(os.path.join (bld.env['DATADIR'], 'splash.png') , 'icons/' + lowercase_appname + '-splash.png') + bld.install_as(os.path.join (bld.env['DATADIR'], 'small-splash.png') , 'icons/' + lowercase_appname + '-small-splash.png') bld.install_files(bld.env['DATADIR'], 'ArdourMono.ttf') if bld.env['build_target'] == 'mingw': diff --git a/tools/linux_packaging/build b/tools/linux_packaging/build index 2f6817325a..2035539bc4 100755 --- a/tools/linux_packaging/build +++ b/tools/linux_packaging/build @@ -591,8 +591,8 @@ cp ../../gtk2_ardour/*.colors $Etc cp ../../instant.xml $Shared/instant.xml cp -r ../../gtk2_ardour/icons $Shared cp -r ../../gtk2_ardour/pixmaps $Shared -cp -r ../../gtk2_ardour/splash.png $Shared -cp -r ../../gtk2_ardour/small-splash.png $Shared +cp -r ../../gtk2_ardour/icons/${EXENAME}-splash.png ${Shared}/splash.png +cp -r ../../gtk2_ardour/icons/${EXENAME}-small-splash.png ${Shared}/small-splash.png cp -r ../../gtk2_ardour/ArdourMono.ttf $Shared # diff --git a/tools/osx_packaging/osx_build b/tools/osx_packaging/osx_build index 920a7b3283..4eb1971f9d 100755 --- a/tools/osx_packaging/osx_build +++ b/tools/osx_packaging/osx_build @@ -24,6 +24,8 @@ WITH_LADSPA=1 STRIP=1 PRINT_SYSDEPS= WITH_NLS= +LCNAME=ardour + : ${HARRISONCHANNELSTRIP=harrison_channelstrip} . ../define_versions.sh @@ -51,6 +53,7 @@ while [ $# -gt 0 ] ; do WITH_LADSPA=; STRIP= ; PRODUCT_PKG_DIR=Mixbus; + LCNAME=mixbus ; APPNAME=Mixbus ; shift ;; --mixbus32c) MIXBUS=1; @@ -61,6 +64,7 @@ while [ $# -gt 0 ] ; do SAE= ; WITH_LADSPA=; STRIP= ; + LCNAME=mixbus32c ; PRODUCT_PKG_DIR=Mixbus32C; APPNAME=Mixbus32C-${major_version} ; major_version="" @@ -486,8 +490,8 @@ cp ../../instant.xml $Resources/instant.xml cp -r ../../gtk2_ardour/icons $Resources cp -r ../../gtk2_ardour/pixmaps $Resources cp ../../gtk2_ardour/*.colors $Resources -cp -R ../../gtk2_ardour/splash.png $Shared -cp -R ../../gtk2_ardour/small-splash.png $Shared +cp -R ../../gtk2_ardour/icons/${LCNAME}-splash.png ${Shared}/splash.png +cp -R ../../gtk2_ardour/icons/${LCNAME}-small-splash.png ${Shared}/small-splash.png cp -R ../../gtk2_ardour/ArdourMono.ttf $Shared # go through and recursively remove any .svn dirs in the bundle diff --git a/wscript b/wscript index 926e6feed6..ad1dd43463 100644 --- a/wscript +++ b/wscript @@ -611,6 +611,10 @@ int main() { return 0; }''', if Options.options.program_name.lower() == "mixbus": compiler_flags.append ('-DMIXBUS') + if Options.options.program_name.lower() == "mixbus32c": + compiler_flags.append ('-DMIXBUS') + compiler_flags.append ('-DMIXBUS32C') + compiler_flags.append ('-DPROGRAM_NAME="' + Options.options.program_name + '"') compiler_flags.append ('-DPROGRAM_VERSION="' + PROGRAM_VERSION + '"') @@ -633,6 +637,16 @@ int main() { return 0; }''', conf.env.append_value('CXXFLAGS', cxx_flags) conf.env.append_value('LINKFLAGS', linker_flags) +def create_resource_file(icon): + try: + text = 'IDI_ICON1 ICON DISCARDABLE "icons/' + icon + '.ico"\n' + o = open('gtk2_ardour/windows_icon.rc', 'w') + o.write(text) + o.close() + except IOError: + print('Could not open gtk2_ardour/windows_icon.rc for writing\n') + sys.exit(-1) + def is_tracks_build (conf): return conf.env['PROGRAM_NAME'] == 'Tracks Live' @@ -1214,6 +1228,9 @@ const char* const ardour_config_info = "\\n\\ def build(bld): create_stored_revision() + if Options.options.dist_target == 'mingw' or Options.options.dist_target == 'msvc': + create_resource_file(Options.options.program_name.lower()) + # add directories that contain only headers, to workaround an issue with waf if not bld.is_defined('USE_EXTERNAL_LIBS'):