37
37
]
38
38
39
39
40
- def gngen (arch , ssl_root , msdk_root , quic_root , scheme , tests , runtime ):
40
+ def gngen (arch , ssl_root , msdk_root , quic_root , scheme , tests , runtime , cloud_gaming ):
41
41
gn_args = list (GN_ARGS )
42
42
gn_args .append ('target_cpu="%s"' % arch )
43
43
using_llvm = False
@@ -84,6 +84,8 @@ def gngen(arch, ssl_root, msdk_root, quic_root, scheme, tests, runtime):
84
84
else :
85
85
gn_args .append ('rtc_include_tests=false' )
86
86
gn_args .append ('owt_include_tests=false' )
87
+ if cloud_gaming :
88
+ gn_args .append ('owt_cloud_gaming=true' )
87
89
flattened_args = ' ' .join (gn_args )
88
90
ret = subprocess .call (['gn.bat' , 'gen' , getoutputpath (arch , scheme ), '--args=%s' % flattened_args ],
89
91
cwd = HOME_PATH , shell = False )
@@ -178,6 +180,8 @@ def main():
178
180
parser .add_argument ('--docs' , default = False , action = 'store_true' ,
179
181
help = 'To generate the API document.' )
180
182
parser .add_argument ('--output_path' , help = 'Path to copy sdk.' )
183
+ parser .add_argument ('--cloud_gaming' , default = False ,
184
+ help = 'Build for cloud gaming. Default to false.' , action = 'store_true' )
181
185
opts = parser .parse_args ()
182
186
if opts .ssl_root and not os .path .exists (os .path .expanduser (opts .ssl_root )):
183
187
print ('Invalid ssl_root.' )
@@ -192,7 +196,7 @@ def main():
192
196
return 1
193
197
if opts .gn_gen :
194
198
if not gngen (opts .arch , opts .ssl_root , opts .msdk_root , opts .quic_root ,
195
- opts .scheme , opts .tests , opts .runtime ):
199
+ opts .scheme , opts .tests , opts .runtime , opts . cloud_gaming ):
196
200
return 1
197
201
if opts .sdk :
198
202
if not ninjabuild (opts .arch , opts .scheme ):
0 commit comments