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

Side by Side Diff: mojo/mojo.gyp

Issue 667853002: Add gclient hook to download prebuilt mojo_shell (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 | « mojo/BUILD.gn ('k') | mojo/public/VERSION » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2013 The Chromium Authors. All rights reserved. 1 # Copyright 2013 The Chromium 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. 3 # found in the LICENSE file.
4 4
5 { 5 {
6 'target_defaults': { 6 'target_defaults': {
7 'conditions': [ 7 'conditions': [
8 ['mojo_shell_debug_url != ""', { 8 ['mojo_shell_debug_url != ""', {
9 'defines': [ 9 'defines': [
10 'MOJO_SHELL_DEBUG=1', 10 'MOJO_SHELL_DEBUG=1',
11 'MOJO_SHELL_DEBUG_URL="<(mojo_shell_debug_url)"', 11 'MOJO_SHELL_DEBUG_URL="<(mojo_shell_debug_url)"',
12 ], 12 ],
13 }], 13 }],
14 ], 14 ],
15 }, 15 },
16 'includes': [ 16 'includes': [
17 'mojo_apps.gypi', 17 'mojo_apps.gypi',
18 'mojo_converters.gypi', 18 'mojo_converters.gypi',
19 'mojo_services.gypi', 19 'mojo_services.gypi',
20 'mojo_variables.gypi', 20 'mojo_variables.gypi',
21 ], 21 ],
22 'variables': {
23 'use_prebuilt_mojo_shell%': 0,
24 },
22 'targets': [ 25 'targets': [
23 { 26 {
24 # GN version: //mojo 27 # GN version: //mojo
25 'target_name': 'mojo', 28 'target_name': 'mojo',
26 'type': 'none', 29 'type': 'none',
27 'dependencies': [ 30 'dependencies': [
28 'edk/mojo_edk.gyp:mojo_edk', 31 'edk/mojo_edk.gyp:mojo_edk',
29 'mojo_application_manager', 32 'mojo_application_manager',
30 'mojo_application_manager_unittests', 33 'mojo_application_manager_unittests',
31 'mojo_apps_js_unittests', 34 'mojo_apps_js_unittests',
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 'dependencies': [ 209 'dependencies': [
207 'edk/mojo_edk.gyp:mojo_system_impl', 210 'edk/mojo_edk.gyp:mojo_system_impl',
208 'mojo_shell_lib', 211 'mojo_shell_lib',
209 ], 212 ],
210 'sources': [ 213 'sources': [
211 'shell/shell_test_helper.cc', 214 'shell/shell_test_helper.cc',
212 'shell/shell_test_helper.h', 215 'shell/shell_test_helper.h',
213 ], 216 ],
214 }, 217 },
215 { 218 {
216 # GN version: //mojo/shell
217 'target_name': 'mojo_shell',
218 'type': 'executable',
219 'dependencies': [
220 '../base/base.gyp:base',
221 'mojo_base.gyp:mojo_common_lib',
222 'mojo_base.gyp:mojo_environment_chromium',
223 'mojo_shell_lib',
224 ],
225 'sources': [
226 'shell/desktop/mojo_main.cc',
227 ],
228 'conditions': [
229 ['component=="shared_library"', {
230 'dependencies': [
231 '../ui/gfx/gfx.gyp:gfx',
232 ],
233 }],
234 ],
235 },
236 {
237 # GN version: //mojo/shell:mojo_shell_tests 219 # GN version: //mojo/shell:mojo_shell_tests
238 'target_name': 'mojo_shell_tests', 220 'target_name': 'mojo_shell_tests',
239 'type': '<(gtest_target_type)', 221 'type': '<(gtest_target_type)',
240 'dependencies': [ 222 'dependencies': [
241 '../base/base.gyp:base', 223 '../base/base.gyp:base',
242 '../base/base.gyp:base_i18n', 224 '../base/base.gyp:base_i18n',
243 '../base/base.gyp:test_support_base', 225 '../base/base.gyp:test_support_base',
244 '../testing/gtest.gyp:gtest', 226 '../testing/gtest.gyp:gtest',
245 '../net/net.gyp:net_test_support', 227 '../net/net.gyp:net_test_support',
246 '../url/url.gyp:url_lib', 228 '../url/url.gyp:url_lib',
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 'public/mojo_public.gyp:mojo_environment_standalone', 393 'public/mojo_public.gyp:mojo_environment_standalone',
412 'public/mojo_public.gyp:mojo_public_test_interfaces', 394 'public/mojo_public.gyp:mojo_public_test_interfaces',
413 'public/mojo_public.gyp:mojo_utility', 395 'public/mojo_public.gyp:mojo_utility',
414 ], 396 ],
415 'sources': [ 397 'sources': [
416 'bindings/js/tests/run_js_tests.cc', 398 'bindings/js/tests/run_js_tests.cc',
417 ], 399 ],
418 }, 400 },
419 ], 401 ],
420 'conditions': [ 402 'conditions': [
403 ['<(use_prebuilt_mojo_shell)==1', {
404 'targets': [
405 {
406 # GN version: //mojo/public/tools:mojo_shell
407 'target_name': 'mojo_shell',
408 'type': 'none',
409 'copies': [{
410 'destination': '<(PRODUCT_DIR)',
411 'files': [
412 'public/tools/prebuilt/mojo_shell',
413 ],
414 }],
415 },
416 ]
417 }, { # use_prebuilt_mojo_shell != 1
418 'targets': [
419 {
420 # GN version: //mojo/shell
421 'target_name': 'mojo_shell',
422 'type': 'executable',
423 'dependencies': [
424 '../base/base.gyp:base',
425 'mojo_base.gyp:mojo_common_lib',
426 'mojo_base.gyp:mojo_environment_chromium',
427 'mojo_shell_lib',
428 ],
429 'sources': [
430 'shell/desktop/mojo_main.cc',
431 ],
432 'conditions': [
433 ['component=="shared_library"', {
434 'dependencies': [
435 '../ui/gfx/gfx.gyp:gfx',
436 ],
437 }],
438 ],
439 },
440 ],
441 }],
421 ['OS=="android"', { 442 ['OS=="android"', {
422 'targets': [ 443 'targets': [
423 { 444 {
424 'target_name': 'mojo_native_viewport_java', 445 'target_name': 'mojo_native_viewport_java',
425 'type': 'none', 446 'type': 'none',
426 'dependencies': [ 447 'dependencies': [
427 '../base/base.gyp:base_java', 448 '../base/base.gyp:base_java',
428 ], 449 ],
429 'variables': { 450 'variables': {
430 'java_in_dir': '<(DEPTH)/mojo/services/native_viewport/android', 451 'java_in_dir': '<(DEPTH)/mojo/services/native_viewport/android',
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
726 '../build/isolate.gypi', 747 '../build/isolate.gypi',
727 ], 748 ],
728 'sources': [ 749 'sources': [
729 'mojo_js_unittests.isolate', 750 'mojo_js_unittests.isolate',
730 ], 751 ],
731 }, 752 },
732 ], 753 ],
733 }], 754 }],
734 ], 755 ],
735 } 756 }
OLDNEW
« no previous file with comments | « mojo/BUILD.gn ('k') | mojo/public/VERSION » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698