1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
|
{
'targets': [
{
'target_name': 'mojo_js_lib',
'type': 'static_library',
'dependencies': [
'../base/base.gyp:base',
'../gin/gin.gyp:gin',
'../ui/gl/gl.gyp:gl',
'../v8/tools/gyp/v8.gyp:v8',
'mojo_common_lib',
'mojo_environment_chromium',
'mojo_gles2',
'mojo_gles2_bindings',
'mojo_js_bindings_lib',
'mojo_native_viewport_bindings',
],
'export_dependent_settings': [
'../base/base.gyp:base',
'../gin/gin.gyp:gin',
'mojo_common_lib',
'mojo_gles2',
'mojo_gles2_bindings',
'mojo_native_viewport_bindings',
],
'sources': [
'apps/js/mojo_runner_delegate.cc',
'apps/js/mojo_runner_delegate.h',
'apps/js/bindings/threading.cc',
'apps/js/bindings/threading.h',
'apps/js/bindings/gl/context.cc',
'apps/js/bindings/gl/context.h',
'apps/js/bindings/gl/module.cc',
'apps/js/bindings/gl/module.h',
'apps/js/bindings/monotonic_clock.cc',
'apps/js/bindings/monotonic_clock.h',
],
},
{
'target_name': 'mojo_apps_js_bindings',
'type': 'static_library',
'sources': [
'apps/js/test/js_to_cpp.mojom',
],
'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
'export_dependent_settings': [
'mojo_cpp_bindings',
],
'dependencies': [
'mojo_cpp_bindings',
],
},
{
'target_name': 'mojo_apps_js_unittests',
'type': 'executable',
'dependencies': [
'../gin/gin.gyp:gin_test',
'mojo_apps_js_bindings',
'mojo_common_lib',
'mojo_common_test_support',
'mojo_js_lib',
'mojo_run_all_unittests',
'mojo_public_test_interfaces',
],
'sources': [
'apps/js/test/js_to_cpp_unittest.cc',
'apps/js/test/run_apps_js_tests.cc',
],
},
{
'target_name': 'mojo_js',
'type': 'loadable_module',
'dependencies': [
'mojo_js_lib',
'<(mojo_system_for_loadable_module)',
],
'sources': [
'apps/js/main.cc',
],
},
],
'conditions': [
['test_isolation_mode != "noop"', {
'targets': [
{
'target_name': 'mojo_apps_js_unittests_run',
'type': 'none',
'dependencies': [
'mojo_apps_js_unittests',
],
'includes': [
'../build/isolate.gypi',
'mojo_apps_js_unittests.isolate',
],
'sources': [
'mojo_apps_js_unittests.isolate',
],
},
],
}],
],
}
|