aboutsummaryrefslogtreecommitdiffhomepage
path: root/gyp
diff options
context:
space:
mode:
authorGravatar edisonn@google.com <edisonn@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-06-10 20:44:45 +0000
committerGravatar edisonn@google.com <edisonn@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-06-10 20:44:45 +0000
commit01cd4d5c8ff9c6b251021ce07936c71f9c20054c (patch)
tree58f325401c28b84da049c12c32e66d57e2d738d6 /gyp
parent4e05fd25c88bea64a988ededfc810770095ed97c (diff)
simple podofo and skia based pdf viewer
Review URL: https://codereview.chromium.org/16295031 git-svn-id: http://skia.googlecode.com/svn/trunk@9494 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gyp')
-rw-r--r--gyp/most.gyp3
-rw-r--r--gyp/pdfviewer.gyp70
2 files changed, 73 insertions, 0 deletions
diff --git a/gyp/most.gyp b/gyp/most.gyp
index 1ad25efe39..c7f060884f 100644
--- a/gyp/most.gyp
+++ b/gyp/most.gyp
@@ -23,6 +23,9 @@
['skia_os == "android"', {
'dependencies': [ 'android_system.gyp:SkiaAndroidApp' ],
}],
+ ['skia_os == "linux"', {
+ 'dependencies': [ 'pdfviewer.gyp:pdfviewer' ],
+ }],
],
},
],
diff --git a/gyp/pdfviewer.gyp b/gyp/pdfviewer.gyp
new file mode 100644
index 0000000000..ab84e7f5d0
--- /dev/null
+++ b/gyp/pdfviewer.gyp
@@ -0,0 +1,70 @@
+# GYP file to build pdfviewer.
+#
+# To build on Linux:
+# ./gyp_skia pdfviewer.gyp && make pdfviewer
+#
+{
+ 'variables': {
+ 'skia_warnings_as_errors': 0,
+ },
+ 'includes': [
+ 'apptype_console.gypi',
+ ],
+ 'targets': [
+ {
+ 'target_name': 'pdfviewer',
+ 'type': 'executable',
+ 'cflags': ['-fexceptions'],
+ 'cflags_cc': ['-fexceptions'],
+ 'cflags!': [ '-fno-exceptions' ],
+ 'cflags_cc!': [ '-fno-exceptions' ],
+ 'sources': [
+ '../experimental/PdfViewer/pdf_viewer_main.cpp',
+ ],
+ 'include_dirs': [
+ '../third_party/externals/podofo/src/base',
+ '../third_party/externals/podofo/src',
+ '../third_party/externals/podofo',
+ '../tools',
+ '../experimental/PdfViewer',
+ ],
+ 'dependencies': [
+ 'core.gyp:core',
+ 'effects.gyp:effects',
+ 'images.gyp:images',
+ 'pdf.gyp:pdf',
+ 'ports.gyp:ports',
+ 'tools.gyp:picture_utils',
+ '../third_party/externals/podofo/podofo.gyp:podofo',
+ ],
+ 'link_settings': {
+ 'libraries': [
+ ],
+ },
+ 'defines': [
+ 'BUILDING_PODOFO',
+ ],
+ },
+ ],
+ 'conditions': [
+ ['skia_os == "win"',
+ {
+ 'targets': [
+ {
+ 'target_name': 'win_lcid',
+ 'type': 'executable',
+ 'sources': [
+ '../tools/win_lcid.cpp',
+ ],
+ },
+ ],
+ },
+ ],
+ ],
+}
+
+# Local Variables:
+# tab-width:2
+# indent-tabs-mode:nil
+# End:
+# vim: set expandtab tabstop=2 shiftwidth=2: