68cb8b0239
This replaces the SDL-based system and should allow Metal to work on iOS. OpenGL and raster will render but there's no touch input yet. Bug: skia:8737 Change-Id: I863accc47f0e1781192d567dbe54d1e321c3cd2e Reviewed-on: https://skia-review.googlesource.com/c/skia/+/231561 Reviewed-by: Brian Osman <brianosman@google.com> Commit-Queue: Jim Van Verth <jvanverth@google.com>
35 lines
999 B
Python
35 lines
999 B
Python
#!/usr/bin/env python2.7
|
|
#
|
|
# Copyright 2017 Google Inc.
|
|
#
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
import os
|
|
import sys
|
|
|
|
# Arguments to the script:
|
|
# app path to binary to package, e.g. out/Debug/gen/dm
|
|
app, = sys.argv[1:]
|
|
|
|
out, app = os.path.split(app)
|
|
|
|
# Write a minimal Info.plist to name the package and point at the binary.
|
|
with open(os.path.join(out, app + '_Info.plist'), 'w') as f:
|
|
f.write('''
|
|
<plist version="1.0">
|
|
<dict>
|
|
<key>CFBundleVersion</key> <string>0.1.0</string>
|
|
<key>CFBundleShortVersionString</key> <string>0.1.0</string>
|
|
<key>CFBundleExecutable</key> <string>{app}</string>
|
|
<key>CFBundleIdentifier</key> <string>com.google.{app}</string>
|
|
<key>CFBundlePackageType</key> <string>APPL</string>
|
|
<key>LSRequiresIPhoneOS</key> <true/>
|
|
<key>UIDeviceFamily</key> <array>
|
|
<integer>1</integer>
|
|
<integer>2</integer>
|
|
</array>
|
|
</dict>
|
|
</plist>
|
|
'''.format(app=app))
|