VirtualBox

source: vbox/trunk/src/VBox/Additions/common/crOpenGL/cr_gl.py@ 78384

Last change on this file since 78384 was 69310, checked in by vboxsync, 7 years ago

common/crOpenGL: scm updates

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id Revision
File size: 1.6 KB
Line 
1from __future__ import print_function
2print("""
3/** @file
4 * VBox OpenGL chromium functions header
5 */
6
7/*
8 * Copyright (C) 2008-2016 """ """Oracle Corporation
9 *
10 * This file is part of VirtualBox Open Source Edition (OSE), as
11 * available from http://www.virtualbox.org. This file is free software;
12 * you can redistribute it and/or modify it under the terms of the GNU
13 * General Public License (GPL) as published by the Free Software
14 * Foundation, in version 2 as it comes in the "COPYING" file of the
15 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
16 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
17 */
18""")
19# Copyright (c) 2001, Stanford University
20# All rights reserved.
21#
22# See the file LICENSE.txt for information on redistributing this software.
23
24import sys
25
26import apiutil
27
28apiutil.CopyrightC()
29
30print("""
31/* DO NOT EDIT - THIS FILE GENERATED BY THE cr_gl.py SCRIPT */
32#ifndef __CR_GL_H__
33#define __CR_GL_H__
34
35#include "chromium.h"
36#include "cr_string.h"
37#include "cr_version.h"
38#include "stub.h"
39
40#ifdef WINDOWS
41#pragma warning( disable: 4055 )
42#endif
43
44""")
45
46
47# Extern-like declarations
48keys = apiutil.GetAllFunctions(sys.argv[1]+"/APIspec.txt")
49for func_name in keys:
50 if "Chromium" == apiutil.Category(func_name):
51 continue
52 if "VBox" == apiutil.Category(func_name):
53 continue
54 if func_name == "BoundsInfoCR":
55 continue
56 if "GL_chromium" == apiutil.Category(func_name):
57 pass #continue
58
59 return_type = apiutil.ReturnType(func_name)
60 params = apiutil.Parameters(func_name)
61
62 print("extern %s cr_gl%s(%s);" % (return_type, func_name,
63 apiutil.MakeDeclarationString( params )))
64
65print("#endif /* __CR_GL_H__ */")
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette