Files
allwpilib/ni-libraries/lib/genlinks.bat
Thad House 861726cefa Adds gradle task to fix NI libraries whenever new ones are added. (#325)
Generates genlinks, and modifies headers to make them self contained
2016-11-04 15:17:17 -07:00

25 lines
482 B
Batchfile

@echo off
setlocal enabledelayedexpansion
mkdir tmp
for %%F in (lib*.so.*) do IF /i "%%~xF" NEQ ".so" (
set libout=%%~nF
del !libout!
echo OUTPUT_FORMAT^(elf32-littlearm^)> tmp\!libout!
echo GROUP ^( %%F ^)>> tmp\!libout!
)
REM Do a second round from the temp folder
cd tmp
for %%F in (lib*.so.*) do IF /i "%%~xF" NEQ ".so" (
set libout=%%~nF
del !libout!
echo OUTPUT_FORMAT^(elf32-littlearm^)> !libout!
echo GROUP ^( %%F ^)>> !libout!
)
cd ..