ultimatepp/uppsrc/Core/core.upt
Zbigniew Rębacz f4d9ef4389
core.upt should have an option for ssl (#170)
SSL is requiered for all modern network application. For example today most of the http resources are available through https not http. When creating core package there should be an easy way to add SSL support to it
2023-10-21 20:01:19 +02:00

38 lines
676 B
Text

template "U++ Core console project" main;
option "Create header" header;
option "Commandline loop" cmdline;
option "Add SSL support" ssl;
@@<:PACKAGE:>.h
??header
#ifndef _<:PACKAGE:>_<:PACKAGE:>_h
#define _<:PACKAGE:>_<:PACKAGE:>_h
#include <Core/Core.h>
using namespace Upp;
#endif
@@<:PACKAGE:>.cpp
#include <:?header:>"<:PACKAGE:>.h"<:/:><Core/Core.h>
using namespace Upp;<:.:>
CONSOLE_APP_MAIN
{<:?cmdline:>
const Vector<String>& cmdline = CommandLine();
for(int i = 0; i < cmdline.GetCount(); i++) {
}<:.:>
}
@@<:PACKAGE:>.upp
uses
Core<:?ssl:>,<:/:>;<:.:>
<:?ssl:>Core/SSL;<:.:>
file<:?header:>
<:PACKAGE:>.h,<:.:>
<:PACKAGE:>.cpp;
mainconfig
"" = "";