Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Grpc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tci-gateway-module
Grpc
Commits
6d28d352
Commit
6d28d352
authored
9 years ago
by
Jan Tattermusch
Browse files
Options
Downloads
Patches
Plain Diff
refactor C# building
parent
1f5ad316
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/run_tests/run_tests.py
+16
-14
16 additions, 14 deletions
tools/run_tests/run_tests.py
with
16 additions
and
14 deletions
tools/run_tests/run_tests.py
+
16
−
14
View file @
6d28d352
...
@@ -464,7 +464,17 @@ class CSharpLanguage(object):
...
@@ -464,7 +464,17 @@ class CSharpLanguage(object):
def
configure
(
self
,
config
,
args
):
def
configure
(
self
,
config
,
args
):
self
.
config
=
config
self
.
config
=
config
self
.
args
=
args
self
.
args
=
args
_check_compiler
(
self
.
args
.
compiler
,
[
'
default
'
])
if
self
.
platform
==
'
windows
'
:
self
.
_make_options
=
[
_windows_toolset_option
(
self
.
args
.
compiler
),
_windows_arch_option
(
self
.
args
.
arch
)]
else
:
_check_compiler
(
self
.
args
.
compiler
,
[
'
default
'
])
if
self
.
platform
==
'
mac
'
:
# On Mac, official distribution of mono is 32bit.
self
.
_make_options
=
[
'
EMBED_OPENSSL=true
'
,
'
EMBED_ZLIB=true
'
,
'
CFLAGS=-arch i386
'
,
'
LDFLAGS=-arch i386
'
]
else
:
self
.
_make_options
=
[
'
EMBED_OPENSSL=true
'
,
'
EMBED_ZLIB=true
'
]
def
test_specs
(
self
):
def
test_specs
(
self
):
with
open
(
'
src/csharp/tests.json
'
)
as
f
:
with
open
(
'
src/csharp/tests.json
'
)
as
f
:
...
@@ -511,24 +521,16 @@ class CSharpLanguage(object):
...
@@ -511,24 +521,16 @@ class CSharpLanguage(object):
return
[[
'
tools/run_tests/pre_build_csharp.sh
'
]]
return
[[
'
tools/run_tests/pre_build_csharp.sh
'
]]
def
make_targets
(
self
):
def
make_targets
(
self
):
# For Windows, this target doesn't really build anything,
return
[
'
grpc_csharp_ext
'
]
# everything is built by buildall script later.
if
self
.
platform
==
'
windows
'
:
return
[]
else
:
return
[
'
grpc_csharp_ext
'
]
def
make_options
(
self
):
def
make_options
(
self
):
if
self
.
platform
==
'
mac
'
:
return
self
.
_make_options
;
# On Mac, official distribution of mono is 32bit.
return
[
'
EMBED_OPENSSL=true
'
,
'
EMBED_ZLIB=true
'
,
'
CFLAGS=-arch i386
'
,
'
LDFLAGS=-arch i386
'
]
else
:
return
[
'
EMBED_OPENSSL=true
'
,
'
EMBED_ZLIB=true
'
]
def
build_steps
(
self
):
def
build_steps
(
self
):
if
self
.
platform
==
'
windows
'
:
if
self
.
platform
==
'
windows
'
:
return
[[
'
src
\\
csharp
\\
buildall.bat
'
]]
return
[[
_windows_build_bat
(
self
.
args
.
compiler
),
'
src/csharp/Grpc.sln
'
,
'
/p:Configuration=%s
'
%
_MSBUILD_CONFIG
[
self
.
config
.
build_config
]]]
else
:
else
:
return
[[
'
tools/run_tests/build_csharp.sh
'
]]
return
[[
'
tools/run_tests/build_csharp.sh
'
]]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment