blob: 0bd6f2c1568a8e3ed031a76f0d0d58d392d1ccff [file] [log] [blame]
halcanary7a76f9c2016-02-03 11:53:18 -08001# Copyright 2016 Google Inc.
2#
3# Use of this source code is governed by a BSD-style license that can be
4# found in the LICENSE file.
5{
6 'targets': [
7 {
8 'target_name': 'mojo',
9 'type': 'static_library',
10 'variables': { 'mojo_parent_dir': '../third_party/externals' },
11 'include_dirs': [ '<(mojo_parent_dir)' ],
12 'all_dependent_settings': { 'include_dirs': [ '<(mojo_parent_dir)' ] },
halcanary72002f22016-02-03 13:54:03 -080013 'xcode_settings': { 'OTHER_CFLAGS': [ '-w' ], },
halcanary7a76f9c2016-02-03 11:53:18 -080014 'sources': [
15 '<!@(python find.py <(mojo_parent_dir)/mojo/public/cpp "*.cc")',
16 '<(mojo_parent_dir)/mojo/public/platform/native/system_thunks.c',
halcanary72002f22016-02-03 13:54:03 -080017 '<(mojo_parent_dir)/mojo/public/interfaces/application/application.mojom.cc',
18 '<(mojo_parent_dir)/mojo/public/interfaces/application/application.mojom.h',
19 '<(mojo_parent_dir)/mojo/public/interfaces/application/service_provider.mojom.cc',
20 '<(mojo_parent_dir)/mojo/public/interfaces/application/service_provider.mojom.h',
21 '<(mojo_parent_dir)/mojo/public/interfaces/bindings/interface_control_messages.mojom.cc',
22 '<(mojo_parent_dir)/mojo/public/interfaces/bindings/interface_control_messages.mojom.h',
23 '<(mojo_parent_dir)/mojo/public/interfaces/bindings/tests/ping_service.mojom.cc',
24 '<(mojo_parent_dir)/mojo/public/interfaces/bindings/tests/ping_service.mojom.h',
halcanary7a76f9c2016-02-03 11:53:18 -080025 ],
26 'sources!': [
27 '<!@(python find.py <(mojo_parent_dir)/mojo/public/cpp "*_unittest.cc")',
28 '<!@(python find.py <(mojo_parent_dir)/mojo/public/cpp "*_perftest.cc")',
29 '<!@(python find.py <(mojo_parent_dir)/mojo/public/cpp "*_apptest.cc")',
30 '<!@(python find.py <(mojo_parent_dir)/mojo/public/cpp "*_test_*.cc")',
31 '<!@(python find.py <(mojo_parent_dir)/mojo/public/cpp "*_win.cc")',
32 ],
halcanary72002f22016-02-03 13:54:03 -080033 'actions':[
34 {
35 'action_name': 'generate_from_mojoms',
36 'inputs': [
37 '../experimental/mojo/generate.py',
38 '<(mojo_parent_dir)/mojo/public/tools/bindings/mojom_parser/bin/linux64/mojom_parser.sha1',
39 '<(mojo_parent_dir)/mojo/public/tools/bindings/mojom_parser/bin/mac64/mojom_parser.sha1',
40 '<(mojo_parent_dir)/mojo/public/tools/bindings/mojom_bindings_generator.py',
41 '<(mojo_parent_dir)/mojo/public/interfaces/bindings/interface_control_messages.mojom',
42 '<(mojo_parent_dir)/mojo/public/interfaces/application/service_provider.mojom',
43 '<(mojo_parent_dir)/mojo/public/interfaces/bindings/tests/ping_service.mojom',
44 '<(mojo_parent_dir)/mojo/public/interfaces/application/application.mojom',
45 ],
46 'outputs': [
47 '<(mojo_parent_dir)/mojo/public/interfaces/application/application.mojom.cc',
48 '<(mojo_parent_dir)/mojo/public/interfaces/application/application.mojom.h',
49 '<(mojo_parent_dir)/mojo/public/interfaces/application/service_provider.mojom.cc',
50 '<(mojo_parent_dir)/mojo/public/interfaces/application/service_provider.mojom.h',
51 '<(mojo_parent_dir)/mojo/public/interfaces/bindings/interface_control_messages.mojom.cc',
52 '<(mojo_parent_dir)/mojo/public/interfaces/bindings/interface_control_messages.mojom.h',
53 '<(mojo_parent_dir)/mojo/public/interfaces/bindings/tests/ping_service.mojom.cc',
54 '<(mojo_parent_dir)/mojo/public/interfaces/bindings/tests/ping_service.mojom.h',
55 ],
56 'action': ['python', '../experimental/mojo/generate.py']
57 },
58 ], },
halcanary7a76f9c2016-02-03 11:53:18 -080059 {
60 'target_name': 'skmojo',
61 'type': 'static_library',
62 'variables': {
63 'mojo_dir': '../third_party/externals/mojo/public'
64 },
65 'dependencies': [ 'mojo' ],
66 'defines': [ 'SK_MOJO' ],
67 'sources': [ '../experimental/mojo/SkMojo.mojom.cc', ],
68 'include_dirs': [ '../experimental/mojo', ],
69 'all_dependent_settings': {
70 'include_dirs': [ '../experimental/mojo' ],
71 'defines': [ 'SK_MOJO' ],
72 },
73 'actions':[
74 {
75 'action_name': 'generate_from_mojoms',
76 'inputs': [
77 '../experimental/mojo/generate.py',
78 '../experimental/mojo/SkMojo.mojom',
halcanary7a76f9c2016-02-03 11:53:18 -080079 ],
halcanary72002f22016-02-03 13:54:03 -080080 'outputs': [
81 '../experimental/mojo/SkMojo.mojom.h',
82 '../experimental/mojo/SkMojo.mojom.cc'
83 ],
84 'action': ['python', '../experimental/mojo/generate.py', '../experimental/mojo/SkMojo.mojom']
halcanary7a76f9c2016-02-03 11:53:18 -080085 },
86 ],
87 },
88 ],
89}