Skip to content

Commit 5e14ae7

Browse files
author
Scott Nations
committed
Merged pull requests 138, 139, and 140
- Default to hidden visibility for Regal and statically linked library dependencies. - Update boost headers to 1.56.0 to get newer compiler support for Visual Studio 2013 - Add Linux support for abi-dumper output for Regal and Regalw shared library targets. Don't include <machine/cpu-features.h> as this was causing compile issues on Android. Fix the paths of ES & EGL libraries to load on Android. Bump 'export'ed version to 4.5 and regen all the files. Initial version of script to convert khronos xml files into Regal's .py format. See https://cvs.khronos.org/svn/repos/ogl/trunk/doc/registry/public/api Includes a lot of reconciliation of Regal's gl.py and Khronos gl.xml.
1 parent 586b2e1 commit 5e14ae7

File tree

107 files changed

+98565
-27664
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

107 files changed

+98565
-27664
lines changed

Makefile.apitrace

+2
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ APITRACE.DEPS := $(APITRACE.OBJS:.o=.d)
4040

4141
-include $(APITRACE.DEPS)
4242

43+
APITRACE.CFLAGS += -fvisibility=hidden
44+
4345
ifneq ($(filter linux%,$(SYSTEM)),)
4446
APITRACE.CFLAGS += -DHAVE_X11=1
4547
endif

Makefile.glsloptlib

+2
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ GLSLOPT.OBJS := $(GLSLOPT.OBJS:.c=.o) $(GLSLOPT.OBJS:.cpp=.o)
2727
GLSLOPT.OBJS := $(filter %.o,$(GLSLOPT.OBJS))
2828
GLSLOPT.DEPS := $(GLSLOPT.OBJS:.o=.d)
2929
GLSLOPT.CFLAGS := $(GLSLOPT.INCLUDE)
30+
GLSLOPT.CFLAGS += -fvisibility=hidden
31+
3032
# quiet build for this thirdparty code for now
3133
GLSLOPT.CFLAGS += -Wno-sign-compare
3234

Makefile.libpng

+2
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ LIBPNG.DEPS := $(LIBPNG.DEPS:.o=.d)
2929

3030
-include $(LIBPNG.DEPS)
3131

32+
LIBPNG.CFLAGS += -fvisibility=hidden
33+
3234
ifeq ($(filter-out linux% darwin% nacl%,$(SYSTEM)),)
3335
LIBPNG.CFLAGS += -DHAVE_UNISTD_H
3436
endif

Makefile.pcrelib

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ PCRE.OBJS := $(filter %.o,$(PCRE.OBJS))
2929
PCRE.DEPS := $(PCRE.OBJS:.o=.d)
3030
PCRE.CFLAGS := $(PCRE.INCLUDE)
3131
PCRE.CFLAGS += -DHAVE_CONFIG_H
32+
PCRE.CFLAGS += -fvisibility=hidden
3233

3334
ifeq ($(MODE),release)
3435
PCRE.CFLAGS += -DNDEBUG

Makefile.regal

+4-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ include build/regal.inc
1616
#
1717

1818
export:
19-
python scripts/Export.py --api gl 4.4 --api wgl 4.4 --api glx 4.4 --api cgl 1.4 --api egl 1.0 --outdir .
19+
python scripts/Export.py --api gl 4.5 --api wgl 4.5 --api glx 4.5 --api cgl 1.4 --api egl 1.0 --outdir .
2020

2121
# Shared library target not currently supported for NaCL or emscripten
2222

@@ -304,6 +304,9 @@ endif
304304
ifneq ($(STRIP),)
305305
$(LOG_STRIP)$(STRIP) -x $@
306306
endif
307+
ifneq ($(ABIDUMP),)
308+
$(LOG_ABIDUMP)$(ABIDUMP) $@ -o [email protected]
309+
endif
307310
endif
308311

309312
tmp/$(SYSTEM)/regal/static/%.o: src/regal/%.cpp $(REGAL.HEADERS)

Makefile.regalw

+3
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,9 @@ endif
137137
ifneq ($(STRIP),)
138138
$(LOG_STRIP)$(STRIP) -x $@
139139
endif
140+
ifneq ($(ABIDUMP),)
141+
$(LOG_ABIDUMP)$(ABIDUMP) $@ -o [email protected]
142+
endif
140143
endif
141144

142145
tmp/$(SYSTEM)/regalw/static/%.o: src/regal/%.cpp $(REGALW.HEADERS)

Makefile.snappy

+2
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ SNAPPY.DEPS := $(SNAPPY.DEPS:.o=.d)
2828

2929
-include $(SNAPPY.DEPS)
3030

31+
SNAPPY.CFLAGS += -fvisibility=hidden
32+
3133
ifeq ($(filter-out linux% darwin% nacl%,$(SYSTEM)),)
3234
SNAPPY.CFLAGS += -DHAVE_UNISTD_H
3335
endif

Makefile.zlib

+2
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ ZLIB.DEPS := $(ZLIB.OBJS:.o=.d)
2424

2525
-include $(ZLIB.DEPS)
2626

27+
ZLIB.CFLAGS += -fvisibility=hidden
28+
2729
ifeq ($(filter-out linux% darwin% nacl%,$(SYSTEM)),)
2830
ZLIB.CFLAGS += -DHAVE_UNISTD_H
2931
endif

build/common.inc

+10-9
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,16 @@ OPT ?= $(CFLAGS.RELEASE)
5353
endif
5454

5555
ifndef V
56-
LOG_CXX ?= @echo " [CXX] $@";
57-
LOG_CC ?= @echo " [CC] $@";
58-
LOG_LD ?= @echo " [LD] $@";
59-
LOG_AR ?= @echo " [AR] $@";
60-
LOG_RANLIB ?= @echo " [RANLIB] $@";
61-
LOG_STRIP ?= @echo " [STRIP] $@";
62-
LOG_LN ?= @echo " [LN] $@";
63-
LOG_CP ?= @echo " [CP] $@";
64-
LOG_MKDIR ?= @echo " [MKDIR] $@";
56+
LOG_CXX ?= @echo " [CXX] $@";
57+
LOG_CC ?= @echo " [CC] $@";
58+
LOG_LD ?= @echo " [LD] $@";
59+
LOG_AR ?= @echo " [AR] $@";
60+
LOG_RANLIB ?= @echo " [RANLIB] $@";
61+
LOG_STRIP ?= @echo " [STRIP] $@";
62+
LOG_LN ?= @echo " [LN] $@";
63+
LOG_CP ?= @echo " [CP] $@";
64+
LOG_MKDIR ?= @echo " [MKDIR] $@";
65+
LOG_ABIDUMP ?= @echo " [ABIDUMP] $@";
6566
endif
6667

6768
INCLUDE ?= -Iinclude

config/Makefile.linux

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ CC = cc
33
CXX = c++
44
LD = cc
55
RANLIB :=
6+
# don't use abi-dumper by default
7+
# ABIDUMP = abi-dumper -bin-only -lver HEAD
8+
ABIDUMP =
69
EXT.DYNAMIC = so
710
PICFLAG = -fPIC
811
M_ARCH ?= $(shell uname -m)

include/GL/Regal.h

+392-526
Large diffs are not rendered by default.

scripts/EmuFilter.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,7 @@
677677
'impl' : [
678678
'if (REGAL_FORCE_ES2_PROFILE || !_context->info->gl_ext_draw_buffers2)',
679679
'{',
680-
' if (!buf)'
680+
' if (!index)'
681681
' {',
682682
' DispatchTableGL *_next = _context->dispatcher.emulation.next();',
683683
' RegalAssert(_next);',

scripts/api/Api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def add(self, parameter):
8989

9090
class Return:
9191

92-
def __init__(self, type = '', default = '', cast = None, binary = False, size = None, maxSize = None, intercept = None, trace = True, play = True, filter = None, regalLog = None):
92+
def __init__(self, type = 'void', default = '', cast = None, binary = False, size = None, maxSize = None, intercept = None, trace = True, play = True, filter = None, regalLog = None):
9393

9494
self.type = type # Type string, e.g. int
9595
self.default = default # Default value, e.g. 0

scripts/api/ApiWrite.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -209,9 +209,9 @@ def writeExtensions(file,name,extensions):
209209
if getattr(i,'category') != None and len(i.category):
210210
print >>file, '%s.category = \'%s\''%(i.name,i.category)
211211
if len(i.enumerants):
212-
print >>file, '%s.enumerants = [\'%s\']'%(i.name,'\',\''.join(i.enumerants))
212+
print >>file, '%s.enumerants = [\'%s\']'%(i.name,'\',\''.join(sorted(i.enumerants)))
213213
if len(i.functions):
214-
print >>file, '%s.functions = [\'%s\']'%(i.name,'\',\''.join(i.functions))
214+
print >>file, '%s.functions = [\'%s\']'%(i.name,'\',\''.join(sorted(i.functions)))
215215
if len(i.emulatedBy):
216216
print >>file, '%s.emulatedBy = \'%s\''%(i.name,i.emulatedBy)
217217
if len(i.emulatedIf):

0 commit comments

Comments
 (0)