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

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
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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 'dependencies': [ 207 'dependencies': [
205 'edk/mojo_edk.gyp:mojo_system_impl', 208 'edk/mojo_edk.gyp:mojo_system_impl',
206 'mojo_shell_lib', 209 'mojo_shell_lib',
207 ], 210 ],
208 'sources': [ 211 'sources': [
209 'shell/shell_test_helper.cc', 212 'shell/shell_test_helper.cc',
210 'shell/shell_test_helper.h', 213 'shell/shell_test_helper.h',
211 ], 214 ],
212 }, 215 },
213 { 216 {
214 # GN version: //mojo/shell
215 'target_name': 'mojo_shell',
216 'type': 'executable',
217 'dependencies': [
218 '../base/base.gyp:base',
219 'mojo_base.gyp:mojo_common_lib',
220 'mojo_base.gyp:mojo_environment_chromium',
221 'mojo_shell_lib',
222 ],
223 'sources': [
224 'shell/desktop/mojo_main.cc',
225 ],
226 'conditions': [
227 ['component=="shared_library"', {
228 'dependencies': [
229 '../ui/gfx/gfx.gyp:gfx',
230 ],
231 }],
232 ],
233 },
234 {
235 # GN version: //mojo/shell:mojo_shell_tests 217 # GN version: //mojo/shell:mojo_shell_tests
236 'target_name': 'mojo_shell_tests', 218 'target_name': 'mojo_shell_tests',
237 'type': '<(gtest_target_type)', 219 'type': '<(gtest_target_type)',
238 'dependencies': [ 220 'dependencies': [
239 '../base/base.gyp:base', 221 '../base/base.gyp:base',
240 '../base/base.gyp:base_i18n', 222 '../base/base.gyp:base_i18n',
241 '../base/base.gyp:test_support_base', 223 '../base/base.gyp:test_support_base',
242 '../testing/gtest.gyp:gtest', 224 '../testing/gtest.gyp:gtest',
243 '../net/net.gyp:net_test_support', 225 '../net/net.gyp:net_test_support',
244 '../url/url.gyp:url_lib', 226 '../url/url.gyp:url_lib',
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 'public/mojo_public.gyp:mojo_environment_standalone', 391 'public/mojo_public.gyp:mojo_environment_standalone',
410 'public/mojo_public.gyp:mojo_public_test_interfaces', 392 'public/mojo_public.gyp:mojo_public_test_interfaces',
411 'public/mojo_public.gyp:mojo_utility', 393 'public/mojo_public.gyp:mojo_utility',
412 ], 394 ],
413 'sources': [ 395 'sources': [
414 'bindings/js/tests/run_js_tests.cc', 396 'bindings/js/tests/run_js_tests.cc',
415 ], 397 ],
416 }, 398 },
417 ], 399 ],
418 'conditions': [ 400 'conditions': [
401 ['<(use_prebuilt_mojo_shell)==1', {
402 'targets': [
403 {
404 # GN version: //mojo/public/tools:mojo_shell
405 'target_name': 'mojo_shell',
406 'type': 'none',
407 'copies': [{
408 'destination': '<(PRODUCT_DIR)',
409 'files': [
410 'public/tools/prebuilt/mojo_shell',
411 ],
412 }],
413 },
414 ]
415 }, { # use_prebuilt_mojo_shell != 1
416 'targets': [
417 {
418 # GN version: //mojo/shell
419 'target_name': 'mojo_shell',
420 'type': 'executable',
421 'dependencies': [
422 '../base/base.gyp:base',
423 'mojo_base.gyp:mojo_common_lib',
424 'mojo_base.gyp:mojo_environment_chromium',
425 'mojo_shell_lib',
426 ],
427 'sources': [
428 'shell/desktop/mojo_main.cc',
429 ],
430 'conditions': [
431 ['component=="shared_library"', {
432 'dependencies': [
433 '../ui/gfx/gfx.gyp:gfx',
434 ],
435 }],
436 ],
437 },
438 ],
439 }],
419 ['OS=="android"', { 440 ['OS=="android"', {
420 'targets': [ 441 'targets': [
421 { 442 {
422 'target_name': 'mojo_native_viewport_java', 443 'target_name': 'mojo_native_viewport_java',
423 'type': 'none', 444 'type': 'none',
424 'dependencies': [ 445 'dependencies': [
425 '../base/base.gyp:base_java', 446 '../base/base.gyp:base_java',
426 ], 447 ],
427 'variables': { 448 'variables': {
428 'java_in_dir': '<(DEPTH)/mojo/services/native_viewport/android', 449 'java_in_dir': '<(DEPTH)/mojo/services/native_viewport/android',
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
724 '../build/isolate.gypi', 745 '../build/isolate.gypi',
725 ], 746 ],
726 'sources': [ 747 'sources': [
727 'mojo_js_unittests.isolate', 748 'mojo_js_unittests.isolate',
728 ], 749 ],
729 }, 750 },
730 ], 751 ],
731 }], 752 }],
732 ], 753 ],
733 } 754 }
OLDNEW
« no previous file with comments | « mojo/BUILD.gn ('k') | mojo/public/VERSION » ('j') | mojo/public/tools/download_shell_binary.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698