Generate separate install packages for Doom, Heretic, Hexen.
Subversion-branch: /branches/raven-branch Subversion-revision: 1611
This commit is contained in:
parent
d06dcf9167
commit
d03dd75b5c
6 changed files with 115 additions and 30 deletions
|
|
@ -1,10 +1,30 @@
|
|||
|
||||
DEPS=$(shell ./wince-cabgen -d $(CONFIG_FILE))
|
||||
CONFIG_FILE=wince-cab.cfg
|
||||
OUTPUT_FILE=@PACKAGE_TARNAME@-@PACKAGE_VERSION@.cab
|
||||
# Doom:
|
||||
|
||||
noinst_DATA = $(OUTPUT_FILE)
|
||||
DOOM_CAB=chocolate-doom-@PACKAGE_VERSION@.cab
|
||||
DOOM_CFG=doom-cab.cfg
|
||||
DOOM_DEPS=$(shell ./wince-cabgen -d $(DOOM_CFG))
|
||||
|
||||
$(OUTPUT_FILE) : $(CONFIG_FILE) $(DEPS)
|
||||
$(DOOM_CAB) : $(DOOM_CFG) $(DOOM_DEPS)
|
||||
./wince-cabgen $< $@
|
||||
|
||||
# Heretic:
|
||||
|
||||
HERETIC_CAB=chocolate-heretic-@PACKAGE_VERSION@.cab
|
||||
HERETIC_CFG=heretic-cab.cfg
|
||||
HERETIC_DEPS=$(shell ./wince-cabgen -d $(HERETIC_CFG))
|
||||
|
||||
$(HERETIC_CAB) : $(HERETIC_CFG) $(HERETIC_DEPS)
|
||||
./wince-cabgen $< $@
|
||||
|
||||
# Hexen:
|
||||
|
||||
HEXEN_CAB=chocolate-hexen-@PACKAGE_VERSION@.cab
|
||||
HEXEN_CFG=hexen-cab.cfg
|
||||
HEXEN_DEPS=$(shell ./wince-cabgen -d $(HEXEN_CFG))
|
||||
|
||||
$(HEXEN_CAB) : $(HEXEN_CFG) $(HEXEN_DEPS)
|
||||
./wince-cabgen $< $@
|
||||
|
||||
noinst_DATA = $(DOOM_CAB) $(HERETIC_CAB) $(HEXEN_CAB)
|
||||
|
||||
|
|
|
|||
9
pkg/wince/common.py
Normal file
9
pkg/wince/common.py
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
|
||||
# SDL library files that need to be installed:
|
||||
|
||||
LIBRARIES = [ "SDL.dll", "SDL_mixer.dll", "libSDL_net-1-2-0.dll" ]
|
||||
|
||||
def add_libraries(dir, files):
|
||||
for lib in LIBRARIES:
|
||||
files[dir + lib] = lib
|
||||
|
||||
27
pkg/wince/doom-cab.cfg
Normal file
27
pkg/wince/doom-cab.cfg
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
|
||||
from common import *
|
||||
|
||||
app_name = "Chocolate Doom"
|
||||
provider = "Simon Howard"
|
||||
arch = "strongarm"
|
||||
|
||||
# Install files:
|
||||
|
||||
d = "$(PROGRAMS_GAMES)/Chocolate Doom/"
|
||||
s = "$(START_GAMES)/"
|
||||
src = "../../src/"
|
||||
|
||||
files = {
|
||||
d+"chocolate-doom.exe": src+"chocolate-doom.exe",
|
||||
d+"chocolate-setup.exe": src+"chocolate-setup.exe",
|
||||
}
|
||||
|
||||
add_libraries(d, files)
|
||||
|
||||
# Start menu links:
|
||||
|
||||
links = {
|
||||
s+"Chocolate Doom.lnk": d+"chocolate-doom.exe",
|
||||
s+"Chocolate Doom Setup.lnk": d+"chocolate-setup.exe"
|
||||
}
|
||||
|
||||
27
pkg/wince/heretic-cab.cfg
Normal file
27
pkg/wince/heretic-cab.cfg
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
|
||||
from common import *
|
||||
|
||||
app_name = "Chocolate Heretic"
|
||||
provider = "Simon Howard"
|
||||
arch = "strongarm"
|
||||
|
||||
# Install files:
|
||||
|
||||
d = "$(PROGRAMS_GAMES)/Chocolate Heretic/"
|
||||
s = "$(START_GAMES)/"
|
||||
src = "../../src/"
|
||||
|
||||
files = {
|
||||
d+"chocolate-heretic.exe": src+"chocolate-heretic.exe",
|
||||
d+"chocolate-setup.exe": src+"chocolate-setup.exe",
|
||||
}
|
||||
|
||||
add_libraries(d, files)
|
||||
|
||||
# Start menu links:
|
||||
|
||||
links = {
|
||||
s+"Chocolate Heretic.lnk": d+"chocolate-heretic.exe",
|
||||
s+"Chocolate Heretic Setup.lnk": d+"chocolate-setup.exe"
|
||||
}
|
||||
|
||||
27
pkg/wince/hexen-cab.cfg
Normal file
27
pkg/wince/hexen-cab.cfg
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
|
||||
from common import *
|
||||
|
||||
app_name = "Chocolate Hexen"
|
||||
provider = "Simon Howard"
|
||||
arch = "strongarm"
|
||||
|
||||
# Install files:
|
||||
|
||||
d = "$(PROGRAMS_GAMES)/Chocolate Hexen/"
|
||||
s = "$(START_GAMES)/"
|
||||
src = "../../src/"
|
||||
|
||||
files = {
|
||||
d+"chocolate-hexen.exe": src+"chocolate-hexen.exe",
|
||||
d+"chocolate-setup.exe": src+"chocolate-setup.exe",
|
||||
}
|
||||
|
||||
add_libraries(d, files)
|
||||
|
||||
# Start menu links:
|
||||
|
||||
links = {
|
||||
s+"Chocolate Hexen.lnk": d+"chocolate-hexen.exe",
|
||||
s+"Chocolate Hexen Setup.lnk": d+"chocolate-setup.exe"
|
||||
}
|
||||
|
||||
|
|
@ -1,25 +0,0 @@
|
|||
|
||||
app_name = "Chocolate Doom"
|
||||
provider = "Simon Howard"
|
||||
arch = "strongarm"
|
||||
|
||||
# Install files:
|
||||
|
||||
d = "$(PROGRAMS_GAMES)/Chocolate Doom/"
|
||||
s = "$(START_GAMES)/"
|
||||
|
||||
files = {
|
||||
d+"chocolate-doom.exe": "../../src/chocolate-doom.exe",
|
||||
d+"chocolate-setup.exe": "../../setup/chocolate-setup.exe",
|
||||
d+"SDL.dll": "SDL.dll",
|
||||
d+"SDL_mixer.dll": "SDL_mixer.dll",
|
||||
d+"libSDL_net-1-2-0.dll": "libSDL_net-1-2-0.dll",
|
||||
}
|
||||
|
||||
# Start menu links:
|
||||
|
||||
links = {
|
||||
s+"Chocolate Doom.lnk": d+"chocolate-doom.exe",
|
||||
s+"Chocolate Doom Setup.lnk": d+"chocolate-setup.exe"
|
||||
}
|
||||
|
||||
Loading…
Reference in a new issue