* A Hello World GUI application compiled with VC++.

svn path=/nixpkgs/trunk/; revision=5370
This commit is contained in:
Eelco Dolstra 2006-06-02 10:09:19 +00:00
parent 91aebd8616
commit 08d3840c94
4 changed files with 26 additions and 0 deletions

View file

@ -0,0 +1,5 @@
source $stdenv/setup
source $visualcpp/setup
ensureDir $out/bin
cl "$(cygpath -w $src)" /Fe"$(cygpath -w $out/bin/hello.exe)" user32.lib

View file

@ -0,0 +1,10 @@
{stdenv, fetchurl, visualcpp}:
assert stdenv.system == "i686-cygwin";
stdenv.mkDerivation {
name = "win32-hello";
builder = ./builder.sh;
src = ./hello.c;
inherit visualcpp;
}

View file

@ -0,0 +1,7 @@
#include <windows.h>
int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrevInstance, LPSTR lpCmdLine,
int nCmdShow)
{
MessageBox(NULL, "Hello World!", "Nix", MB_OK);
return 0;
}

View file

@ -832,6 +832,10 @@ rec {
inherit fetchurl stdenv;
};
win32hello = import ../development/compilers/visual-c++/test {
inherit fetchurl stdenv visualcpp;
};
### DEVELOPMENT / DEBUGGERS