Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(389)

Unified Diff: skia/skia.gyp

Issue 1812563002: Enable building pdf_use_skia in the standalone build. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « skia/ext/google_logging.cc ('k') | skia/skia_common.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/skia.gyp
diff --git a/skia/skia.gyp b/skia/skia.gyp
new file mode 100644
index 0000000000000000000000000000000000000000..29f546493833b1898522ce99d596c6b7160e76a4
--- /dev/null
+++ b/skia/skia.gyp
@@ -0,0 +1,71 @@
+# Copyright (c) 2012 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+{
+ 'conditions': [
+ # In component mode (shared_lib), we build all of skia as a single DLL.
+ # However, in the static mode, we need to build skia as multiple targets
+ # in order to support the use case where a platform (e.g. Android) may
+ # already have a copy of skia as a system library.
+ ['component=="static_library"', {
+ 'targets': [
+ {
+ 'target_name': 'skia_library',
+ 'type': 'static_library',
+ # The optimize: 'max' scattered throughout are particularly
+ # important when compiled by MSVC 2013, which seems
+ # to mis-link-time-compile code that's built with
+ # different optimization levels. http://crbug.com/543583
+ 'variables': {
+ 'optimize': 'max',
+ },
+ 'includes': [
+ 'skia_common.gypi',
+ 'skia_library.gypi',
+ ],
+ },
+ ],
+ }],
+ ['component=="static_library"', {
+ 'targets': [
+ {
+ 'target_name': 'skia',
+ # The optimize: 'max' scattered throughout are particularly
+ # important when compiled by MSVC 2013, which seems
+ # to mis-link-time-compile code that's built with
+ # different optimization levels. http://crbug.com/543583
+ 'variables': {
+ 'optimize': 'max',
+ },
+ 'type': 'none',
+ 'dependencies': [
+ 'skia_library',
+ 'skia_pdfium',
+ ],
+ 'export_dependent_settings': [
+ 'skia_library',
+ 'skia_pdfium',
+ ],
+ 'direct_dependent_settings': {
+ 'conditions': [
+ [ 'OS == "win"', {
+ 'defines': [
+ 'GR_GL_FUNCTION_TYPE=__stdcall',
+ ],
+ }],
+ ],
+ },
+ },
+ {
+ 'target_name': 'skia_pdfium',
+ 'type': 'static_library',
+ 'includes': [
+ 'skia_pdfium.gypi',
+ 'skia_common.gypi',
+ ],
+ },
+ ],
+ }],
+ ],
+}
« no previous file with comments | « skia/ext/google_logging.cc ('k') | skia/skia_common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698