diff options
author | sgk@google.com <sgk@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-08 12:55:49 +0000 |
---|---|---|
committer | sgk@google.com <sgk@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-08 12:55:49 +0000 |
commit | 653bd5f03ef74274adbec816df10cdfd046b6eea (patch) | |
tree | c96f3829422d2fec66cb3a5bc00995bbba914110 /build/common.gypi | |
parent | 74484851bb8f9f1954014a08c81305e74f9b0bda (diff) | |
download | chromium_src-653bd5f03ef74274adbec816df10cdfd046b6eea.zip chromium_src-653bd5f03ef74274adbec816df10cdfd046b6eea.tar.gz chromium_src-653bd5f03ef74274adbec816df10cdfd046b6eea.tar.bz2 |
Basic underpinnings of the gyp equivalent of the Linux SHARED=1 build:
parameterize the 'type' setting of the various library targets, with a
default of 'static_library'.
(Hat tip to Craig Schlenter.)
Review URL: http://codereview.chromium.org/62127
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13345 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build/common.gypi')
-rw-r--r-- | build/common.gypi | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/build/common.gypi b/build/common.gypi index 8279489..a2d9f2b 100644 --- a/build/common.gypi +++ b/build/common.gypi @@ -31,6 +31,14 @@ # project file called "coverage". # Currently ignored on Windows. 'coverage%': 0, + + # To do a shared build on linux we need to be able to choose between type + # static_library and shared_library. We default to doing a static build + # but you can override this with "gyp -Dlibrary=shared_library" or you + # can add the following line (without the #) to ~/.gyp/include.gypi + # {'variables': {'library': 'shared_library'}} + # to compile as shared by default + 'library%': 'static_library', }, 'target_defaults': { 'conditions': [ |