Skip to content

Commit bc9ce4f

Browse files
committed
added a sample visual studio project.
1 parent c7e3120 commit bc9ce4f

File tree

4 files changed

+94
-3
lines changed

4 files changed

+94
-3
lines changed

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,15 @@ code is a single Fortran module file (json_module.f90).
1818
Building the Library
1919
--------------------
2020

21-
Currently two ways are provided to build the jsonfortran library
22-
(libjsonfortran). A build script, build.sh is provided in the project
23-
root directory. Additionally, a [CMake](http://www.cmake.org) build
21+
Currently three ways are provided to build the jsonfortran library
22+
(libjsonfortran).
23+
24+
A simple build script, build.sh is provided in the project
25+
root directory. This is mainly used for testing, and also builds the example program.
26+
27+
A Visual Studio 2010 project is included for building the library (and example program) on Windows.
28+
29+
Additionally, a [CMake](http://www.cmake.org) build
2430
system is provided. This build system has been tested on Mac and Linux
2531
using the Intel Fortran Compiler and gfortran 4.9. It has not been
2632
tested on Windows. This CMake based build provides an install target,

visual_studio_2010/example.vfproj

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<VisualStudioProject ProjectCreator="Intel Fortran" Keyword="Console Application" Version="11.0" ProjectIdGuid="{0FEBCA15-0C4F-4800-AFEB-E33B5C4D665A}">
3+
<Platforms>
4+
<Platform Name="Win32"/></Platforms>
5+
<Configurations>
6+
<Configuration Name="Debug|Win32" OutputDirectory="../bin">
7+
<Tool Name="VFFortranCompilerTool" SuppressStartupBanner="true" DebugInformationFormat="debugEnabled" Optimization="optimizeDisabled" WarnInterfaces="true" Traceback="true" BoundsCheck="true" StackFrameCheck="true" RuntimeLibrary="rtMultiThreadedDebugDLL"/>
8+
<Tool Name="VFLinkerTool" LinkIncremental="linkIncrementalNo" SuppressStartupBanner="true" GenerateDebugInformation="true" SubSystem="subSystemConsole"/>
9+
<Tool Name="VFResourceCompilerTool"/>
10+
<Tool Name="VFMidlTool" SuppressStartupBanner="true"/>
11+
<Tool Name="VFCustomBuildTool"/>
12+
<Tool Name="VFPreLinkEventTool"/>
13+
<Tool Name="VFPreBuildEventTool"/>
14+
<Tool Name="VFPostBuildEventTool"/>
15+
<Tool Name="VFManifestTool" SuppressStartupBanner="true"/></Configuration>
16+
<Configuration Name="Release|Win32" OutputDirectory="../bin">
17+
<Tool Name="VFFortranCompilerTool" SuppressStartupBanner="true" RuntimeLibrary="rtMultiThreadedDLL"/>
18+
<Tool Name="VFLinkerTool" LinkIncremental="linkIncrementalNo" SuppressStartupBanner="true" SubSystem="subSystemConsole"/>
19+
<Tool Name="VFResourceCompilerTool"/>
20+
<Tool Name="VFMidlTool" SuppressStartupBanner="true"/>
21+
<Tool Name="VFCustomBuildTool"/>
22+
<Tool Name="VFPreLinkEventTool"/>
23+
<Tool Name="VFPreBuildEventTool"/>
24+
<Tool Name="VFPostBuildEventTool"/>
25+
<Tool Name="VFManifestTool" SuppressStartupBanner="true"/></Configuration></Configurations>
26+
<Files>
27+
<Filter Name="src" Filter="f90;for;f;fpp;ftn;def;odl;idl">
28+
<File RelativePath="..\src\json_example.f90"/></Filter></Files>
29+
<Globals/></VisualStudioProject>

visual_studio_2010/jsonfortran.sln

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 11.00
3+
# Visual Studio 2010
4+
Project("{6989167D-11E4-40FE-8C1A-2192A86A7E90}") = "example", "example.vfproj", "{0FEBCA15-0C4F-4800-AFEB-E33B5C4D665A}"
5+
ProjectSection(ProjectDependencies) = postProject
6+
{9A2FEBBE-6702-448E-B361-AE3EA614F5CF} = {9A2FEBBE-6702-448E-B361-AE3EA614F5CF}
7+
EndProjectSection
8+
EndProject
9+
Project("{6989167D-11E4-40FE-8C1A-2192A86A7E90}") = "jsonfortran", "jsonfortran.vfproj", "{9A2FEBBE-6702-448E-B361-AE3EA614F5CF}"
10+
EndProject
11+
Global
12+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
13+
Debug|Win32 = Debug|Win32
14+
Release|Win32 = Release|Win32
15+
EndGlobalSection
16+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
17+
{0FEBCA15-0C4F-4800-AFEB-E33B5C4D665A}.Debug|Win32.ActiveCfg = Debug|Win32
18+
{0FEBCA15-0C4F-4800-AFEB-E33B5C4D665A}.Debug|Win32.Build.0 = Debug|Win32
19+
{0FEBCA15-0C4F-4800-AFEB-E33B5C4D665A}.Release|Win32.ActiveCfg = Release|Win32
20+
{0FEBCA15-0C4F-4800-AFEB-E33B5C4D665A}.Release|Win32.Build.0 = Release|Win32
21+
{9A2FEBBE-6702-448E-B361-AE3EA614F5CF}.Debug|Win32.ActiveCfg = Debug|Win32
22+
{9A2FEBBE-6702-448E-B361-AE3EA614F5CF}.Debug|Win32.Build.0 = Debug|Win32
23+
{9A2FEBBE-6702-448E-B361-AE3EA614F5CF}.Release|Win32.ActiveCfg = Release|Win32
24+
{9A2FEBBE-6702-448E-B361-AE3EA614F5CF}.Release|Win32.Build.0 = Release|Win32
25+
EndGlobalSection
26+
GlobalSection(SolutionProperties) = preSolution
27+
HideSolutionNode = FALSE
28+
EndGlobalSection
29+
EndGlobal

visual_studio_2010/jsonfortran.vfproj

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<VisualStudioProject ProjectType="typeStaticLibrary" ProjectCreator="Intel Fortran" Keyword="Static Library" Version="11.0" ProjectIdGuid="{9A2FEBBE-6702-448E-B361-AE3EA614F5CF}">
3+
<Platforms>
4+
<Platform Name="Win32"/></Platforms>
5+
<Configurations>
6+
<Configuration Name="Debug|Win32" OutputDirectory="../lib/win32" ConfigurationType="typeStaticLibrary">
7+
<Tool Name="VFFortranCompilerTool" SuppressStartupBanner="true" DebugInformationFormat="debugEnabled" Optimization="optimizeDisabled" WarnInterfaces="true" ModulePath="$(OutDir)\" Traceback="true" BoundsCheck="true" StackFrameCheck="true" RuntimeLibrary="rtMultiThreadedDebugDLL"/>
8+
<Tool Name="VFLibrarianTool"/>
9+
<Tool Name="VFResourceCompilerTool"/>
10+
<Tool Name="VFMidlTool" SuppressStartupBanner="true"/>
11+
<Tool Name="VFCustomBuildTool"/>
12+
<Tool Name="VFPreLinkEventTool"/>
13+
<Tool Name="VFPreBuildEventTool"/>
14+
<Tool Name="VFPostBuildEventTool"/></Configuration>
15+
<Configuration Name="Release|Win32" OutputDirectory="../lib/win32" ConfigurationType="typeStaticLibrary">
16+
<Tool Name="VFFortranCompilerTool" SuppressStartupBanner="true" ModulePath="$(OutDir)\" RuntimeLibrary="rtMultiThreadedDLL"/>
17+
<Tool Name="VFLibrarianTool"/>
18+
<Tool Name="VFResourceCompilerTool"/>
19+
<Tool Name="VFMidlTool" SuppressStartupBanner="true"/>
20+
<Tool Name="VFCustomBuildTool"/>
21+
<Tool Name="VFPreLinkEventTool"/>
22+
<Tool Name="VFPreBuildEventTool"/>
23+
<Tool Name="VFPostBuildEventTool"/></Configuration></Configurations>
24+
<Files>
25+
<Filter Name="src" Filter="f90;for;f;fpp;ftn;def;odl;idl">
26+
<File RelativePath="..\src\json_module.f90"/></Filter></Files>
27+
<Globals/></VisualStudioProject>

0 commit comments

Comments
 (0)