31 if cc == 'msvc': |
31 if cc == 'msvc': |
32 pyenv.AddPostAction(pymodule, 'mt /nologo /manifest ${TARGET}.manifest /outputresource:$TARGET;2') |
32 pyenv.AddPostAction(pymodule, 'mt /nologo /manifest ${TARGET}.manifest /outputresource:$TARGET;2') |
33 env.Alias('shared-objs', shared_objs) |
33 env.Alias('shared-objs', shared_objs) |
34 env.Alias('python-module', pymodule) |
34 env.Alias('python-module', pymodule) |
35 |
35 |
36 # MS Visual Studio Project |
36 if cc == 'msvc': |
37 vcprojsrcs = [] |
37 # MS Visual Studio Project |
38 for src in sources+['raytracermodule.cc']: |
38 vcprojsrcs = [] |
39 vcprojsrcs += ['src/' + src] |
39 for src in sources+['raytracermodule.cc']: |
40 vcprojincs = [] |
40 vcprojsrcs += ['src/' + src] |
41 for inc in includes: |
41 vcprojincs = [] |
42 vcprojincs += ['include/' + inc] |
42 for inc in includes: |
43 vcproj = env.MSVSProject( |
43 vcprojincs += ['include/' + inc] |
44 auto_build_solution=0, |
44 vcproj = env.MSVSProject( |
45 target = '#pyrit_module' + env['MSVSPROJECTSUFFIX'], |
45 auto_build_solution=0, |
46 srcs = vcprojsrcs, |
46 target = '#pyrit_module' + env['MSVSPROJECTSUFFIX'], |
47 incs = vcprojincs, |
47 srcs = vcprojsrcs, |
48 buildtarget = 'python-module', |
48 incs = vcprojincs, |
49 variant = 'Release') |
49 buildtarget = 'python-module', |
|
50 variant = 'Release') |
|
51 Return(('pymodule', 'vcproj')) |
50 |
52 |
51 Return(('pymodule', 'vcproj')) |
53 Return('pymodule') |
52 else: |
54 else: |
53 objs = [] |
55 objs = [] |
54 for src in sources: |
56 for src in sources: |
55 o = env.Object(src) |
57 o = env.Object(src) |
56 objs.append( o ) |
58 objs.append( o ) |