Fix visual studio project files around SK_FREETYPE_MINIMUM_RUNTIME_VERSION

Desktop / Chromium - michaeln [chromium.org] - 3 April 2017 19:05 EDT

Replaced use of bit shifting operators with multiplication because visual studio fails to open projects using the '<<' operator in preprocessor definitions.

BUG=700926

Review-Url: https://codereview.chromium.org/2794893003 Cr-Commit-Position: refs/heads/master@{#461572}

###

diff --git a/skia/BUILD.gn b/skia/BUILD.gn
index a6c38df..d670db9 100644
--- a/skia/BUILD.gn
+++ b/skia/BUILD.gn
@@ -44,7 +44,7 @@ config("skia_config") {
defines = skia_for_chromium_defines

if (is_win) {
- defines += [ "SK_FREETYPE_MINIMUM_RUNTIME_VERSION=(((FREETYPE_MAJOR) << 24) | ((FREETYPE_MINOR) << 16) | ((FREETYPE_PATCH) << 8))" ]
+ defines += [ "SK_FREETYPE_MINIMUM_RUNTIME_VERSION=(((FREETYPE_MAJOR) * 0x01000000) | ((FREETYPE_MINOR) * 0x00010000) | ((FREETYPE_PATCH) * 0x00000100))" ]
}

if (is_component_build) {

32fda64 Fix visual studio project files around SK_FREETYPE_MINIMUM_RUNTIME_VERSION
skia/BUILD.gn | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Upstream: git.chromium.org


  • Share