Rev 5233 | Rev 5254 | 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"}, |
||
28 | {"NETWORK/WV_SKIN.PNG", PROGS .. "/cmm/browser/wv_skin.png"}, |
||
29 | {"SETTINGS/AUTORUN.DAT", build_type .. "/settings/autorun.dat"}, |
||
30 | {"DEFAULT.SKN", build_type .. "/default.skn"}, |
||
31 | {"SETTINGS/ICON.INI", build_type .. "/settings/icon.ini"}, |
||
32 | {"ICONSTRP.PNG", "common/iconstrp.png"}, |
||
33 | {"INDEX.HTM", build_type .. "/index_htm"}, |
||
34 | {"KERPACK", "common/kerpack"}, |
||
35 | {"SETTINGS/KEYMAP.KEY", build_type .. "/settings/keymap.key"}, |
||
36 | {"SETTINGS/LANG.INI", build_type .. "/settings/lang.ini"}, |
||
37 | {"KUZKINA.MID", "common/kuzkina.mid"}, |
||
38 | {"LANG.INC", build_type .. "/lang.inc"}, |
||
39 | {"SETTINGS/MENU.DAT", build_type .. "/settings/menu.dat"}, |
||
40 | {"SETTINGS/KOLIBRI.LBL", build_type .. "/settings/kolibri.lbl"}, |
||
41 | {"SETTINGS/PANEL.INI", build_type .. "/settings/panel.ini"}, |
||
42 | {"SETTINGS/DOCKY.INI", "common/settings/docky.ini"}, |
||
43 | {"NOTIFY3.PNG", "common/notify3.png"}, |
||
44 | {"SETTINGS/SETUP.DAT", build_type .. "/settings/setup.dat"}, |
||
45 | {"VMODE", "common/vmode"}, |
||
46 | {"3D/HOUSE.3DS", "common/3d/house.3ds"}, |
||
47 | {"DEMOS/AK47.LIF", "common/demos/ak47.lif"}, |
||
48 | {"DEMOS/LIFE2", "common/demos/life2"}, |
||
49 | {"DEMOS/RELAY.LIF", "common/demos/relay.lif"}, |
||
50 | {"DEMOS/RPENTO.LIF", "common/demos/rpento.lif"}, |
||
51 | {"File Managers/EOLITE.INI", "common/File Managers/eolite.ini"}, |
||
52 | {"File Managers/ICONS.INI", "common/File Managers/icons.ini"}, |
||
53 | {"File Managers/KFM.INI", "common/File Managers/kfm.ini"}, |
||
54 | {"GAMES/MEGAMAZE", build_type .. "/games/megamaze"}, |
||
55 | {"LIB/PIXLIB.OBJ", "common/lib/pixlib.obj"}, |
||
56 | {"LIB/ICONV.OBJ", "common/lib/iconv.obj"}, |
||
57 | {"LIB/NETCODE.OBJ", "common/lib/netcode.obj"}, |
||
58 | {"MEDIA/ImgF/ImgF", "common/media/ImgF/ImgF"}, |
||
59 | {"MEDIA/ImgF/cEdg.obj", "common/media/ImgF/cEdg.obj"}, |
||
60 | {"MEDIA/ImgF/dither.obj", "common/media/ImgF/dither.obj"}, |
||
61 | {"MEDIA/ImgF/invSol.obj", "common/media/ImgF/invSol.obj"}, |
||
62 | {"SETTINGS/NETWORK.INI", build_type .. "/settings/network.ini"}, |
||
63 | {"NETWORK/FTPD.INI", "common/network/ftpd.ini"}, |
||
64 | {"NETWORK/USERS.INI", "common/network/users.ini"}, |
||
65 | } |
||
66 | -- For russian build, add russian-only files. |
||
67 | if build_type == "rus" then tup.append_table(img_files, { |
||
68 | {"File Managers/KFM_KEYS.TXT", PROGS .. "/fs/kfm/trunk/docs/russian/dos_kolibri/kfm_keys.txt"}, |
||
69 | {"SETTINGS/.shell", PROGS .. "/system/shell/bin/rus/.shell"}, |
||
70 | {"SETTINGS/MYKEY.INI", PROGS .. "/system/MyKey/trunk/mykey.ini"}, |
||
71 | {"EXAMPLE.ASM", PROGS .. "/develop/examples/example/trunk/rus/example.asm"}, |
||
72 | {"PIPETKA", build_type .. "/pipetka"}, |
||
73 | {"File Managers/KFAR.INI", build_type .. "/File Managers/kfar.ini"}, |
||
74 | {"GAMES/APPDATA.DAT", build_type .. "/games/appdata.dat"}, |
||
75 | {"GAMES/ATAKA", build_type .. "/games/ataka"}, |
||
76 | {"GAMES/BASEKURS.KLA", build_type .. "/games/basekurs.kla"}, |
||
77 | {"GAMES/PADENIE", build_type .. "/games/padenie"}, |
||
78 | {"GAMES/WHOWTBAM", build_type .. "/games/whowtbam"}, |
||
79 | }) else tup.append_table(img_files, { |
||
80 | {"File Managers/KFM_KEYS.TXT", PROGS .. "/fs/kfm/trunk/docs/english/kfm_keys.txt"}, |
||
81 | {"GAMES/SKIN.RAW", PROGS .. "/games/soko/trunk/SKIN.RAW"}, |
||
82 | {"GAMES/SOKO-4.LEV", PROGS .. "/games/soko/trunk/SOKO-4.LEV"}, |
||
83 | {"GAMES/SOKO-5.LEV", PROGS .. "/games/soko/trunk/SOKO-5.LEV"}, |
||
84 | {"GAMES/SOKO-6.LEV", PROGS .. "/games/soko/trunk/SOKO-6.LEV"}, |
||
85 | {"GAMES/SOKO-7.LEV", PROGS .. "/games/soko/trunk/SOKO-7.LEV"}, |
||
86 | {"GAMES/SOKO-8.LEV", PROGS .. "/games/soko/trunk/SOKO-8.LEV"}, |
||
87 | {"GAMES/SOKO-9.LEV", PROGS .. "/games/soko/trunk/SOKO-9.LEV"}, |
||
88 | {"SETTINGS/.shell", PROGS .. "/system/shell/bin/eng/.shell"}, |
||
89 | {"EXAMPLE.ASM", PROGS .. "/develop/examples/example/trunk/example.asm"}, |
||
90 | {"File Managers/KFAR.INI", "common/File Managers/kfar.ini"}, |
||
91 | }) end |
||
92 | if build_type == "it" then tup.append_table(img_files, { |
||
93 | {"SETTINGS/MYKEY.INI", PROGS .. "/system/MyKey/trunk/mykey_it.ini"}, |
||
94 | }) else tup.append_table(img_files, { |
||
95 | {"SETTINGS/MYKEY.INI", PROGS .. "/system/MyKey/trunk/mykey.ini"}, |
||
96 | }) end |
||
97 | |||
98 | --[[ |
||
99 | Files to be included in kolibri.iso and distribution kit outside of kolibri.img. |
||
5132 | clevermous | 100 | |
5098 | clevermous | 101 | The first subitem of every item is name relative to the root of ISO or distribution kit, |
102 | the second is name of local file. |
||
5132 | clevermous | 103 | |
5098 | clevermous | 104 | If the first subitem ends in /, the last component of local file name is appended. |
105 | The last component of the second subitem may contain '*'; if so, it will be expanded |
||
106 | according to usual rules, but without matching directories. |
||
5132 | clevermous | 107 | |
108 | Tup does not allow a direct dependency on a file that is generated in a directory |
||
109 | other than where Tupfile.lua is and its children. Most files are generated |
||
110 | in the directory with Tupfile.lua; for other files, the item should contain |
||
111 | a named subitem "group=path/ |
||
5098 | clevermous | 112 | --]] |
113 | extra_files = { |
||
114 | {"/", build_type .. "/distr_data/autorun.inf"}, |
||
115 | {"/", build_type .. "/distr_data/KolibriOS_icon.ico"}, |
||
116 | {"/", build_type .. "/settings/kolibri.lbl"}, |
||
117 | {"Skins/", "../skins/authors.txt"}, |
||
118 | {"Docs/stack.txt", build_type .. "/docs/STACK.TXT"}, |
||
119 | {"HD_Load/9x2klbr/", "common/HD_load/9x2klbr/LDKLBR.VXD"}, |
||
120 | {"HD_Load/MeOSLoad/", PROGS .. "/hd_load/meosload/AUTOEXEC.BAT"}, |
||
121 | {"HD_Load/MeOSLoad/", PROGS .. "/hd_load/meosload/CONFIG.SYS"}, |
||
122 | {"HD_Load/MeOSLoad/", PROGS .. "/hd_load/meosload/L_readme.txt"}, |
||
123 | {"HD_Load/MeOSLoad/", PROGS .. "/hd_load/meosload/L_readme_Win.txt"}, |
||
124 | {"HD_Load/mtldr/", PROGS .. "/hd_load/mtldr/vista_install.bat"}, |
||
125 | {"HD_Load/mtldr/", PROGS .. "/hd_load/mtldr/vista_remove.bat"}, |
||
126 | {"HD_Load/", "common/HD_load/memdisk"}, |
||
127 | {"HD_Load/USB_boot_old/", PROGS .. "/hd_load/usb_boot_old/usb_boot.rtf"}, |
||
128 | {"HD_Load/USB_boot_old/", PROGS .. "/hd_load/usb_boot_old/usb_boot_866.txt"}, |
||
129 | {"HD_Load/USB_boot_old/", PROGS .. "/hd_load/usb_boot_old/usb_boot_1251.txt"}, |
||
130 | {"games/pig/", "common/games/pig/*"}, |
||
131 | {"games/soko/soko", build_type .. "/games/soko"}, |
||
132 | {"games/soko/", "common/games/soko/*"}, |
||
133 | {"kolibrios/emul/dosbox/", "common/emul/DosBox/*"}, |
||
134 | {"kolibrios/emul/fceu/", "common/emul/fceu/*"}, |
||
135 | {"kolibrios/emul/", "common/emul/gameboy"}, |
||
136 | {"kolibrios/emul/", "common/emul/scummvm"}, |
||
137 | {"kolibrios/emul/", "common/emul/zsnes"}, |
||
138 | {"kolibrios/games/doom/", "common/games/doom/*"}, |
||
139 | {"kolibrios/games/fara/fara.gfx", "common/games/fara.gfx"}, |
||
140 | {"kolibrios/games/jumpbump/", "common/games/jumpbump/*"}, |
||
141 | {"kolibrios/games/lrl/", "common/games/lrl/*"}, |
||
142 | {"kolibrios/lib/avcodec-55.dll", "common/lib/avcodec-55.dll"}, |
||
143 | {"kolibrios/lib/avdevice-55.dll", "common/lib/avdevice-55.dll"}, |
||
144 | {"kolibrios/lib/avformat-55.dll", "common/lib/avformat-55.dll"}, |
||
145 | {"kolibrios/lib/avutil-52.dll", "common/lib/avutil-52.dll"}, |
||
146 | {"kolibrios/lib/freetype.dll", "common/lib/freetype.dll"}, |
||
5132 | clevermous | 147 | {"kolibrios/lib/libc.dll", "../contrib/sdk/bin/libc.dll", group = "../contrib/sdk/lib/ |
5098 | clevermous | 148 | {"kolibrios/lib/pixlib.dll", "common/lib/pixlib.dll"}, |
149 | {"kolibrios/lib/swresample-0.dll", "common/lib/swresample-0.dll"}, |
||
150 | {"kolibrios/lib/swscale-2.dll", "common/lib/swscale-2.dll"}, |
||
151 | {"kolibrios/lib/zlib.dll", "common/lib/zlib.dll"}, |
||
152 | {"kolibrios/media/fplay-full", "common/media/fplay-full"}, |
||
153 | {"kolibrios/media/zsea/zsea.ini", PROGS .. "/media/zsea/zSea.ini"}, |
||
154 | {"kolibrios/media/zsea/buttons/buttons.png", PROGS .. "/media/zsea/buttons.png"}, |
||
155 | } |
||
156 | if build_type == "rus" then tup.append_table(extra_files, { |
||
157 | {"Docs/cp866/config.txt", build_type .. "/docs/CONFIG.TXT"}, |
||
158 | {"Docs/cp866/gnu.txt", build_type .. "/docs/GNU.TXT"}, |
||
159 | {"Docs/cp866/history.txt", build_type .. "/docs/HISTORY.TXT"}, |
||
160 | {"Docs/cp866/hot_keys.txt", build_type .. "/docs/HOT_KEYS.TXT"}, |
||
161 | {"Docs/cp866/install.txt", build_type .. "/docs/INSTALL.TXT"}, |
||
162 | {"Docs/cp866/readme.txt", build_type .. "/docs/README.TXT"}, |
||
163 | {"Docs/cp866/sysfuncr.txt", PROGS .. "/system/docpack/trunk/SYSFUNCR.TXT"}, |
||
164 | {"Docs/cp1251/config.txt", build_type .. "/docs/CONFIG.WIN.TXT", cp1251_from = build_type .. "/docs/CONFIG.TXT"}, |
||
165 | {"Docs/cp1251/gnu.txt", build_type .. "/docs/GNU.WIN.TXT", cp1251_from = build_type .. "/docs/GNU.TXT"}, |
||
166 | {"Docs/cp1251/history.txt", build_type .. "/docs/HISTORY.WIN.TXT", cp1251_from = build_type .. "/docs/HISTORY.TXT"}, |
||
167 | {"Docs/cp1251/hot_keys.txt", build_type .. "/docs/HOT_KEYS.WIN.TXT", cp1251_from = build_type .. "/docs/HOT_KEYS.TXT"}, |
||
168 | {"Docs/cp1251/install.txt", build_type .. "/docs/INSTALL.WIN.TXT", cp1251_from = build_type .. "/docs/INSTALL.TXT"}, |
||
169 | {"Docs/cp1251/readme.txt", build_type .. "/docs/README.WIN.TXT", cp1251_from = build_type .. "/docs/README.TXT"}, |
||
170 | {"Docs/cp1251/sysfuncr.txt", build_type .. "/docs/SYSFUNCR.WIN.TXT", cp1251_from = PROGS .. "/system/docpack/trunk/SYSFUNCR.TXT"}, |
||
171 | {"HD_Load/9x2klbr/", PROGS .. "/hd_load/9x2klbr/readme_dos.txt"}, |
||
172 | {"HD_Load/9x2klbr/", PROGS .. "/hd_load/9x2klbr/readme_win.txt"}, |
||
173 | {"HD_Load/mtldr/", PROGS .. "/hd_load/mtldr/install.txt"}, |
||
174 | {"HD_Load/USB_Boot/", PROGS .. "/hd_load/usb_boot/readme.txt"}, |
||
175 | {"kolibrios/media/zsea/zsea_keys.txt", PROGS .. "/media/zsea/Docs/zSea_keys_rus.txt"}, |
||
176 | }) else tup.append_table(extra_files, { |
||
177 | {"Docs/config.txt", build_type .. "/docs/CONFIG.TXT"}, |
||
178 | {"Docs/copying.txt", build_type .. "/docs/COPYING.TXT"}, |
||
179 | {"Docs/hot_keys.txt", build_type .. "/docs/HOT_KEYS.TXT"}, |
||
180 | {"Docs/install.txt", build_type .. "/docs/INSTALL.TXT"}, |
||
181 | {"Docs/readme.txt", build_type .. "/docs/README.TXT"}, |
||
182 | {"Docs/sysfuncs.txt", PROGS .. "/system/docpack/trunk/SYSFUNCS.TXT"}, |
||
183 | {"HD_Load/9x2klbr/", PROGS .. "/hd_load/9x2klbr/readme.txt"}, |
||
184 | {"HD_Load/mtldr/install.txt", PROGS .. "/hd_load/mtldr/install_eng.txt"}, |
||
185 | {"HD_Load/USB_Boot/readme.txt", PROGS .. "/hd_load/usb_boot/readme_eng.txt"}, |
||
186 | {"kolibrios/media/zsea/zsea_keys.txt", PROGS .. "/media/zsea/Docs/zSea_keys_eng.txt"}, |
||
187 | }) end |
||
188 | --[[ |
||
189 | Files to be included in distribution kit outside of kolibri.img, but not kolibri.iso. |
||
190 | Same syntax as extra_files. |
||
191 | ]]-- |
||
192 | if build_type == "rus" then |
||
193 | distr_extra_files = { |
||
194 | {"/readme_dos.txt", build_type .. "/distr_data/readme_dos_distr.txt"}, |
||
195 | {"/readme.txt", build_type .. "/distr_data/readme_distr.txt", cp1251_from = build_type .. "/distr_data/readme_dos_distr.txt"}, |
||
196 | } |
||
197 | else |
||
198 | distr_extra_files = { |
||
199 | {"/readme.txt", build_type .. "/distr_data/readme_distr.txt"}, |
||
200 | } |
||
201 | end |
||
202 | --[[ |
||
203 | Files to be included in kolibri.iso outside of kolibri.img, but not distribution kit. |
||
204 | Same syntax as extra_files. |
||
205 | ]]-- |
||
206 | if build_type == "rus" then |
||
207 | iso_extra_files = { |
||
208 | {"/readme_dos.txt", build_type .. "/distr_data/readme_dos.txt"}, |
||
209 | {"/readme.txt", build_type .. "/distr_data/readme.txt", cp1251_from = build_type .. "/distr_data/readme_dos.txt"}, |
||
210 | } |
||
211 | else |
||
212 | iso_extra_files = { |
||
213 | {"/readme.txt", build_type .. "/distr_data/readme.txt"}, |
||
214 | } |
||
215 | end |
||
216 | |||
217 | -- Programs that require FASM to compile. |
||
218 | if tup.getconfig('NO_FASM') ~= 'full' then |
||
219 | tup.append_table(img_files, { |
||
220 | {"KERNEL.MNT", "../kernel/trunk/kernel.mnt"}, |
||
221 | {"@MENU", PROGS .. "/system/menu/trunk/menu"}, |
||
222 | {"@PANEL", PROGS .. "/system/panel/trunk/@PANEL"}, |
||
223 | {"@DOCKY", PROGS .. "/system/docky/trunk/docky"}, |
||
224 | {"@NOTIFY", PROGS .. "/system/notify3/notify"}, |
||
225 | {"@SS", PROGS .. "/system/ss/trunk/@ss"}, |
||
226 | {"REFRSCRN", PROGS .. "/system/refrscrn/refrscrn"}, |
||
227 | {"ASCIIVJU", PROGS .. "/develop/asciivju/trunk/asciivju"}, |
||
228 | {"CALC", PROGS .. "/other/calc/trunk/calc"}, |
||
229 | {"CALENDAR", PROGS .. "/system/calendar/trunk/calendar"}, |
||
230 | {"COLRDIAL", PROGS .. "/system/colrdial/color_dialog"}, |
||
231 | {"LOADDRV", PROGS .. "/system/loaddrv/loaddrv"}, |
||
232 | {"CPU", PROGS .. "/system/cpu/trunk/cpu"}, |
||
233 | {"CPUID", PROGS .. "/system/cpuid/trunk/CPUID"}, |
||
234 | {"DESKTOP", PROGS .. "/system/desktop/trunk/desktop"}, |
||
235 | {"DISPTEST", PROGS .. "/system/disptest/trunk/disptest"}, |
||
236 | {"DOCPACK", PROGS .. "/system/docpack/trunk/docpack"}, |
||
237 | {"END", PROGS .. "/system/end/light/end"}, |
||
238 | {"FSPEED", PROGS .. "/fs/fspeed/fspeed"}, |
||