Add chromedriver to build
Make sure certain paths/files don't make it into the dist zip Don't build the content shell test_runner Make sure libffmpeg.dylib gets put in the right place Run verify-ffmpeg on Mac builds Add ffmpeg build to VSTS
This commit is contained in:
parent
5317c2754f
commit
e78d84165a
4 changed files with 36 additions and 9 deletions
23
build/zip.py
23
build/zip.py
|
@ -10,6 +10,27 @@ LINUX_BINARIES_TO_STRIP = [
|
|||
'libnode.so'
|
||||
]
|
||||
|
||||
EXTENSIONS_TO_SKIP = [
|
||||
'.pdb'
|
||||
]
|
||||
|
||||
PATHS_TO_SKIP = [
|
||||
'angledata',
|
||||
'swiftshader',
|
||||
'resources/inspector'
|
||||
]
|
||||
|
||||
def skip_path(dep):
|
||||
should_skip = False
|
||||
for path in PATHS_TO_SKIP:
|
||||
if dep.startswith(path):
|
||||
print 'Skipping: '+dep
|
||||
should_skip = True
|
||||
for extension in EXTENSIONS_TO_SKIP:
|
||||
if dep.endswith(extension):
|
||||
print 'Skipping: '+dep
|
||||
should_skip = True
|
||||
|
||||
def strip_binaries(target_cpu, dep):
|
||||
for binary in LINUX_BINARIES_TO_STRIP:
|
||||
if dep.endswith(binary):
|
||||
|
@ -48,6 +69,8 @@ def main(argv):
|
|||
for dep in dist_files:
|
||||
if target_os == 'linux':
|
||||
strip_binaries(target_cpu, dep)
|
||||
if skip_path(dep):
|
||||
continue
|
||||
if os.path.isdir(dep):
|
||||
for root, dirs, files in os.walk(dep):
|
||||
for file in files:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue