Add xerelease7 and add win32 exe files

This commit is contained in:
daleclack 2020-10-23 22:29:11 +08:00
parent b5dedf9b5e
commit ff4237f8ec
7 changed files with 152 additions and 8 deletions

View File

@ -0,0 +1,31 @@
# Project: xerelease7-x86
# Makefile created by Dev-C++ 5.11
CPP = g++.exe
CC = gcc.exe
WINDRES = windres.exe
OBJ = main.o xeapi.o
LINKOBJ = main.o xeapi.o
LIBS = -L"C:/Dev-Cpp/MinGW64/x86_64-w64-mingw32/lib32" -L"C:/Dev-Cpp/gtk+/lib" -static-libgcc -lgtk-3 -lgdk-3 -lgdi32 -limm32 -lshell32 -lole32 -Wl,-luuid -lpangocairo-1.0 -lpangoft2-1.0 -lfreetype -lfontconfig -lpangowin32-1.0 -lgdi32 -lpango-1.0 -lm -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lintl -m32
INCS = -I"C:/Dev-Cpp/MinGW64/include" -I"C:/Dev-Cpp/MinGW64/x86_64-w64-mingw32/include" -I"C:/Dev-Cpp/MinGW64/lib/gcc/x86_64-w64-mingw32/5.1.0/include" -I"C:/Dev-Cpp/gtk+/include/gtk-3.0" -I"C:/Dev-Cpp/gtk+/include/cairo" -I"C:/Dev-Cpp/gtk+/include/pango-1.0" -I"C:/Dev-Cpp/gtk+/include/atk-1.0" -I"C:/Dev-Cpp/gtk+/include/cairo" -I"C:/Dev-Cpp/gtk+/include/pixman-1" -I"C:/Dev-Cpp/gtk+/include" -I"C:/Dev-Cpp/gtk+/include/freetype2" -I"C:/Dev-Cpp/gtk+/include" -I"C:/Dev-Cpp/gtk+/include/libpng15" -I"C:/Dev-Cpp/gtk+/include/gdk-pixbuf-2.0" -I"C:/Dev-Cpp/gtk+/include/libpng15" -I"C:/Dev-Cpp/gtk+/include/glib-2.0" -I"C:/Dev-Cpp/gtk+/lib/glib-2.0/include" -I"C:/Dev-Cpp/gtk+/include/gtk-3.0/gtk"
CXXINCS = -I"C:/Dev-Cpp/MinGW64/include" -I"C:/Dev-Cpp/MinGW64/x86_64-w64-mingw32/include" -I"C:/Dev-Cpp/MinGW64/lib/gcc/x86_64-w64-mingw32/5.1.0/include" -I"C:/Dev-Cpp/MinGW64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++" -I"C:/Dev-Cpp/gtk+/include/gtk-3.0" -I"C:/Dev-Cpp/gtk+/include/cairo" -I"C:/Dev-Cpp/gtk+/include/pango-1.0" -I"C:/Dev-Cpp/gtk+/include/atk-1.0" -I"C:/Dev-Cpp/gtk+/include/cairo" -I"C:/Dev-Cpp/gtk+/include/pixman-1" -I"C:/Dev-Cpp/gtk+/include" -I"C:/Dev-Cpp/gtk+/include/freetype2" -I"C:/Dev-Cpp/gtk+/include" -I"C:/Dev-Cpp/gtk+/include/libpng15" -I"C:/Dev-Cpp/gtk+/include/gdk-pixbuf-2.0" -I"C:/Dev-Cpp/gtk+/include/libpng15" -I"C:/Dev-Cpp/gtk+/include/glib-2.0" -I"C:/Dev-Cpp/gtk+/lib/glib-2.0/include" -I"C:/Dev-Cpp/gtk+/include/gtk-3.0/gtk"
BIN = xerelease7-x86.exe
CXXFLAGS = $(CXXINCS) -m32
CFLAGS = $(INCS) -m32
RM = rm.exe -f
.PHONY: all all-before all-after clean clean-custom
all: all-before $(BIN) all-after
clean: clean-custom
${RM} $(OBJ) $(BIN)
$(BIN): $(OBJ)
$(CPP) $(LINKOBJ) -o $(BIN) $(LIBS)
main.o: main.cpp
$(CPP) -c main.cpp -o main.o $(CXXFLAGS)
xeapi.o: xeapi.cpp
$(CPP) -c xeapi.cpp -o xeapi.o $(CXXFLAGS)

View File

@ -54,7 +54,7 @@ void dale(struct tm *local){
void release(struct tm *local){ void release(struct tm *local){
int rel=0;//release version int rel=0;//release version
int year1=2019,month1=1,day1=11,year2=local->tm_year+1900,month2=local->tm_mon+1,day2=local->tm_mday; int year1=2019,month1=1,day1=11,year2=local->tm_year+1900,month2=local->tm_mon+1,day2=local->tm_mday;
char str[30];//Xeinit LTS release name char str[30];//Xeinit LTS Version
rel=total_year_day(year1,year2)-total_day(year1,month1,day1)+total_day(year2,month2,day2);//get release version rel=total_year_day(year1,year2)-total_day(year1,month1,day1)+total_day(year2,month2,day2);//get release version
sprintf(str,"Xeinit LTS version:5.2.%d\n",rel); sprintf(str,"Xeinit LTS version:5.2.%d\n",rel);
MessageBox(NULL,str,"Xe 5",MB_OK|MB_ICONINFORMATION); MessageBox(NULL,str,"Xe 5",MB_OK|MB_ICONINFORMATION);
@ -65,7 +65,7 @@ void release(struct tm *local){
return ; return ;
} }
void develop(struct tm *local){ void develop(struct tm *local){
char devel[57],str[30];int devel1;//development version char devel[57],str[30];int devel1;//development version(char str[] for MessageBox)
printf("xeinit 6 version:"); printf("xeinit 6 version:");
int year1=2017,month1=6,day1=17,year2=local->tm_year+1900,month2=local->tm_mon+1,day2=local->tm_mday; int year1=2017,month1=6,day1=17,year2=local->tm_year+1900,month2=local->tm_mon+1,day2=local->tm_mday;
devel1=total_year_day(year1,year2)-total_day(year1,month1,day1)+total_day(year2,month2,day2);//get release version devel1=total_year_day(year1,year2)-total_day(year1,month1,day1)+total_day(year2,month2,day2);//get release version
@ -80,14 +80,14 @@ void develop(struct tm *local){
} }
int main(int argc, char **argv) { int main(int argc, char **argv) {
struct tm *local; struct tm *local;
time_t t; __time64_t t;
t=time(NULL); t=_time64(NULL);
local=localtime(&t);//Get local time local=_localtime64(&t);//Get local time
LP a[]={dale,release,develop}; LP a[]={dale,release,develop};
int x; int x;
char str[30];//Xe api version char str[30];//Xeinit api version
sprintf(str,"Xe api version:%d\n",xeapi1(local)); sprintf(str,"Xe api version:%d\n",xeapi1(local));
MessageBox(NULL,str,"Xe api",MB_OK|MB_ICONINFORMATION); MessageBox(NULL,str,"xerelease7",MB_OK|MB_ICONINFORMATION);
printf("Input branch:1.release 2.development\n"); printf("Input branch:1.release 2.development\n");
printf("Your choice:"); printf("Your choice:");
scanf("%d",&x); scanf("%d",&x);

View File

@ -0,0 +1,9 @@
#include<time.h>
int xeapi1(struct tm *local){
int year1=2019,month1=6,apiver=0;
int year2=local->tm_year+1900,month2=local->tm_mon+1;
//printf("%d %d",year1,year2);
apiver=(year2-year1)*12-month1+month2+22;
if(local->tm_mday<7) apiver--;
return apiver;
}

View File

@ -0,0 +1,4 @@
extern int xeapi1(struct tm *local);
//This function can generate Xe api version by month
//The beginning is 2019-7-6
//if date is before 6th,api version will not be upgraded

View File

@ -0,0 +1,82 @@
[Project]
FileName=xerelease7-x86
Name=xerelease7-x86
Type=1
Ver=2
ObjFiles=
Includes=
Libs=
PrivateResource=
ResourceIncludes=
MakeIncludes=
Compiler=
CppCompiler=
Linker=
IsCpp=1
Icon=
ExeOutput=
ObjectOutput=
LogOutput=
LogOutputEnabled=0
OverrideOutput=0
OverrideOutputName=xerelease6-x86.exe
HostApplication=
UseCustomMakefile=0
CustomMakefile=
CommandLine=
Folders=
IncludeVersionInfo=0
SupportXPThemes=0
CompilerSet=10
CompilerSettings=0000000100000000000000000
UnitCount=3
[VersionInfo]
Major=1
Minor=0
Release=0
Build=0
LanguageID=1033
CharsetID=1252
CompanyName=
FileVersion=1.0.0.0
FileDescription=Developed using the Dev-C++ IDE
InternalName=
LegalCopyright=
LegalTrademarks=
OriginalFilename=
ProductName=
ProductVersion=1.0.0.0
AutoIncBuildNr=0
SyncProduct=1
[Unit1]
FileName=main.cpp
CompileCpp=1
Folder=
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=
[Unit2]
FileName=xeapi.cpp
CompileCpp=1
Folder=
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=
[Unit3]
FileName=xeapi.h
CompileCpp=1
Folder=
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=

View File

@ -0,0 +1,18 @@
[Editors]
Order=0,1,2
Focused=0
[Editor_0]
CursorCol=25
CursorRow=92
TopLine=91
LeftChar=1
[Editor_1]
CursorCol=1
CursorRow=1
TopLine=1
LeftChar=1
[Editor_2]
CursorCol=28
CursorRow=3
TopLine=1
LeftChar=1

BIN
win32/xerelease7-x86.exe Normal file

Binary file not shown.