aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-08-04 15:09:23 +0000
committerGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-08-04 15:09:23 +0000
commit7e5d18664b2a3a4245a5db0ee6d46a49baaf1575 (patch)
tree25329ea0f937c5d732427e85b0cb7f96c50c9cfc
parent75217ab1eb4d290991fabc5698d893240a119a95 (diff)
In preparation for make Chromium's skia.gyp use pdf.gypi.
R=edisonn@google.com, djsollen@google.com Author: robertphillips@google.com Review URL: https://chromiumcodereview.appspot.com/21952002 git-svn-id: http://skia.googlecode.com/svn/trunk@10526 2bbb7eff-a529-9590-31e7-b0007b416f81
-rw-r--r--gyp/pdf.gyp37
-rw-r--r--gyp/pdf.gypi50
2 files changed, 54 insertions, 33 deletions
diff --git a/gyp/pdf.gyp b/gyp/pdf.gyp
index afababea8d..ce4c59f8c5 100644
--- a/gyp/pdf.gyp
+++ b/gyp/pdf.gyp
@@ -9,45 +9,16 @@
'skia_lib.gyp:skia_lib',
'zlib.gyp:zlib',
],
+ 'includes': [
+ 'pdf.gypi',
+ ],
'include_dirs': [
'../include/pdf',
'../src/core', # needed to get SkGlyphCache.h and SkTextFormatParams.h
'../src/utils', # needed to get SkBitSet.h
],
'sources': [
- '../include/pdf/SkPDFDevice.h',
- '../include/pdf/SkPDFDocument.h',
-
- '../src/pdf/SkPDFCatalog.cpp',
- '../src/pdf/SkPDFCatalog.h',
- '../src/pdf/SkPDFDevice.cpp',
- '../src/pdf/SkPDFDocument.cpp',
- '../src/pdf/SkPDFFont.cpp',
- '../src/pdf/SkPDFFont.h',
- '../src/pdf/SkPDFFontImpl.h',
- '../src/pdf/SkPDFFormXObject.cpp',
- '../src/pdf/SkPDFFormXObject.h',
- '../src/pdf/SkPDFGraphicState.cpp',
- '../src/pdf/SkPDFGraphicState.h',
- '../src/pdf/SkPDFImage.cpp',
- '../src/pdf/SkPDFImage.h',
- '../src/pdf/SkPDFImageStream.cpp',
- '../src/pdf/SkPDFImageStream.h',
- '../src/pdf/SkPDFPage.cpp',
- '../src/pdf/SkPDFPage.h',
- '../src/pdf/SkPDFResourceDict.cpp',
- '../src/pdf/SkPDFResourceDict.h',
- '../src/pdf/SkPDFShader.cpp',
- '../src/pdf/SkPDFShader.h',
- '../src/pdf/SkPDFStream.cpp',
- '../src/pdf/SkPDFStream.h',
- '../src/pdf/SkPDFTypes.cpp',
- '../src/pdf/SkPDFTypes.h',
- '../src/pdf/SkPDFUtils.cpp',
- '../src/pdf/SkPDFUtils.h',
- '../src/pdf/SkTSet.h',
-
- '../src/doc/SkDocument_PDF.cpp',
+ 'pdf.gypi', # Makes the gypi appear in IDEs (but does not modify the build).
],
# This section makes all targets that depend on this target
# #define SK_SUPPORT_PDF and have access to the pdf header files.
diff --git a/gyp/pdf.gypi b/gyp/pdf.gypi
new file mode 100644
index 0000000000..ae4a032505
--- /dev/null
+++ b/gyp/pdf.gypi
@@ -0,0 +1,50 @@
+# Include this gypi to include all 'pdf' files
+# The parent gyp/gypi file must define
+# 'skia_src_path' e.g. skia/trunk/src
+# 'skia_include_path' e.g. skia/trunk/include
+#
+# The skia build defines these in common_variables.gypi
+#
+{
+ 'sources': [
+ '<(skia_include_path)/pdf/SkPDFDevice.h',
+ '<(skia_include_path)/pdf/SkPDFDocument.h',
+
+ '<(skia_src_path)/pdf/SkPDFCatalog.cpp',
+ '<(skia_src_path)/pdf/SkPDFCatalog.h',
+ '<(skia_src_path)/pdf/SkPDFDevice.cpp',
+ '<(skia_src_path)/pdf/SkPDFDocument.cpp',
+ '<(skia_src_path)/pdf/SkPDFFont.cpp',
+ '<(skia_src_path)/pdf/SkPDFFont.h',
+ '<(skia_src_path)/pdf/SkPDFFontImpl.h',
+ '<(skia_src_path)/pdf/SkPDFFormXObject.cpp',
+ '<(skia_src_path)/pdf/SkPDFFormXObject.h',
+ '<(skia_src_path)/pdf/SkPDFGraphicState.cpp',
+ '<(skia_src_path)/pdf/SkPDFGraphicState.h',
+ '<(skia_src_path)/pdf/SkPDFImage.cpp',
+ '<(skia_src_path)/pdf/SkPDFImage.h',
+ '<(skia_src_path)/pdf/SkPDFImageStream.cpp',
+ '<(skia_src_path)/pdf/SkPDFImageStream.h',
+ '<(skia_src_path)/pdf/SkPDFPage.cpp',
+ '<(skia_src_path)/pdf/SkPDFPage.h',
+ '<(skia_src_path)/pdf/SkPDFResourceDict.cpp',
+ '<(skia_src_path)/pdf/SkPDFResourceDict.h',
+ '<(skia_src_path)/pdf/SkPDFShader.cpp',
+ '<(skia_src_path)/pdf/SkPDFShader.h',
+ '<(skia_src_path)/pdf/SkPDFStream.cpp',
+ '<(skia_src_path)/pdf/SkPDFStream.h',
+ '<(skia_src_path)/pdf/SkPDFTypes.cpp',
+ '<(skia_src_path)/pdf/SkPDFTypes.h',
+ '<(skia_src_path)/pdf/SkPDFUtils.cpp',
+ '<(skia_src_path)/pdf/SkPDFUtils.h',
+ '<(skia_src_path)/pdf/SkTSet.h',
+
+ '<(skia_src_path)/doc/SkDocument_PDF.cpp',
+ ],
+}
+
+# Local Variables:
+# tab-width:2
+# indent-tabs-mode:nil
+# End:
+# vim: set expandtab tabstop=2 shiftwidth=2: