Commit 78059907 by Geoff Lang

Added a 64 bit build target to the gyp file.

TRAC #24018 Signed-off-by: Jamie Madill Signed-off-by: Shannon Woods
parent 036aa49b
...@@ -43,14 +43,13 @@ ...@@ -43,14 +43,13 @@
}], }],
], ],
'configurations': { 'configurations': {
'Common': { 'Common_Base': {
'abstract': 1, 'abstract': 1,
'msvs_configuration_attributes': { 'msvs_configuration_attributes': {
'OutputDirectory': '$(SolutionDir)$(ConfigurationName)', 'OutputDirectory': '$(SolutionDir)$(ConfigurationName)_$(Platform)',
'IntermediateDirectory': '$(OutDir)\\obj\\$(ProjectName)', 'IntermediateDirectory': '$(OutDir)\\obj\\$(ProjectName)',
'CharacterSet': '1', # UNICODE 'CharacterSet': '1', # UNICODE
}, },
'msvs_configuration_platform': 'Win32',
'msvs_settings': { 'msvs_settings': {
'VCCLCompilerTool': { 'VCCLCompilerTool': {
'AdditionalOptions': ['/MP'], 'AdditionalOptions': ['/MP'],
...@@ -83,9 +82,6 @@ ...@@ -83,9 +82,6 @@
# Most of the executables we'll ever create are tests # Most of the executables we'll ever create are tests
# and utilities with console output. # and utilities with console output.
'SubSystem': '1', # /SUBSYSTEM:CONSOLE 'SubSystem': '1', # /SUBSYSTEM:CONSOLE
'AdditionalLibraryDirectories': [
'$(ProgramFiles)/Windows Kits/8.0/Lib/win8/um/x86',
],
'AdditionalDependencies': [ 'AdditionalDependencies': [
'kernel32.lib', 'kernel32.lib',
'gdi32.lib', 'gdi32.lib',
...@@ -102,11 +98,6 @@ ...@@ -102,11 +98,6 @@
'delayimp.lib', 'delayimp.lib',
], ],
}, },
'VCLibrarianTool': {
'AdditionalLibraryDirectories': [
'$(ProgramFiles)/Windows Kits/8.0/Lib/win8/um/x86',
],
},
'VCResourceCompilerTool': { 'VCResourceCompilerTool': {
'Culture': '1033', 'Culture': '1033',
}, },
...@@ -115,9 +106,10 @@ ...@@ -115,9 +106,10 @@
'$(ProgramFiles)/Windows Kits/8.0/Include/shared', '$(ProgramFiles)/Windows Kits/8.0/Include/shared',
'$(ProgramFiles)/Windows Kits/8.0/Include/um', '$(ProgramFiles)/Windows Kits/8.0/Include/um',
], ],
}, # Common }, # Common_Base
'Debug': {
'inherit_from': ['Common'], 'Debug_Base': {
'abstract': 1,
'msvs_settings': { 'msvs_settings': {
'VCCLCompilerTool': { 'VCCLCompilerTool': {
'Optimization': '0', # /Od 'Optimization': '0', # /Od
...@@ -133,9 +125,10 @@ ...@@ -133,9 +125,10 @@
'COPY_PHASE_STRIP': 'NO', 'COPY_PHASE_STRIP': 'NO',
'GCC_OPTIMIZATION_LEVEL': '0', 'GCC_OPTIMIZATION_LEVEL': '0',
}, },
}, # Debug }, # Debug_Base
'Release': {
'inherit_from': ['Common'], 'Release_Base': {
'abstract': 1,
'msvs_settings': { 'msvs_settings': {
'VCCLCompilerTool': { 'VCCLCompilerTool': {
'Optimization': '2', # /Os 'Optimization': '2', # /Os
...@@ -146,7 +139,61 @@ ...@@ -146,7 +139,61 @@
'LinkIncremental': '1', 'LinkIncremental': '1',
}, },
}, },
}, # Release }, # Release_Base
'x86_Base': {
'abstract': 1,
'msvs_configuration_platform': 'Win32',
'msvs_settings': {
'VCLinkerTool': {
'TargetMachine': '1',
'AdditionalLibraryDirectories': [
'$(ProgramFiles)/Windows Kits/8.0/Lib/win8/um/x86',
],
},
'VCLibrarianTool': {
'AdditionalLibraryDirectories': [
'$(ProgramFiles)/Windows Kits/8.0/Lib/win8/um/x86',
],
},
},
}, # x86_Base
'x64_Base': {
'abstract': 1,
'msvs_configuration_platform': 'x64',
'msvs_settings': {
'VCLinkerTool': {
'TargetMachine': '17', # x86 - 64
'AdditionalLibraryDirectories': [
'$(ProgramFiles)/Windows Kits/8.0/Lib/win8/um/x64',
],
},
'VCLibrarianTool': {
'AdditionalLibraryDirectories': [
'$(ProgramFiles)/Windows Kits/8.0/Lib/win8/um/x64',
],
},
},
}, # x64_Base
# Concrete configurations
'Debug': {
'inherit_from': ['Common_Base', 'x86_Base', 'Debug_Base'],
},
'Release': {
'inherit_from': ['Common_Base', 'x86_Base', 'Release_Base'],
},
'conditions': [
[ 'OS=="win" and MSVS_VERSION != "2010e" and MSVS_VERSION != "2012e"', {
'Debug_x64': {
'inherit_from': ['Common_Base', 'x64_Base', 'Debug_Base'],
},
'Release_x64': {
'inherit_from': ['Common_Base', 'x64_Base', 'Release_Base'],
},
}],
],
}, # configurations }, # configurations
'conditions': [ 'conditions': [
['component=="shared_library"', { ['component=="shared_library"', {
......
...@@ -42,7 +42,7 @@ LRESULT WINAPI ESWindowProc ( HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam ...@@ -42,7 +42,7 @@ LRESULT WINAPI ESWindowProc ( HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam
case WM_SIZE: case WM_SIZE:
{ {
ESContext *esContext = (ESContext*)(LONG_PTR) GetWindowLongPtr ( hWnd, GWL_USERDATA ); ESContext *esContext = (ESContext*)(LONG_PTR) GetWindowLongPtr ( hWnd, GWLP_USERDATA );
if ( esContext ) { if ( esContext ) {
esContext->width = LOWORD( lParam ); esContext->width = LOWORD( lParam );
esContext->height = HIWORD( lParam ); esContext->height = HIWORD( lParam );
...@@ -52,7 +52,7 @@ LRESULT WINAPI ESWindowProc ( HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam ...@@ -52,7 +52,7 @@ LRESULT WINAPI ESWindowProc ( HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam
case WM_PAINT: case WM_PAINT:
{ {
ESContext *esContext = (ESContext*)(LONG_PTR) GetWindowLongPtr ( hWnd, GWL_USERDATA ); ESContext *esContext = (ESContext*)(LONG_PTR) GetWindowLongPtr ( hWnd, GWLP_USERDATA );
if ( esContext && esContext->drawFunc ) if ( esContext && esContext->drawFunc )
esContext->drawFunc ( esContext ); esContext->drawFunc ( esContext );
...@@ -69,7 +69,7 @@ LRESULT WINAPI ESWindowProc ( HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam ...@@ -69,7 +69,7 @@ LRESULT WINAPI ESWindowProc ( HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam
case WM_CHAR: case WM_CHAR:
{ {
POINT point; POINT point;
ESContext *esContext = (ESContext*)(LONG_PTR) GetWindowLongPtr ( hWnd, GWL_USERDATA ); ESContext *esContext = (ESContext*)(LONG_PTR) GetWindowLongPtr ( hWnd, GWLP_USERDATA );
GetCursorPos( &point ); GetCursorPos( &point );
...@@ -140,7 +140,7 @@ GLboolean WinCreate ( ESContext *esContext, LPCTSTR title ) ...@@ -140,7 +140,7 @@ GLboolean WinCreate ( ESContext *esContext, LPCTSTR title )
// Set the ESContext* to the GWL_USERDATA so that it is available to the // Set the ESContext* to the GWL_USERDATA so that it is available to the
// ESWindowProc // ESWindowProc
SetWindowLongPtr ( esContext->hWnd, GWL_USERDATA, (LONG) (LONG_PTR) esContext ); SetWindowLongPtr ( esContext->hWnd, GWLP_USERDATA, (LONG) (LONG_PTR) esContext );
if ( esContext->hWnd == NULL ) if ( esContext->hWnd == NULL )
return GL_FALSE; return GL_FALSE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment