* A Hello World GUI application compiled with VC++.
svn path=/nixpkgs/trunk/; revision=5370
This commit is contained in:
parent
91aebd8616
commit
08d3840c94
|
@ -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
|
|
@ -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;
|
||||
}
|
|
@ -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;
|
||||
}
|
|
@ -832,6 +832,10 @@ rec {
|
|||
inherit fetchurl stdenv;
|
||||
};
|
||||
|
||||
win32hello = import ../development/compilers/visual-c++/test {
|
||||
inherit fetchurl stdenv visualcpp;
|
||||
};
|
||||
|
||||
|
||||
### DEVELOPMENT / DEBUGGERS
|
||||
|
||||
|
|
Loading…
Reference in New Issue