mild tweaks to build_stages.py to run on my desktop
Change-Id: Ie193e5bf576b8d3ddbd4c99d3707e3211557cc01 Reviewed-on: https://skia-review.googlesource.com/7368 Commit-Queue: Mike Klein <mtklein@chromium.org> Reviewed-by: Mike Klein <mtklein@chromium.org>
This commit is contained in:
parent
efaad3cd53
commit
f167dfb272
@ -9,6 +9,12 @@ import re
|
|||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
ndk = '/Users/mtklein/brew/opt/android-ndk/'
|
||||||
|
objdump = 'gobjdump'
|
||||||
|
|
||||||
|
#ndk = '/home/mtklein/ndk/'
|
||||||
|
#objdump = '/home/mtklein/binutils-2.27/binutils/objdump'
|
||||||
|
|
||||||
cflags = '-std=c++11 -Os -fomit-frame-pointer'.split()
|
cflags = '-std=c++11 -Os -fomit-frame-pointer'.split()
|
||||||
|
|
||||||
hsw = '-mavx2 -mfma -mf16c'.split()
|
hsw = '-mavx2 -mfma -mf16c'.split()
|
||||||
@ -21,8 +27,7 @@ subprocess.check_call(['clang++'] + cflags + hsw +
|
|||||||
|
|
||||||
aarch64 = [
|
aarch64 = [
|
||||||
'--target=aarch64-linux-android',
|
'--target=aarch64-linux-android',
|
||||||
'--sysroot=' +
|
'--sysroot=' + ndk + 'platforms/android-21/arch-arm64',
|
||||||
'/Users/mtklein/brew/opt/android-ndk/platforms/android-21/arch-arm64',
|
|
||||||
]
|
]
|
||||||
subprocess.check_call(['clang++'] + cflags + aarch64 +
|
subprocess.check_call(['clang++'] + cflags + aarch64 +
|
||||||
['-c', 'src/splicer/SkSplicer_stages.cpp'] +
|
['-c', 'src/splicer/SkSplicer_stages.cpp'] +
|
||||||
@ -33,8 +38,7 @@ subprocess.check_call(['clang++'] + cflags + aarch64 +
|
|||||||
|
|
||||||
armv7 = [
|
armv7 = [
|
||||||
'--target=arm-linux-androideabi',
|
'--target=arm-linux-androideabi',
|
||||||
'--sysroot=' +
|
'--sysroot=' + ndk + 'platforms/android-18/arch-arm',
|
||||||
'/Users/mtklein/brew/opt/android-ndk/platforms/android-18/arch-arm',
|
|
||||||
'-march=armv7-a',
|
'-march=armv7-a',
|
||||||
'-mfpu=neon-vfpv4',
|
'-mfpu=neon-vfpv4',
|
||||||
]
|
]
|
||||||
@ -46,7 +50,7 @@ subprocess.check_call(['clang++'] + cflags + armv7 +
|
|||||||
['-o', 'armv7_lowp.o'])
|
['-o', 'armv7_lowp.o'])
|
||||||
|
|
||||||
def parse_object_file(dst, dot_o, array_type, done, target=None):
|
def parse_object_file(dst, dot_o, array_type, done, target=None):
|
||||||
cmd = ['gobjdump', '-d', dot_o]
|
cmd = [ objdump, '-d', dot_o]
|
||||||
if target:
|
if target:
|
||||||
cmd += ['--target', target]
|
cmd += ['--target', target]
|
||||||
for line in subprocess.check_output(cmd).split('\n'):
|
for line in subprocess.check_output(cmd).split('\n'):
|
||||||
|
Loading…
Reference in New Issue
Block a user