Skip to content

Commit a9b1c5c

Browse files
committed
Merge commit '4e57e8be3911e3030e2ccfd6478be75a3c2b0250' into p0-archive-fix
2 parents 6801b22 + 4e57e8b commit a9b1c5c

File tree

362 files changed

+7861
-4155
lines changed

Some content is hidden

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

362 files changed

+7861
-4155
lines changed

.travis.yml

Lines changed: 26 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -8,33 +8,37 @@ env:
88
- TEST=objc
99
- JOBS=1
1010
matrix:
11-
- SCHEME="RxLibraryUnitTests" WORKSPACE="Tests.xcworkspace"
12-
TEST_PATH="src/objective-c/tests" BUILD_ONLY="false"
11+
- SCHEME="RxLibraryUnitTests"
12+
WORKSPACE="Tests.xcworkspace" TEST_PATH="src/objective-c/tests" BUILD_ONLY="false"
1313
INTEROP_SERVER="false"
14-
- SCHEME="InteropTestsLocalSSL" WORKSPACE="Tests.xcworkspace"
15-
TEST_PATH="src/objective-c/tests" BUILD_ONLY="false" INTEROP_SERVER="true"
16-
- SCHEME="InteropTestsLocalCleartext" WORKSPACE="Tests.xcworkspace"
17-
TEST_PATH="src/objective-c/tests" BUILD_ONLY="false"
14+
- SCHEME="InteropTestsLocalSSL"
15+
WORKSPACE="Tests.xcworkspace" TEST_PATH="src/objective-c/tests" BUILD_ONLY="false"
16+
INTEROP_SERVER="true"
17+
- SCHEME="InteropTestsLocalCleartext"
18+
WORKSPACE="Tests.xcworkspace" TEST_PATH="src/objective-c/tests" BUILD_ONLY="false"
1819
INTEROP_SERVER="true"
1920
# TODO(jcanizales): Make tests an app project (instead of library), so the following will work.
20-
# - SCHEME="InteropTestsRemote" WORKSPACE="Tests.xcworkspace"
21-
# TEST_PATH="src/objective-c/tests" BUILD_ONLY="false"
21+
# - SCHEME="InteropTestsRemote"
22+
# WORKSPACE="Tests.xcworkspace" TEST_PATH="src/objective-c/tests" BUILD_ONLY="false"
2223
# INTEROP_SERVER="true"
23-
- SCHEME="HelloWorld" WORKSPACE="HelloWorld.xcworkspace"
24-
TEST_PATH="examples/objective-c/helloworld" BUILD_ONLY="true"
25-
INTEROP_SERVER="false"
26-
- SCHEME="RouteGuideClient" WORKSPACE="RouteGuideClient.xcworkspace"
27-
TEST_PATH="examples/objective-c/route_guide" BUILD_ONLY="true"
28-
INTEROP_SERVER="false"
29-
- SCHEME="AuthSample" WORKSPACE="AuthSample.xcworkspace"
30-
TEST_PATH="examples/objective-c/auth_sample" BUILD_ONLY="true"
31-
INTEROP_SERVER="false"
32-
- SCHEME="Sample" WORKSPACE="Sample.xcworkspace"
33-
TEST_PATH="src/objective-c/examples/Sample" BUILD_ONLY="true"
34-
INTEROP_SERVER="false"
35-
- SCHEME="SwiftSample" WORKSPACE="SwiftSample.xcworkspace"
36-
TEST_PATH="src/objective-c/examples/SwiftSample" BUILD_ONLY="true"
24+
- SCHEME="HelloWorld"
25+
WORKSPACE="HelloWorld.xcworkspace" TEST_PATH="examples/objective-c/helloworld"
26+
BUILD_ONLY="true" INTEROP_SERVER="false"
27+
- SCHEME="RouteGuideClient"
28+
WORKSPACE="RouteGuideClient.xcworkspace" TEST_PATH="examples/objective-c/route_guide"
29+
BUILD_ONLY="true" INTEROP_SERVER="false"
30+
- SCHEME="AuthSample"
31+
WORKSPACE="AuthSample.xcworkspace" TEST_PATH="examples/objective-c/auth_sample"
32+
BUILD_ONLY="true" INTEROP_SERVER="false"
33+
- SCHEME="Sample"
34+
WORKSPACE="Sample.xcworkspace" TEST_PATH="src/objective-c/examples/Sample" BUILD_ONLY="true"
3735
INTEROP_SERVER="false"
36+
- SCHEME="Sample"
37+
WORKSPACE="Sample.xcworkspace" TEST_PATH="src/objective-c/examples/Sample" BUILD_ONLY="true"
38+
INTEROP_SERVER="false" FRAMEWORKS="YES"
39+
- SCHEME="SwiftSample"
40+
WORKSPACE="SwiftSample.xcworkspace" TEST_PATH="src/objective-c/examples/SwiftSample"
41+
BUILD_ONLY="true" INTEROP_SERVER="false"
3842
before_install:
3943
# Until Travis upgrades from Cocoapods 0.39, we need to do it here.
4044
- pod --version

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
cmake_minimum_required(VERSION 2.8)
4343

4444
set(PACKAGE_NAME "grpc")
45-
set(PACKAGE_VERSION "1.0.0-pre1")
45+
set(PACKAGE_VERSION "1.0.0-pre2")
4646
set(PACKAGE_STRING "${PACKAGE_NAME} ${PACKAGE_VERSION}")
4747
set(PACKAGE_TARNAME "${PACKAGE_NAME}-${PACKAGE_VERSION}")
4848
set(PACKAGE_BUGREPORT "https://github.com/grpc/grpc/issues/")

INSTALL.md

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,55 @@ gRPC C Core library.
5555
$ make
5656
$ [sudo] make install
5757
```
58+
59+
##Windows
60+
61+
There are several ways to build under Windows, of varying complexity depending
62+
on experience with the tools involved.
63+
64+
<!--
65+
###Visual Studio
66+
67+
Versions 2013 and 2015 are both supported. You can use [their respective
68+
community
69+
editions](https://www.visualstudio.com/en-us/downloads/download-visual-studio-vs.aspx).
70+
71+
Building the C Core:
72+
- Open [grpc.sln](https://github.com/grpc/grpc/blob/master/vsprojects/grpc.sln).
73+
- Select your build target.
74+
- Build the `grpc` project.
75+
76+
Building the C++ runtime:
77+
- You need [CMake](https://cmake.org/) on your path to build protobuf (see below
78+
for building using solely CMake).
79+
- Run `vsprojects/build_protos.bat` (needs `cmake.exe` in your path).
80+
- Open [buildtests_cxx.sln]()
81+
- Select your build target.
82+
- build the `grpc++` project.
83+
-->
84+
85+
###msys2
86+
87+
This approach requires having [msys2](https://msys2.github.io/) installed.
88+
89+
- The Makefile (and source code) should support msys2's mingw32 and mingw64
90+
compilers. Building with msys2's native compiler is also possible, but
91+
difficult.
92+
- The Makefile is expecting the Windows versions of OpenSSL (see
93+
https://slproweb.com/products/Win32OpenSSL.html). It's also possible to build
94+
the Windows version of OpenSSL from scratch. The output should be `libeay32`
95+
and `ssleay32`.
96+
- If you are not installing the above files under msys2's path, you may specify
97+
it, for instance, in the following way:
98+
```CPPFLAGS=”-I/c/OpenSSL-Win32/include” LDFLAGS=”-L/c/OpenSSL-Win32/lib” make static_c```
99+
- [protobuf3](https://github.com/google/protobuf/blob/master/src/README.md#c-installation---windows)
100+
must be installed on the msys2 path.
101+
102+
###Cmake (experimental)
103+
104+
- Install [CMake](https://cmake.org/download/).
105+
- Run it over [grpc's
106+
CMakeLists.txt](https://github.com/grpc/grpc/blob/master/CMakeLists.txt) to
107+
generate "projects" for your compiler.
108+
- Build with your compiler of choice. The generated build files should have the
109+
protobuf3 dependency baked in.

Makefile

Lines changed: 1 addition & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ E = @echo
415415
Q = @
416416
endif
417417

418-
VERSION = 1.0.0-pre1
418+
VERSION = 1.0.0-pre2
419419

420420
CPPFLAGS_NO_ARCH += $(addprefix -I, $(INCLUDES)) $(addprefix -D, $(DEFINES))
421421
CPPFLAGS += $(CPPFLAGS_NO_ARCH) $(ARCH_FLAGS)
@@ -991,7 +991,6 @@ transport_security_test: $(BINDIR)/$(CONFIG)/transport_security_test
991991
udp_server_test: $(BINDIR)/$(CONFIG)/udp_server_test
992992
uri_fuzzer_test: $(BINDIR)/$(CONFIG)/uri_fuzzer_test
993993
uri_parser_test: $(BINDIR)/$(CONFIG)/uri_parser_test
994-
workqueue_test: $(BINDIR)/$(CONFIG)/workqueue_test
995994
alarm_cpp_test: $(BINDIR)/$(CONFIG)/alarm_cpp_test
996995
async_end2end_test: $(BINDIR)/$(CONFIG)/async_end2end_test
997996
auth_property_iterator_test: $(BINDIR)/$(CONFIG)/auth_property_iterator_test
@@ -1295,7 +1294,6 @@ buildtests_c: privatelibs_c \
12951294
$(BINDIR)/$(CONFIG)/transport_security_test \
12961295
$(BINDIR)/$(CONFIG)/udp_server_test \
12971296
$(BINDIR)/$(CONFIG)/uri_parser_test \
1298-
$(BINDIR)/$(CONFIG)/workqueue_test \
12991297
$(BINDIR)/$(CONFIG)/public_headers_must_be_c89 \
13001298
$(BINDIR)/$(CONFIG)/badreq_bad_client_test \
13011299
$(BINDIR)/$(CONFIG)/connection_prefix_bad_client_test \
@@ -1674,8 +1672,6 @@ test_c: buildtests_c
16741672
$(Q) $(BINDIR)/$(CONFIG)/udp_server_test || ( echo test udp_server_test failed ; exit 1 )
16751673
$(E) "[RUN] Testing uri_parser_test"
16761674
$(Q) $(BINDIR)/$(CONFIG)/uri_parser_test || ( echo test uri_parser_test failed ; exit 1 )
1677-
$(E) "[RUN] Testing workqueue_test"
1678-
$(Q) $(BINDIR)/$(CONFIG)/workqueue_test || ( echo test workqueue_test failed ; exit 1 )
16791675
$(E) "[RUN] Testing public_headers_must_be_c89"
16801676
$(Q) $(BINDIR)/$(CONFIG)/public_headers_must_be_c89 || ( echo test public_headers_must_be_c89 failed ; exit 1 )
16811677
$(E) "[RUN] Testing badreq_bad_client_test"
@@ -10175,38 +10171,6 @@ endif
1017510171
endif
1017610172

1017710173

10178-
WORKQUEUE_TEST_SRC = \
10179-
test/core/iomgr/workqueue_test.c \
10180-
10181-
WORKQUEUE_TEST_OBJS = $(addprefix $(OBJDIR)/$(CONFIG)/, $(addsuffix .o, $(basename $(WORKQUEUE_TEST_SRC))))
10182-
ifeq ($(NO_SECURE),true)
10183-
10184-
# You can't build secure targets if you don't have OpenSSL.
10185-
10186-
$(BINDIR)/$(CONFIG)/workqueue_test: openssl_dep_error
10187-
10188-
else
10189-
10190-
10191-
10192-
$(BINDIR)/$(CONFIG)/workqueue_test: $(WORKQUEUE_TEST_OBJS) $(LIBDIR)/$(CONFIG)/libgrpc_test_util.a $(LIBDIR)/$(CONFIG)/libgrpc.a $(LIBDIR)/$(CONFIG)/libgpr_test_util.a $(LIBDIR)/$(CONFIG)/libgpr.a
10193-
$(E) "[LD] Linking $@"
10194-
$(Q) mkdir -p `dirname $@`
10195-
$(Q) $(LD) $(LDFLAGS) $(WORKQUEUE_TEST_OBJS) $(LIBDIR)/$(CONFIG)/libgrpc_test_util.a $(LIBDIR)/$(CONFIG)/libgrpc.a $(LIBDIR)/$(CONFIG)/libgpr_test_util.a $(LIBDIR)/$(CONFIG)/libgpr.a $(LDLIBS) $(LDLIBS_SECURE) -o $(BINDIR)/$(CONFIG)/workqueue_test
10196-
10197-
endif
10198-
10199-
$(OBJDIR)/$(CONFIG)/test/core/iomgr/workqueue_test.o: $(LIBDIR)/$(CONFIG)/libgrpc_test_util.a $(LIBDIR)/$(CONFIG)/libgrpc.a $(LIBDIR)/$(CONFIG)/libgpr_test_util.a $(LIBDIR)/$(CONFIG)/libgpr.a
10200-
10201-
deps_workqueue_test: $(WORKQUEUE_TEST_OBJS:.o=.dep)
10202-
10203-
ifneq ($(NO_SECURE),true)
10204-
ifneq ($(NO_DEPS),true)
10205-
-include $(WORKQUEUE_TEST_OBJS:.o=.dep)
10206-
endif
10207-
endif
10208-
10209-
1021010174
ALARM_CPP_TEST_SRC = \
1021110175
test/cpp/common/alarm_cpp_test.cc \
1021210176

Rakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ task 'dlls' do
8383
env += 'EMBED_ZLIB=true '
8484
env += 'BUILDDIR=/tmp '
8585
env += "V=#{verbose} "
86-
out = '/tmp/libs/opt/grpc-0.dll'
86+
out = '/tmp/libs/opt/grpc-1.dll'
8787

8888
w64 = { cross: 'x86_64-w64-mingw32', out: 'grpc_c.64.ruby' }
8989
w32 = { cross: 'i686-w64-mingw32', out: 'grpc_c.32.ruby' }

build.yaml

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ settings:
77
'#3': Use "-preN" suffixes to identify pre-release versions
88
'#4': Per-language overrides are possible with (eg) ruby_version tag here
99
'#5': See the expand_version.py for all the quirks here
10-
version: 1.0.0-pre1
10+
version: 1.0.0-pre2
1111
filegroups:
1212
- name: census
1313
public_headers:
@@ -2430,20 +2430,6 @@ targets:
24302430
- grpc
24312431
- gpr_test_util
24322432
- gpr
2433-
- name: workqueue_test
2434-
build: test
2435-
language: c
2436-
src:
2437-
- test/core/iomgr/workqueue_test.c
2438-
deps:
2439-
- grpc_test_util
2440-
- grpc
2441-
- gpr_test_util
2442-
- gpr
2443-
platforms:
2444-
- mac
2445-
- linux
2446-
- posix
24472433
- name: alarm_cpp_test
24482434
gtest: true
24492435
build: test
@@ -3367,6 +3353,7 @@ php_config_m4:
33673353
- src/php/ext/grpc/channel.h
33683354
- src/php/ext/grpc/channel_credentials.h
33693355
- src/php/ext/grpc/completion_queue.h
3356+
- src/php/ext/grpc/php7_wrapper.h
33703357
- src/php/ext/grpc/php_grpc.h
33713358
- src/php/ext/grpc/server.h
33723359
- src/php/ext/grpc/server_credentials.h

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"license": "BSD-3-Clause",
88
"require": {
99
"php": ">=5.5.0",
10-
"stanley-cheung/protobuf-php": "dev-master"
10+
"stanley-cheung/protobuf-php": "v0.6"
1111
},
1212
"require-dev": {
1313
"google/auth": "v0.9"

doc/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
build/
2+
src/

0 commit comments

Comments
 (0)