Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 47 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,54 @@ jobs:
if: runner.os == 'Windows'
shell: cmd
run: |
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x86
cd opendj-server-legacy\src\build-tools\windows
nmake all
if not exist "%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" (
echo Unable to locate vswhere.exe in the Visual Studio installer directory.
exit /b 1
)
for /f "usebackq delims=" %%i in (`"%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" -latest -products * -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -property installationPath`) do set "VSINSTALLDIR=%%i"
if not defined VSINSTALLDIR (
echo Unable to locate a Visual Studio installation with C++ build tools.
exit /b 1
)
call "%VSINSTALLDIR%\VC\Auxiliary\Build\vcvarsall.bat" x64
if errorlevel 1 exit /b %errorlevel%
pushd opendj-server-legacy\src\build-tools\windows
if errorlevel 1 exit /b %errorlevel%
mc EventLogMsg.mc
if errorlevel 1 exit /b %errorlevel%
rc /fo EventLogMsg.res EventLogMsg.rc
if errorlevel 1 exit /b %errorlevel%
cl -D_WINDOWS -nologo -W3 -O2 -c common.c -Focommon.obj
if errorlevel 1 exit /b %errorlevel%
cl -D_WINDOWS -nologo -W3 -O2 -c service.c -Foservice.obj
if errorlevel 1 exit /b %errorlevel%
cl -D_WINDOWS -nologo -W3 -O2 -c winlauncher.c -Fowinlauncher.obj
if errorlevel 1 exit /b %errorlevel%
link -nologo /machine:x64 /OUT:opendj_service.exe EventLogMsg.res common.obj service.obj advapi32.lib
if errorlevel 1 exit /b %errorlevel%
mt -manifest opendj_service.exe.manifest -outputresource:opendj_service.exe;#1
if errorlevel 1 exit /b %errorlevel%
link -nologo /machine:x64 common.obj winlauncher.obj /OUT:winlauncher.exe
if errorlevel 1 exit /b %errorlevel%
link -nologo /machine:x64 common.obj winlauncher.obj /OUT:launcher_administrator.exe
if errorlevel 1 exit /b %errorlevel%
mt -manifest launcher_administrator.exe.manifest -outputresource:launcher_administrator.exe;#1
if errorlevel 1 exit /b %errorlevel%
if not exist opendj_service.exe (
echo Missing generated executable: opendj_service.exe
exit /b 1
)
if not exist winlauncher.exe (
echo Missing generated executable: winlauncher.exe
exit /b 1
)
if not exist launcher_administrator.exe (
echo Missing generated executable: launcher_administrator.exe
exit /b 1
)
xcopy /Y *.exe ..\..\..\lib\
if errorlevel 1 exit /b %errorlevel%
popd
git status
- name: Set Integration Test Environment
id: failsafe
Expand Down
2 changes: 1 addition & 1 deletion opendj-server-legacy/src/build-tools/windows/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ CC=cl
SERVICE_PROGNAME=opendj_service.exe
LAUNCHER_ADMINISTRATOR_PROGNAME=launcher_administrator.exe
WINLAUNCHER_PROGNAME=winlauncher.exe
LINKER=link -nologo /machine:x86
LINKER=link -nologo /machine:x64
LIBS=advapi32.lib

CFLAGS= -D_WINDOWS -nologo -W3 -O2
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity version="1.0.0.0"
processorArchitecture="X86" name="launcher_administrator" type="win32"/>
processorArchitecture="amd64" name="launcher_administrator" type="win32"/>
<description>Executable used to run code that requires administrator privileges</description>
<!-- Identify the application security requirements. -->
<ms_asmv2:trustInfo xmlns:ms_asmv2="urn:schemas-microsoft-com:asm.v2">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity version="1.0.0.0"
processorArchitecture="X86" name="opendj_service" type="win32"/>
processorArchitecture="amd64" name="opendj_service" type="win32"/>
<description>Executable used to run OpenDJ as a Windows Service</description>
<!-- Identify the application security requirements. -->
<ms_asmv2:trustInfo xmlns:ms_asmv2="urn:schemas-microsoft-com:asm.v2">
Expand Down
Loading