@@ -817,8 +817,6 @@ int main() { return 0; }''',
817
817
compiler_flags .append ('-DPROGRAM_NAME="' + Options .options .program_name + '"' )
818
818
compiler_flags .append ('-DPROGRAM_VERSION="' + PROGRAM_VERSION + '"' )
819
819
820
- conf .env ['PROGRAM_NAME' ] = Options .options .program_name
821
-
822
820
if opt .debug :
823
821
conf .env .append_value ('CFLAGS' , debug_flags )
824
822
conf .env .append_value ('CXXFLAGS' , debug_flags )
@@ -839,9 +837,9 @@ int main() { return 0; }''',
839
837
conf .env .append_value ('CXXFLAGS' , cxx_flags )
840
838
conf .env .append_value ('LINKFLAGS' , linker_flags )
841
839
842
- def create_resource_file (icon ):
840
+ def create_resource_file (name ):
843
841
try :
844
- text = 'IDI_ICON1 ICON DISCARDABLE "icons/' + icon + '.ico"\n '
842
+ text = 'IDI_ICON1 ICON DISCARDABLE "icons/' + name + '.ico"\n '
845
843
o = open ('gtk2_ardour/windows_icon.rc' , 'w' )
846
844
o .write (text )
847
845
o .close ()
@@ -1018,6 +1016,8 @@ def configure(conf):
1018
1016
if itstool != "itstool" or version [0 ] < "2" :
1019
1017
conf .fatal ("--freedesktop requires itstool > 2.0.0 to translate files." )
1020
1018
1019
+ conf .env ['PROGRAM_NAME' ] = Options .options .program_name or 'Ardour'
1020
+
1021
1021
conf .env ['VERSION' ] = VERSION
1022
1022
conf .env ['MAJOR' ] = MAJOR
1023
1023
conf .env ['MINOR' ] = MINOR
0 commit comments