34 """Create the asset."""
35
36 cmd = [
37 'sudo','apt-get','install',
38 'libgles2-mesa-dev',
39 'libegl1-mesa-dev'
40 ]
41 subprocess.check_call(cmd)
42
43
44 lib_dir = os.path.join(target_dir, 'lib')
45 os.mkdir(lib_dir)
46
47 to_copy = glob.glob(os.path.join(gl_path,'libGL*'))
48 to_copy.extend(glob.glob(os.path.join(gl_path,'libEGL*')))
49 to_copy.extend(glob.glob(os.path.join(gl_path,'libmali*')))
50 for f in to_copy:
51 shutil.copy(f, lib_dir)
52
53 include_dir = os.path.join(target_dir, 'include')
54 os.mkdir(include_dir)
55 shutil.copytree('/usr/include/EGL', os.path.join(include_dir, 'EGL'))
56 shutil.copytree('/usr/include/KHR', os.path.join(include_dir, 'KHR'))
57 shutil.copytree('/usr/include/GLES2', os.path.join(include_dir, 'GLES2'))
58 shutil.copytree('/usr/include/GLES3', os.path.join(include_dir, 'GLES3'))
59
60
def create_asset(chrome_src_path, browser_executable, target_dir, upload_to_partner_bucket, dm_path)