aboutsummaryrefslogtreecommitdiff
path: root/environment.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2013-04-19 21:43:36 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2013-04-19 21:43:36 +0300
commit7ce4aa1b9051fbcb00db2cd4e197d988e998a703 (patch)
tree521eda2ea8640653c45221e26f8b60d705d0120a /environment.py
parent5d81924914ca5faa0ec79f0d7f6063b5451ef0f8 (diff)
downloadmeson-7ce4aa1b9051fbcb00db2cd4e197d988e998a703.zip
meson-7ce4aa1b9051fbcb00db2cd4e197d988e998a703.tar.gz
meson-7ce4aa1b9051fbcb00db2cd4e197d988e998a703.tar.bz2
Can build programs with MSVC.
Diffstat (limited to 'environment.py')
-rwxr-xr-xenvironment.py22
1 files changed, 20 insertions, 2 deletions
diff --git a/environment.py b/environment.py
index 06a0fcc..4bd856c 100755
--- a/environment.py
+++ b/environment.py
@@ -45,12 +45,18 @@ class CCompiler():
def get_exelist(self):
return self.exelist
+
+ def get_linker_exelist(self):
+ return self.exelist
def get_compile_only_flags(self):
return ['-c']
- def get_output_flags(self):
- return ['-o']
+ def get_output_flags(self, target):
+ return ['-o', target]
+
+ def get_linker_output_flags(self, outputname):
+ return ['-o', outputname]
def get_debug_flags(self):
return ['-g']
@@ -183,6 +189,18 @@ class VisualStudioCCompiler(CCompiler):
def get_compile_only_flags(self):
return ['/c']
+ def get_output_flags(self, target):
+ return ['/Fo' + target]
+
+ def get_dependency_gen_flags(self, outtarget, outfile):
+ return []
+
+ def get_linker_exelist(self):
+ return ['link'] # FIXME, should have same path as compiler.
+
+ def get_linker_output_flags(self, outputname):
+ return ['/OUT:' + outputname]
+
def sanity_check(self, work_dir):
source_name = os.path.join(work_dir, 'sanitycheckc.c')
binary_name = os.path.join(work_dir, 'sanitycheckc')