2015-03-25 17:22:41 +00:00
|
|
|
# Copyright 2015 Google Inc.
|
|
|
|
#
|
|
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
|
|
# found in the LICENSE file.
|
2011-10-10 13:19:10 +00:00
|
|
|
{
|
|
|
|
'targets': [
|
|
|
|
{
|
|
|
|
'target_name': 'xps',
|
2012-10-10 19:45:51 +00:00
|
|
|
'product_name': 'skia_xps',
|
2011-10-10 13:19:10 +00:00
|
|
|
'type': 'static_library',
|
2012-10-10 19:45:51 +00:00
|
|
|
'standalone_static_library': 1,
|
2011-10-10 13:19:10 +00:00
|
|
|
'conditions': [
|
|
|
|
[ 'skia_os == "win"', {
|
2015-03-03 17:13:09 +00:00
|
|
|
'defines': [ 'SK_XPS_USE_DETERMINISTIC_IDS', ],
|
|
|
|
'dependencies': [
|
|
|
|
'skia_lib.gyp:skia_lib',
|
|
|
|
],
|
|
|
|
'include_dirs': [
|
2015-07-28 15:55:14 +00:00
|
|
|
'../include/private',
|
2015-03-03 17:13:09 +00:00
|
|
|
'../include/utils/win',
|
|
|
|
'../src/core', # needed to get SkGlyphCache.h
|
|
|
|
'../src/utils', # needed to get SkBitSet.h
|
|
|
|
],
|
|
|
|
'sources': [
|
2016-03-12 13:59:39 +00:00
|
|
|
'../src/xps/SkDocument_XPS.cpp',
|
|
|
|
'../src/xps/SkXPSDevice.cpp',
|
|
|
|
'../src/xps/SkXPSDevice.h',
|
2015-03-03 17:13:09 +00:00
|
|
|
],
|
2011-10-10 13:19:10 +00:00
|
|
|
'link_settings': {
|
|
|
|
'libraries': [
|
Libraries without '-l' treated as relative paths.
The following have the same effect on Windows:
'msvs_settings': { 'VCLinkerTool': { 'AdditionalDependencies': [ 'windowscodecs.lib', ],},},
'link_settings': {'libraries': ['-lwindowscodecs.lib',],},
But this one is different:
'link_settings': {'libraries': ['windowscodecs.lib',],},
since this last one will attempt to find the library at
third_party\skia\gyp\windowscodecs.lib
or a place like this, instead of looking in the library paths.
This also fixes capitalization of the affected libraries.
R=bsalomon@google.com
Review URL: https://codereview.chromium.org/99463002
git-svn-id: http://skia.googlecode.com/svn/trunk@12434 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-12-02 19:54:33 +00:00
|
|
|
'-lt2embed.lib',
|
|
|
|
'-lfontsub.lib',
|
2011-10-10 13:19:10 +00:00
|
|
|
],
|
|
|
|
},
|
2015-03-03 17:13:09 +00:00
|
|
|
'direct_dependent_settings': {
|
|
|
|
'defines': [ 'SK_XPS_USE_DETERMINISTIC_IDS', ],
|
|
|
|
'include_dirs': [
|
|
|
|
'../include/device/xps',
|
|
|
|
'../src/utils', # needed to get SkBitSet.h
|
|
|
|
],
|
|
|
|
},
|
2011-10-10 13:19:10 +00:00
|
|
|
},{ #else if 'skia_os != "win"'
|
2016-03-12 13:59:39 +00:00
|
|
|
'sources': [ '../src/xps/SkDocument_XPS_None.cpp', ],
|
2015-03-03 17:13:09 +00:00
|
|
|
'dependencies': [ 'skia_lib.gyp:skia_lib', ],
|
2011-10-10 13:19:10 +00:00
|
|
|
}],
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
}
|