OLD | NEW |
1 # Copyright 2015 Google Inc. | 1 # Copyright 2015 Google Inc. |
2 # | 2 # |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 # This GYP file stores the dependencies necessary to build Skia on the Android | 6 # This GYP file stores the dependencies necessary to build Skia on the Android |
7 # platform. The OS doesn't provide many stable libraries as part of the | 7 # platform. The OS doesn't provide many stable libraries as part of the |
8 # distribution so we have to build a few of them ourselves. | 8 # distribution so we have to build a few of them ourselves. |
9 # | 9 # |
10 { | 10 { |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 ], | 71 ], |
72 'variables': { | 72 'variables': { |
73 'ANDROID_SDK_ROOT': '<!(echo $ANDROID_SDK_ROOT)', | 73 'ANDROID_SDK_ROOT': '<!(echo $ANDROID_SDK_ROOT)', |
74 # the ninja generator treats PRODUCT_DIR as a relative path to the | 74 # the ninja generator treats PRODUCT_DIR as a relative path to the |
75 # gyp directory but android ant build wants a path relative to the | 75 # gyp directory but android ant build wants a path relative to the |
76 # build.xml file so we do that adjustment here. | 76 # build.xml file so we do that adjustment here. |
77 'ANDROID_OUT': '../../<(PRODUCT_DIR)/android/SampleApp' | 77 'ANDROID_OUT': '../../<(PRODUCT_DIR)/android/SampleApp' |
78 }, | 78 }, |
79 'actions': [ | 79 'actions': [ |
80 { | 80 { |
81 'action_name': 'SkiaAndroid_apk', | 81 'action_name': 'SampleApp_apk', |
82 'inputs': [ | 82 'inputs': [ |
83 '<(android_base)/app/AndroidManifest.xml', | 83 '<(android_base)/app/AndroidManifest.xml', |
84 '<(android_base)/app/build.xml', | 84 '<(android_base)/app/build.xml', |
85 '<(android_base)/app/project.properties', | 85 '<(android_base)/app/project.properties', |
86 '<(android_base)/app/jni/com_skia_SkiaSampleRenderer.h', | 86 '<(android_base)/app/jni/com_skia_SkiaSampleRenderer.h', |
87 '<(android_base)/app/jni/com_skia_SkiaSampleRenderer.cpp', | 87 '<(android_base)/app/jni/com_skia_SkiaSampleRenderer.cpp', |
88 '<(android_base)/app/src/com/skia/SkiaSampleActivity.java', | 88 '<(android_base)/app/src/com/skia/SkiaSampleActivity.java', |
89 '<(android_base)/app/src/com/skia/SkiaSampleRenderer.java', | 89 '<(android_base)/app/src/com/skia/SkiaSampleRenderer.java', |
90 '<(android_base)/app/src/com/skia/SkiaSampleView.java', | 90 '<(android_base)/app/src/com/skia/SkiaSampleView.java', |
91 ], | 91 ], |
92 'outputs': [ | 92 'outputs': [ |
93 '<(PRODUCT_DIR)/../android/SampleApp/bin/SkiaAndroid.apk', | 93 '<(PRODUCT_DIR)/../android/SampleApp/bin/SampleApp.apk', |
94 ], | 94 ], |
95 'action': [ | 95 'action': [ |
96 'ant', | 96 'ant', |
97 '-quiet', | 97 '-quiet', |
98 '-f', | 98 '-f', |
99 '<(android_base)/app/build.xml', | 99 '<(android_base)/app/build.xml', |
100 '-Dout.dir=<(ANDROID_OUT)/bin', | 100 '-Dout.dir=<(ANDROID_OUT)/bin', |
101 '-Dgen.absolute.dir=<(ANDROID_OUT)/gen', | 101 '-Dgen.absolute.dir=<(ANDROID_OUT)/gen', |
102 '-Dnative.libs.absolute.dir=<(ANDROID_OUT)/libs', | 102 '-Dnative.libs.absolute.dir=<(ANDROID_OUT)/libs', |
103 '-Dout.final.file=<(ANDROID_OUT)/bin/SkiaAndroid.apk', | 103 '-Dout.final.file=<(ANDROID_OUT)/bin/SampleApp.apk', |
104 '-Dsdk.dir=<(ANDROID_SDK_ROOT)', | 104 '-Dsdk.dir=<(ANDROID_SDK_ROOT)', |
105 'debug', | 105 'debug', |
106 ], | 106 ], |
107 }, | 107 }, |
108 ], | 108 ], |
109 }, | 109 }, |
110 { | 110 { |
111 'target_name': 'CopyVisualBenchDeps', | 111 'target_name': 'CopyVisualBenchDeps', |
112 'type': 'none', | 112 'type': 'none', |
113 'dependencies': [ | 113 'dependencies': [ |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 '-Dnative.libs.absolute.dir=<(ANDROID_OUT)/libs', | 172 '-Dnative.libs.absolute.dir=<(ANDROID_OUT)/libs', |
173 '-Dout.final.file=<(ANDROID_OUT)/bin/VisualBench.apk', | 173 '-Dout.final.file=<(ANDROID_OUT)/bin/VisualBench.apk', |
174 '-Dsdk.dir=<(ANDROID_SDK_ROOT)', | 174 '-Dsdk.dir=<(ANDROID_SDK_ROOT)', |
175 'debug', | 175 'debug', |
176 ], | 176 ], |
177 }, | 177 }, |
178 ], | 178 ], |
179 }, | 179 }, |
180 ], | 180 ], |
181 } | 181 } |
OLD | NEW |