aboutsummaryrefslogtreecommitdiffhomepage
path: root/gyp
diff options
context:
space:
mode:
authorGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-04-21 17:08:19 +0000
committerGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-04-21 17:08:19 +0000
commit433375184379d4bd1a9a7ee260d726338ab36fd6 (patch)
tree50f7cddaf5f7f202d4e6be092176eb79f6207ee2 /gyp
parent3273dd4a49a4cd09d018c92caccdfb07e2ae0042 (diff)
Add a .gypi to insulate Chrome from refactorings in src/record.
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
Diffstat (limited to 'gyp')
-rw-r--r--gyp/record.gyp7
-rw-r--r--gyp/record.gypi12
2 files changed, 13 insertions, 6 deletions
diff --git a/gyp/record.gyp b/gyp/record.gyp
index e001994286..0bfd83e0f3 100644
--- a/gyp/record.gyp
+++ b/gyp/record.gyp
@@ -3,6 +3,7 @@
'targets': [{
'target_name': 'record',
'type': 'static_library',
+ 'includes': [ 'record.gypi' ],
'include_dirs': [
'../include/config',
'../include/core',
@@ -13,11 +14,5 @@
'../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
index 0000000000..adfd4623ae
--- /dev/null
+++ b/gyp/record.gypi
@@ -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',
+ ]
+}