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

Unified Diff: gyp/skmojo.gyp

Issue 1660043004: SkMojo: generate on Darwin/x86_64 (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: comments from mtklein@ Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « experimental/mojo/generate.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gyp/skmojo.gyp
diff --git a/gyp/skmojo.gyp b/gyp/skmojo.gyp
index 63385cd2fa79d14df466e648f0654295f0203e75..0bd6f2c1568a8e3ed031a76f0d0d58d392d1ccff 100644
--- a/gyp/skmojo.gyp
+++ b/gyp/skmojo.gyp
@@ -10,9 +10,18 @@
'variables': { 'mojo_parent_dir': '../third_party/externals' },
'include_dirs': [ '<(mojo_parent_dir)' ],
'all_dependent_settings': { 'include_dirs': [ '<(mojo_parent_dir)' ] },
+ 'xcode_settings': { 'OTHER_CFLAGS': [ '-w' ], },
'sources': [
'<!@(python find.py <(mojo_parent_dir)/mojo/public/cpp "*.cc")',
'<(mojo_parent_dir)/mojo/public/platform/native/system_thunks.c',
+ '<(mojo_parent_dir)/mojo/public/interfaces/application/application.mojom.cc',
+ '<(mojo_parent_dir)/mojo/public/interfaces/application/application.mojom.h',
+ '<(mojo_parent_dir)/mojo/public/interfaces/application/service_provider.mojom.cc',
+ '<(mojo_parent_dir)/mojo/public/interfaces/application/service_provider.mojom.h',
+ '<(mojo_parent_dir)/mojo/public/interfaces/bindings/interface_control_messages.mojom.cc',
+ '<(mojo_parent_dir)/mojo/public/interfaces/bindings/interface_control_messages.mojom.h',
+ '<(mojo_parent_dir)/mojo/public/interfaces/bindings/tests/ping_service.mojom.cc',
+ '<(mojo_parent_dir)/mojo/public/interfaces/bindings/tests/ping_service.mojom.h',
],
'sources!': [
'<!@(python find.py <(mojo_parent_dir)/mojo/public/cpp "*_unittest.cc")',
@@ -21,7 +30,32 @@
'<!@(python find.py <(mojo_parent_dir)/mojo/public/cpp "*_test_*.cc")',
'<!@(python find.py <(mojo_parent_dir)/mojo/public/cpp "*_win.cc")',
],
- },
+ 'actions':[
+ {
+ 'action_name': 'generate_from_mojoms',
+ 'inputs': [
+ '../experimental/mojo/generate.py',
+ '<(mojo_parent_dir)/mojo/public/tools/bindings/mojom_parser/bin/linux64/mojom_parser.sha1',
+ '<(mojo_parent_dir)/mojo/public/tools/bindings/mojom_parser/bin/mac64/mojom_parser.sha1',
+ '<(mojo_parent_dir)/mojo/public/tools/bindings/mojom_bindings_generator.py',
+ '<(mojo_parent_dir)/mojo/public/interfaces/bindings/interface_control_messages.mojom',
+ '<(mojo_parent_dir)/mojo/public/interfaces/application/service_provider.mojom',
+ '<(mojo_parent_dir)/mojo/public/interfaces/bindings/tests/ping_service.mojom',
+ '<(mojo_parent_dir)/mojo/public/interfaces/application/application.mojom',
+ ],
+ 'outputs': [
+ '<(mojo_parent_dir)/mojo/public/interfaces/application/application.mojom.cc',
+ '<(mojo_parent_dir)/mojo/public/interfaces/application/application.mojom.h',
+ '<(mojo_parent_dir)/mojo/public/interfaces/application/service_provider.mojom.cc',
+ '<(mojo_parent_dir)/mojo/public/interfaces/application/service_provider.mojom.h',
+ '<(mojo_parent_dir)/mojo/public/interfaces/bindings/interface_control_messages.mojom.cc',
+ '<(mojo_parent_dir)/mojo/public/interfaces/bindings/interface_control_messages.mojom.h',
+ '<(mojo_parent_dir)/mojo/public/interfaces/bindings/tests/ping_service.mojom.cc',
+ '<(mojo_parent_dir)/mojo/public/interfaces/bindings/tests/ping_service.mojom.h',
+ ],
+ 'action': ['python', '../experimental/mojo/generate.py']
+ },
+ ], },
{
'target_name': 'skmojo',
'type': 'static_library',
@@ -42,16 +76,12 @@
'inputs': [
'../experimental/mojo/generate.py',
'../experimental/mojo/SkMojo.mojom',
- '<(mojo_dir)/tools/bindings/mojom_parser/bin/linux64/mojom_parser.sha1',
- '<(mojo_dir)/tools/bindings/mojom_bindings_generator.py',
- '<(mojo_dir)/interfaces/bindings/interface_control_messages.mojom',
- '<(mojo_dir)/interfaces/application/service_provider.mojom',
- '<(mojo_dir)/interfaces/bindings/tests/ping_service.mojom',
- '<(mojo_dir)/interfaces/application/application.mojom',
],
- 'outputs': ['../experimental/mojo/SkMojo.mojom.h',
- '../experimental/mojo/SkMojo.mojom.cc'],
- 'action': ['python', '../experimental/mojo/generate.py']
+ 'outputs': [
+ '../experimental/mojo/SkMojo.mojom.h',
+ '../experimental/mojo/SkMojo.mojom.cc'
+ ],
+ 'action': ['python', '../experimental/mojo/generate.py', '../experimental/mojo/SkMojo.mojom']
},
],
},
« no previous file with comments | « experimental/mojo/generate.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698