Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(46)

Side by Side Diff: third_party/leveldatabase/leveldatabase.gyp

Issue 213843002: Building env_chromium_unittests for Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Eliminated redundant condition Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/leveldatabase/env_chromium_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2011 The LevelDB Authors. All rights reserved. 1 # Copyright (c) 2011 The LevelDB Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. See the AUTHORS file for names of contributors. 3 # found in the LICENSE file. See the AUTHORS file for names of contributors.
4 4
5 { 5 {
6 'variables': { 6 'variables': {
7 'use_snappy%': 1, 7 'use_snappy%': 1,
8 }, 8 },
9 'conditions': [ 9 'conditions': [
10 ['OS == "android" and android_webview_build == 1', { 10 ['OS == "android" and android_webview_build == 1', {
11 'variables': { 11 'variables': {
12 # Snappy not used in Android WebView 12 # Snappy not used in Android WebView
13 # crbug.com/236780 13 # crbug.com/236780
14 'use_snappy': 0, 14 'use_snappy': 0,
15 }, 15 },
16 }], 16 }],
17 ['OS=="android" and gtest_target_type == "shared_library"', {
18 # Wrap env_chromium_unittests into an android apk for execution.
19 'targets': [{
20 'target_name': 'env_chromium_unittests_apk',
21 'type': 'none',
22 'dependencies': [
23 '<(DEPTH)/base/base.gyp:base_java',
24 'env_chromium_unittests',
25 ],
26 'variables': {
27 'test_suite_name': 'env_chromium_unittests',
28 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)env_chromiu m_unittests<(SHARED_LIB_SUFFIX)',
29 },
30 'includes': [ '../../build/apk_test.gypi' ],
31 }],
32 }],
17 ], 33 ],
18 'target_defaults': { 34 'target_defaults': {
19 'defines': [ 35 'defines': [
20 'LEVELDB_PLATFORM_CHROMIUM=1', 36 'LEVELDB_PLATFORM_CHROMIUM=1',
21 ], 37 ],
22 'include_dirs': [ 38 'include_dirs': [
23 '.', 39 '.',
24 'src/', 40 'src/',
25 'src/include/', 41 'src/include/',
26 ], 42 ],
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 'target_name': 'env_chromium_unittests', 189 'target_name': 'env_chromium_unittests',
174 'type': '<(gtest_target_type)', 190 'type': '<(gtest_target_type)',
175 'dependencies': [ 191 'dependencies': [
176 'leveldatabase', 192 'leveldatabase',
177 '../../base/base.gyp:test_support_base', 193 '../../base/base.gyp:test_support_base',
178 '../../testing/gtest.gyp:gtest', 194 '../../testing/gtest.gyp:gtest',
179 ], 195 ],
180 'sources': [ 196 'sources': [
181 'env_chromium_unittest.cc', 197 'env_chromium_unittest.cc',
182 ], 198 ],
199 'conditions': [
200 ['OS=="android" and gtest_target_type == "shared_library"', {
201 'type': 'shared_library',
202 'dependencies': [
203 '../../testing/android/native_test.gyp:native_test_native_code',
204 '../../tools/android/forwarder2/forwarder.gyp:forwarder2',
205 ],
206 }],
207 ],
183 }, 208 },
184 { 209 {
185 'target_name': 'leveldb_testutil', 210 'target_name': 'leveldb_testutil',
186 'type': 'static_library', 211 'type': 'static_library',
187 'dependencies': [ 212 'dependencies': [
188 '../../base/base.gyp:base', 213 '../../base/base.gyp:base',
189 'leveldatabase', 214 'leveldatabase',
190 ], 215 ],
191 'export_dependent_settings': [ 216 'export_dependent_settings': [
192 # The tests use include directories from these projects. 217 # The tests use include directories from these projects.
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 ], 398 ],
374 }, 399 },
375 ], 400 ],
376 } 401 }
377 402
378 # Local Variables: 403 # Local Variables:
379 # tab-width:2 404 # tab-width:2
380 # indent-tabs-mode:nil 405 # indent-tabs-mode:nil
381 # End: 406 # End:
382 # vim: set expandtab tabstop=2 shiftwidth=2: 407 # vim: set expandtab tabstop=2 shiftwidth=2:
OLDNEW
« no previous file with comments | « third_party/leveldatabase/env_chromium_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698