uppsrc_Templates.diff
| uppsrc/Core/core.upt 2011-10-13 01:13:26 +0600 | ||
|---|---|---|
| 3 | 3 |
option "Create header" header; |
| 4 | 4 |
option "Commandline loop" cmdline; |
| 5 | 5 |
option "Multithreaded" mt; |
| 6 |
option "Use SSE2" sse2 = 1; |
|
| 6 | 7 |
|
| 7 | 8 |
@@<:PACKAGE:>.h |
| 8 | 9 |
??header |
| ... | ... | |
| 25 | 26 |
for(int i = 0; i < cmdline.GetCount(); i++) {
|
| 26 | 27 |
}<:.:> |
| 27 | 28 |
} |
| 28 |
|
|
| 29 | 29 |
@@<:PACKAGE:>.upp |
| 30 | 30 |
uses Core; |
| 31 | 31 |
|
| ... | ... | |
| 33 | 33 |
"<:PACKAGE:>.cpp"; |
| 34 | 34 |
|
| 35 | 35 |
mainconfig |
| 36 |
"" = <:?mt:>"MT SSE2"<:/:>"SSE2"<:.:>; |
|
| 36 |
"" = "<:?mt:>MT<:.:><:?mt && sse2:> <:.:><:?sse2:>SSE2<:.:>"; |
|
| uppsrc/Core/sub.upt 2011-10-12 23:50:05 +0600 | ||
|---|---|---|
| 5 | 5 |
#define _<:PACKAGE:>_<:PACKAGE:>_h |
| 6 | 6 |
|
| 7 | 7 |
#endif |
| 8 |
|
|
| 9 | 8 |
@@<:PACKAGE:>.upp |
| 10 | 9 |
file "<:PACKAGE:>.h"; |
| uppsrc/CtrlLib/Complex.upt 2011-10-13 01:13:39 +0600 | ||
|---|---|---|
| 3 | 3 |
id "Main window class name" classname = PACKAGE; |
| 4 | 4 |
select("No layouts", "Generate layout file", "Main window has layout", "Main window has OK/Cancel")
|
| 5 | 5 |
"Layout" lay = 2; |
| 6 |
option "Imagelist file" iml; |
|
| 7 |
option "Multithreaded" mt; |
|
| 6 |
option "Imagelist file" iml; |
|
| 7 |
option "Multithreaded" mt; |
|
| 8 |
option "Use SSE2" sse2 = 1; |
|
| 8 | 9 |
|
| 9 | 10 |
@@<:PACKAGE:>.h |
| 10 | 11 |
#ifndef _<:PACKAGE:>_<:PACKAGE:>_h |
| ... | ... | |
| 27 | 28 |
}; |
| 28 | 29 |
|
| 29 | 30 |
#endif |
| 30 |
|
|
| 31 | 31 |
@@main.cpp |
| 32 | 32 |
#include "<:PACKAGE:>.h" |
| 33 | 33 |
|
| ... | ... | |
| 43 | 43 |
{
|
| 44 | 44 |
<:classname:>().Run(); |
| 45 | 45 |
} |
| 46 |
|
|
| 47 | 46 |
@@<:PACKAGE:>.lay |
| 48 | 47 |
??lay |
| 49 | 48 |
|
| ... | ... | |
| 51 | 50 |
<:?lay == 3:>ITEM(Button, ok, SetLabel("OK").RightPosZ(90, 80).BottomPosZ(4, 22))
|
| 52 | 51 |
ITEM(Button, cancel, SetLabel("Cancel").RightPosZ(4, 80).BottomPosZ(4, 22))<:.:>
|
| 53 | 52 |
END_LAYOUT |
| 54 |
|
|
| 55 | 53 |
@@<:PACKAGE:>.iml |
| 56 | 54 |
??iml |
| 57 | 55 |
|
| ... | ... | |
| 67 | 65 |
; |
| 68 | 66 |
|
| 69 | 67 |
mainconfig |
| 70 |
"" = <:?mt:>"GUI MT SSE2"<:/:>"GUI SSE2"<:.:>; |
|
| 68 |
"" = "GUI<:?mt:> MT<:.:><:?sse2:> SSE2<:.:>"; |
|
| uppsrc/CtrlLib/Normal.upt 2011-10-13 01:13:45 +0600 | ||
|---|---|---|
| 2 | 2 |
|
| 3 | 3 |
option "Create header" header; |
| 4 | 4 |
option "Multithreaded" mt; |
| 5 |
option "Use SSE2" sse2 = 1; |
|
| 5 | 6 |
|
| 6 | 7 |
@@<:PACKAGE:>.h |
| 7 | 8 |
??header |
| ... | ... | |
| 13 | 14 |
using namespace Upp; |
| 14 | 15 |
|
| 15 | 16 |
#endif |
| 16 |
|
|
| 17 | 17 |
@@main.cpp |
| 18 | 18 |
#include <:?header:>"<:PACKAGE:>.h"<:/:><CtrlLib/CtrlLib.h><:.:> |
| 19 | 19 |
|
| 20 | 20 |
GUI_APP_MAIN |
| 21 | 21 |
{
|
| 22 | 22 |
} |
| 23 |
|
|
| 24 | 23 |
@@<:PACKAGE:>.upp |
| 25 | 24 |
uses |
| 26 | 25 |
CtrlLib; |
| ... | ... | |
| 30 | 29 |
"main.cpp"; |
| 31 | 30 |
|
| 32 | 31 |
mainconfig |
| 33 |
"" = <:?mt:>"GUI MT SSE2"<:/:>"GUI SSE2"<:.:>; |
|
| 32 |
"" = "GUI<:?mt:> MT<:.:><:?sse2:> SSE2<:.:>"; |
|
| uppsrc/upt/Console.upt 2011-10-13 01:13:55 +0600 | ||
|---|---|---|
| 1 | 1 |
template "Console application (no U++)" main; |
| 2 | 2 |
|
| 3 |
option "Use SSE2" sse2 = 1; |
|
| 4 |
|
|
| 3 | 5 |
@@<:PACKAGE:>.cpp |
| 4 | 6 |
#include "stdio.h" |
| 5 | 7 |
|
| ... | ... | |
| 7 | 9 |
{
|
| 8 | 10 |
return 0; |
| 9 | 11 |
} |
| 10 |
|
|
| 11 | 12 |
@@<:PACKAGE:>.upp |
| 12 | 13 |
file |
| 13 | 14 |
<:PACKAGE:>.cpp; |
| 14 | 15 |
|
| 15 | 16 |
mainconfig |
| 16 |
"" = "SSE2"; |
|
| 17 |
"" = "<:?sse2:>SSE2<:.:>"; |
|
| uppsrc/upt/SDLCore.upt 2011-10-13 01:14:01 +0600 | ||
|---|---|---|
| 5 | 5 |
option "Double buffering" doublebuff; |
| 6 | 6 |
option "Full screen" fullscreen; |
| 7 | 7 |
option "Event loop" loop; |
| 8 |
option "Use SSE2" sse2 = 1; |
|
| 8 | 9 |
|
| 9 | 10 |
@@<:PACKAGE:>.h |
| 10 | 11 |
??header |
| ... | ... | |
| 95 | 96 |
library(GCC WIN32) "SDL.dll SDLmain"; |
| 96 | 97 |
|
| 97 | 98 |
mainconfig |
| 98 |
"" = "SSE2"; |
|
| 99 |
"" = "<:?sse2:>SSE2<:.:>"; |
|
| uppsrc/upt/SDLPure.upt 2011-10-13 01:14:06 +0600 | ||
|---|---|---|
| 5 | 5 |
option "Double buffering" doublebuff; |
| 6 | 6 |
option "Full screen" fullscreen; |
| 7 | 7 |
option "Event loop" loop; |
| 8 |
option "Use SSE2" sse2 = 1; |
|
| 8 | 9 |
|
| 9 | 10 |
@@<:PACKAGE:>.h |
| 10 | 11 |
??header |
| ... | ... | |
| 88 | 89 |
library(GCC WIN32) "SDL.dll SDLmain"; |
| 89 | 90 |
|
| 90 | 91 |
mainconfig |
| 91 |
"" = "SSE2"; |
|
| 92 |
"" = "<:?sse2:>SSE2<:.:>"; |
|
| uppsrc/upt/Win32.upt 2011-10-13 01:14:12 +0600 | ||
|---|---|---|
| 3 | 3 |
option "Main menu" menu; |
| 4 | 4 |
option "Program icon" icon; |
| 5 | 5 |
option "Hello World" hello; |
| 6 |
option "Use SSE2" sse2 = 1; |
|
| 6 | 7 |
|
| 7 | 8 |
@@resource.h |
| 8 | 9 |
<:?icon:>#define IDI_BIG 100 |
| ... | ... | |
| 187 | 188 |
<:PACKAGE:>.cpp; |
| 188 | 189 |
|
| 189 | 190 |
mainconfig |
| 190 |
"" = "GUI SSE2"; |
|
| 191 |
"" = "GUI<:?sse2:> SSE2<:.:>"; |
|
| uppsrc/upt/Win32dll.upt 2011-10-13 01:14:19 +0600 | ||
|---|---|---|
| 1 | 1 |
template "Win32 DLL project (no U++)" main; |
| 2 | 2 |
|
| 3 | 3 |
option "Multithreaded" mt; |
| 4 |
option "Use SSE2" sse2 = 1; |
|
| 4 | 5 |
|
| 5 | 6 |
@@<:PACKAGE:>.h |
| 6 | 7 |
#ifndef _<:PACKAGE:>_<:PACKAGE:>_h |
| ... | ... | |
| 16 | 17 |
#endif |
| 17 | 18 |
|
| 18 | 19 |
#endif |
| 19 |
|
|
| 20 | 20 |
@@<:PACKAGE:>.cpp |
| 21 | 21 |
#include <windows.h> |
| 22 | 22 |
#include "<:PACKAGE:>.h" |
| ... | ... | |
| 35 | 35 |
} |
| 36 | 36 |
return TRUE; |
| 37 | 37 |
} |
| 38 |
|
|
| 39 | 38 |
@@<:PACKAGE:>.upp |
| 40 | 39 |
library(WIN32) "kernel32 user32 advapi32 shell32 winmm"; |
| 41 | 40 |
|
| ... | ... | |
| 46 | 45 |
<:PACKAGE:>.cpp; |
| 47 | 46 |
|
| 48 | 47 |
mainconfig |
| 49 |
"" = "DLL SSE2 <:?mt:>MT<:.:>"; |
|
| 48 |
"" = "DLL<:?mt:> MT<:.:><:?sse2:> SSE2<:.:>"; |
|