OLD | NEW |
1 # Build scripts that publish pre-compiled protoc artifacts | 1 # Build scripts that publish pre-compiled protoc artifacts |
2 ``protoc`` is the compiler for ``.proto`` files. It generates language bindings | 2 ``protoc`` is the compiler for ``.proto`` files. It generates language bindings |
3 for the messages and/or RPC services from ``.proto`` files. | 3 for the messages and/or RPC services from ``.proto`` files. |
4 | 4 |
5 Because ``protoc`` is a native executable, the scripts under this directory | 5 Because ``protoc`` is a native executable, the scripts under this directory |
6 build and publish a ``protoc`` executable (a.k.a. artifact) to Maven | 6 build and publish a ``protoc`` executable (a.k.a. artifact) to Maven |
7 repositories. The artifact can be used by build automation tools so that users | 7 repositories. The artifact can be used by build automation tools so that users |
8 would not need to compile and install ``protoc`` for their systems. | 8 would not need to compile and install ``protoc`` for their systems. |
9 | 9 |
10 ## Versioning | 10 ## Versioning |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 ``` | 48 ``` |
49 $ mvn install -Dos.detected.arch=x86_32 | 49 $ mvn install -Dos.detected.arch=x86_32 |
50 ``` | 50 ``` |
51 | 51 |
52 ## To push artifacts to Maven Central | 52 ## To push artifacts to Maven Central |
53 Before you can upload artifacts to Maven Central repository, make sure you have | 53 Before you can upload artifacts to Maven Central repository, make sure you have |
54 read [this page](http://central.sonatype.org/pages/apache-maven.html) on how to | 54 read [this page](http://central.sonatype.org/pages/apache-maven.html) on how to |
55 configure GPG and Sonatype account. | 55 configure GPG and Sonatype account. |
56 | 56 |
57 You need to perform the deployment for every platform that you want to | 57 You need to perform the deployment for every platform that you want to |
58 suppport. DO NOT close the staging repository until you have done the | 58 support. DO NOT close the staging repository until you have done the |
59 deployment for all platforms. Currently the following platforms are supported: | 59 deployment for all platforms. Currently the following platforms are supported: |
60 - Linux (x86_32 and x86_64) | 60 - Linux (x86_32 and x86_64) |
61 - Windows (x86_32 and x86_64) with | 61 - Windows (x86_32 and x86_64) with |
62 - Cygwin with MinGW compilers (both x86_32 and x86_64) | 62 - Cygwin with MinGW compilers (both x86_32 and x86_64) |
63 - MSYS with MinGW32 (x86_32 only) | 63 - MSYS with MinGW32 (x86_32 only) |
64 - MacOSX (x86_32 and x86_64) | 64 - MacOSX (x86_32 and x86_64) |
65 | 65 |
66 Use the following command to deploy artifacts for the host platform to a | 66 Use the following command to deploy artifacts for the host platform to a |
67 staging repository. | 67 staging repository. |
68 ``` | 68 ``` |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 </properties> | 127 </properties> |
128 </profile> | 128 </profile> |
129 </profiles> | 129 </profiles> |
130 <activeProfiles> | 130 <activeProfiles> |
131 <activeProfile>gpg</activeProfile> | 131 <activeProfile>gpg</activeProfile> |
132 </activeProfiles> | 132 </activeProfiles> |
133 </settings> | 133 </settings> |
134 ``` | 134 ``` |
135 | 135 |
136 ### Tested build environments | 136 ### Tested build environments |
137 We have succesfully built artifacts on the following environments: | 137 We have successfully built artifacts on the following environments: |
138 - Linux x86_32 and x86_64: | 138 - Linux x86_32 and x86_64: |
139 - Centos 6.6 (within Docker 1.6.1) | 139 - Centos 6.6 (within Docker 1.6.1) |
140 - Ubuntu 14.04.2 64-bit | 140 - Ubuntu 14.04.2 64-bit |
141 - Windows x86_32: MSYS with ``mingw32-gcc-g++ 4.8.1-4`` on Windows 7 64-bit | 141 - Windows x86_32: MSYS with ``mingw32-gcc-g++ 4.8.1-4`` on Windows 7 64-bit |
142 - Windows x86_64: Cygwin64 with ``mingw64-x86_64-gcc-g++ 4.8.3-1`` on Windows 7
64-bit | 142 - Windows x86_64: Cygwin64 with ``mingw64-x86_64-gcc-g++ 4.8.3-1`` on Windows 7
64-bit |
143 - Mac OS X x86_32 and x86_64: Mac OS X 10.9.5 | 143 - Mac OS X x86_32 and x86_64: Mac OS X 10.9.5 |
OLD | NEW |