mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2025-01-12 13:14:38 +00:00
Fix building mkvinfo's resource file if GUIs are disabled
This commit is contained in:
parent
ed485c4b2b
commit
f6ac546fbb
3
Rakefile
3
Rakefile
@ -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|
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user