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

Unified Diff: gyp/skiamojo.gyp

Issue 1644043003: SkMojo: test linking Skia against the Mojo SDK (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2016-01-29 (Friday) 12:55:47 EST 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
Index: gyp/skiamojo.gyp
diff --git a/gyp/skiamojo.gyp b/gyp/skiamojo.gyp
new file mode 100644
index 0000000000000000000000000000000000000000..3863972ddcb017080be29db741194db011094436
--- /dev/null
+++ b/gyp/skiamojo.gyp
@@ -0,0 +1,61 @@
+# Copyright 2016 Google Inc.
+#
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+{
+ 'targets': [
+ {
+ 'target_name': 'mojo',
+ 'type': 'static_library',
+ 'variables': { 'mojo_parent_dir': '../third_party/externals' },
+ 'include_dirs': [ '<(mojo_parent_dir)' ],
+ 'all_dependent_settings': { 'include_dirs': [ '<(mojo_parent_dir)' ] },
+ 'sources': [
+ '<!@(python find.py <(mojo_parent_dir)/mojo/public/cpp "*.cc")',
+ '<(mojo_parent_dir)/mojo/public/platform/native/system_thunks.c',
+ ],
+ 'sources!': [
+ '<!@(python find.py <(mojo_parent_dir)/mojo/public/cpp "*_unittest.cc")',
+ '<!@(python find.py <(mojo_parent_dir)/mojo/public/cpp "*_perftest.cc")',
+ '<!@(python find.py <(mojo_parent_dir)/mojo/public/cpp "*_apptest.cc")',
+ '<!@(python find.py <(mojo_parent_dir)/mojo/public/cpp "*_test_*.cc")',
+ '<!@(python find.py <(mojo_parent_dir)/mojo/public/cpp "*_win.cc")',
+ ],
+ },
+ {
+ 'target_name': 'skiamojo',
mtklein 2016/01/29 18:09:41 let's be skmojo everywhere
hal.canary 2016/01/29 18:44:50 okay. done.
+ 'type': 'static_library',
+ 'variables': {
+ 'mojo_dir': '../third_party/externals/mojo/public'
+ },
+ 'conditions' : [
+ [ 'skia_mojo_experiment',
+ {
+ 'dependencies': [ 'mojo' ],
+ 'sources': [ '../experimental/mojo/SkMojo.mojom.cc', ],
+ 'include_dirs': [ '../experimental/mojo', ],
+ 'all_dependent_settings': { 'include_dirs': [ '../experimental/mojo', ] },
+ 'actions':[
+ {
+ 'action_name': 'generate_from_mojoms',
+ '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']
+ },
+ ],
+ }
+ ],
+ ],
+ },
+ ],
+}

Powered by Google App Engine
This is Rietveld 408576698