summaryrefslogtreecommitdiffstats
path: root/build/common.gypi
diff options
context:
space:
mode:
Diffstat (limited to 'build/common.gypi')
-rw-r--r--build/common.gypi8
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': [