halcanary | 7a76f9c | 2016-02-03 11:53:18 -0800 | [diff] [blame^] | 1 | # 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)' ] }, |
| 13 | 'sources': [ |
| 14 | '<!@(python find.py <(mojo_parent_dir)/mojo/public/cpp "*.cc")', |
| 15 | '<(mojo_parent_dir)/mojo/public/platform/native/system_thunks.c', |
| 16 | ], |
| 17 | 'sources!': [ |
| 18 | '<!@(python find.py <(mojo_parent_dir)/mojo/public/cpp "*_unittest.cc")', |
| 19 | '<!@(python find.py <(mojo_parent_dir)/mojo/public/cpp "*_perftest.cc")', |
| 20 | '<!@(python find.py <(mojo_parent_dir)/mojo/public/cpp "*_apptest.cc")', |
| 21 | '<!@(python find.py <(mojo_parent_dir)/mojo/public/cpp "*_test_*.cc")', |
| 22 | '<!@(python find.py <(mojo_parent_dir)/mojo/public/cpp "*_win.cc")', |
| 23 | ], |
| 24 | }, |
| 25 | { |
| 26 | 'target_name': 'skmojo', |
| 27 | 'type': 'static_library', |
| 28 | 'variables': { |
| 29 | 'mojo_dir': '../third_party/externals/mojo/public' |
| 30 | }, |
| 31 | 'dependencies': [ 'mojo' ], |
| 32 | 'defines': [ 'SK_MOJO' ], |
| 33 | 'sources': [ '../experimental/mojo/SkMojo.mojom.cc', ], |
| 34 | 'include_dirs': [ '../experimental/mojo', ], |
| 35 | 'all_dependent_settings': { |
| 36 | 'include_dirs': [ '../experimental/mojo' ], |
| 37 | 'defines': [ 'SK_MOJO' ], |
| 38 | }, |
| 39 | 'actions':[ |
| 40 | { |
| 41 | 'action_name': 'generate_from_mojoms', |
| 42 | 'inputs': [ |
| 43 | '../experimental/mojo/generate.py', |
| 44 | '../experimental/mojo/SkMojo.mojom', |
| 45 | '<(mojo_dir)/tools/bindings/mojom_parser/bin/linux64/mojom_parser.sha1', |
| 46 | '<(mojo_dir)/tools/bindings/mojom_bindings_generator.py', |
| 47 | '<(mojo_dir)/interfaces/bindings/interface_control_messages.mojom', |
| 48 | '<(mojo_dir)/interfaces/application/service_provider.mojom', |
| 49 | '<(mojo_dir)/interfaces/bindings/tests/ping_service.mojom', |
| 50 | '<(mojo_dir)/interfaces/application/application.mojom', |
| 51 | ], |
| 52 | 'outputs': ['../experimental/mojo/SkMojo.mojom.h', |
| 53 | '../experimental/mojo/SkMojo.mojom.cc'], |
| 54 | 'action': ['python', '../experimental/mojo/generate.py'] |
| 55 | }, |
| 56 | ], |
| 57 | }, |
| 58 | ], |
| 59 | } |