X Tutup
Skip to content

Commit 3c02d2a

Browse files
ormanbai123sev-
authored andcommitted
CONFIGURE, CREATE_PROJECT: Make printing a feature
1 parent 3ca0fa4 commit 3c02d2a

File tree

3 files changed

+17
-0
lines changed

3 files changed

+17
-0
lines changed

configure

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ _taskbar=auto
191191
_updates=no
192192
_libunity=auto
193193
_dialogs=auto
194+
_printing=yes
194195
_tts=auto
195196
_osx_tts_backend=auto
196197
_gtk=auto
@@ -332,6 +333,7 @@ add_feature png "PNG" "_png"
332333
add_feature vorbis "Vorbis file support" "_vorbis _tremor"
333334
add_feature zlib "zlib" "_zlib"
334335
add_feature test_cxx11 "Test C++11" "_test_cxx11"
336+
add_feature printing "Printing" "_printing"
335337

336338
# Components are features which may be disabled if unused by the engines
337339
add_component cdtoons "CDTOONS" "_cdtoons" "USE_CDTOONS"
@@ -1407,6 +1409,8 @@ for ac_option in $@; do
14071409
--disable-vkeybd) _vkeybd=no ;;
14081410
--enable-eventrecorder) _eventrec=yes ;;
14091411
--disable-eventrecorder) _eventrec=no ;;
1412+
--enable-printing) _printing=yes ;;
1413+
--disable-printing) _printing=no ;;
14101414
--enable-text-console) _text_console=yes ;;
14111415
--disable-text-console) _text_console=no ;;
14121416
--enable-ext-sse2) _ext_sse2=yes ;;
@@ -7226,6 +7230,17 @@ else
72267230
fi
72277231
define_in_config_if_yes $_taskbar 'USE_TASKBAR'
72287232

7233+
#
7234+
# Check whether to build printing support
7235+
#
7236+
echo_n "Building system printing support... "
7237+
case $_host_os in
7238+
mingw*)
7239+
echo "win32"
7240+
append_var LIBS '-lMsimg32'
7241+
esac
7242+
define_in_config_if_yes $_printing 'USE_PRINTING'
7243+
72297244
#
72307245
# Check whether to build system dialogs support
72317246
#

devtools/create_project/create_project.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1221,6 +1221,7 @@ const Feature s_features[] = {
12211221
{ "translation", "USE_TRANSLATION", false, true, "Translation support" },
12221222
{ "vkeybd", "ENABLE_VKEYBD", false, false, "Virtual keyboard support"},
12231223
{ "eventrecorder", "ENABLE_EVENTRECORDER", false, false, "Event recorder support"},
1224+
{ "printing", "USE_PRINTING", false, true, "Printing support"},
12241225
{ "updates", "USE_UPDATES", false, false, "Updates support"},
12251226
{ "dialogs", "USE_SYSDIALOGS", false, true, "System dialogs support"},
12261227
{ "langdetect", "USE_DETECTLANG", false, true, "System language detection support" }, // This feature actually depends on "translation", there

devtools/create_project/msvc.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ std::string MSVCProvider::getLibraryFromFeature(const char *feature, const Build
8484
{ "updates", "WinSparkle.lib", nullptr, kSDLVersionAny, nullptr },
8585
{ "tts", nullptr, nullptr, kSDLVersionAny, "sapi.lib" },
8686
{ "opengl", nullptr, nullptr, kSDLVersionAny, nullptr },
87+
{ "printing", nullptr, nullptr, kSDLVersionAny, "Msimg32.lib" },
8788
{ "enet", nullptr, nullptr, kSDLVersionAny, "winmm.lib ws2_32.lib" }
8889
};
8990

0 commit comments

Comments
 (0)
X Tutup