File tree 3 files changed +46
-5
lines changed
contrib/windows/packaging/tools/ca
3 files changed +46
-5
lines changed Original file line number Diff line number Diff line change
1
+
2
+ # DLL versioning to be defined on gmake commandline
3
+ MAJOR = 0
4
+ MINOR = 0
5
+ REV = 0
6
+
7
+ SHAREDLIB = ca.dll
8
+
9
+ PREFIX =
10
+ CC = $(PREFIX ) gcc
11
+ CFLAGS = -O3 -Wall -D__STRSAFE__NO_INLINE
12
+
13
+ LD = $(CC )
14
+ LDFLAGS = -static -Wl,--subsystem,windows -lmsi -lstdc++
15
+
16
+ RC = $(PREFIX ) windres
17
+ RCFLAGS = --define MAJOR=$(MAJOR ) --define MINOR=$(MINOR ) --define REVISION=$(REV )
18
+
19
+ STRIP = $(PREFIX ) strip
20
+
21
+ RM = rm -f
22
+
23
+ OBJS = dllmain.o log.o customaction.o
24
+
25
+ all : $(SHAREDLIB )
26
+
27
+ $(SHAREDLIB ) : dll/ca.def $(OBJS ) ca.rc.o
28
+ $(LD ) -shared -o $@ dll/ca.def $(OBJS ) ca.rc.o $(LDFLAGS )
29
+ $(STRIP ) $@
30
+
31
+ ca.rc.o : dll/ca.rc dll/$(SHAREDLIB ) .manifest
32
+ $(RC ) $(RCFLAGS ) -o $@ dll/ca.rc
33
+
34
+ $(OBJS ) : % .o:dll/% .cpp dll/customaction.h
35
+ $(CC ) $(CFLAGS ) -c -o $@ $<
36
+
37
+ .PHONY : clean
38
+
39
+ clean :
40
+ -$(RM ) $(SHAREDLIB )
41
+ -$(RM ) * .o
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" standalone =" yes" ?>
2
- <assembly xmlns =" urn:schemas-microsoft-com:asm.v1" manifestVersion =" 1.0" >
3
- <assemblyIdentity name =" ca" version =" [%MAJOR%].[%MINOR%].[%REV%].0" processorArchitecture =" amd64" type =" win32" />
4
- <description >GLPI Agent [%VERSION%] Custom Actions</description >
2
+ <assembly xmlns =" urn:schemas-microsoft-com:asm.v1" manifestVersion =" 1.0" >
3
+ <assemblyIdentity name =" ca" version =" [%MAJOR%].[%MINOR%].[%REV%].0" processorArchitecture =" amd64" type =" win32" />
4
+ <description >GLPI Agent [%VERSION%] Custom Actions</description >
5
5
<trustInfo xmlns =" urn:schemas-microsoft-com:asm.v3" >
6
6
<security >
7
7
<requestedPrivileges >
Original file line number Diff line number Diff line change 13
13
#endif
14
14
15
15
#if !REVISION
16
- #define VER_VERSIONINFO_STR xstr(MAJOR.MINOR)
16
+ #define VER_VERSIONINFO_STR xstr(MAJOR.MINOR)
17
17
#else
18
- #define VER_VERSIONINFO_STR xstr(MAJOR.MINOR.REVISION)
18
+ #define VER_VERSIONINFO_STR xstr(MAJOR.MINOR.REVISION)
19
19
#endif
20
20
#define VER_FILE_VERSION MAJOR,MINOR,REVISION,0
21
21
You can’t perform that action at this time.
0 commit comments