summaryrefslogtreecommitdiffstats
path: root/src/native
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2015-09-19 21:32:18 +0200
committerSven Gothel <[email protected]>2015-09-19 21:32:18 +0200
commitb17ba1462cc4bb96be52f378dedafb50a3bc13f1 (patch)
tree1383d5f998fe6d1204c1b6833579fe2be3119858 /src/native
parent0ebc5398fa20d23214a37dc4930a1fa1617293c7 (diff)
Bug 1219: Use Win32 API for test PE exe, not console
Previous test PE exe, commit 0ebc5398fa20d23214a37dc4930a1fa1617293c7, was a console exe. A console exe opens a new console window if not being launched from one. New test PE exe is produced w/ '-mwindows', i.e. for Win32 API w/o a console.
Diffstat (limited to 'src/native')
-rwxr-xr-xsrc/native/tinype/make.bat1
-rwxr-xr-xsrc/native/tinype/make.sh4
-rw-r--r--src/native/tinype/tiny.c2
-rwxr-xr-xsrc/native/tinype/tiny.exebin2048 -> 0 bytes
-rwxr-xr-xsrc/native/tinype/tiny.exe.gzbin305 -> 0 bytes
5 files changed, 6 insertions, 1 deletions
diff --git a/src/native/tinype/make.bat b/src/native/tinype/make.bat
deleted file mode 100755
index 121e7ee..0000000
--- a/src/native/tinype/make.bat
+++ /dev/null
@@ -1 +0,0 @@
-c:\mingw\bin\gcc -nodefaultlibs -nostdlib -s -Os -o tiny.exe tiny.c
diff --git a/src/native/tinype/make.sh b/src/native/tinype/make.sh
new file mode 100755
index 0000000..2a81c6b
--- /dev/null
+++ b/src/native/tinype/make.sh
@@ -0,0 +1,4 @@
+/cygdrive/c/mingw/bin/gcc -nodefaultlibs -nostdlib -s -Os -mwindows -o tiny-win32-i386.exe tiny.c
+gzip -9 -c tiny-win32-i386.exe > tiny-win32-i386.exe.gz
+/cygdrive/c/mingw64/bin/gcc -nodefaultlibs -nostdlib -s -Os -mwindows -o tiny-win32-x86_64.exe tiny.c
+gzip -9 -c tiny-win32-x86_64.exe > tiny-win32-x86_64.exe.gz
diff --git a/src/native/tinype/tiny.c b/src/native/tinype/tiny.c
index 4d645bf..80f9518 100644
--- a/src/native/tinype/tiny.c
+++ b/src/native/tinype/tiny.c
@@ -1,3 +1,5 @@
+// const char * id = "JogAmp Windows Universal Test PE Executable";
+
int __main()
{
return 0;
diff --git a/src/native/tinype/tiny.exe b/src/native/tinype/tiny.exe
deleted file mode 100755
index 6191a27..0000000
--- a/src/native/tinype/tiny.exe
+++ /dev/null
Binary files differ
diff --git a/src/native/tinype/tiny.exe.gz b/src/native/tinype/tiny.exe.gz
deleted file mode 100755
index 1444ae6..0000000
--- a/src/native/tinype/tiny.exe.gz
+++ /dev/null
Binary files differ