Skip to content

Commit

Permalink
Remove binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
alabuzhev committed Aug 28, 2024
1 parent 11925f8 commit 5cd91f7
Show file tree
Hide file tree
Showing 38 changed files with 85 additions and 32 deletions.
9 changes: 9 additions & 0 deletions misc/nightly/plugins.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,15 @@ mkdir -p outfinalnewARM64/Plugins

cd plugins

VERSION_7Z=24.08
curl -o arclite/7z/7z-${VERSION_7Z}.zip https://farmanager.com/7z-${VERSION_7Z}.zip
unzip arclite/7z/7z-${VERSION_7Z}.zip -d arclite/7z/${VERSION_7Z}

VERSION_LUASDK=20240301
curl -o luamacro/luasdk/LuaSDK-${VERSION_LUASDK}.zip https://farmanager.com/LuaSDK-${VERSION_LUASDK}.zip
unzip luamacro/luasdk/LuaSDK-${VERSION_LUASDK}.zip -d luamacro/luasdk/${VERSION_LUASDK}


MASKS="*.dll *.hlf *.lng *.farconfig *.lua *.map *.pdb"

( \
Expand Down
Binary file removed plugins/arclite/7z/dll/32/7z.dll
Binary file not shown.
Binary file removed plugins/arclite/7z/dll/64/7z.dll
Binary file not shown.
Binary file removed plugins/arclite/7z/dll/ARM64/7z.dll
Binary file not shown.
Binary file removed plugins/arclite/7z/sfx/7z.sfx
Binary file not shown.
Binary file removed plugins/arclite/7z/sfx/7zCon.sfx
Binary file not shown.
Binary file removed plugins/arclite/7z/sfx/7zS2.sfx
Binary file not shown.
Binary file removed plugins/arclite/7z/sfx/7zS2con.sfx
Binary file not shown.
Binary file removed plugins/arclite/7z/sfx/7zSD.sfx
Binary file not shown.
12 changes: 10 additions & 2 deletions plugins/arclite/arclite.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
<DirBit Condition="'$(Platform)'=='Win32'">32</DirBit>
<DirBit Condition="'$(Platform)'=='x64'">64</DirBit>
<DirBit Condition="'$(Platform)'=='ARM64'">ARM64</DirBit>
<Release7ZDll>7z\dll\$(DirBit)\7z.dll</Release7ZDll>
<Version7Z>24.08</Version7Z>
<Release7ZDll>7z\$(Version7Z)\dll\$(DirBit)\7z.dll</Release7ZDll>
<Debug7ZDll>7z\src\CPP\7zip\Bundles\Format7zF\Debug\$(DirBit)\7z.dll</Debug7ZDll>
<IsDebug>0</IsDebug>
<IsDebug Condition="'$(Configuration)'=='Debug' or '$(Configuration)'=='Debug_ASAN'">1</IsDebug>
Expand All @@ -23,6 +24,13 @@
<CopyFileToFolders Condition="'$(IsDebug)'=='0'" Include="$(Release7ZDll)" />
<CopyFileToFolders Condition="'$(IsDebug)'=='1' and Exists('$(Debug7ZDll)') " Include="$(Debug7ZDll)" />
<CopyFileToFolders Condition="'$(IsDebug)'=='1' and !Exists('$(Debug7ZDll)') " Include="$(Release7ZDll)" />
<CopyFileToFolders Include="7z\sfx\*.sfx" />
<CopyFileToFolders Include="7z\$(Version7Z)\sfx\*.sfx" />
</ItemGroup>
<ItemDefinitionGroup>
<PreBuildEvent>
<Message>Downloading 7-Zip binaries</Message>
<Command>if not exist $(Release7ZDll) powershell -c "Invoke-WebRequest -Uri 'https://farmanager.com/7z-$(Version7Z).zip' -OutFile '7z\7z-$(Version7Z).zip'; Expand-Archive 7z\7z-$(Version7Z).zip -DestinationPath 7z\$(Version7Z)"
</Command>
</PreBuildEvent>
</ItemDefinitionGroup>
</Project>
11 changes: 8 additions & 3 deletions plugins/arclite/makefile_gcc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
NAME = arclite
VERSION_7Z=24.08

PRECOMPILED_HEADER=headers
DISABLEAUTODEPS = 1
Expand Down Expand Up @@ -29,11 +30,11 @@ SRCS = \
ifdef DEBUG_7Z
7ZDLL = 7z/src/CPP/7zip/Bundles/Format7zF/Debug/$(DIRBIT)/7z.dll
else
7ZDLL = 7z/dll/$(DIRBIT)/7z.dll
7ZDLL = 7z/$(VERSION_7Z)/dll/$(DIRBIT)/7z.dll
endif

DOCS = \
7z/sfx/*.sfx \
7z/$(VERSION_7Z)/sfx/*.sfx \
arclite.xml \
$(7ZDLL) \

Expand All @@ -42,7 +43,7 @@ include ../makefile_gcc_def_inc
ifndef BUILD

.PHONY: all
all: depfile
all: depfile $(7ZDLL)
$(MAKE) -f makefile_gcc $(MK_FLAGS) all BUILD=1 USEDEP=1

.PHONY: depfile
Expand All @@ -51,6 +52,10 @@ depfile:
@echo Rebuilding dependencies
$(LS) *.cpp *.hpp *.rc | $(GAWK) -f $(FARDIR)/scripts/mkdep.awk -v compiler=gcc - > $(OBJDIR)/$(NAME).dep

$(7ZDLL):
@echo Downloading 7-Zip binaries
curl -o 7z\7z-$(VERSION_7Z).zip https://farmanager.com/7z-$(VERSION_7Z).zip && unzip 7z\7z-$(VERSION_7Z).zip -d 7z\$(VERSION_7Z)

clean:
$(MAKE) -f makefile_gcc $(MK_FLAGS) clean BUILD=1

Expand Down
12 changes: 9 additions & 3 deletions plugins/arclite/makefile_vc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
NAME = arclite
VERSION_7Z=24.08

PRECOMPILED_HEADER=headers

Expand Down Expand Up @@ -28,11 +29,11 @@ LINK_OBJS = \
!ifdef DEBUG_7Z
7ZDLL = 7z\src\CPP\7zip\Bundles\Format7zF\Debug\$(DIRBIT)\7z.dll
!else
7ZDLL = 7z\dll\$(DIRBIT)\7z.dll
7ZDLL = 7z\$(VERSION_7Z)\dll\$(DIRBIT)\7z.dll
!endif

DOCS = \
7z\sfx\*.sfx \
7z\$(VERSION_7Z)\sfx\*.sfx \
arclite.xml \
$(7ZDLL) \

Expand All @@ -41,7 +42,7 @@ DOCS = \
!ifndef BUILD

.PHONY: all
all: depfile
all: depfile $(7ZDLL)
$(MAKE) -nologo -f makefile_vc -$(MAKEFLAGS) all BUILD=1 USEDEP=1

.PHONY: depfile
Expand All @@ -50,6 +51,11 @@ depfile:
@echo Rebuilding dependencies
dir /b *.cpp *.hpp *.rc | "$(FARDIR)\tools\gawk" -f $(FARDIR)\scripts\mkdep.awk - > $(INTDIR)\$(NAME).dep

$(7ZDLL):
@echo Downloading 7-Zip binaries
powershell -c "Invoke-WebRequest -Uri 'https://farmanager.com/7z-$(VERSION_7Z).zip' -OutFile '7z\7z-$(VERSION_7Z).zip'; Expand-Archive 7z\7z-$(VERSION_7Z).zip -DestinationPath 7z\$(VERSION_7Z)"


clean:
$(MAKE) -nologo -f makefile_vc -$(MAKEFLAGS) clean BUILD=1

Expand Down
9 changes: 5 additions & 4 deletions plugins/luamacro/luafar3.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<PropertyGroup Label="UserMacros">
<ProjectSpecificOutDirName>Plugins\..</ProjectSpecificOutDirName>
<ProjectSpecificIntDirName>Plugins\luamacro\$(ProjectName)</ProjectSpecificIntDirName>
<VersionLuaSDK>20240301</VersionLuaSDK>
<DirBit Condition="'$(Platform)'=='Win32'">32</DirBit>
<DirBit Condition="'$(Platform)'=='x64'">64</DirBit>
<DirBit Condition="'$(Platform)'=='ARM64'">ARM64</DirBit>
Expand All @@ -26,7 +27,7 @@
</ClCompile>
<Link>
<AdditionalDependencies>$(LuaLib).lib;%(AdditionalDependencies)</AdditionalDependencies>
<AdditionalLibraryDirectories>luasdk/$(DirBit)</AdditionalLibraryDirectories>
<AdditionalLibraryDirectories>luasdk/$(VersionLuaSDK)/$(DirBit);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
<ModuleDefinitionFile />
</Link>
<PreBuildEvent>
Expand Down Expand Up @@ -72,9 +73,9 @@
<ClInclude Include="luasdk\include\lualib.h" />
</ItemGroup>
<ItemGroup>
<CopyFileToFolders Include="luasdk\$(DirBit)\$(LuaLib).dll" />
<CopyFileToFolders Include="luasdk\$(DirBit)\lpeg.dll" />
<CopyFileToFolders Include="luasdk\32\legacy\$(LuaLib).dll">
<CopyFileToFolders Include="luasdk\$(VersionLuaSDK)\$(DirBit)\$(LuaLib).dll" />
<CopyFileToFolders Include="luasdk\$(VersionLuaSDK)\$(DirBit)\lpeg.dll" />
<CopyFileToFolders Include="luasdk\$(VersionLuaSDK)\32\legacy\$(LuaLib).dll">
<ExcludedFromBuild Condition="'$(Platform)'!='Win32'">true</ExcludedFromBuild>
</CopyFileToFolders>
</ItemGroup>
Expand Down
12 changes: 8 additions & 4 deletions plugins/luamacro/luamacro.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@
<ProjectGuid>{06BE01E6-7DC0-4D83-877C-B7ADE32175F8}</ProjectGuid>
<ConfigurationType>DynamicLibrary</ConfigurationType>
</PropertyGroup>
<PropertyGroup Label="UserMacros">
<VersionLuaSDK>20240301</VersionLuaSDK>
<DirBit Condition="'$(Platform)'=='Win32'">32</DirBit>
<DirBit Condition="'$(Platform)'=='x64'">64</DirBit>
<DirBit Condition="'$(Platform)'=='ARM64'">ARM64</DirBit>
<LuaLib>lua51</LuaLib>
</PropertyGroup>
<ImportGroup Label="PropertySheets">
<Import Project="$(ProjectDir)..\..\_build\vc\config\common.plugins.main.props" />
<Import Project="$(ProjectDir)..\..\_build\vc\config\common.plugins.rules.copy.props" />
Expand All @@ -17,10 +24,7 @@
</ClCompile>
<Link>
<AdditionalDependencies>lua51.lib;luafar3.lib;%(AdditionalDependencies)</AdditionalDependencies>
<AdditionalLibraryDirectories>$(IntDir)luafar3;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
<AdditionalLibraryDirectories Condition="'$(Platform)'=='x64'">luasdk/64;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
<AdditionalLibraryDirectories Condition="'$(Platform)'=='Win32'">luasdk/32;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
<AdditionalLibraryDirectories Condition="'$(Platform)'=='ARM64'">luasdk/ARM64;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
<AdditionalLibraryDirectories>$(IntDir)luafar3;luasdk/$(VersionLuaSDK)/$(DirBit);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
</Link>
</ItemDefinitionGroup>
<ItemGroup>
Expand Down
Binary file removed plugins/luamacro/luasdk/32/legacy/lua51.dll
Binary file not shown.
Binary file removed plugins/luamacro/luasdk/32/lpeg.dll
Binary file not shown.
Binary file removed plugins/luamacro/luasdk/32/lua.exe
Binary file not shown.
Binary file removed plugins/luamacro/luasdk/32/lua51.dll
Binary file not shown.
Binary file removed plugins/luamacro/luasdk/32/lua51.lib
Binary file not shown.
Binary file removed plugins/luamacro/luasdk/32/lua51.rio.dll
Binary file not shown.
Binary file removed plugins/luamacro/luasdk/32/luajit.exe
Binary file not shown.
Binary file removed plugins/luamacro/luasdk/64/lpeg.dll
Binary file not shown.
Binary file removed plugins/luamacro/luasdk/64/lua.exe
Binary file not shown.
Binary file removed plugins/luamacro/luasdk/64/lua51.dll
Binary file not shown.
Binary file removed plugins/luamacro/luasdk/64/lua51.lib
Binary file not shown.
Binary file removed plugins/luamacro/luasdk/64/lua51.rio.dll
Binary file not shown.
Binary file removed plugins/luamacro/luasdk/64/luajit.exe
Binary file not shown.
Binary file removed plugins/luamacro/luasdk/ARM32/lpeg.dll
Binary file not shown.
Binary file removed plugins/luamacro/luasdk/ARM32/lua51.dll
Binary file not shown.
Binary file removed plugins/luamacro/luasdk/ARM32/lua51.lib
Binary file not shown.
Binary file removed plugins/luamacro/luasdk/ARM64/lpeg.dll
Binary file not shown.
Binary file removed plugins/luamacro/luasdk/ARM64/lua51.dll
Binary file not shown.
Binary file removed plugins/luamacro/luasdk/ARM64/lua51.lib
Binary file not shown.
Binary file removed plugins/luamacro/luasdk/build_moonscript.zip
Binary file not shown.
5 changes: 3 additions & 2 deletions plugins/luamacro/makefile_gcc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
NAME = luamacro
VERSION_LUASDK = 20240301

SRCS = \
luafar/luaplug.c \
Expand Down Expand Up @@ -47,7 +48,7 @@ endif

USERLIBS = \
$(OBJDIR)/luafar3.lib \
luasdk/$(BITPREFIX)$(DIRBIT)/lua51.lib \
luasdk/$(VERSION_LUASDK)/$(BITPREFIX)$(DIRBIT)/lua51.lib \

USERTARGETS = \
lualib \
Expand Down Expand Up @@ -76,7 +77,7 @@ lualegacy:
ifndef ARM
ifeq ($(DIRBIT),32)
@$(MKDIR) $(FAR_WORKDIR)/Legacy
@$(CP) luasdk/32/legacy/lua51.dll $(FAR_WORKDIR)/Legacy
@$(CP) luasdk/$(VERSION_LUASDK)/32/legacy/lua51.dll $(FAR_WORKDIR)/Legacy
endif
endif

Expand Down
22 changes: 16 additions & 6 deletions plugins/luamacro/makefile_lib_gcc
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
NAME=luafar3
VERSION_LUASDK=20240301

ifdef SYS_LUA
LUA=lua
else
LUA=$(WINE_CMD)$(strip $(call os_name, luasdk/32/lua.exe))
LUA=$(WINE_CMD)$(strip $(call os_name, luasdk/$(VERSION_LUASDK)/32/lua.exe))
endif

SRCS = \
Expand All @@ -27,7 +28,7 @@ SRCS = \
luafar/win.c \

USERLIBS = \
luasdk/$(BITPREFIX)$(DIRBIT)/lua51.lib \
luasdk/$(VERSION_LUASDK)/$(BITPREFIX)$(DIRBIT)/lua51.lib \
-Wl,--out-implib,$(OBJDIR)/luafar3.lib \

USERC = \
Expand Down Expand Up @@ -58,24 +59,33 @@ USERC += \

endif

USERTARGETS = luasdk/$(VERSION_LUASDK)/$(BITPREFIX)$(DIRBIT)/lua51.dll

RC_NAME = luafar/$(NAME)
DEF_NAME = -

include ../makefile_gcc_def_inc

DOCS = \
luasdk/$(BITPREFIX)$(DIRBIT)/lua51.dll \
luasdk/$(BITPREFIX)$(DIRBIT)/lpeg.dll \
luasdk/$(VERSION_LUASDK)/$(BITPREFIX)$(DIRBIT)/lua51.dll \
luasdk/$(VERSION_LUASDK)/$(BITPREFIX)$(DIRBIT)/lpeg.dll \

include ../makefile_gcc_target_inc

luafar/flags.c: $(COMINC)/plugin.hpp luafar/makeflags.lua
luafar/flags.c: $(COMINC)/plugin.hpp luafar/makeflags.lua luasdk/$(VERSION_LUASDK)/$(BITPREFIX)$(DIRBIT)/lua51.dll
@echo generating $@
@$(LUA) luafar/makeflags.lua $(COMINC)/plugin.hpp > $@

luafar/keysandcolors.c: luafar/makefarkeys.lua $(COMINC)/farcolor.hpp $(FARDIR)/uuids.far.dialogs.hpp
luafar/keysandcolors.c: luafar/makefarkeys.lua $(COMINC)/farcolor.hpp $(FARDIR)/uuids.far.dialogs.hpp luasdk/$(VERSION_LUASDK)/$(BITPREFIX)$(DIRBIT)/lua51.dll
@echo generating $@
@$(LUA) luafar/makefarkeys.lua $(COMINC)/farcolor.hpp $(FARDIR)/uuids.far.dialogs.hpp $@

$(LUA): luasdk/$(VERSION_LUASDK)/$(BITPREFIX)$(DIRBIT)/lua51.dll
luasdk/$(VERSION_LUASDK)/$(BITPREFIX)$(DIRBIT)/lua51.lib: luasdk/$(VERSION_LUASDK)/$(BITPREFIX)$(DIRBIT)/lua51.dll
luasdk/$(VERSION_LUASDK)/$(BITPREFIX)$(DIRBIT)/lpeg.dll: luasdk/$(VERSION_LUASDK)/$(BITPREFIX)$(DIRBIT)/lua51.dll
luasdk/$(VERSION_LUASDK)/$(BITPREFIX)$(DIRBIT)/lua51.dll:
@echo Downloading 7-Zip binaries
curl -o luasdk\LuaSDK-$(VERSION_LUASDK).zip https://farmanager.com/LuaSDK-$(VERSION_LUASDK).zip && unzip luasdk\LuaSDK-$(VERSION_LUASDK).zip -d luasdk\$(VERSION_LUASDK)

clean::
@$(RM) $(DLLDIR)/lua*.* $(OBJS) $(DEPS)
20 changes: 14 additions & 6 deletions plugins/luamacro/makefile_lib_vc
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
NAME=luafar3
VERSION_LUASDK=20240301
USERCPP=/Iluasdk/include /DBUILD_DLL /DWINVER=0x500 /DLUADLL=\"lua51.dll\"
!ifndef LUA
LUA=luasdk\32\lua.exe
LUA=luasdk\$(VERSION_LUASDK)\32\lua.exe
!endif

GEN_IMPLIB=1
Expand All @@ -12,8 +13,8 @@ DEF_NAME=
!include ..\makefile_vc_def_inc

DOCS = \
luasdk\$(BITPREFIX)$(DIRBIT)\lua51.dll \
luasdk\$(BITPREFIX)$(DIRBIT)\lpeg.dll \
luasdk\$(VERSION_LUASDK)\$(BITPREFIX)$(DIRBIT)\lua51.dll \
luasdk\$(VERSION_LUASDK)\$(BITPREFIX)$(DIRBIT)\lpeg.dll \

LINK_OBJS = \
$(INTDIR)\bit64.obj \
Expand All @@ -35,7 +36,7 @@ $(INTDIR)\ustring.obj \
$(INTDIR)\util.obj \
$(INTDIR)\win.obj \

LINK_LIBS=$(LINK_LIBS) luasdk\$(BITPREFIX)$(DIRBIT)\lua51.lib
LINK_LIBS=$(LINK_LIBS) luasdk\$(VERSION_LUASDK)\$(BITPREFIX)$(DIRBIT)\lua51.lib

!include ..\makefile_vc_target_inc

Expand All @@ -51,10 +52,17 @@ $(LINK_OBJS): luafar\flags.c luafar\keysandcolors.c
@$(CC) $(CPPFLAGS) { $< }
!endif

luafar\flags.c: $(COMINC)\plugin.hpp luafar\makeflags.lua
luafar\flags.c: $(COMINC)\plugin.hpp luafar\makeflags.lua luasdk\$(VERSION_LUASDK)\$(BITPREFIX)$(DIRBIT)\lua51.dll
@echo generating flags.c
@$(LUA) luafar\makeflags.lua $(COMINC)\plugin.hpp > luafar\flags.c

luafar\keysandcolors.c: luafar\makefarkeys.lua $(COMINC)\farcolor.hpp $(FARDIR)\uuids.far.dialogs.hpp
luafar\keysandcolors.c: luafar\makefarkeys.lua $(COMINC)\farcolor.hpp $(FARDIR)\uuids.far.dialogs.hpp luasdk\$(VERSION_LUASDK)\$(BITPREFIX)$(DIRBIT)\lua51.dll
@echo generating keysandcolors.c
@$(LUA) luafar\makefarkeys.lua $(COMINC)\farcolor.hpp $(FARDIR)\uuids.far.dialogs.hpp $@

$(LUA): luasdk\$(VERSION_LUASDK)\$(BITPREFIX)$(DIRBIT)\lua51.dll
luasdk\$(VERSION_LUASDK)\$(BITPREFIX)$(DIRBIT)\lua51.lib: luasdk\$(VERSION_LUASDK)\$(BITPREFIX)$(DIRBIT)\lua51.dll
luasdk\$(VERSION_LUASDK)\$(BITPREFIX)$(DIRBIT)\lpeg.dll: luasdk\$(VERSION_LUASDK)\$(BITPREFIX)$(DIRBIT)\lua51.dll
luasdk\$(VERSION_LUASDK)\$(BITPREFIX)$(DIRBIT)\lua51.dll:
@echo Downloading Lua binaries
powershell -c "Invoke-WebRequest -Uri 'https://farmanager.com/LuaSDK-$(VERSION_LUASDK).zip' -OutFile 'luasdk\LuaSDK-$(VERSION_LUASDK).zip'; Expand-Archive luasdk\LuaSDK-$(VERSION_LUASDK).zip -DestinationPath luasdk\$(VERSION_LUASDK)
5 changes: 3 additions & 2 deletions plugins/luamacro/makefile_vc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
NAME=LuaMacro
VERSION_LUASDK=20240301
USERCPP=/Iluasdk/include /DEXPORT_OPEN /DEXPORT_CONFIGURE \
/DEXPORT_PROCESSEDITOREVENT /DEXPORT_PROCESSVIEWEREVENT \
/DEXPORT_PROCESSDIALOGEVENT /DEXPORT_PROCESSEDITORINPUT /DEXPORT_PROCESSCONSOLEINPUT \
Expand Down Expand Up @@ -27,7 +28,7 @@ ALL: lualib lualegacy

LINK_OBJS = $(INTDIR)\luaplug.obj

LINK_LIBS=$(LINK_LIBS) luasdk\$(DIRBIT)\lua51.lib $(LUALIB)
LINK_LIBS=$(LINK_LIBS) luasdk\$(VERSION_LUASDK)\$(DIRBIT)\lua51.lib $(LUALIB)

!include ..\makefile_vc_target_inc

Expand All @@ -51,7 +52,7 @@ lualib:
lualegacy:
!if "$(DIRBIT)" == "32"
@if not exist $(FAR_WORKDIR)\Legacy\$(NULL) mkdir $(FAR_WORKDIR)\Legacy
@copy /y luasdk\32\legacy\lua51.dll $(FAR_WORKDIR)\Legacy 1>nul
@copy /y luasdk\$(VERSION_LUASDK)\32\legacy\lua51.dll $(FAR_WORKDIR)\Legacy 1>nul
!else
@echo >nul
!endif

0 comments on commit 5cd91f7

Please sign in to comment.