Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
angle
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
angle
Commits
78059907
Commit
78059907
authored
Oct 11, 2013
by
Geoff Lang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a 64 bit build target to the gyp file.
TRAC #24018 Signed-off-by: Jamie Madill Signed-off-by: Shannon Woods
parent
036aa49b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
69 additions
and
22 deletions
+69
-22
common.gypi
build/common.gypi
+65
-18
esUtil_win32.c
samples/gles2_book/Common/Win32/esUtil_win32.c
+4
-4
No files found.
build/common.gypi
View file @
78059907
...
@@ -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"', {
...
...
samples/gles2_book/Common/Win32/esUtil_win32.c
View file @
78059907
...
@@ -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
,
GWL
P
_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
,
GWL
P
_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
,
GWL
P
_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
,
GWL
P
_USERDATA
,
(
LONG
)
(
LONG_PTR
)
esContext
);
if
(
esContext
->
hWnd
==
NULL
)
if
(
esContext
->
hWnd
==
NULL
)
return
GL_FALSE
;
return
GL_FALSE
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment