OLD | NEW |
1 #!/usr/bin/python | 1 #!/usr/bin/python |
2 | 2 |
3 # Copyright 2016 Google Inc. | 3 # Copyright 2016 Google Inc. |
4 # | 4 # |
5 # Use of this source code is governed by a BSD-style license that can be | 5 # Use of this source code is governed by a BSD-style license that can be |
6 # found in the LICENSE file. | 6 # found in the LICENSE file. |
7 | 7 |
8 | 8 |
9 """ | 9 """ |
10 Script to build the command buffer shared library and copy it to Skia tree | 10 Script to build the command buffer shared library and copy it to Skia tree |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 | 124 |
125 gn = 'gn' | 125 gn = 'gn' |
126 platform = 'linux64' | 126 platform = 'linux64' |
127 if sys.platform == 'darwin': | 127 if sys.platform == 'darwin': |
128 platform = 'mac' | 128 platform = 'mac' |
129 elif sys.platform == 'win32': | 129 elif sys.platform == 'win32': |
130 platform = 'win' | 130 platform = 'win' |
131 gn = 'gn.exe' | 131 gn = 'gn.exe' |
132 gn = os.path.join(chrome_src_dir, 'buildtools', platform, gn) | 132 gn = os.path.join(chrome_src_dir, 'buildtools', platform, gn) |
133 try: | 133 try: |
134 subprocess.check_call([gn, 'gen', chrome_target_dir_rel], | 134 subprocess.check_call([gn, 'gen', chrome_target_dir_rel, |
| 135 '--args=is_component_build=false'], |
135 cwd=chrome_src_dir) | 136 cwd=chrome_src_dir) |
136 except subprocess.CalledProcessError as error: | 137 except subprocess.CalledProcessError as error: |
137 sys.exit('Error (ret code: %s) calling "%s" in %s' % ( | 138 sys.exit('Error (ret code: %s) calling "%s" in %s' % ( |
138 error.returncode, error.cmd, chrome_src_dir)) | 139 error.returncode, error.cmd, chrome_src_dir)) |
139 | 140 |
140 try: | 141 try: |
141 subprocess.check_call(['ninja'] + shlex.split(args.extra_ninja_args) + | 142 subprocess.check_call(['ninja'] + shlex.split(args.extra_ninja_args) + |
142 ['-C', chrome_target_dir_rel, 'command_buffer_gles2'], | 143 ['-C', chrome_target_dir_rel, 'command_buffer_gles2'], |
143 cwd=chrome_src_dir) | 144 cwd=chrome_src_dir) |
144 except subprocess.CalledProcessError as error: | 145 except subprocess.CalledProcessError as error: |
(...skipping 17 matching lines...) Expand all Loading... |
162 | 163 |
163 if not os.path.isfile(shared_lib_dst): | 164 if not os.path.isfile(shared_lib_dst): |
164 sys.exit('Command buffer library not copied to ' + shared_lib_dst) | 165 sys.exit('Command buffer library not copied to ' + shared_lib_dst) |
165 | 166 |
166 print('Command buffer library copied to ' + shared_lib_dst) | 167 print('Command buffer library copied to ' + shared_lib_dst) |
167 | 168 |
168 | 169 |
169 if __name__ == '__main__': | 170 if __name__ == '__main__': |
170 main() | 171 main() |
171 | 172 |
OLD | NEW |