diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2013-04-19 21:43:36 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2013-04-19 21:43:36 +0300 |
commit | 7ce4aa1b9051fbcb00db2cd4e197d988e998a703 (patch) | |
tree | 521eda2ea8640653c45221e26f8b60d705d0120a /environment.py | |
parent | 5d81924914ca5faa0ec79f0d7f6063b5451ef0f8 (diff) | |
download | meson-7ce4aa1b9051fbcb00db2cd4e197d988e998a703.zip meson-7ce4aa1b9051fbcb00db2cd4e197d988e998a703.tar.gz meson-7ce4aa1b9051fbcb00db2cd4e197d988e998a703.tar.bz2 |
Can build programs with MSVC.
Diffstat (limited to 'environment.py')
-rwxr-xr-x | environment.py | 22 |
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') |