diff options
author | Mike Klein <mtklein@chromium.org> | 2016-10-26 13:32:07 -0400 |
---|---|---|
committer | Mike Klein <mtklein@chromium.org> | 2016-10-26 17:47:00 +0000 |
commit | 552cd1335fb4f4cd87aa418cc99f484d186ba046 (patch) | |
tree | 979464faefc2f842fd494ef4a4d30cc2a585b778 /gn | |
parent | 62e7b5fd79d3d61e9821ecd6123a3588d94893cc (diff) |
Start inverting GN reading .gypis to GYP reading .gnis.
This canaries the idea by converting gyp/pdf.gypi to gn/pdf.gni.
If this lands and rolls quietly, I'll flesh out the rest.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=3972
Change-Id: Iecaf1ccce7891679904c585946272bfb25eea299
Reviewed-on: https://skia-review.googlesource.com/3972
Reviewed-by: Hal Canary <halcanary@google.com>
Commit-Queue: Mike Klein <mtklein@chromium.org>
Diffstat (limited to 'gn')
-rw-r--r-- | gn/pdf.gni | 47 | ||||
-rw-r--r-- | gn/shared_sources.gni | 10 |
2 files changed, 48 insertions, 9 deletions
diff --git a/gn/pdf.gni b/gn/pdf.gni new file mode 100644 index 0000000000..f7de23d613 --- /dev/null +++ b/gn/pdf.gni @@ -0,0 +1,47 @@ +# Copyright 2016 Google Inc. +# +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +# Things are easiest for everyone if these source paths are absolute. +_src = get_path_info("../src", "abspath") + +skia_pdf_sources = [ + "$_src/pdf/SkBitmapKey.h", + "$_src/pdf/SkDeflate.cpp", + "$_src/pdf/SkDeflate.h", + "$_src/pdf/SkJpegInfo.cpp", + "$_src/pdf/SkJpegInfo.h", + "$_src/pdf/SkPDFBitmap.cpp", + "$_src/pdf/SkPDFBitmap.h", + "$_src/pdf/SkPDFCanon.cpp", + "$_src/pdf/SkPDFCanon.h", + "$_src/pdf/SkPDFCanvas.cpp", + "$_src/pdf/SkPDFCanvas.h", + "$_src/pdf/SkPDFConvertType1FontStream.cpp", + "$_src/pdf/SkPDFConvertType1FontStream.h", + "$_src/pdf/SkPDFDevice.cpp", + "$_src/pdf/SkPDFDevice.h", + "$_src/pdf/SkPDFDocument.cpp", + "$_src/pdf/SkPDFDocument.h", + "$_src/pdf/SkPDFFont.cpp", + "$_src/pdf/SkPDFFont.h", + "$_src/pdf/SkPDFFormXObject.cpp", + "$_src/pdf/SkPDFFormXObject.h", + "$_src/pdf/SkPDFGraphicState.cpp", + "$_src/pdf/SkPDFGraphicState.h", + "$_src/pdf/SkPDFMakeCIDGlyphWidthsArray.cpp", + "$_src/pdf/SkPDFMakeCIDGlyphWidthsArray.h", + "$_src/pdf/SkPDFMakeToUnicodeCmap.cpp", + "$_src/pdf/SkPDFMakeToUnicodeCmap.h", + "$_src/pdf/SkPDFMetadata.cpp", + "$_src/pdf/SkPDFMetadata.h", + "$_src/pdf/SkPDFResourceDict.cpp", + "$_src/pdf/SkPDFResourceDict.h", + "$_src/pdf/SkPDFShader.cpp", + "$_src/pdf/SkPDFShader.h", + "$_src/pdf/SkPDFTypes.cpp", + "$_src/pdf/SkPDFTypes.h", + "$_src/pdf/SkPDFUtils.cpp", + "$_src/pdf/SkPDFUtils.h", +] diff --git a/gn/shared_sources.gni b/gn/shared_sources.gni index 2da3d2cb79..1f1184e6df 100644 --- a/gn/shared_sources.gni +++ b/gn/shared_sources.gni @@ -60,15 +60,7 @@ skia_opts = exec_script("gypi_to_gn.py", [ "../gyp/opts.gypi" ]) # PDF. -_pdf_gypi = exec_script("gypi_to_gn.py", - [ - rebase_path("../gyp/pdf.gypi"), - "--replace=<(skia_include_path)=$_path_to_include", - "--replace=<(skia_src_path)=$_path_to_src", - ], - "scope", - [ "../gyp/pdf.gypi" ]) -skia_pdf_sources = _pdf_gypi.sources +import("pdf.gni") _sources_gypi = exec_script("gypi_to_gn.py", [ rebase_path("../gyp/skia_sources.gypi") ], |