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