bmx-ng / bmk

The enhanced BlitzMax build program.
zlib License
28 stars 13 forks source link

Add command "resetmods" to clean precompilates #98

Open GWRon opened 4 years ago

GWRon commented 4 years ago
./bmk resetmods -v audio

results in

  Resetting audio.modloader
  Deleting /BlitzMaxNG/mod/audio.mod/modloader.mod/.bmx
  Deleting /BlitzMaxNG/mod/audio.mod/modloader.mod/modloader.release.linux.x64.i
  Deleting /BlitzMaxNG/mod/audio.mod/modloader.mod/modloader.release.linux.x64.i2
  Deleting /BlitzMaxNG/mod/audio.mod/modloader.mod/modloader.debug.linux.x64.a
  Deleting /BlitzMaxNG/mod/audio.mod/modloader.mod/modloader.debug.linux.x64.i
  Deleting /BlitzMaxNG/mod/audio.mod/modloader.mod/modloader.release.linux.x64.a
  Deleting /BlitzMaxNG/mod/audio.mod/modloader.mod/modloader.debug.linux.x64.i2
  Resetting audio.soloudaudio
  Deleting /BlitzMaxNG/mod/audio.mod/soloudaudio.mod/.bmx
  Deleting /BlitzMaxNG/mod/audio.mod/soloudaudio.mod/soloudaudio.debug.linux.x64.i2
  Deleting /BlitzMaxNG/mod/audio.mod/soloudaudio.mod/soloudaudio.debug.linux.x64.i
  Deleting /BlitzMaxNG/mod/audio.mod/soloudaudio.mod/soloudaudio.release.linux.x64.i2
  Deleting /BlitzMaxNG/mod/audio.mod/soloudaudio.mod/soloudaudio.release.linux.x64.a
  Deleting /BlitzMaxNG/mod/audio.mod/soloudaudio.mod/soloudaudio.debug.linux.x64.a
  Deleting /BlitzMaxNG/mod/audio.mod/soloudaudio.mod/soloudaudio.release.linux.x64.i
  Resetting audio.soloudaudiosdl
  Deleting /BlitzMaxNG/mod/audio.mod/soloudaudiosdl.mod/.bmx
  Deleting /BlitzMaxNG/mod/audio.mod/soloudaudiosdl.mod/soloudaudiosdl.release.linux.x64.i2
  Deleting /BlitzMaxNG/mod/audio.mod/soloudaudiosdl.mod/soloudaudiosdl.debug.linux.x64.a
  Deleting /BlitzMaxNG/mod/audio.mod/soloudaudiosdl.mod/soloudaudiosdl.debug.linux.x64.i
  Deleting /BlitzMaxNG/mod/audio.mod/soloudaudiosdl.mod/soloudaudiosdl.debug.linux.x64.i2
  Deleting /BlitzMaxNG/mod/audio.mod/soloudaudiosdl.mod/soloudaudiosdl.release.linux.x64.a
  Deleting /BlitzMaxNG/mod/audio.mod/soloudaudiosdl.mod/soloudaudiosdl.release.linux.x64.i
  Resetting audio.soloudsdl
  Deleting /BlitzMaxNG/mod/audio.mod/soloudsdl.mod/.bmx
  Deleting /BlitzMaxNG/mod/audio.mod/soloudsdl.mod/soloudsdl.release.linux.x64.i
  Deleting /BlitzMaxNG/mod/audio.mod/soloudsdl.mod/soloudsdl.debug.linux.x64.i
  Deleting /BlitzMaxNG/mod/audio.mod/soloudsdl.mod/soloudsdl.release.linux.x64.i2
  Deleting /BlitzMaxNG/mod/audio.mod/soloudsdl.mod/soloudsdl.debug.linux.x64.i2
  Deleting /BlitzMaxNG/mod/audio.mod/soloudsdl.mod/soloudsdl.debug.linux.x64.a
  Deleting /BlitzMaxNG/mod/audio.mod/soloudsdl.mod/soloudsdl.release.linux.x64.a
  Resetting audio.soloud
  Deleting /BlitzMaxNG/mod/audio.mod/soloud.mod/.bmx
  Deleting /BlitzMaxNG/mod/audio.mod/soloud.mod/soloud/src/filter/.bmx
  Deleting /BlitzMaxNG/mod/audio.mod/soloud.mod/soloud/src/core/.bmx
  Deleting /BlitzMaxNG/mod/audio.mod/soloud.mod/soloud/src/audiosource/ay/.bmx
  Deleting /BlitzMaxNG/mod/audio.mod/soloud.mod/soloud/src/audiosource/speech/.bmx
  Deleting /BlitzMaxNG/mod/audio.mod/soloud.mod/soloud/src/audiosource/tedsid/.bmx
  Deleting /BlitzMaxNG/mod/audio.mod/soloud.mod/soloud/src/audiosource/monotone/.bmx
  Deleting /BlitzMaxNG/mod/audio.mod/soloud.mod/soloud/src/audiosource/wav/.bmx
  Deleting /BlitzMaxNG/mod/audio.mod/soloud.mod/soloud/src/audiosource/vic/.bmx
  Deleting /BlitzMaxNG/mod/audio.mod/soloud.mod/soloud/src/audiosource/noise/.bmx
  Deleting /BlitzMaxNG/mod/audio.mod/soloud.mod/soloud/src/audiosource/vizsn/.bmx
  Deleting /BlitzMaxNG/mod/audio.mod/soloud.mod/soloud/src/audiosource/openmpt/.bmx
  Deleting /BlitzMaxNG/mod/audio.mod/soloud.mod/soloud/src/audiosource/sfxr/.bmx
  Deleting /BlitzMaxNG/mod/audio.mod/soloud.mod/soloud/src/c_api/.bmx
  Deleting /BlitzMaxNG/mod/audio.mod/soloud.mod/soloud/src/backend/jack/.bmx
  Deleting /BlitzMaxNG/mod/audio.mod/soloud.mod/soloud/src/backend/nosound/.bmx
  Deleting /BlitzMaxNG/mod/audio.mod/soloud.mod/soloud/src/backend/wasapi/.bmx
  Deleting /BlitzMaxNG/mod/audio.mod/soloud.mod/soloud/src/backend/portaudio/.bmx
  Deleting /BlitzMaxNG/mod/audio.mod/soloud.mod/soloud/src/backend/alsa/.bmx
  Deleting /BlitzMaxNG/mod/audio.mod/soloud.mod/soloud/src/backend/miniaudio/.bmx
  Deleting /BlitzMaxNG/mod/audio.mod/soloud.mod/soloud/src/backend/null/.bmx
  Deleting /BlitzMaxNG/mod/audio.mod/soloud.mod/soloud/src/backend/coreaudio/.bmx
  Deleting /BlitzMaxNG/mod/audio.mod/soloud.mod/soloud/src/backend/winmm/.bmx
  Deleting /BlitzMaxNG/mod/audio.mod/soloud.mod/soloud/src/backend/openal/.bmx
  Deleting /BlitzMaxNG/mod/audio.mod/soloud.mod/soloud/src/backend/sdl2_static/.bmx
  Deleting /BlitzMaxNG/mod/audio.mod/soloud.mod/soloud.release.linux.x64.a
  Deleting /BlitzMaxNG/mod/audio.mod/soloud.mod/soloud.debug.linux.x64.i
  Deleting /BlitzMaxNG/mod/audio.mod/soloud.mod/soloud.debug.linux.x64.a
  Deleting /BlitzMaxNG/mod/audio.mod/soloud.mod/soloud.release.linux.x64.i
  Deleting /BlitzMaxNG/mod/audio.mod/soloud.mod/soloud.release.linux.x64.i2
  Deleting /BlitzMaxNG/mod/audio.mod/soloud.mod/soloud.debug.linux.x64.i2
  Resetting audio.libopenmpt
  Deleting /BlitzMaxNG/mod/audio.mod/libopenmpt.mod/.bmx
  Deleting /BlitzMaxNG/mod/audio.mod/libopenmpt.mod/openmpt/common/.bmx
  Deleting /BlitzMaxNG/mod/audio.mod/libopenmpt.mod/openmpt/soundlib/.bmx
  Deleting /BlitzMaxNG/mod/audio.mod/libopenmpt.mod/openmpt/soundlib/plugins/.bmx
  Deleting /BlitzMaxNG/mod/audio.mod/libopenmpt.mod/openmpt/soundlib/plugins/dmo/.bmx
  Deleting /BlitzMaxNG/mod/audio.mod/libopenmpt.mod/openmpt/libopenmpt/.bmx
  Deleting /BlitzMaxNG/mod/audio.mod/libopenmpt.mod/openmpt/sounddsp/.bmx
  Deleting /BlitzMaxNG/mod/audio.mod/libopenmpt.mod/libopenmpt.debug.linux.x64.i
  Deleting /BlitzMaxNG/mod/audio.mod/libopenmpt.mod/libopenmpt.debug.linux.x64.a
  Deleting /BlitzMaxNG/mod/audio.mod/libopenmpt.mod/libopenmpt.release.linux.x64.a
  Deleting /BlitzMaxNG/mod/audio.mod/libopenmpt.mod/libopenmpt.release.linux.x64.i
  Deleting /BlitzMaxNG/mod/audio.mod/libopenmpt.mod/libopenmpt.release.linux.x64.i2
  Deleting /BlitzMaxNG/mod/audio.mod/libopenmpt.mod/libopenmpt.debug.linux.x64.i2
  Resetting audio.soloudminiaudio
  Deleting /BlitzMaxNG/mod/audio.mod/soloudminiaudio.mod/.bmx
  Deleting /BlitzMaxNG/mod/audio.mod/soloudminiaudio.mod/soloudminiaudio.release.linux.x64.i
  Deleting /BlitzMaxNG/mod/audio.mod/soloudminiaudio.mod/soloudminiaudio.release.linux.x64.i2
  Deleting /BlitzMaxNG/mod/audio.mod/soloudminiaudio.mod/soloudminiaudio.debug.linux.x64.a
  Deleting /BlitzMaxNG/mod/audio.mod/soloudminiaudio.mod/soloudminiaudio.debug.linux.x64.i2
  Deleting /BlitzMaxNG/mod/audio.mod/soloudminiaudio.mod/soloudminiaudio.debug.linux.x64.i
  Deleting /BlitzMaxNG/mod/audio.mod/soloudminiaudio.mod/soloudminiaudio.release.linux.x64.a
  Resetting audio.soloudaudiominiaudio
  Deleting /BlitzMaxNG/mod/audio.mod/soloudaudiominiaudio.mod/.bmx
  Deleting /BlitzMaxNG/mod/audio.mod/soloudaudiominiaudio.mod/soloudaudiominiaudio.debug.linux.x64.i2
  Deleting /BlitzMaxNG/mod/audio.mod/soloudaudiominiaudio.mod/soloudaudiominiaudio.release.linux.x64.i2
  Deleting /BlitzMaxNG/mod/audio.mod/soloudaudiominiaudio.mod/soloudaudiominiaudio.debug.linux.x64.i
  Deleting /BlitzMaxNG/mod/audio.mod/soloudaudiominiaudio.mod/soloudaudiominiaudio.release.linux.x64.a
  Deleting /BlitzMaxNG/mod/audio.mod/soloudaudiominiaudio.mod/soloudaudiominiaudio.debug.linux.x64.a
  Deleting /BlitzMaxNG/mod/audio.mod/soloudaudiominiaudio.mod/soloudaudiominiaudio.release.linux.x64.i
GWRon commented 2 years ago

Little bump ... think it is a lightweight change but nifty cleanup feature

GWRon commented 2 weeks ago

I bump this again ...

I still use this feature at least once a month ... it is super useful to avoid rebuilding a lot of modules (which eg have dependencies to modules you are changing). For now your only way to enforce recompiling some modules is to do a manual "rebuild" of these modules. But this requires you to know which module is affected.

With the "resetmods" parameter I simply clean "brl" or all or whatever modules I think are affected. When then doing a build bmk will autocompile all required modules. Which most of the time is way less than "rebuilding everything" (rebuild modules).

Also "resetmods" helps to shrink package size when transporting a specific "setup" to a new OS (eg copy your "mods folder" from Linux to Windows - no need to copy the linux prebuilds).