Add a .gypi to insulate Chrome from refactorings in src/record.
authorcommit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Mon, 21 Apr 2014 17:08:19 +0000 (17:08 +0000)
committercommit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Mon, 21 Apr 2014 17:08:19 +0000 (17:08 +0000)
Rather than listing out sources explicitly in skia_library.gypi, I'll add this new .gypi to its includes.

BUG=skia:2378
R=fmalita@chromium.org, mtklein@google.com

Author: mtklein@chromium.org

Review URL: https://codereview.chromium.org/242733005

git-svn-id: http://skia.googlecode.com/svn/trunk@14282 2bbb7eff-a529-9590-31e7-b0007b416f81

gyp/record.gyp
gyp/record.gypi [new file with mode: 0644]

index e001994..0bfd83e 100644 (file)
@@ -3,6 +3,7 @@
     'targets': [{
         'target_name': 'record',
         'type': 'static_library',
+        'includes': [ 'record.gypi' ],
         'include_dirs': [
             '../include/config',
             '../include/core',
                 '../include/record',  # Public headers.
             ],
         },
-        'sources': [
-            '../src/record/SkRecordOpts.cpp',
-            '../src/record/SkRecordDraw.cpp',
-            '../src/record/SkRecorder.cpp',
-            '../src/record/SkRecording.cpp',
-        ],
     }]
 }
diff --git a/gyp/record.gypi b/gyp/record.gypi
new file mode 100644 (file)
index 0000000..adfd462
--- /dev/null
@@ -0,0 +1,12 @@
+# Source list for SkRecord
+# The parent gyp/gypi file must define
+#       'skia_src_path'     e.g. skia/trunk/src
+# The Skia build defines this in common_variables.gypi.
+{
+    'sources': [
+        '<(skia_src_path)/record/SkRecordDraw.cpp',
+        '<(skia_src_path)/record/SkRecordOpts.cpp',
+        '<(skia_src_path)/record/SkRecorder.cpp',
+        '<(skia_src_path)/record/SkRecording.cpp',
+    ]
+}