Fix building mkvinfo's resource file if GUIs are disabled

This commit is contained in:
Moritz Bunkus 2011-11-23 20:30:00 +01:00
parent ed485c4b2b
commit f6ac546fbb
2 changed files with 4 additions and 1 deletions

View File

@ -85,6 +85,7 @@ def setup_globals
:cxxflags => "#{cflags_common} #{c(:STD_CXX0X)} -Wnon-virtual-dtor -Woverloaded-virtual -Wextra #{c(:WXWIDGETS_CFLAGS)} #{c(:QT_CFLAGS)} #{c(:BOOST_CPPFLAGS)} #{c(:CURL_CFLAGS)} #{c(:USER_CXXFLAGS)}",
:cppflags => "#{c(:USER_CPPFLAGS)}",
:ldflags => "#{c(:EBML_LDFLAGS)} #{c(:MATROSKA_LDFLAGS)} #{c(:EXTRA_LDFLAGS)} #{c(:PROFILING_LIBS)} #{c(:USER_LDFLAGS)} #{c(:LDFLAGS_RPATHS)} #{c(:BOOST_LDFLAGS)}",
:windres => c?(:USE_WXWIDGETS) ? c(:WXWIDGETS_INCLUDES) : '-DNOWXWIDGETS',
}
end
@ -157,7 +158,7 @@ rule '.o' => '.c' do |t|
end
rule '.o' => '.rc' do |t|
runq " WINDRES #{t.source}", "#{c(:WINDRES)} #{c(:WXWIDGETS_INCLUDES)} -Isrc/mmg -o #{t.name} #{t.sources.join(" ")}"
runq " WINDRES #{t.source}", "#{c(:WINDRES)} #{$flags[:windres]} -Isrc/mmg -o #{t.name} #{t.sources.join(" ")}"
end
rule '.mo' => '.po' do |t|

View File

@ -1,6 +1,8 @@
MATROSKAICON ICON "../../share/icons/windows/mkvinfo.ico"
#ifndef NOWXWIDGETS
#include "wx/msw/wx.rc"
#endif
1 VERSIONINFO
FILEVERSION 5, 0, 1, 0