aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/3rdparty/winpty/src/configurations.gypi
blob: e990a60338e08eb771a183577de9d82d42584fae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# By default gyp/msbuild build for 32-bit Windows.  This gyp include file
# defines configurations for both 32-bit and 64-bit Windows.  To use it, run:
#
#     C:\...\winpty\src>gyp -I configurations.gypi
#
# This command generates Visual Studio project files with a Release
# configuration and two Platforms--Win32 and x64.  Both can be built:
#
#     C:\...\winpty\src>msbuild winpty.sln /p:Platform=Win32
#     C:\...\winpty\src>msbuild winpty.sln /p:Platform=x64
#
# The output is placed in:
#
#     C:\...\winpty\src\Release\Win32
#     C:\...\winpty\src\Release\x64
#
# Windows XP note: By default, the project files will use the default "toolset"
# for the given MSVC version.  For MSVC 2013 and MSVC 2015, the default toolset
# generates binaries that do not run on Windows XP.  To target Windows XP,
# select the XP-specific toolset by passing
# -D WINPTY_MSBUILD_TOOLSET={v120_xp,v140_xp} to gyp (v120_xp == MSVC 2013,
# v140_xp == MSVC 2015).  Unfortunately, it isn't possible to have a single
# project file with configurations for both XP and post-XP.  This seems to be a
# limitation of the MSVC project file format.
#
# This file is not included by default, because I suspect it would interfere
# with node-gyp, which has a different system for building 32-vs-64-bit
# binaries.  It uses a common.gypi, and the project files it generates can only
# build a single architecture, the output paths are not differentiated by
# architecture.

{
    'variables': {
        'WINPTY_MSBUILD_TOOLSET%': '',
    },
    'target_defaults': {
        'default_configuration': 'Release_Win32',
        'configurations': {
            'Release_Win32': {
                'msvs_configuration_platform': 'Win32',
            },
            'Release_x64': {
                'msvs_configuration_platform': 'x64',
            },
        },
        'msvs_configuration_attributes': {
            'OutputDirectory': '$(SolutionDir)$(ConfigurationName)\\$(Platform)',
            'IntermediateDirectory': '$(ConfigurationName)\\$(Platform)\\obj\\$(ProjectName)',
        },
        'msvs_settings': {
            'VCLinkerTool': {
                'SubSystem': '1', # /SUBSYSTEM:CONSOLE
            },
            'VCCLCompilerTool': {
                'RuntimeLibrary': '0', # MultiThreaded (/MT)
            },
        },
        'msbuild_toolset' : '<(WINPTY_MSBUILD_TOOLSET)',
    }
}