dispatch/vendor/github.com/mailru/easyjson/Makefile

69 lines
1.8 KiB
Makefile
Raw Normal View History

2018-05-25 21:54:36 +00:00
all: test
clean:
2020-04-29 02:23:32 +00:00
rm -rf bin
2018-05-25 21:54:36 +00:00
rm -rf tests/*_easyjson.go
2020-04-29 02:23:32 +00:00
rm -rf benchmark/*_easyjson.go
2018-05-25 21:54:36 +00:00
build:
2020-04-29 02:23:32 +00:00
go build -i -o ./bin/easyjson ./easyjson
generate: build
bin/easyjson -stubs \
./tests/snake.go \
./tests/data.go \
./tests/omitempty.go \
./tests/nothing.go \
./tests/named_type.go \
./tests/custom_map_key_type.go \
./tests/embedded_type.go \
./tests/reference_to_pointer.go \
./tests/html.go \
./tests/unknown_fields.go \
2020-05-03 07:05:16 +00:00
./tests/type_declaration.go \
./tests/members_escaped.go \
./tests/members_unescaped.go \
./tests/intern.go \
./tests/nocopy.go \
./tests/escaping.go \
2020-04-29 02:23:32 +00:00
bin/easyjson -all ./tests/data.go
bin/easyjson -all ./tests/nothing.go
bin/easyjson -all ./tests/errors.go
bin/easyjson -all ./tests/html.go
bin/easyjson -snake_case ./tests/snake.go
bin/easyjson -omit_empty ./tests/omitempty.go
2020-05-03 07:05:16 +00:00
bin/easyjson -build_tags=use_easyjson -disable_members_unescape ./benchmark/data.go
2020-04-29 02:23:32 +00:00
bin/easyjson ./tests/nested_easy.go
bin/easyjson ./tests/named_type.go
bin/easyjson ./tests/custom_map_key_type.go
bin/easyjson ./tests/embedded_type.go
bin/easyjson ./tests/reference_to_pointer.go
bin/easyjson ./tests/key_marshaler_map.go
bin/easyjson -disallow_unknown_fields ./tests/disallow_unknown.go
bin/easyjson ./tests/unknown_fields.go
2020-05-03 07:05:16 +00:00
bin/easyjson ./tests/type_declaration.go
bin/easyjson ./tests/members_escaped.go
bin/easyjson -disable_members_unescape ./tests/members_unescaped.go
bin/easyjson ./tests/intern.go
bin/easyjson ./tests/nocopy.go
bin/easyjson ./tests/escaping.go
2020-04-29 02:23:32 +00:00
test: generate
2018-05-25 21:54:36 +00:00
go test \
2020-04-29 02:23:32 +00:00
./tests \
./jlexer \
./gen \
./buffer
cd benchmark && go test -benchmem -tags use_easyjson -bench .
golint -set_exit_status ./tests/*_easyjson.go
2018-05-25 21:54:36 +00:00
2020-04-29 02:23:32 +00:00
bench-other: generate
cd benchmark && make
2018-05-25 21:54:36 +00:00
bench-python:
benchmark/ujson.sh
2020-04-29 02:23:32 +00:00
.PHONY: clean generate test build