Skip to content

Commit

Permalink
a huge commit. splitting extensions into their own sub-packages.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Gallant (Ocelot) authored and Andrew Gallant (Ocelot) committed May 10, 2012
1 parent b10760e commit b618b2e
Show file tree
Hide file tree
Showing 81 changed files with 51,644 additions and 52,515 deletions.
25 changes: 19 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,30 @@ all: build-xgbgen \
build-xgbgen:
(cd xgbgen && go build)

%.xml:
xgbgen/xgbgen --proto-path $(XPROTO) $(XPROTO)/$*.xml > auto_$*.go
build-all: bigreq.b composite.b damage.b dpms.b dri2.b ge.b glx.b randr.b \
record.b render.b res.b screensaver.b shape.b shm.b sync.b xcmisc.b \
xevie.b xf86dri.b xf86vidmode.b xfixes.b xinerama.b xinput.b \
xprint.b xproto.b xselinux.b xtest.b xv.b xvmc.b

%.b:
(cd $* ; go build)

xc_misc.xml: build-xgbgen
mkdir -p xcmisc
xgbgen/xgbgen --proto-path $(XPROTO) $(XPROTO)/xc_misc.xml > xcmisc/xcmisc.go

%.xml: build-xgbgen
mkdir -p $*
xgbgen/xgbgen --proto-path $(XPROTO) $(XPROTO)/$*.xml > $*/$*.go

test:
go test
(cd xproto ; go test)

bench:
go test -run 'nomatch' -bench '.*' -cpu 1,2,6
(cd xproto ; go test -run 'nomatch' -bench '.*' -cpu 1,2,6)

gofmt:
gofmt -w *.go xgbgen/*.go examples/*.go examples/*/*.go
colcheck xgbgen/*.go examples/*.go examples/*/*.go \
auth.go conn.go cookie.go doc.go xgb.go xgb_help.go xgb_test.go
colcheck xgbgen/*.go examples/*.go examples/*/*.go xproto/xproto_test.go \
auth.go conn.go cookie.go doc.go xgb.go xgb_help.go

138 changes: 0 additions & 138 deletions auto_bigreq.go

This file was deleted.

Loading

0 comments on commit b618b2e

Please sign in to comment.