bitcode (flutter/engine#9823)
This commit is contained in:
2
DEPS
2
DEPS
@@ -126,7 +126,7 @@ allowed_hosts = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
deps = {
|
deps = {
|
||||||
'src': 'https://github.com/flutter/buildroot.git' + '@' + 'c4df4a7b616f6ef1bc81bd99efdd4bff107a407e',
|
'src': 'https://github.com/flutter/buildroot.git' + '@' + '778935c9452dde04e246b986d6b92bbaaed142f2',
|
||||||
|
|
||||||
# Fuchsia compatibility
|
# Fuchsia compatibility
|
||||||
#
|
#
|
||||||
|
|||||||
@@ -83,6 +83,12 @@ def to_gn_args(args):
|
|||||||
|
|
||||||
gn_args = {}
|
gn_args = {}
|
||||||
|
|
||||||
|
if args.bitcode:
|
||||||
|
if args.target_os != 'ios':
|
||||||
|
raise Exception('Bitcode is only supported for iOS')
|
||||||
|
|
||||||
|
gn_args['enable_bitcode'] = args.bitcode
|
||||||
|
|
||||||
# Skia GN args.
|
# Skia GN args.
|
||||||
gn_args['skia_enable_flutter_defines'] = True # Enable Flutter API guards in Skia.
|
gn_args['skia_enable_flutter_defines'] = True # Enable Flutter API guards in Skia.
|
||||||
gn_args['skia_use_dng_sdk'] = False # RAW image handling.
|
gn_args['skia_use_dng_sdk'] = False # RAW image handling.
|
||||||
@@ -331,6 +337,9 @@ def parse_args(args):
|
|||||||
parser.add_argument('--build-glfw-shell', dest='build_glfw_shell', default=False, action='store_true',
|
parser.add_argument('--build-glfw-shell', dest='build_glfw_shell', default=False, action='store_true',
|
||||||
help='Force building the GLFW shell on desktop platforms where it is not built by default.')
|
help='Force building the GLFW shell on desktop platforms where it is not built by default.')
|
||||||
|
|
||||||
|
parser.add_argument('--bitcode', default=False, action='store_true',
|
||||||
|
help='Enable bitcode for iOS targets.')
|
||||||
|
|
||||||
return parser.parse_args(args)
|
return parser.parse_args(args)
|
||||||
|
|
||||||
def main(argv):
|
def main(argv):
|
||||||
|
|||||||
Reference in New Issue
Block a user