Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
3c08b95b
Commit
3c08b95b
authored
Nov 01, 2013
by
Rico Schüller
Committed by
Alexandre Julliard
Nov 05, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
opengl32: Use variables for file names.
parent
44bf8dc4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
make_opengl
dlls/opengl32/make_opengl
+7
-5
No files found.
dlls/opengl32/make_opengl
View file @
3c08b95b
...
@@ -65,6 +65,8 @@ use strict;
...
@@ -65,6 +65,8 @@ use strict;
my
$spec_file
=
"opengl32.spec"
;
my
$spec_file
=
"opengl32.spec"
;
my
$norm_file
=
"opengl_norm.c"
;
my
$norm_file
=
"opengl_norm.c"
;
my
$ext_file
=
"opengl_ext.c"
;
my
$ext_file
=
"opengl_ext.c"
;
my
$wgl_driver_file
=
"../../include/wine/wgl_driver.h"
;
my
$wgl_file
=
"../../include/wine/wgl.h"
;
# Set to 0 for removing the ENTER / LEAVE GL calls
# Set to 0 for removing the ENTER / LEAVE GL calls
my
$gen_thread_safe
=
0
;
my
$gen_thread_safe
=
0
;
...
@@ -776,7 +778,7 @@ parse_enum_file( "enumext.spec", \%enums );
...
@@ -776,7 +778,7 @@ parse_enum_file( "enumext.spec", \%enums );
# Get the current wgl_driver.h version
# Get the current wgl_driver.h version
#
#
my
$wgl_version
=
0
;
my
$wgl_version
=
0
;
open
HEADER
,
"<
../../include/wine/wgl_driver.h"
or
die
"cannot open wgl_driver.h
"
;
open
HEADER
,
"<
$wgl_driver_file"
or
die
"cannot open $wgl_driver_file
"
;
while
(
<
HEADER
>
)
while
(
<
HEADER
>
)
{
{
next
unless
/^#define WINE_WGL_DRIVER_VERSION (\d+)/
;
next
unless
/^#define WINE_WGL_DRIVER_VERSION (\d+)/
;
...
@@ -788,8 +790,8 @@ close HEADER;
...
@@ -788,8 +790,8 @@ close HEADER;
#
#
# Generate the wgl_driver.h file
# Generate the wgl_driver.h file
#
#
open
HEADER
,
">
../../include/wine/wgl_driver.h"
or
die
"cannot create wgl_driver.h
"
;
open
HEADER
,
">
$wgl_driver_file"
or
die
"cannot create $wgl_driver_file
"
;
print
HEADER
"/* Automatically generated from http://www.opengl.org/registry
/api
files; DO NOT EDIT! */\n\n"
;
print
HEADER
"/* Automatically generated from http://www.opengl.org/registry files; DO NOT EDIT! */\n\n"
;
print
HEADER
"#ifndef __WINE_WGL_DRIVER_H\n"
;
print
HEADER
"#ifndef __WINE_WGL_DRIVER_H\n"
;
print
HEADER
"#define __WINE_WGL_DRIVER_H\n\n"
;
print
HEADER
"#define __WINE_WGL_DRIVER_H\n\n"
;
print
HEADER
"#ifndef WINE_GLAPI\n"
;
print
HEADER
"#ifndef WINE_GLAPI\n"
;
...
@@ -841,8 +843,8 @@ close HEADER;
...
@@ -841,8 +843,8 @@ close HEADER;
#
#
# Generate the wgl.h file
# Generate the wgl.h file
#
#
open
HEADER
,
">
../../include/wine/wgl.h"
or
die
"cannot create wgl.h
"
;
open
HEADER
,
">
$wgl_file"
or
die
"cannot create $wgl_file
"
;
print
HEADER
"/* Automatically generated from http://www.opengl.org/registry
/api
files; DO NOT EDIT! */\n\n"
;
print
HEADER
"/* Automatically generated from http://www.opengl.org/registry files; DO NOT EDIT! */\n\n"
;
print
HEADER
"#ifndef __WINE_WGL_H\n"
;
print
HEADER
"#ifndef __WINE_WGL_H\n"
;
print
HEADER
"#define __WINE_WGL_H\n\n"
;
print
HEADER
"#define __WINE_WGL_H\n\n"
;
...
...
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