Skip to content

Commit

Permalink
Samples: Enhance the newplatforms sample
Browse files Browse the repository at this point in the history
  • Loading branch information
jjensen committed Feb 6, 2017
1 parent 93ac31f commit d56423b
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 8 deletions.
2 changes: 0 additions & 2 deletions samples/newplatforms/CreateJamVS2012Workspace.bat

This file was deleted.

2 changes: 2 additions & 0 deletions samples/newplatforms/CreateJamWorkspace.bat
@@ -0,0 +1,2 @@
@jam --workspace -gui --config=%~dp0CreateJamWorkspace.config

12 changes: 10 additions & 2 deletions samples/newplatforms/helloworld.c
Expand Up @@ -3,9 +3,17 @@
int main()
{
#if defined(PLATFORM_WIN32DX)
printf("Hello from win32-dx!\n");
#if defined(CONFIG_DEBUG)
printf("Hello from win32-dx debug!\n");
#elif defined(CONFIG_RELEASE)
printf("Hello from win32-dx release!\n");
#endif // CONFIG_RELEASE
#elif defined(PLATFORM_WIN32OGL)
printf("Hello from win32-ogl!\n");
#if defined(CONFIG_DEBUG)
printf("Hello from win32-ogl debug!\n");
#elif defined(CONFIG_RELEASE)
printf("Hello from win32-ogl release!\n");
#endif // CONFIG_RELEASE
#endif
return 0;
}
3 changes: 2 additions & 1 deletion samples/newplatforms/jam/c/toolchain/win32dx/debug.jam
@@ -1,4 +1,5 @@
rule C.Toolchain.win32dx-debug.* {
C.ToolchainSpecKeys C.PLATFORM C.CONFIG ;
C.ToolchainSpecKeys C.PLATFORM/PLATFORM C.CONFIG/CONFIG ;
C.Toolchain.win32dx.* ;
C.Defines * : CONFIG_DEBUG ;
}
3 changes: 2 additions & 1 deletion samples/newplatforms/jam/c/toolchain/win32dx/release.jam
@@ -1,4 +1,5 @@
rule C.Toolchain.win32dx-release.* {
C.ToolchainSpecKeys C.PLATFORM C.CONFIG ;
C.ToolchainSpecKeys C.PLATFORM/PLATFORM C.CONFIG/CONFIG ;
C.Toolchain.win32dx.* ;
C.Defines * : CONFIG_RELEASE ;
}
3 changes: 2 additions & 1 deletion samples/newplatforms/jam/c/toolchain/win32ogl/debug.jam
@@ -1,4 +1,5 @@
rule C.Toolchain.win32ogl.debug.* {
C.ToolchainSpecKeys C.PLATFORM C.CONFIG ;
C.ToolchainSpecKeys C.PLATFORM/PLATFORM C.CONFIG/CONFIG ;
C.Toolchain.win32ogl.* ;
C.Defines * : CONFIG_DEBUG ;
}
3 changes: 2 additions & 1 deletion samples/newplatforms/jam/c/toolchain/win32ogl/release.jam
@@ -1,4 +1,5 @@
rule C.Toolchain.win32ogl.release.* {
C.ToolchainSpecKeys C.PLATFORM C.CONFIG ;
C.ToolchainSpecKeys C.PLATFORM/PLATFORM C.CONFIG/CONFIG ;
C.Toolchain.win32ogl.* ;
C.Defines * : CONFIG_RELEASE ;
}

0 comments on commit d56423b

Please sign in to comment.