• Home
  • Raw
  • Download

Lines Matching +full:cmdline +full:- +full:tools

1 Building gRPC-Java
4 Building is only necessary if you are making changes to gRPC-Java or testing/using a non-released
5 version (e.g. master HEAD) of gRPC-Java library.
9 grpc-java has a C++ code generation plugin for protoc. Since many Java
12 `<project-root>/gradle.properties` and add `skipCodegen=true`.
14 Some parts of grpc-java depend on Android. Since many Java developers don't have
17 `<project-root>/gradle.properties` and add `skipAndroid=true`.
18 Otherwise, create the file `<project-root>/gradle.properties` and add `android.useAndroidX=true`.
36 ```Settings -> Build, Execution, Deployment
37 -> Build Tools -> Gradle -> Runner
38 -> Delegate IDE build/run actions to gradle.
42 -----------------------------------
52 $ curl -LO https://github.com/protocolbuffers/protobuf/releases/download/v$PROTOBUF_VERSION/protobu…
53 $ tar xzf protobuf-all-$PROTOBUF_VERSION.tar.gz
54 $ cd protobuf-$PROTOBUF_VERSION
55 $ ./configure --disable-shared
56 $ make # You may want to pass -j to make this run faster; see make --help
61 ``--prefix`` for Protobuf and use ``-I`` in ``CXXFLAGS``, ``-L`` in
63 environment variables will be used when building grpc-java.
68 for how to compile Protobuf. gRPC-java assumes a Release build.
75 $ export CXXFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib"
84 -PvcProtobufInclude=C:\path\to\protobuf\src ^
85 -PvcProtobufLibs=C:\path\to\protobuf\vsprojects\Release ^
86 -PtargetArch=x86_32
90 create ``<project-root>\gradle.properties`` with contents like:
98 the Java runtime installed on your system. If you are using 64-bit JVM, the
99 codegen will be compiled for 64-bit. Since Protobuf is only built for 32-bit by
104 default. To override this default and use MinGW, add ``-PvcDisable=true``
106 ``<project-root>\gradle.properties``.
109 The build script pulls pre-compiled ``protoc`` from Maven Central by default.
113 ``<project-root>/gradle.properties``:
119 ---------------------------
121 (e.g., `cronet`). Non-Android users only need to use `skipAndroid=true` as
128 Preferences -> System Settings -> Android SDK
135 ### Install via Command line tools only
136 Go to [Android SDK](https://developer.android.com/studio#command-tools) and
145 mkdir $ANDROID_HOME/cmdline-tools
146 unzip -d $ANDROID_HOME/cmdline-tools DOWNLOADS/commandlinetools-*.zip
147 mv $ANDROID_HOME/cmdline-tools/cmdline-tools $ANDROID_HOME/cmdline-tools/latest
148 # Android SDK is now ready. Now accept licenses so the build can auto-download packages
149 $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --licenses