Subversion Repositories Kolibri OS

Rev

Rev 5502 | Rev 5647 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
5098 clevermous 1
-- Do nothing unless explicitly requested in tup.config.
2
build_type = tup.getconfig('BUILD_TYPE')
3
if build_type == "" then
4
  return
5
end
6
 
7
--[================================[ DATA ]================================]--
8
 
9
PROGS = "../programs"
10
 
11
-- Static data that doesn't need to be compiled
12
-- Files to be included in kolibri.img.
13
-- The first subitem of every item is name inside kolibri.img, the second is name of local file.
14
img_files = {
15
 {"MACROS.INC", PROGS .. "/macros.inc"},
16
 {"CONFIG.INC", PROGS .. "/config.inc"},
17
 {"STRUCT.INC", PROGS .. "/struct.inc"},
18
 {"DEVELOP/TE_ICON.PNG", PROGS .. "/other/t_edit/te_icon.png"},
19
 {"DEVELOP/TL_NOD_16.PNG", PROGS .. "/other/t_edit/tl_nod_16.png"},
20
 {"DEVELOP/TL_SYS_16.PNG", PROGS .. "/media/log_el/trunk/tl_sys_16.png"},
21
 {"DEVELOP/T_EDIT.INI", PROGS .. "/other/t_edit/t_edit.ini"},
22
 {"File Managers/Z_ICONS.PNG", PROGS .. "/fs/opendial/z_icons.png"},
23
 {"File Managers/BUTTONS.BMP", PROGS .. "/fs/kfm/trunk/buttons.bmp"},
24
 {"File Managers/ICONS.BMP", PROGS .. "/fs/kfm/trunk/icons.bmp"},
25
 {"FONTS/LITT.CHR", PROGS .. "/demos/bgitest/trunk/FONTS/LITT.CHR"},
26
 {"GAMES/SNAKE.INI", PROGS .. "/games/snake/trunk/snake.ini"},
27
 {"MEDIA/KIV.INI", PROGS .. "/media/kiv/trunk/kiv.ini"},
5468 leency 28
 {"MEDIA/PIXIE/PIXIE.INI", PROGS .. "/cmm/pixie/pixie.ini"},
29
 {"MEDIA/PIXIE/S_DARK.PNG", PROGS .. "/cmm/pixie/s_dark.png"},
30
 {"MEDIA/PIXIE/S_LIGHT.PNG", PROGS .. "/cmm/pixie/s_light.png"},
31
 {"MEDIA/PIXIE/MINIMP3", PROGS .. "/cmm/pixie/minimp3"},
5098 clevermous 32
 {"NETWORK/WV_SKIN.PNG", PROGS .. "/cmm/browser/wv_skin.png"},
33
 {"SETTINGS/AUTORUN.DAT", build_type .. "/settings/autorun.dat"},
34
 {"DEFAULT.SKN", build_type .. "/default.skn"},
35
 {"SETTINGS/ICON.INI", build_type .. "/settings/icon.ini"},
5425 leency 36
 {"ICONS32.PNG", "common/icons32.png"},
5098 clevermous 37
 {"INDEX.HTM", build_type .. "/index_htm"},
38
 {"KERPACK", "common/kerpack"},
39
 {"SETTINGS/KEYMAP.KEY", build_type .. "/settings/keymap.key"},
40
 {"SETTINGS/LANG.INI", build_type .. "/settings/lang.ini"},
41
 {"KUZKINA.MID", "common/kuzkina.mid"},
42
 {"LANG.INC", build_type .. "/lang.inc"},
43
 {"SETTINGS/MENU.DAT", build_type .. "/settings/menu.dat"},
44
 {"SETTINGS/KOLIBRI.LBL", build_type .. "/settings/kolibri.lbl"},
5453 leency 45
 {"SETTINGS/TASKBAR.INI", build_type .. "/settings/taskbar.ini"},
5098 clevermous 46
 {"SETTINGS/DOCKY.INI", "common/settings/docky.ini"},
5394 eAndrew 47
 {"SETTINGS/ASSOC.INI", "common/settings/assoc.ini"},
5429 leency 48
 {"SETTINGS/SYSTEM_PANEL.INI", "common/settings/system_panel.ini"},
5098 clevermous 49
 {"NOTIFY3.PNG", "common/notify3.png"},
50
 {"SETTINGS/SETUP.DAT", build_type .. "/settings/setup.dat"},
51
 {"VMODE", "common/vmode"},
52
 {"3D/HOUSE.3DS", "common/3d/house.3ds"},
53
 {"DEMOS/AK47.LIF", "common/demos/ak47.lif"},
54
 {"DEMOS/LIFE2", "common/demos/life2"},
55
 {"DEMOS/RELAY.LIF", "common/demos/relay.lif"},
56
 {"DEMOS/RPENTO.LIF", "common/demos/rpento.lif"},
57
 {"File Managers/EOLITE.INI", "common/File Managers/eolite.ini"},
58
 {"File Managers/ICONS.INI", "common/File Managers/icons.ini"},
59
 {"File Managers/KFM.INI", "common/File Managers/kfm.ini"},
60
 {"GAMES/MEGAMAZE", build_type .. "/games/megamaze"},
61
 {"LIB/PIXLIB.OBJ", "common/lib/pixlib.obj"},
62
 {"LIB/ICONV.OBJ", "common/lib/iconv.obj"},
63
 {"LIB/NETCODE.OBJ", "common/lib/netcode.obj"},
64
 {"MEDIA/ImgF/ImgF", "common/media/ImgF/ImgF"},
65
 {"MEDIA/ImgF/cEdg.obj", "common/media/ImgF/cEdg.obj"},
66
 {"MEDIA/ImgF/dither.obj", "common/media/ImgF/dither.obj"},
67
 {"MEDIA/ImgF/invSol.obj", "common/media/ImgF/invSol.obj"},
68
 {"SETTINGS/NETWORK.INI", build_type .. "/settings/network.ini"},
69
 {"NETWORK/FTPD.INI", "common/network/ftpd.ini"},
70
 {"NETWORK/USERS.INI", "common/network/users.ini"},
71
}
72
-- For russian build, add russian-only files.
73
if build_type == "rus" then tup.append_table(img_files, {
74
 {"File Managers/KFM_KEYS.TXT", PROGS .. "/fs/kfm/trunk/docs/russian/dos_kolibri/kfm_keys.txt"},
75
 {"SETTINGS/.shell", PROGS .. "/system/shell/bin/rus/.shell"},
5502 punk_joker 76
 {"SETTINGS/GAME_CENTER.INI", "rus/settings/game_center.ini"},
5098 clevermous 77
 {"SETTINGS/MYKEY.INI", PROGS .. "/system/MyKey/trunk/mykey.ini"},
78
 {"EXAMPLE.ASM", PROGS .. "/develop/examples/example/trunk/rus/example.asm"},
79
 {"PIPETKA", build_type .. "/pipetka"},
80
 {"File Managers/KFAR.INI", build_type .. "/File Managers/kfar.ini"},
81
 {"GAMES/APPDATA.DAT", build_type .. "/games/appdata.dat"},
82
 {"GAMES/ATAKA", build_type .. "/games/ataka"},
83
 {"GAMES/BASEKURS.KLA", build_type .. "/games/basekurs.kla"},
84
 {"GAMES/PADENIE", build_type .. "/games/padenie"},
85
 {"GAMES/WHOWTBAM", build_type .. "/games/whowtbam"},
86
}) else tup.append_table(img_files, {
87
 {"File Managers/KFM_KEYS.TXT", PROGS .. "/fs/kfm/trunk/docs/english/kfm_keys.txt"},
5502 punk_joker 88
 {"SETTINGS/GAME_CENTER.INI", "common/settings/game_center.ini"},
5098 clevermous 89
 {"GAMES/SKIN.RAW", PROGS .. "/games/soko/trunk/SKIN.RAW"},
90
 {"GAMES/SOKO-4.LEV", PROGS .. "/games/soko/trunk/SOKO-4.LEV"},
91
 {"GAMES/SOKO-5.LEV", PROGS .. "/games/soko/trunk/SOKO-5.LEV"},
92
 {"GAMES/SOKO-6.LEV", PROGS .. "/games/soko/trunk/SOKO-6.LEV"},
93
 {"GAMES/SOKO-7.LEV", PROGS .. "/games/soko/trunk/SOKO-7.LEV"},
94
 {"GAMES/SOKO-8.LEV", PROGS .. "/games/soko/trunk/SOKO-8.LEV"},
95
 {"GAMES/SOKO-9.LEV", PROGS .. "/games/soko/trunk/SOKO-9.LEV"},
96
 {"SETTINGS/.shell", PROGS .. "/system/shell/bin/eng/.shell"},
97
 {"EXAMPLE.ASM", PROGS .. "/develop/examples/example/trunk/example.asm"},
98
 {"File Managers/KFAR.INI", "common/File Managers/kfar.ini"},
99
}) end
100
if build_type == "it" then tup.append_table(img_files, {
101
 {"SETTINGS/MYKEY.INI", PROGS .. "/system/MyKey/trunk/mykey_it.ini"},
102
}) else tup.append_table(img_files, {
103
 {"SETTINGS/MYKEY.INI", PROGS .. "/system/MyKey/trunk/mykey.ini"},
104
}) end
105
 
106
--[[
107
Files to be included in kolibri.iso and distribution kit outside of kolibri.img.
5132 clevermous 108
 
5098 clevermous 109
The first subitem of every item is name relative to the root of ISO or distribution kit,
110
the second is name of local file.
5132 clevermous 111
 
5098 clevermous 112
If the first subitem ends in /, the last component of local file name is appended.
113
The last component of the second subitem may contain '*'; if so, it will be expanded
114
according to usual rules, but without matching directories.
5132 clevermous 115
 
116
Tup does not allow a direct dependency on a file that is generated in a directory
117
other than where Tupfile.lua is and its children. Most files are generated
118
in the directory with Tupfile.lua; for other files, the item should contain
119
a named subitem "group=path/" and the file should be put in .
5098 clevermous 120
--]]
121
extra_files = {
122
 {"/", build_type .. "/distr_data/autorun.inf"},
123
 {"/", build_type .. "/distr_data/KolibriOS_icon.ico"},
124
 {"/", build_type .. "/settings/kolibri.lbl"},
125
 {"Skins/", "../skins/authors.txt"},
126
 {"Docs/stack.txt", build_type .. "/docs/STACK.TXT"},
127
 {"HD_Load/9x2klbr/", "common/HD_load/9x2klbr/LDKLBR.VXD"},
128
 {"HD_Load/MeOSLoad/", PROGS .. "/hd_load/meosload/AUTOEXEC.BAT"},
129
 {"HD_Load/MeOSLoad/", PROGS .. "/hd_load/meosload/CONFIG.SYS"},
130
 {"HD_Load/MeOSLoad/", PROGS .. "/hd_load/meosload/L_readme.txt"},
131
 {"HD_Load/MeOSLoad/", PROGS .. "/hd_load/meosload/L_readme_Win.txt"},
132
 {"HD_Load/mtldr/", PROGS .. "/hd_load/mtldr/vista_install.bat"},
133
 {"HD_Load/mtldr/", PROGS .. "/hd_load/mtldr/vista_remove.bat"},
134
 {"HD_Load/", "common/HD_load/memdisk"},
135
 {"HD_Load/USB_boot_old/", PROGS .. "/hd_load/usb_boot_old/usb_boot.rtf"},
136
 {"HD_Load/USB_boot_old/", PROGS .. "/hd_load/usb_boot_old/usb_boot_866.txt"},
137
 {"HD_Load/USB_boot_old/", PROGS .. "/hd_load/usb_boot_old/usb_boot_1251.txt"},
138
 {"kolibrios/emul/dosbox/", "common/emul/DosBox/*"},
139
 {"kolibrios/emul/fceu/", "common/emul/fceu/*"},
140
 {"kolibrios/emul/", "common/emul/gameboy"},
141
 {"kolibrios/emul/", "common/emul/scummvm"},
142
 {"kolibrios/emul/", "common/emul/zsnes"},
5500 punk_joker 143
 {"kolibrios/games/pig/", "common/games/pig/*"},
144
 {"kolibrios/games/soko/soko", build_type .. "/games/soko"},
145
 {"kolibrios/games/soko/", "common/games/soko/*"},
5098 clevermous 146
 {"kolibrios/games/doom/", "common/games/doom/*"},
147
 {"kolibrios/games/fara/fara.gfx", "common/games/fara.gfx"},
5296 ZblCoder 148
 {"kolibrios/games/LaserTank/", "common/games/LaserTank/*"},
5098 clevermous 149
 {"kolibrios/games/jumpbump/", "common/games/jumpbump/*"},
150
 {"kolibrios/games/lrl/", "common/games/lrl/*"},
5379 serge 151
 {"kolibrios/drivers/", "common/drivers/*"},
5098 clevermous 152
 {"kolibrios/lib/avcodec-55.dll", "common/lib/avcodec-55.dll"},
153
 {"kolibrios/lib/avdevice-55.dll", "common/lib/avdevice-55.dll"},
154
 {"kolibrios/lib/avformat-55.dll", "common/lib/avformat-55.dll"},
155
 {"kolibrios/lib/avutil-52.dll", "common/lib/avutil-52.dll"},
156
 {"kolibrios/lib/freetype.dll", "common/lib/freetype.dll"},
5378 serge 157
 {"kolibrios/lib/i965-video.dll", "common/lib/i965-video.dll"},
158
 {"kolibrios/lib/libdrm.dll", "common/lib/libdrm.dll"},
159
 {"kolibrios/lib/libegl.dll", "common/lib/libegl.dll"},
160
 {"kolibrios/lib/libGL.dll", "common/lib/libGL.dll"},
161
 {"kolibrios/lib/libva.dll", "common/lib/libva.dll"},
162
 {"kolibrios/lib/libz.dll", "common/lib/libz.dll"},
5132 clevermous 163
 {"kolibrios/lib/libc.dll", "../contrib/sdk/bin/libc.dll", group = "../contrib/sdk/lib/"},
5378 serge 164
 {"kolibrios/lib/pixlib-gl.dll", "common/lib/pixlib-gl.dll"},
5098 clevermous 165
 {"kolibrios/lib/swresample-0.dll", "common/lib/swresample-0.dll"},
5378 serge 166
 {"kolibrios/lib/i915_dri.drv", "common/lib/i915_dri.drv"},
167
 {"kolibrios/lib/i965_dri.drv", "common/lib/i965_dri.drv"},
168
 {"kolibrios/media/fplay", "common/media/fplay"},
5098 clevermous 169
 {"kolibrios/media/zsea/zsea.ini", PROGS .. "/media/zsea/zSea.ini"},
170
 {"kolibrios/media/zsea/buttons/buttons.png", PROGS .. "/media/zsea/buttons.png"},
171
}
172
if build_type == "rus" then tup.append_table(extra_files, {
173
 {"Docs/cp866/config.txt", build_type .. "/docs/CONFIG.TXT"},
174
 {"Docs/cp866/gnu.txt", build_type .. "/docs/GNU.TXT"},
175
 {"Docs/cp866/history.txt", build_type .. "/docs/HISTORY.TXT"},
176
 {"Docs/cp866/hot_keys.txt", build_type .. "/docs/HOT_KEYS.TXT"},
177
 {"Docs/cp866/install.txt", build_type .. "/docs/INSTALL.TXT"},
178
 {"Docs/cp866/readme.txt", build_type .. "/docs/README.TXT"},
179
 {"Docs/cp866/sysfuncr.txt", PROGS .. "/system/docpack/trunk/SYSFUNCR.TXT"},
180
 {"Docs/cp1251/config.txt", build_type .. "/docs/CONFIG.WIN.TXT", cp1251_from = build_type .. "/docs/CONFIG.TXT"},
181
 {"Docs/cp1251/gnu.txt", build_type .. "/docs/GNU.WIN.TXT", cp1251_from = build_type .. "/docs/GNU.TXT"},
182
 {"Docs/cp1251/history.txt", build_type .. "/docs/HISTORY.WIN.TXT", cp1251_from = build_type .. "/docs/HISTORY.TXT"},
183
 {"Docs/cp1251/hot_keys.txt", build_type .. "/docs/HOT_KEYS.WIN.TXT", cp1251_from = build_type .. "/docs/HOT_KEYS.TXT"},
184
 {"Docs/cp1251/install.txt", build_type .. "/docs/INSTALL.WIN.TXT", cp1251_from = build_type .. "/docs/INSTALL.TXT"},
185
 {"Docs/cp1251/readme.txt", build_type .. "/docs/README.WIN.TXT", cp1251_from = build_type .. "/docs/README.TXT"},
186
 {"Docs/cp1251/sysfuncr.txt", build_type .. "/docs/SYSFUNCR.WIN.TXT", cp1251_from = PROGS .. "/system/docpack/trunk/SYSFUNCR.TXT"},
5471 leency 187
 {"HD_Load/9x2klbr/", PROGS .. "/hd_load/9x2klbr/readme_dos.txt"},
5098 clevermous 188
 {"HD_Load/9x2klbr/", PROGS .. "/hd_load/9x2klbr/readme_win.txt"},
189
 {"HD_Load/mtldr/", PROGS .. "/hd_load/mtldr/install.txt"},
190
 {"HD_Load/USB_Boot/", PROGS .. "/hd_load/usb_boot/readme.txt"},
191
 {"kolibrios/media/zsea/zsea_keys.txt", PROGS .. "/media/zsea/Docs/zSea_keys_rus.txt"},
5334 Anton_K 192
 {"kolibrios/games/Dungeons/Resources/Textures/Environment/", PROGS .. "/games/Dungeons/Resources/Textures/Environment/*"},
193
 {"kolibrios/games/Dungeons/Resources/Textures/Objects/", PROGS .. "/games/Dungeons/Resources/Textures/Objects/*"},
194
 {"kolibrios/games/Dungeons/Resources/Textures/HUD/", PROGS .. "/games/Dungeons/Resources/Textures/HUD/*"},
195
 {"kolibrios/games/Dungeons/Resources/Textures/", PROGS .. "/games/Dungeons/Resources/Textures/Licenses.txt"},
196
 {"kolibrios/games/Dungeons/", PROGS .. "/games/Dungeons/readme_ru.txt"},
5098 clevermous 197
}) else tup.append_table(extra_files, {
198
 {"Docs/config.txt", build_type .. "/docs/CONFIG.TXT"},
199
 {"Docs/copying.txt", build_type .. "/docs/COPYING.TXT"},
200
 {"Docs/hot_keys.txt", build_type .. "/docs/HOT_KEYS.TXT"},
201
 {"Docs/install.txt", build_type .. "/docs/INSTALL.TXT"},
202
 {"Docs/readme.txt", build_type .. "/docs/README.TXT"},
203
 {"Docs/sysfuncs.txt", PROGS .. "/system/docpack/trunk/SYSFUNCS.TXT"},
204
 {"HD_Load/9x2klbr/", PROGS .. "/hd_load/9x2klbr/readme.txt"},
205
 {"HD_Load/mtldr/install.txt", PROGS .. "/hd_load/mtldr/install_eng.txt"},
206
 {"HD_Load/USB_Boot/readme.txt", PROGS .. "/hd_load/usb_boot/readme_eng.txt"},
207
 {"kolibrios/media/zsea/zsea_keys.txt", PROGS .. "/media/zsea/Docs/zSea_keys_eng.txt"},
208
}) end
209
--[[
210
Files to be included in distribution kit outside of kolibri.img, but not kolibri.iso.
211
Same syntax as extra_files.
212
]]--
213
if build_type == "rus" then
214
distr_extra_files = {
215
 {"/readme_dos.txt", build_type .. "/distr_data/readme_dos_distr.txt"},
216
 {"/readme.txt", build_type .. "/distr_data/readme_distr.txt", cp1251_from = build_type .. "/distr_data/readme_dos_distr.txt"},