Changeset 46401 in vbox
- Timestamp:
- Jun 6, 2013 6:27:06 AM (11 years ago)
- Location:
- trunk/src/VBox/GuestHost/OpenGL
- Files:
-
- 1 deleted
- 1 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/GuestHost/OpenGL/Makefile.kmk
r46395 r46401 107 107 util/warp.c \ 108 108 util/vreg.cpp \ 109 util/dump.cpp \110 109 util/blitter.cpp \ 111 110 util/vboxhgcm.c \ … … 114 113 util/util.def \ 115 114 util/util.rc 116 ifdef VBOX_WITH_CRDUMPER117 VBoxOGLcrutil_SOURCES += $(VBOX_PATH_CROGL_GENFILES)/dump_gen.cpp118 endif119 115 VBoxOGLcrutil_LIBS.win = \ 120 116 $(PATH_SDK_$(VBOX_WINDDK)_LIB)/ddraw.lib \ … … 139 135 VBoxOGLcrutil_pixel.c_CFLAGS.win.x86 += -Od 140 136 VBoxOGLhostcrutil_pixel.c_CFLAGS.win.x86 += -Od 141 ifdef VBOX_WITH_CRDUMPER142 VBoxOGLcrutil_DEFS += VBOX_WITH_CRDUMPER143 VBoxOGLcrutil_LIBS += \144 $(PATH_STAGE_LIB)/additions/VBoxOGLcrstate$(VBOX_SUFF_LIB) \145 $(PATH_STAGE_LIB)/additions/VBoxOGLspuload$(VBOX_SUFF_LIB)146 endif147 137 148 138 # … … 167 157 VBoxOGLcrutil-x86_LIBS.win += $(VBOX_PATH_ADDITIONS_LIB)/VBoxDispMpLogger-x86$(VBOX_SUFF_LIB) 168 158 endif 169 ifdef VBOX_WITH_CRDUMPER170 # VBOX_WITH_CRDUMPER is inheritted from VBoxOGLcrutil_DEFS171 #VBoxOGLcrutil-x86_DEFS += VBOX_WITH_CRDUMPER172 VBoxOGLcrutil-x86_LIBS += \173 $(PATH_STAGE_LIB)/additions/VBoxOGLcrstate-x86$(VBOX_SUFF_LIB) \174 $(PATH_STAGE_LIB)/additions/VBoxOGLspuload-x86$(VBOX_SUFF_LIB)175 endif176 159 # vc7 hangs during compilation of this file when optimizations are enabled. 177 160 VBoxOGLcrutil-x86_pixel.c_CFLAGS += -Od … … 192 175 $(PATH_SDK_$(VBOX_WINDDK)_LIB)/dxguid.lib 193 176 VBoxOGLhostcrutil_LIBS = $(LIB_RUNTIME) 194 ifdef VBOX_WITH_CRDUMPER195 VBoxOGLhostcrutil_DEFS += VBOX_WITH_CRDUMPER196 VBoxOGLhostcrutil_LIBS += \197 $(PATH_STAGE_LIB)/VBoxOGLhostcrstate$(VBOX_SUFF_LIB) \198 $(PATH_STAGE_LIB)/VBoxOGLhostspuload$(VBOX_SUFF_LIB)199 endif200 177 ifdef VBOX_WITH_CRHGSMI 201 178 VBoxOGLhostcrutil_DEFS += VBOX_WITH_CRHGSMI … … 214 191 215 192 ifdef VBOX_WITH_CRDUMPER 216 $(VBOX_PATH_CROGL_GENFILES)/dump_gen.cpp: $(PATH_SUB_CURRENT)/ util/dump_gen.py $(PATH_ROOT)/src/VBox/HostServices/SharedOpenGL/crserverlib/get_sizes.py $(addprefix $(PATH_SUB_CURRENT)/state_tracker/, state_isenabled.txt state_extensions_isenabled.txt) $(VBOX_CROGL_API_FILES) | $$(dir $$@)193 $(VBOX_PATH_CROGL_GENFILES)/dump_gen.cpp: $(PATH_SUB_CURRENT)/state_tracker/dump_gen.py $(PATH_ROOT)/src/VBox/HostServices/SharedOpenGL/crserverlib/get_sizes.py $(addprefix $(PATH_SUB_CURRENT)/state_tracker/, state_isenabled.txt state_extensions_isenabled.txt) $(VBOX_CROGL_API_FILES) | $$(dir $$@) 217 194 $(call MSG_GENERATE,python,$@,$<) 218 195 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI) $(<D) … … 501 478 $(VBOX_PATH_CROGL_GENFILES)/state_get.c \ 502 479 $(VBOX_PATH_CROGL_GENFILES)/state_isenabled.c 480 ifdef VBOX_WITH_CRDUMPER 481 VBoxOGLcrstate_SOURCES += state_tracker/dump.cpp \ 482 $(VBOX_PATH_CROGL_GENFILES)/dump_gen.cpp 483 endif 484 503 485 VBoxOGLcrstate_CLEAN = \ 504 486 $(VBOX_PATH_CROGL_GENFILES)/state_buffer_gen.c \ … … 516 498 $(VBOX_PATH_CROGL_GENFILES)/state_isenabled.c \ 517 499 $(VBOX_PATH_CROGL_GENFILES)/state/cr_statefuncs.h 500 ifdef VBOX_WITH_CRDUMPER 501 VBoxOGLcrstate_CLEAN += $(VBOX_PATH_CROGL_GENFILES)/dump_gen.cpp 502 endif 503 518 504 ifneq ($(KBUILD_TARGET),win) 519 505 ifeq ($(VBOX_WITH_COMPATIBLE_LINUX_GUEST_PACKAGE),) … … 527 513 ifdef VBOX_WITH_WDDM 528 514 VBoxOGLcrstate_DEFS.win += VBOX_WITH_WDDM 515 endif 516 ifdef VBOX_WITH_CRDUMPER 517 VBoxOGLcrstate_DEFS += VBOX_WITH_CRDUMPER 518 #VBoxOGLcrutil_LIBS += \ 519 $(PATH_STAGE_LIB)/additions/VBoxOGLcrstate$(VBOX_SUFF_LIB) \ 520 $(PATH_STAGE_LIB)/additions/VBoxOGLspuload$(VBOX_SUFF_LIB) 529 521 endif 530 522 -
trunk/src/VBox/GuestHost/OpenGL/state_tracker/dump_gen.py
r46395 r46401 12 12 extended_params = {} 13 13 14 input = open( sys.argv[2]+"/ ../state_tracker/state_isenabled.txt", 'r' )14 input = open( sys.argv[2]+"/state_isenabled.txt", 'r' ) 15 15 for line in input.readlines(): 16 16 match = line_re.match( line ) … … 21 21 params[pname] = ( type, fields ) 22 22 23 input = open( sys.argv[2]+"/ ../state_tracker/state_extensions_isenabled.txt", 'r' )23 input = open( sys.argv[2]+"/state_extensions_isenabled.txt", 'r' ) 24 24 for line in input.readlines(): 25 25 match = extensions_line_re.match( line ) … … 56 56 from get_sizes import *; 57 57 58 getprops = apiutil.ParamProps("GetDoublev") 59 enableprops = apiutil.ParamProps("Enable") 60 61 #print "//missing get props:" 62 #for prop in getprops: 63 # try: 64 # tmp = num_get_values[prop] 65 # except KeyError: 66 # try: 67 # keyvalues = extensions_num_get_values[prop] 68 # except KeyError: 69 # print "//%s" % prop 70 # 58 71 print """ 59 72 static void crRecDumpPrintVal(CR_DUMPER *pDumper, struct nv_struct *pDesc, float *pfData) … … 101 114 print '#endif /* CR_%s */' % ext 102 115 116 #print "//missing enable props:" 117 #for prop in enableprops: 118 # try: 119 # keyvalues = params[prop] 120 # except KeyError: 121 # try: 122 # keyvalues = extended_params[prop] 123 # except KeyError: 124 # print "//%s" % prop 125 # 103 126 print """ 104 127 }
Note:
See TracChangeset
for help on using the changeset viewer.