aboutsummaryrefslogtreecommitdiff
path: root/environment.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2014-03-19 22:26:47 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2014-03-19 22:26:47 +0200
commitf807ab209d185d1be781d786d5d48ccfa6d5a243 (patch)
treea8ed8092505cffeec226e2d99deaa2004ca0cbcf /environment.py
parent185fd7b5bc389492cef0c5f16e5eda98057aaf18 (diff)
downloadmeson-f807ab209d185d1be781d786d5d48ccfa6d5a243.zip
meson-f807ab209d185d1be781d786d5d48ccfa6d5a243.tar.gz
meson-f807ab209d185d1be781d786d5d48ccfa6d5a243.tar.bz2
Now can has linking against shared libraries.
Diffstat (limited to 'environment.py')
-rw-r--r--environment.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/environment.py b/environment.py
index bbee90b..3b0078a 100644
--- a/environment.py
+++ b/environment.py
@@ -973,6 +973,7 @@ class Environment():
if (not cross and is_windows()) \
or (cross and self.cross_info['name'] == 'windows'):
self.exe_suffix = 'exe'
+ self.import_lib_suffix = 'lib'
self.shared_lib_suffix = 'dll'
self.shared_lib_prefix = ''
self.static_lib_suffix = 'lib'
@@ -989,6 +990,7 @@ class Environment():
self.static_lib_suffix = 'a'
self.static_lib_prefix = 'lib'
self.object_suffix = 'o'
+ self.import_lib_suffix = self.shared_lib_suffix
def is_cross_build(self):
return self.cross_info is not None
@@ -1269,6 +1271,11 @@ class Environment():
def get_exe_suffix(self):
return self.exe_suffix
+ # On Windows the library has suffix dll
+ # but you link against a file that has suffix lib.
+ def get_import_lib_suffix(self):
+ return self.import_lib_suffix
+
def get_shared_lib_prefix(self):
return self.shared_lib_prefix