Skip to content

Commit e517a3e

Browse files
committed
windows build
1 parent 1a4843c commit e517a3e

File tree

3 files changed

+19
-6
lines changed

3 files changed

+19
-6
lines changed

.github/workflows/xtracfg.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ jobs:
88
strategy:
99
matrix:
1010
os:
11-
- runner: ubuntu-24.04
12-
type: linux
13-
platform: linux-amd64
11+
#- runner: ubuntu-24.04
12+
# type: linux
13+
# platform: linux-amd64
1414
# - runner: ubuntu-24.04-arm
1515
# type: linux
1616
# platform: linux-arm64
@@ -89,7 +89,7 @@ jobs:
8989
npm --loglevel verbose run test
9090
- name: log3
9191
run: |
92-
ls -lR ./libxtracfg/js/xtracfg-native-binding/prebuilds
92+
ls -l -R ./libxtracfg/js/xtracfg-native-binding/prebuilds
9393
# TODO: run tests for java, c, go
9494
- uses: actions/upload-artifact@v4
9595
with:

libxtracfg/c/build.bat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ cd %OUT_DIR%
1111

1212
echo lib
1313

14-
ls -l -R %JAVA_HOME%/lib
14+
ls -l -R %JAVA_HOME%
1515

1616
REM static
1717
cl.exe /c /W4 /I./ /I%JAVA_HOME%/include /I%JAVA_HOME%/include/%PLATFORM% /Folibxtracfg.obj ../wrapper/libxtracfg.c
1818
REM copy libxtracfgjni_static.lib libxtracfg.lib
19-
lib.exe /OUT:libxtracfg.lib libxtracfg.obj libxtracfgjni_static.lib
19+
lib.exe /OUT:libxtracfg.lib /VERBOSE libxtracfg.obj libxtracfgjni_static.lib
2020

2121
certutil -hashfile libxtracfg.lib SHA1 > libxtracfg.sha1sum.tmp
2222
REM Extract just the hash from certutil output (it includes headers/footers)

libxtracfg/c/native-image/static-compiler-windows.bat

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,19 @@ set CL_ARGS=%*
4343
echo cl.exe %CL_ARGS% >> %LOG_FILE%
4444
cmd /c cl.exe %CL_ARGS%
4545

46+
echo ===================================================== >> %LOG_FILE%
47+
echo STATIC EXTERNAL >> %LOG_FILE%
48+
echo ===================================================== >> %LOG_FILE%
49+
set LIBS_EXT=
50+
for %%P in (%*) do (
51+
echo %%P | findstr /C:"\.lib" 1>nul
52+
if !errorlevel!==0 (
53+
set LIBS_EXT=%LIBS_EXT% %%~nP
54+
echo %%~nP >> %LOG_FILE%
55+
)
56+
)
57+
echo %LIBS_EXT% >> %LOG_FILE%
58+
4659
echo ===================================================== >> %LOG_FILE%
4760
echo STATIC LIBRARY >> %LOG_FILE%
4861
echo ===================================================== >> %LOG_FILE%

0 commit comments

Comments
 (0)