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

Side by Side Diff: src/core/SkForceCPlusPlusLinking.cpp

Issue 420183004: Force linking as C++ library. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: with skimage expectations Created 6 years, 4 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 unified diff | Download patch
« no previous file with comments | « gyp/skia_lib.gyp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /*
2 * Copyright 2014 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8 // This file is intentionally empty. We add it to the dependencies of skia_lib
9 // so that GYP detects that libskia is a C++ library (implicitly depending on
10 // the standard library, -lm, etc.) from its file extension.
11 //
12 // If we didn't do this, GYP would link libskia.so as a C library and we'd get
13 // link-time failures for simple binaries that don't themselves depend on the
14 // C++ standard library.
15 //
16 // Even if we try hard not to depend on the standard library, say, never
17 // calling new or delete, the compiler can still insert calls on our behalf
18 // that make us depend on it anyway: a handler when we call a for a pure
19 // virtual, thread-safety guards around statics, probably other similar
20 // language constructs.
OLDNEW
« no previous file with comments | « gyp/skia_lib.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698