winpty/winpty.gyp
Ryan Prichard c3999b5043 Rewrite console font changing.
* Remove the old "Vista" code path in favor of two code paths:
    - setSmallFontVista: sets a TrueType font to match the code page
    - setSmallFontXP: uses SetConsoleFont to activate the smallest
      viable font in the console's font table

 * Selecting a CJK-specific TrueType font is important so that double-width
   characters occupy two cells in the console, which is important for
   maintaining consistency between the console and the Unix terminal.
   (Perfect consistency here might be impossible, but using the appropriate
   font improves things.)  winpty currently duplicates double-width
   characters, but that will be fixed soon.
2015-10-11 04:42:36 -05:00

73 lines
2.2 KiB
Python

{
'targets' : [
{
'target_name' : 'winpty-agent',
'type' : 'executable',
'include_dirs' : [
'include',
],
'defines' : [
'UNICODE',
'_UNICODE',
'_WIN32_WINNT=0x0501',
'NOMINMAX',
],
'sources' : [
'agent/Agent.h',
'agent/Agent.cc',
'agent/AgentAssert.h',
'agent/AgentAssert.cc',
'agent/ConsoleFont.cc',
'agent/ConsoleFont.h',
'agent/ConsoleInput.cc',
'agent/ConsoleInput.h',
'agent/ConsoleLine.cc',
'agent/ConsoleLine.h',
'agent/Coord.h',
'agent/Coord.cc',
'agent/DsrSender.h',
'agent/EventLoop.cc',
'agent/NamedPipe.h',
'agent/NamedPipe.cc',
'agent/SmallRect.h',
'agent/SmallRect.cc',
'agent/Terminal.h',
'agent/Terminal.cc',
'agent/Win32Console.cc',
'agent/Win32Console.h',
'agent/main.cc',
'agent/winpty_wcsnlen.cc',
'agent/winpty_wcsnlen.h',
'shared/AgentMsg.h',
'shared/Buffer.h',
'shared/DebugClient.h',
'shared/DebugClient.cc',
'shared/c99_snprintf.h',
],
},
{
'target_name' : 'winpty',
'type' : 'shared_library',
'include_dirs' : [
'include',
],
'defines' : [
'UNICODE',
'_UNICODE',
'_WIN32_WINNT=0x0501',
'NOMINMAX',
'WINPTY',
],
'sources' : [
'include/winpty.h',
'libwinpty/winpty.cc',
'shared/AgentMsg.h',
'shared/Buffer.h',
'shared/DebugClient.h',
'shared/DebugClient.cc',
'shared/c99_snprintf.h',
],
},
],
}