Skip to content

Commit 14387a1

Browse files
committed
Initial commit of Please.
0 parents  commit 14387a1

File tree

269 files changed

+53988
-0
lines changed

Some content is hidden

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

269 files changed

+53988
-0
lines changed

.gitignore

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Output binary from 'go build'
2+
/please
3+
/src/please
4+
# Install directories for third-party Go packages
5+
/pkg
6+
/bin
7+
/src/github.com
8+
/src/golang.org
9+
/src/code.google.com
10+
/src/gopkg.in
11+
/src/google.golang.org
12+
# Generated by go-bindata
13+
/src/parse/builtin_rules.go
14+
# Local config file
15+
.plzconfig.local
16+
17+
/plz-out
18+
/.plz-cache
19+
/.plz-http-cache
20+
/plz-cache
21+
*.pyc
22+
*.o
23+
*.a
24+
__pycache__
25+
26+
.idea
27+
*.iml

.plzconfig

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
; We obviously can't rely on anyone having our pex tool already available,
2+
; so in this repo we have to build one without it which we can use to
3+
; compile other python_binary rules within the Please repo itself.
4+
;
5+
; Other projects using Please wouldn't normally need to do anything like this.
6+
[python]
7+
pextool = //src/build/python:bootstrap_pexer
8+
defaultpiprepo = https://s3-eu-west-1.amazonaws.com/py-wheels/index.html
9+
10+
; This is a hack to handle peasant operating systems with case-insensitive file systems.
11+
; I don't want to rename my package so we have one slightly differently named build file
12+
; in this project.
13+
[please]
14+
buildfilename = BUILD
15+
buildfilename = BUILD_
16+
17+
[go]
18+
version = 1.5.3
19+
; We're going to distribute the binaries and they're quite a bit smaller after this.
20+
; Could disable if people strongly preferred this to be distributed as well.
21+
strip = true
22+
23+
[cpp]
24+
defaultcflags = --std=c++11
25+
defaultnamespace = thought_machine
26+
27+
[java]
28+
jarcattool = //src/build/java:jarcat
29+
junitrunner = //src/build/java:junit_runner
30+
pleasemaventool = //src/build/java:please_maven
31+
defaulttestpackage = net.thoughtmachine
32+
; We want the default to remain at java 8 because obviously it's significantly better,
33+
; but the builtin packages here support java 7 fine so it's nice not to require more.
34+
sourcelevel = 7
35+
targetlevel = 7
36+
37+
[proto]
38+
pythonpackage = third_party.python.google.protobuf
39+
; TODO(pebers): Remove these once we rationalise our package names
40+
grpcpythonplugin = `which grpc_python_plugin`
41+
grpcjavaplugin = `which grpc_java_plugin`
42+
protocgoplugin = //third_party/go:protoc-gen-go
43+
44+
[docker]
45+
allowlocalfallback = false
46+
47+
[cache]
48+
dir = .plz-cache
49+
; Too hard to make this guy work during initial bootstrap.
50+
dircachecleaner =
51+
52+
[licences]
53+
accept = MIT
54+
accept = BSD
55+
accept = BSD License
56+
accept = Simplified BSD
57+
accept = BSD 3-Clause
58+
accept = New BSD License
59+
accept = Apache 2.0
60+
accept = Apache License, Version 2.0
61+
accept = PSF

BUILD

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
filegroup(
2+
name = 'please',
3+
srcs = ['//src:please'],
4+
)
5+
6+
filegroup(
7+
name = 'all_tools',
8+
srcs = [
9+
'//src/build/python:please_pex',
10+
'//src/build/java:junit_runner',
11+
'//src/cache/tools:cache_cleaner',
12+
'//src/cache/server:http_cache_server_bin',
13+
'//src/cache/server:rpc_cache_server_bin',
14+
'//src/build/java:jarcat',
15+
'//src/build/java:please_maven',
16+
'//src/misc:plz_diff_graphs',
17+
],
18+
deps = [
19+
'//:please',
20+
],
21+
)
22+
23+
filegroup(
24+
name = 'version',
25+
srcs = ['VERSION'],
26+
visibility = ['PUBLIC'],
27+
)

0 commit comments

Comments
 (0)