Rev 10042 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
8674 | Coldy | 1 | -- Do nothing unless explicitly requested in tup.config. |
5098 | clevermous | 2 | build_type = tup.getconfig('BUILD_TYPE') |
3 | if build_type == "" then |
||
4 | return |
||
5 | end |
||
6 | |||
7 | --[================================[ DATA ]================================]-- |
||
8 | |||
10042 | dunkaist | 9 | SRC = tup.getcwd() .. '/..' |
10 | SRC_PROGS = SRC .. "/programs" |
||
11 | SRC_KERNEL = SRC .. "/kernel/trunk" |
||
5098 | clevermous | 12 | |
10042 | dunkaist | 13 | VAR = tup.getvariantdir() .. '/..' |
14 | VAR_PROGS = VAR .. "/programs" |
||
15 | VAR_DRVS = VAR .. "/drivers" |
||
16 | VAR_SKINS = VAR .. "/skins" |
||
17 | VAR_KERNEL = VAR .. "/kernel/trunk" |
||
18 | VAR_CONTRIB = VAR .. "/contrib" |
||
19 | VAR_DATA = VAR .. "/data" |
||
20 | |||
5098 | clevermous | 21 | -- Static data that doesn't need to be compiled |
22 | -- Files to be included in kolibri.img. |
||
23 | -- The first subitem of every item is name inside kolibri.img, the second is name of local file. |
||
24 | img_files = { |
||
10042 | dunkaist | 25 | {"MACROS.INC", SRC_PROGS .. "/macros.inc"}, |
26 | -- {"CONFIG.INC", SRC_PROGS .. "/config.inc"}, |
||
27 | {"STRUCT.INC", SRC_PROGS .. "/struct.inc"}, |
||
6958 | leency | 28 | {"FB2READ", "common/fb2read"}, |
7425 | leency | 29 | {"ALLGAMES", "common/allgames"}, |
9467 | leency | 30 | {"HOME.PNG", "common/wallpapers/T_Home.png"}, |
6958 | leency | 31 | {"ICONS32.PNG", "common/icons32.png"}, |
7052 | leency | 32 | {"ICONS16.PNG", "common/icons16.png"}, |
6958 | leency | 33 | {"INDEX.HTM", "common/index_htm"}, |
34 | {"KUZKINA.MID", "common/kuzkina.mid"}, |
||
8131 | dunkaist | 35 | {"SINE.MP3", "common/sine.mp3"}, |
6958 | leency | 36 | {"LANG.INC", build_type .. "/lang.inc"}, |
37 | {"NOTIFY3.PNG", "common/notify3.png"}, |
||
10042 | dunkaist | 38 | {"UNIMG", SRC_PROGS .. "/fs/unimg/unimg"}, |
6958 | leency | 39 | {"3D/HOUSE.3DS", "common/3d/house.3ds"}, |
40 | {"File Managers/ICONS.INI", "common/File Managers/icons.ini"}, |
||
10042 | dunkaist | 41 | {"GAMES/FLPYBIRD", SRC_PROGS .. "/games/flappybird/Release/flappybird"}, |
5764 | leency | 42 | {"FONTS/TAHOMA.KF", "common/fonts/tahoma.kf"}, |
9308 | turbocat | 43 | -- {"LIB/ICONV.OBJ", "common/lib/iconv.obj"}, |
6958 | leency | 44 | {"LIB/KMENU.OBJ", "common/lib/kmenu.obj"}, |
45 | {"LIB/PIXLIB.OBJ", "common/lib/pixlib.obj"}, |
||
8922 | leency | 46 | {"MEDIA/IMGF/IMGF", "common/media/ImgF/ImgF"}, |
47 | {"MEDIA/IMGF/CEDG.OBJ", "common/media/ImgF/cEdg.obj"}, |
||
48 | {"MEDIA/IMGF/DITHER.OBJ", "common/media/ImgF/dither.obj"}, |
||
49 | {"MEDIA/IMGF/INVSOL.OBJ", "common/media/ImgF/invSol.obj"}, |
||
10042 | dunkaist | 50 | {"MEDIA/PIXIESKN.PNG", SRC_PROGS .. "/cmm/pixie2/pixieskn.png"}, |
51 | {"NETWORK/FTPC.INI", SRC_PROGS .. "/network/ftpc/ftpc.ini"}, |
||
52 | {"NETWORK/FTPC_SYS.PNG", SRC_PROGS .. "/network/ftpc/ftpc_sys.png"}, |
||
53 | {"NETWORK/FTPC_NOD.PNG", SRC_PROGS .. "/network/ftpc/ftpc_nod.png"}, |
||
6958 | leency | 54 | {"NETWORK/FTPD.INI", "common/network/ftpd.ini"}, |
9686 | leency | 55 | {"NETWORK/KNMAP", "common/network/knmap"}, |
6958 | leency | 56 | {"NETWORK/USERS.INI", "common/network/users.ini"}, |
7429 | leency | 57 | {"SETTINGS/APP.INI", "common/settings/app.ini"}, |
7519 | leency | 58 | {"SETTINGS/APP_PLUS.INI", "common/settings/app_plus.ini"}, |
7429 | leency | 59 | {"SETTINGS/ASSOC.INI", "common/settings/assoc.ini"}, |
5873 | pathoswith | 60 | {"SETTINGS/AUTORUN.DAT", "common/settings/AUTORUN.DAT"}, |
10042 | dunkaist | 61 | {"SETTINGS/CEDIT.INI", SRC_PROGS .. "/develop/cedit/CEDIT.INI"}, |
6958 | leency | 62 | {"SETTINGS/DOCKY.INI", "common/settings/docky.ini"}, |
63 | {"SETTINGS/FB2READ.INI", "common/settings/fb2read.ini"}, |
||
10042 | dunkaist | 64 | {"SETTINGS/HA.CFG", SRC_PROGS .. "/other/ha/SETTINGS/HA.CFG"}, |
5098 | clevermous | 65 | {"SETTINGS/ICON.INI", build_type .. "/settings/icon.ini"}, |
10042 | dunkaist | 66 | {"SETTINGS/KEYMAP.KEY", SRC_PROGS .. "/system/taskbar/trunk/KEYMAP.KEY"}, |
6958 | leency | 67 | {"SETTINGS/KOLIBRI.LBL", build_type .. "/settings/kolibri.lbl"}, |
5098 | clevermous | 68 | {"SETTINGS/LANG.INI", build_type .. "/settings/lang.ini"}, |
69 | {"SETTINGS/MENU.DAT", build_type .. "/settings/menu.dat"}, |
||
7137 | dunkaist | 70 | {"SETTINGS/NETWORK.INI", "common/settings/network.ini"}, |
5972 | leency | 71 | {"SETTINGS/SYSTEM.INI", "common/settings/system.ini"}, |
7429 | leency | 72 | {"SETTINGS/TASKBAR.INI", "common/settings/taskbar.ini"}, |
9959 | turbocat | 73 | {"SETTINGS/SYSTEM.ENV", "common/settings/system.env"}, |
5098 | clevermous | 74 | } |
7010 | 0CodErr | 75 | |
5098 | clevermous | 76 | -- For russian build, add russian-only files. |
77 | if build_type == "rus" then tup.append_table(img_files, { |
||
10042 | dunkaist | 78 | {"EXAMPLE.ASM", SRC_PROGS .. "/develop/examples/example/trunk/rus/example.asm"}, |
79 | {"DEVELOP/BACKY", SRC_PROGS .. "/develop/backy/Backy_ru"}, |
||
7769 | leency | 80 | {"GAMES/BASEKURS.KLA", build_type .. "/games/basekurs.kla"}, |
81 | {"File Managers/KFAR.INI", build_type .. "/File Managers/kfar.ini"}, |
||
8870 | leency | 82 | {"GAMES/DESCENT", build_type .. "/games/descent"}, |
10042 | dunkaist | 83 | {"SETTINGS/.shell", SRC_PROGS .. "/system/shell/bin/rus/.shell"}, |
7426 | leency | 84 | {"SETTINGS/GAMES.INI", "rus/settings/games.ini"}, |
10042 | dunkaist | 85 | {"SETTINGS/MYKEY.INI", SRC_PROGS .. "/system/MyKey/trunk/mykey.ini"}, |
7769 | leency | 86 | {"SETTINGS/SYSPANEL.INI", "rus/settings/syspanel.ini"}, |
7010 | 0CodErr | 87 | }) elseif build_type == "eng" then tup.append_table(img_files, { |
10042 | dunkaist | 88 | {"EXAMPLE.ASM", SRC_PROGS .. "/develop/examples/example/trunk/example.asm"}, |
89 | {"DEVELOP/BACKY", SRC_PROGS .. "/develop/backy/Backy"}, |
||
8870 | leency | 90 | {"File Managers/KFAR.INI", "common/File Managers/kfar.ini"}, |
91 | {"GAMES/DESCENT", "common/games/descent"}, |
||
10042 | dunkaist | 92 | {"SETTINGS/.shell", SRC_PROGS .. "/system/shell/bin/eng/.shell"}, |
7426 | leency | 93 | {"SETTINGS/GAMES.INI", "common/settings/games.ini"}, |
10042 | dunkaist | 94 | {"SETTINGS/MYKEY.INI", SRC_PROGS .. "/system/MyKey/trunk/mykey.ini"}, |
7769 | leency | 95 | {"SETTINGS/SYSPANEL.INI", "common/settings/syspanel.ini"}, |
96 | }) elseif build_type == "sp" then tup.append_table(img_files, { |
||
10042 | dunkaist | 97 | {"EXAMPLE.ASM", SRC_PROGS .. "/develop/examples/example/trunk/example.asm"}, |
98 | {"DEVELOP/BACKY", SRC_PROGS .. "/develop/backy/Backy"}, |
||
8870 | leency | 99 | {"File Managers/KFAR.INI", "common/File Managers/kfar.ini"}, |
100 | {"GAMES/DESCENT", "common/games/descent"}, |
||
10042 | dunkaist | 101 | {"SETTINGS/.shell", SRC_PROGS .. "/system/shell/bin/eng/.shell"}, |
7426 | leency | 102 | {"SETTINGS/GAMES.INI", "common/settings/games.ini"}, |
10042 | dunkaist | 103 | {"SETTINGS/MYKEY.INI", SRC_PROGS .. "/system/MyKey/trunk/mykey.ini"}, |
7769 | leency | 104 | {"SETTINGS/SYSPANEL.INI", "common/settings/syspanel.ini"}, |
7010 | 0CodErr | 105 | }) elseif build_type == "it" then tup.append_table(img_files, { |
10042 | dunkaist | 106 | {"EXAMPLE.ASM", SRC_PROGS .. "/develop/examples/example/trunk/example.asm"}, |
107 | {"DEVELOP/BACKY", SRC_PROGS .. "/develop/backy/Backy"}, |
||
7769 | leency | 108 | {"File Managers/KFAR.INI", "common/File Managers/kfar.ini"}, |
8870 | leency | 109 | {"GAMES/DESCENT", "common/games/descent"}, |
10042 | dunkaist | 110 | {"SETTINGS/.shell", SRC_PROGS .. "/system/shell/bin/eng/.shell"}, |
111 | {"SETTINGS/MYKEY.INI", SRC_PROGS .. "/system/MyKey/trunk/mykey_it.ini"}, |
||
7769 | leency | 112 | {"SETTINGS/GAMES.INI", "common/settings/games.ini"}, |
113 | {"SETTINGS/SYSPANEL.INI", "common/settings/syspanel.ini"}, |
||
5098 | clevermous | 114 | }) else tup.append_table(img_files, { |
10042 | dunkaist | 115 | {"EXAMPLE.ASM", SRC_PROGS .. "/develop/examples/example/trunk/example.asm"}, |
116 | {"DEVELOP/BACKY", SRC_PROGS .. "/develop/backy/Backy"}, |
||
7769 | leency | 117 | {"File Managers/KFAR.INI", "common/File Managers/kfar.ini"}, |
8870 | leency | 118 | {"GAMES/DESCENT", "common/games/descent"}, |
10042 | dunkaist | 119 | {"SETTINGS/.shell", SRC_PROGS .. "/system/shell/bin/eng/.shell"}, |
7426 | leency | 120 | {"SETTINGS/GAMES.INI", "common/settings/games.ini"}, |
10042 | dunkaist | 121 | {"SETTINGS/MYKEY.INI", SRC_PROGS .. "/system/MyKey/trunk/mykey.ini"}, |
7769 | leency | 122 | {"SETTINGS/SYSPANEL.INI", "common/settings/syspanel.ini"}, |
5098 | clevermous | 123 | }) end |
124 | |||
125 | --[[ |
||
126 | Files to be included in kolibri.iso and distribution kit outside of kolibri.img. |
||
5132 | clevermous | 127 | |
5098 | clevermous | 128 | The first subitem of every item is name relative to the root of ISO or distribution kit, |
129 | the second is name of local file. |
||
5132 | clevermous | 130 | |
5098 | clevermous | 131 | If the first subitem ends in /, the last component of local file name is appended. |
132 | The last component of the second subitem may contain '*'; if so, it will be expanded |
||
133 | according to usual rules, but without matching directories. |
||
5132 | clevermous | 134 | |
135 | Tup does not allow a direct dependency on a file that is generated in a directory |
||
136 | other than where Tupfile.lua is and its children. Most files are generated |
||
137 | in the directory with Tupfile.lua; for other files, the item should contain |
||
138 | a named subitem "group=path/ |
||
5098 | clevermous | 139 | --]] |
140 | extra_files = { |
||
7137 | dunkaist | 141 | {"/", "common/distr_data/autorun.inf"}, |
142 | {"/", "common/distr_data/KolibriOS_icon.ico"}, |
||
7715 | leency | 143 | {"Docs/stack.txt", "../kernel/trunk/docs/stack.txt"}, |
5098 | clevermous | 144 | {"HD_Load/9x2klbr/", "common/HD_load/9x2klbr/LDKLBR.VXD"}, |
10042 | dunkaist | 145 | {"HD_Load/MeOSLoad/", SRC_PROGS .. "/hd_load/meosload/AUTOEXEC.BAT"}, |
146 | {"HD_Load/MeOSLoad/", SRC_PROGS .. "/hd_load/meosload/CONFIG.SYS"}, |
||
147 | {"HD_Load/MeOSLoad/", SRC_PROGS .. "/hd_load/meosload/L_readme.txt"}, |
||
148 | {"HD_Load/MeOSLoad/", SRC_PROGS .. "/hd_load/meosload/L_readme_Win.txt"}, |
||
149 | {"HD_Load/mtldr/", SRC_PROGS .. "/hd_load/mtldr/vista_install.bat"}, |
||
150 | {"HD_Load/mtldr/", SRC_PROGS .. "/hd_load/mtldr/vista_remove.bat"}, |
||
5098 | clevermous | 151 | {"HD_Load/", "common/HD_load/memdisk"}, |
10042 | dunkaist | 152 | {"HD_Load/USB_boot_old/", SRC_PROGS .. "/hd_load/usb_boot_old/usb_boot.rtf"}, |
153 | {"HD_Load/USB_boot_old/", SRC_PROGS .. "/hd_load/usb_boot_old/usb_boot_866.txt"}, |
||
154 | {"HD_Load/USB_boot_old/", SRC_PROGS .. "/hd_load/usb_boot_old/usb_boot_1251.txt"}, |
||
155 | {"kolibrios/3D/info3ds/INFO3DS.INI", SRC_PROGS .. "/develop/info3ds/info3ds.ini"}, |
||
156 | {"kolibrios/3D/info3ds/OBJECTS.PNG", SRC_PROGS .. "/develop/info3ds/objects.png"}, |
||
157 | {"kolibrios/3D/info3ds/TOOLBAR.PNG", SRC_PROGS .. "/develop/info3ds/toolbar.png"}, |
||
158 | {"kolibrios/3D/info3ds/FONT8X9.BMP", SRC_PROGS .. "/fs/kfar/trunk/font8x9.bmp"}, |
||
159 | {"kolibrios/3D/blocks/", "../programs/bcc32/games/blocks/bin/*"}, |
||
160 | {"kolibrios/3D/blocks/models/", "../programs/bcc32/games/blocks/models/*"}, |
||
6583 | leency | 161 | {"kolibrios/3D/md2view/", "common/3d/md2view/*"}, |
6584 | leency | 162 | {"kolibrios/3D/md2view/md2_model/", "common/3d/md2view/md2_model/*"}, |
10042 | dunkaist | 163 | {"kolibrios/3D/voxel_editor/VOX_EDITOR.INI", SRC_PROGS .. "/media/voxel_editor/trunk/vox_editor.ini"}, |
164 | {"kolibrios/3D/voxel_editor/HOUSE1.VOX", SRC_PROGS .. "/media/voxel_editor/trunk/house1.vox"}, |
||
165 | {"kolibrios/3D/voxel_editor/HOUSE2.VOX", SRC_PROGS .. "/media/voxel_editor/trunk/house2.vox"}, |
||
166 | {"kolibrios/3D/voxel_editor/SQUIRREL.VOX", SRC_PROGS .. "/media/voxel_editor/trunk/squirrel.vox"}, |
||
167 | {"kolibrios/3D/voxel_utilites/VOX_MOVER.INI" , SRC_PROGS .. "/media/voxel_editor/utilites/vox_mover.ini"}, |
||
168 | {"kolibrios/3D/FONT8X9.BMP", SRC_PROGS .. "/fs/kfar/trunk/font8x9.bmp"}, |
||
169 | {"kolibrios/3D/TOOLB_1.PNG", SRC_PROGS .. "/develop/libraries/TinyGL/asm_fork/examples/toolb_1.png"}, |
||
170 | {"kolibrios/3D/TEST_GLU1", VAR_PROGS .. "/develop/libraries/TinyGL/asm_fork/examples/test_glu1"}, |
||
171 | {"kolibrios/3D/TEST_GLU2", VAR_PROGS .. "/develop/libraries/TinyGL/asm_fork/examples/test_glu2"}, |
||
172 | {"kolibrios/3D/TEXT_2.PNG", SRC_PROGS .. "/develop/libraries/TinyGL/asm_fork/examples/text_2.png"}, |
||
9007 | leency | 173 | {"kolibrios/demos/ak47.lif", "common/demos/ak47.lif"}, |
174 | {"kolibrios/demos/life2", "common/demos/life2"}, |
||
175 | {"kolibrios/demos/relay.lif", "common/demos/relay.lif"}, |
||
176 | {"kolibrios/demos/rpento.lif", "common/demos/rpento.lif"}, |
||
10042 | dunkaist | 177 | {"kolibrios/develop/c--/c--.elf", SRC_PROGS .. "/cmm/c--/c--.elf"}, |
178 | {"kolibrios/develop/c--/c--.exe", SRC_PROGS .. "/cmm/c--/c--.exe"}, |
||
179 | {"kolibrios/develop/c--/c--.ini", SRC_PROGS .. "/cmm/c--/c--.ini"}, |
||
180 | {"kolibrios/develop/c--/manual_c--.htm", SRC_PROGS .. "/cmm/c--/manual_c--.htm"}, |
||
8242 | leency | 181 | {"kolibrios/develop/fpc/", "common/develop/fpc/*"}, |
10042 | dunkaist | 182 | {"kolibrios/develop/fpc/examples/", "../programs/develop/fp/examples/src/*"}, |
8243 | leency | 183 | {"kolibrios/develop/fpc/examples/build.sh", "common/develop/fpc/build.sh"}, |
10042 | dunkaist | 184 | {"kolibrios/develop/oberon07/", "../programs/develop/oberon07/*"}, |
185 | {"kolibrios/develop/oberon07/doc/", "../programs/develop/oberon07/doc/*"}, |
||
186 | {"kolibrios/develop/oberon07/lib/KolibriOS/", "../programs/develop/oberon07/lib/KolibriOS/*"}, |
||
187 | {"kolibrios/develop/oberon07/samples/", SRC_PROGS .. "/develop/oberon07/samples/*"}, |
||
188 | {"kolibrios/develop/tcc/lib/", SRC_PROGS .. "/develop/ktcc/trunk/bin/lib/*"}, |
||
189 | {"kolibrios/develop/tcc/include/", SRC_PROGS .. "/develop/ktcc/trunk/libc.obj/include/*"}, |
||
190 | {"kolibrios/develop/tcc/include/clayer/", SRC_PROGS .. "/develop/ktcc/trunk/libc.obj/include/clayer/*"}, |
||
191 | {"kolibrios/develop/tcc/include/cryptal/", SRC_PROGS .. "/develop/ktcc/trunk/libc.obj/include/cryptal/*"}, |
||
192 | {"kolibrios/develop/tcc/include/sys/", SRC_PROGS .. "/develop/ktcc/trunk/libc.obj/include/sys/*"}, |
||
9206 | turbocat | 193 | {"kolibrios/develop/tcc/include/SDL/", "../contrib/sdk/sources/SDL-1.2.2_newlib/include/*"}, |
10042 | dunkaist | 194 | {"kolibrios/develop/tcc/samples/", SRC_PROGS .. "/develop/ktcc/trunk/libc.obj/samples/*.c"}, |
195 | {"kolibrios/develop/tcc/samples/", SRC_PROGS .. "/develop/ktcc/trunk/libc.obj/samples/*.sh"}, |
||
196 | {"kolibrios/develop/tcc/samples/clayer/", SRC_PROGS .. "/develop/ktcc/trunk/libc.obj/samples/clayer/*"}, |
||
197 | {"kolibrios/develop/utils/SPEDump", SRC_PROGS .. "/develop/SPEDump/SPEDump.kex"}, |
||
7864 | leency | 198 | {"kolibrios/emul/", "common/emul/*"}, |
5098 | clevermous | 199 | {"kolibrios/emul/dosbox/", "common/emul/DosBox/*"}, |
10042 | dunkaist | 200 | {"kolibrios/emul/e80/readme.txt", SRC_PROGS .. "/emulator/e80/trunk/readme.txt"}, |
201 | {"kolibrios/emul/e80/keyboard.png", SRC_PROGS .. "/emulator/e80/trunk/keyboard.png"}, |
||
202 | {"kolibrios/emul/fceu/fceu", SRC_PROGS .. "/emulator/fceu/fceu"}, |
||
203 | {"kolibrios/emul/fceu/FCEU ReadMe.txt", SRC_PROGS .. "/emulator/fceu/FCEU ReadMe.txt"}, |
||
204 | {"kolibrios/emul/chip8/chip8", VAR_PROGS .. "/emulator/chip8/chip8"}, |
||
205 | {"kolibrios/emul/chip8/readme.txt", SRC_PROGS .. "/emulator/chip8/readme.txt"}, |
||
206 | {"kolibrios/emul/chip8/roms/", SRC_PROGS .. "/emulator/chip8/roms/*"}, |
||
207 | {"kolibrios/emul/kwine/kwine", SRC_PROGS .. "/emulator/kwine/bin/kwine"}, |
||
208 | {"kolibrios/emul/kwine/lib/", SRC_PROGS .. "/emulator/kwine/bin/lib/*"}, |
||
8377 | maxcodehac | 209 | {"kolibrios/emul/uarm/", "common/emul/uarm/*"}, |
8784 | leency | 210 | {"kolibrios/emul/zsnes/", "common/emul/zsnes/*"}, |
6179 | leency | 211 | {"kolibrios/games/BabyPainter", "common/games/BabyPainter"}, |
10042 | dunkaist | 212 | {"kolibrios/games/bomber/ackack.bmp", SRC_PROGS .. "/games/bomber/ackack.bmp"}, |
213 | {"kolibrios/games/bomber/bomb.bmp", SRC_PROGS .. "/games/bomber/bomb.bmp"}, |
||
214 | {"kolibrios/games/bomber/plane.bmp", SRC_PROGS .. "/games/bomber/plane.bmp"}, |
||
215 | {"kolibrios/games/bomber/tile.bmp", SRC_PROGS .. "/games/bomber/tile.bmp"}, |
||
6179 | leency | 216 | {"kolibrios/games/doom1/", "common/games/doom/*"}, |
5098 | clevermous | 217 | {"kolibrios/games/fara/fara.gfx", "common/games/fara.gfx"}, |
5647 | leency | 218 | {"kolibrios/games/jumpbump/", "common/games/jumpbump/*"}, |
6179 | leency | 219 | {"kolibrios/games/knight", "common/games/knight"}, |
7685 | leency | 220 | {"kolibrios/games/KosChess/", "common/games/KosChess/*"}, |
7821 | leency | 221 | {"kolibrios/games/KosChess/images/", "common/games/KosChess/images/*"}, |
5296 | ZblCoder | 222 | {"kolibrios/games/LaserTank/", "common/games/LaserTank/*"}, |
5098 | clevermous | 223 | {"kolibrios/games/lrl/", "common/games/lrl/*"}, |
6181 | leency | 224 | {"kolibrios/games/mun/data/", "common/games/mun/data/*"}, |
6182 | leency | 225 | {"kolibrios/games/mun/libc.dll", "common/games/mun/libc.dll"}, |
8870 | leency | 226 | {"kolibrios/games/mun/mun", "common/games/mun/mun"}, |
6991 | leency | 227 | {"kolibrios/games/pig/", "common/games/pig/*"}, |
6188 | hidnplayr | 228 | {"kolibrios/games/soko/", "common/games/soko/*"}, |
8112 | maxcodehac | 229 | {"kolibrios/games/fridge/", "common/games/fridge/*"}, |
10042 | dunkaist | 230 | {"kolibrios/games/the_bus/menu.png", SRC_PROGS .. "/cmm/the_bus/menu.png"}, |
231 | {"kolibrios/games/the_bus/objects.png", SRC_PROGS .. "/cmm/the_bus/objects.png"}, |
||
232 | {"kolibrios/games/the_bus/road.png", SRC_PROGS .. "/cmm/the_bus/road.png"}, |
||
6583 | leency | 233 | {"kolibrios/grafx2/fonts/", "common/media/grafx2/fonts/*"}, |
234 | {"kolibrios/grafx2/scripts/", "common/media/grafx2/scripts/libs/*"}, |
||
235 | {"kolibrios/grafx2/scripts/libs/", "common/media/grafx2/scripts/*"}, |
||
236 | {"kolibrios/grafx2/skins/", "common/media/grafx2/skins/*"}, |
||
237 | {"kolibrios/grafx2/", "common/media/grafx2/*"}, |
||
8921 | leency | 238 | {"kolibrios/speech/", "common/media/speech/*"}, |
6654 | leency | 239 | {"kolibrios/drivers/drvinf.ini", "common/drivers/drvinf.ini"}, |
6156 | leency | 240 | {"kolibrios/drivers/ahci/", "common/drivers/ahci/*"}, |
10012 | Doczom | 241 | {"kolibrios/drivers/acpi/readme.txt", "common/drivers/acpi/readme.txt"}, |
9501 | turbocat | 242 | -- {"kolibrios/drivers/acpi/", "common/drivers/acpi/*"}, |
6156 | leency | 243 | {"kolibrios/drivers/atikms/", "common/drivers/atikms/*"}, |
9504 | turbocat | 244 | -- {"kolibrios/drivers/geode/", "common/drivers/geode/*"}, |
6156 | leency | 245 | {"kolibrios/drivers/i915/", "common/drivers/i915/*"}, |
7591 | leency | 246 | {"kolibrios/drivers/test/", "common/drivers/test/*"}, |
6156 | leency | 247 | {"kolibrios/drivers/vmware/", "common/drivers/vmware/*"}, |
9881 | turbocat | 248 | {"kolibrios/drivers/virtualbox/", "common/drivers/virtualbox/*"}, |
8821 | leency | 249 | {"kolibrios/KolibriNext/", "common/KolibriNext/*"}, |
7655 | leency | 250 | {"kolibrios/KolibriNext/settings/", "common/KolibriNext/settings/*"}, |
6719 | serge | 251 | {"kolibrios/lib/avcodec-56.dll", "common/lib/avcodec-56.dll"}, |
252 | {"kolibrios/lib/avdevice-56.dll", "common/lib/avdevice-56.dll"}, |
||
253 | {"kolibrios/lib/avformat-56.dll", "common/lib/avformat-56.dll"}, |
||
254 | {"kolibrios/lib/swscale-3.dll", "common/lib/swscale-3.dll"}, |
||
255 | {"kolibrios/lib/avutil-54.dll", "common/lib/avutil-54.dll"}, |
||
7191 | leency | 256 | {"kolibrios/lib/cairo2.dll", "common/lib/cairo2.dll"}, |
5098 | clevermous | 257 | {"kolibrios/lib/freetype.dll", "common/lib/freetype.dll"}, |
5378 | serge | 258 | {"kolibrios/lib/i965-video.dll", "common/lib/i965-video.dll"}, |
259 | {"kolibrios/lib/libdrm.dll", "common/lib/libdrm.dll"}, |
||
260 | {"kolibrios/lib/libegl.dll", "common/lib/libegl.dll"}, |
||
7180 | leency | 261 | {"kolibrios/lib/libeglut.dll", "common/lib/libeglut.dll"}, |
5378 | serge | 262 | {"kolibrios/lib/libGL.dll", "common/lib/libGL.dll"}, |
6982 | leency | 263 | {"kolibrios/lib/libjpeg.dll", "common/lib/libjpeg.dll"}, |
264 | {"kolibrios/lib/libpng16.dll", "common/lib/libpng16.dll"}, |
||
5378 | serge | 265 | {"kolibrios/lib/libva.dll", "common/lib/libva.dll"}, |
266 | {"kolibrios/lib/libz.dll", "common/lib/libz.dll"}, |
||
7191 | leency | 267 | {"kolibrios/lib/osmesa.dll", "common/lib/osmesa.dll"}, |
5378 | serge | 268 | {"kolibrios/lib/pixlib-gl.dll", "common/lib/pixlib-gl.dll"}, |
7191 | leency | 269 | {"kolibrios/lib/pixman-1.dll", "common/lib/pixman-1.dll"}, |
6719 | serge | 270 | {"kolibrios/lib/swresample-1.dll", "common/lib/swresample-1.dll"}, |
5378 | serge | 271 | {"kolibrios/lib/i915_dri.drv", "common/lib/i915_dri.drv"}, |
272 | {"kolibrios/media/fplay", "common/media/fplay"}, |
||
7203 | leency | 273 | {"kolibrios/media/fplay_run", "common/media/fplay_run"}, |
7646 | leency | 274 | {"kolibrios/media/minimp3", "common/media/minimp3"}, |
6155 | leency | 275 | {"kolibrios/media/updf", "common/media/updf"}, |
276 | {"kolibrios/media/vttf", "common/media/vttf"}, |
||
10042 | dunkaist | 277 | {"kolibrios/media/beat/Beat", SRC_PROGS .. "/media/Beat/Beat"}, |
278 | {"kolibrios/media/beat/Beep1.raw", SRC_PROGS .. "/media/Beat/Beep1.raw"}, |
||
279 | {"kolibrios/media/beat/Beep2.raw", SRC_PROGS .. "/media/Beat/Beep2.raw"}, |
||
280 | {"kolibrios/media/beat/PlayNote", SRC_PROGS .. "/media/Beat/PlayNote/PlayNote"}, |
||
281 | {"kolibrios/media/beat/Readme-en.txt", SRC_PROGS .. "/media/Beat/Readme-en.txt"}, |
||
282 | {"kolibrios/media/beat/Readme-ru.txt", SRC_PROGS .. "/media/Beat/Readme-ru.txt"}, |
||
283 | {"kolibrios/media/zsea/zsea.ini", SRC_PROGS .. "/media/zsea/zSea.ini"}, |
||
284 | {"kolibrios/media/zsea/buttons/buttons.png", SRC_PROGS .. "/media/zsea/buttons.png"}, |
||
8421 | leency | 285 | {"kolibrios/netsurf/netsurf", "common/network/netsurf/netsurf"}, |
8423 | leency | 286 | {"kolibrios/netsurf/res/", "common/network/netsurf/res/*"}, |
6094 | leency | 287 | {"kolibrios/res/skins/", "../skins/authors.txt"}, |
7569 | leency | 288 | {"kolibrios/res/templates/", "common/templates/*"}, |
10042 | dunkaist | 289 | {"kolibrios/res/templates/", SRC_PROGS .. "/emulator/e80/trunk/games/*"}, |
7643 | leency | 290 | {"kolibrios/res/templates/NES/", "common/templates/NES/*"}, |
7544 | leency | 291 | {"kolibrios/res/wallpapers/", "common/wallpapers/*"}, |
8241 | leency | 292 | {"kolibrios/res/system/", build_type .. "/settings/kolibri.lbl"}, |
8285 | leency | 293 | {"kolibrios/utils/vmode", "common/vmode"}, |
8303 | leency | 294 | {"kolibrios/utils/texture", "common/utils/texture"}, |
10042 | dunkaist | 295 | {"kolibrios/utils/cnc_editor/cnc_editor", VAR_PROGS .. "/other/cnc_editor/cnc_editor"}, |
296 | {"kolibrios/utils/cnc_editor/kolibri.NC", SRC_PROGS .. "/other/cnc_editor/kolibri.NC"}, |
||
8950 | leency | 297 | {"kolibrios/utils/kfm/kfm.ini", "common/File Managers/kfm.ini"}, |
10042 | dunkaist | 298 | {"kolibrios/utils/kfm/kfm_keys_eng.txt", SRC_PROGS .. "/fs/kfm/trunk/docs/english/kfm_keys.txt"}, |
299 | {"kolibrios/utils/kfm/kfm_keys_rus.txt", SRC_PROGS .. "/fs/kfm/trunk/docs/russian/dos_kolibri/kfm_keys.txt"}, |
||
9901 | akron1 | 300 | {"kolibrios/utils/fNav/", "common/File Managers/fNav/*"}, |
9422 | leency | 301 | {"kolibrios/utils/NDN/", "common/File Managers/ndn/*"}, |
9424 | leency | 302 | {"kolibrios/utils/NDN/COLORS/", "common/File Managers/ndn/COLORS/*"}, |
303 | {"kolibrios/utils/NDN/XLT/", "common/File Managers/ndn/XLT/*"}, |
||
10042 | dunkaist | 304 | {"kolibrios/utils/tedit/t_edit.ini", SRC_PROGS .. "/other/t_edit/t_edit.ini"}, |
305 | {"kolibrios/utils/tedit/info/ASM.SYN", VAR_PROGS .. "/other/t_edit/info/asm.syn"}, |
||
306 | {"kolibrios/utils/tedit/info/CPP_CLA.SYN", VAR_PROGS .. "/other/t_edit/info/cpp_kol_cla.syn"}, |
||
307 | {"kolibrios/utils/tedit/info/CPP_DAR.SYN", VAR_PROGS .. "/other/t_edit/info/cpp_kol_dar.syn"}, |
||
308 | {"kolibrios/utils/tedit/info/CPP_DEF.SYN", VAR_PROGS .. "/other/t_edit/info/cpp_kol_def.syn"}, |
||
309 | {"kolibrios/utils/tedit/info/DEFAULT.SYN", VAR_PROGS .. "/other/t_edit/info/default.syn"}, |
||
310 | {"kolibrios/utils/tedit/info/HTML.SYN", VAR_PROGS .. "/other/t_edit/info/html.syn"}, |
||
311 | {"kolibrios/utils/tedit/info/INI.SYN", VAR_PROGS .. "/other/t_edit/info/ini_files.syn"}, |
||
6958 | leency | 312 | } |
5098 | clevermous | 313 | if build_type == "rus" then tup.append_table(extra_files, { |
314 | {"Docs/cp866/config.txt", build_type .. "/docs/CONFIG.TXT"}, |
||
315 | {"Docs/cp866/gnu.txt", build_type .. "/docs/GNU.TXT"}, |
||
316 | {"Docs/cp866/history.txt", build_type .. "/docs/HISTORY.TXT"}, |
||
317 | {"Docs/cp866/hot_keys.txt", build_type .. "/docs/HOT_KEYS.TXT"}, |
||
318 | {"Docs/cp866/install.txt", build_type .. "/docs/INSTALL.TXT"}, |
||
9947 | ace_dent | 319 | {"Docs/cp866/credits.txt", build_type .. "/docs/CREDITS.TXT"}, |
10045 | dunkaist | 320 | {"Docs/cp866/sysfuncr.txt", VAR_PROGS .. "/system/docpack/trunk/SYSFUNCR.TXT"}, |
321 | {"Docs/cp1251/config.txt", VAR_DATA .. "/" .. build_type .. "/docs/CONFIG.WIN.TXT", cp1251_from = build_type .. "/docs/CONFIG.TXT"}, |
||
322 | {"Docs/cp1251/gnu.txt", "$(VAR_DATA)/$(build_type)/docs/GNU.WIN.TXT", cp1251_from = build_type .. "/docs/GNU.TXT"}, |
||
323 | {"Docs/cp1251/history.txt", "$(VAR_DATA)/$(build_type)/docs/HISTORY.WIN.TXT", cp1251_from = build_type .. "/docs/HISTORY.TXT"}, |
||
324 | {"Docs/cp1251/hot_keys.txt", "$(VAR_DATA)/$(build_type)/docs/HOT_KEYS.WIN.TXT", cp1251_from = build_type .. "/docs/HOT_KEYS.TXT"}, |
||
325 | {"Docs/cp1251/install.txt", "$(VAR_DATA)/$(build_type)/docs/INSTALL.WIN.TXT", cp1251_from = build_type .. "/docs/INSTALL.TXT"}, |
||
326 | {"Docs/cp1251/credits.txt", "$(VAR_DATA)/$(build_type)/docs/CREDITS.WIN.TXT", cp1251_from = build_type .. "/docs/CREDITS.TXT"}, |
||
327 | {"Docs/cp1251/sysfuncr.txt", "$(VAR_DATA)/$(build_type)/docs/SYSFUNCR.WIN.TXT", cp1251_from = SRC_PROGS .. "/system/docpack/trunk/SYSFUNCR.TXT"}, |
||
10042 | dunkaist | 328 | {"HD_Load/9x2klbr/", SRC_PROGS .. "/hd_load/9x2klbr/readme_dos.txt"}, |
329 | {"HD_Load/9x2klbr/", SRC_PROGS .. "/hd_load/9x2klbr/readme_win.txt"}, |
||
330 | {"HD_Load/mtldr/", SRC_PROGS .. "/hd_load/mtldr/install.txt"}, |
||
331 | {"HD_Load/USB_Boot/", SRC_PROGS .. "/hd_load/usb_boot/readme.txt"}, |
||
7650 | leency | 332 | {"kolibrios/games/ataka", "common/games/ataka/ataka_ru"}, |
10042 | dunkaist | 333 | {"kolibrios/games/Dungeons/Resources/Textures/Environment/", SRC_PROGS .. "/games/Dungeons/Resources/Textures/Environment/*"}, |
334 | {"kolibrios/games/Dungeons/Resources/Textures/Objects/", SRC_PROGS .. "/games/Dungeons/Resources/Textures/Objects/*"}, |
||
335 | {"kolibrios/games/Dungeons/Resources/Textures/HUD/", SRC_PROGS .. "/games/Dungeons/Resources/Textures/HUD/*"}, |
||
336 | {"kolibrios/games/Dungeons/Resources/Textures/", SRC_PROGS .. "/games/Dungeons/Resources/Textures/Licenses.txt"}, |
||
337 | {"kolibrios/games/Dungeons/", SRC_PROGS .. "/games/Dungeons/readme_ru.txt"}, |
||
7928 | leency | 338 | {"kolibrios/games/sstartrek/SStarTrek", "common/games/sstartrek/SStarTrek_ru"}, |
7410 | 0CodErr | 339 | {"kolibrios/games/WHOWTBAM/", build_type .. "/games/whowtbam"}, |
340 | {"kolibrios/games/WHOWTBAM/", build_type .. "/games/appdata.dat"}, |
||
10042 | dunkaist | 341 | {"kolibrios/media/zsea/zsea_keys.txt", SRC_PROGS .. "/media/zsea/Docs/zSea_keys_rus.txt"}, |
8870 | leency | 342 | {"kolibrios/res/guide/", build_type .. "/docs/guide/*"}, |
10042 | dunkaist | 343 | {"kolibrios/develop/tcc/doc/", SRC_PROGS .. "/develop/ktcc/trunk/bin/doc/ru/*"}, |
5098 | clevermous | 344 | }) else tup.append_table(extra_files, { |
345 | {"Docs/config.txt", build_type .. "/docs/CONFIG.TXT"}, |
||
346 | {"Docs/copying.txt", build_type .. "/docs/COPYING.TXT"}, |
||
347 | {"Docs/hot_keys.txt", build_type .. "/docs/HOT_KEYS.TXT"}, |
||
348 | {"Docs/install.txt", build_type .. "/docs/INSTALL.TXT"}, |
||
9947 | ace_dent | 349 | {"Docs/credits.txt", build_type .. "/docs/CREDITS.TXT"}, |
10042 | dunkaist | 350 | {"Docs/sysfuncs.txt", VAR_PROGS .. "/system/docpack/trunk/SYSFUNCS.TXT"}, |
351 | {"HD_Load/9x2klbr/", SRC_PROGS .. "/hd_load/9x2klbr/readme.txt"}, |
||
352 | {"HD_Load/mtldr/install.txt", SRC_PROGS .. "/hd_load/mtldr/install_eng.txt"}, |
||
353 | {"HD_Load/USB_Boot/readme.txt", SRC_PROGS .. "/hd_load/usb_boot/readme_eng.txt"}, |
||
7650 | leency | 354 | {"kolibrios/games/ataka", "common/games/ataka/ataka_en"}, |
7928 | leency | 355 | {"kolibrios/games/sstartrek/SStarTrek", "common/games/sstartrek/SStarTrek_en"}, |
10042 | dunkaist | 356 | {"kolibrios/media/zsea/zsea_keys.txt", SRC_PROGS .. "/media/zsea/Docs/zSea_keys_eng.txt"}, |
357 | {"kolibrios/develop/tcc/doc/", SRC_PROGS .. "/develop/ktcc/trunk/bin/doc/en/*"}, |
||
5098 | clevermous | 358 | }) end |
359 | --[[ |
||
360 | Files to be included in distribution kit outside of kolibri.img, but not kolibri.iso. |
||
361 | Same syntax as extra_files. |
||
362 | ]]-- |
||
363 | if build_type == "rus" then |
||
364 | distr_extra_files = { |
||
365 | {"/readme_dos.txt", build_type .. "/distr_data/readme_dos_distr.txt"}, |
||
366 | {"/readme.txt", build_type .. "/distr_data/readme_distr.txt", cp1251_from = build_type .. "/distr_data/readme_dos_distr.txt"}, |
||
367 | } |
||
368 | else |
||
369 | distr_extra_files = { |
||
370 | {"/readme.txt", build_type .. "/distr_data/readme_distr.txt"}, |
||
371 | } |
||
372 | end |
||
373 | --[[ |
||
374 | Files to be included in kolibri.iso outside of kolibri.img, but not distribution kit. |
||
375 | Same syntax as extra_files. |
||
376 | ]]-- |
||
377 | if build_type == "rus" then |
||
378 | iso_extra_files = { |
||
379 | {"/readme_dos.txt", build_type .. "/distr_data/readme_dos.txt"}, |
||
10045 | dunkaist | 380 | {"/readme.txt", "$(VAR_DATA)/$(build_type)/distr_data/readme.txt", cp1251_from = build_type .. "/distr_data/readme_dos.txt"}, |
5098 | clevermous | 381 | } |
382 | else |
||
383 | iso_extra_files = { |
||
384 | {"/readme.txt", build_type .. "/distr_data/readme.txt"}, |
||
385 | } |
||
386 | end |
||
387 | |||
388 | -- Programs that require FASM to compile. |
||
389 | if tup.getconfig('NO_FASM') ~= 'full' then |
||
390 | tup.append_table(img_files, { |
||
10042 | dunkaist | 391 | {"KERNEL.MNT", VAR_PROGS .. "/../kernel/trunk/kernel.mnt"}, |
392 | {"@DOCKY", VAR_PROGS .. "/system/docky/trunk/docky"}, |
||
393 | {"@HA", VAR_PROGS .. "/other/ha/HA"}, |
||
394 | {"@ICON", VAR_PROGS .. "/system/icon_new/icon"}, |
||
395 | {"@MENU", VAR_PROGS .. "/system/menu/trunk/menu"}, |
||
396 | {"@NOTIFY", VAR_PROGS .. "/system/notify3/notify"}, |
||
397 | {"@OPEN", VAR_PROGS .. "/system/open/open"}, |
||
398 | {"@TASKBAR", VAR_PROGS .. "/system/taskbar/trunk/TASKBAR"}, |
||
399 | {"@SS", VAR_PROGS .. "/system/scrsaver/scrsaver"}, |
||
400 | {"@VOLUME", VAR_PROGS .. "/media/volume/volume"}, |
||
401 | {"HACONFIG", VAR_PROGS .. "/other/ha/HACONFIG"}, |
||
402 | {"APM", VAR_PROGS .. "/system/apm/apm"}, |
||
403 | {"CALC", VAR_PROGS .. "/other/calc/trunk/calc"}, |
||
404 | {"CALENDAR", VAR_PROGS .. "/system/calendar/trunk/calendar"}, |
||
405 | {"COLRDIAL", VAR_PROGS .. "/system/colrdial/color_dialog"}, |
||
406 | {"CROPFLAT", VAR_PROGS .. "/system/cropflat/cropflat"}, |
||
407 | {"CPU", VAR_PROGS .. "/system/cpu/trunk/cpu"}, |
||
408 | {"CPUID", VAR_PROGS .. "/testing/cpuid/trunk/CPUID"}, |
||
409 | {"DOCPACK", VAR_PROGS .. "/system/docpack/trunk/docpack"}, |
||
410 | {"DEFAULT.SKN", VAR_SKINS .. "/../skins/Leency/Shkvorka/Shkvorka.skn"}, |
||
411 | {"DISPTEST", VAR_PROGS .. "/testing/disptest/trunk/disptest"}, |
||
412 | {"END", VAR_PROGS .. "/system/end/light/end"}, |
||
413 | {"ESKIN", VAR_PROGS .. "/system/eskin/trunk/eskin"}, |
||
414 | {"FSPEED", VAR_PROGS .. "/testing/fspeed/fspeed"}, |
||
415 | {"GMON", VAR_PROGS .. "/system/gmon/gmon"}, |
||
416 | {"HDD_INFO", VAR_PROGS .. "/system/hdd_info/trunk/hdd_info"}, |
||
417 | {"KBD", VAR_PROGS .. "/testing/kbd/trunk/kbd"}, |
||
418 | {"KPACK", VAR_PROGS .. "/other/kpack/trunk/kpack"}, |
||
419 | {"LAUNCHER", VAR_PROGS .. "/system/launcher/trunk/launcher"}, |
||
420 | {"LOADDRV", VAR_PROGS .. "/system/loaddrv/loaddrv"}, |
||
421 | {"MAGNIFY", VAR_PROGS .. "/demos/magnify/trunk/magnify"}, |
||
422 | {"MGB", VAR_PROGS .. "/testing/mgb/trunk/mgb"}, |
||
423 | {"MOUSEMUL", VAR_PROGS .. "/system/mousemul/trunk/mousemul"}, |
||
424 | {"MADMOUSE", VAR_PROGS .. "/other/madmouse/madmouse"}, |
||
425 | {"MYKEY", VAR_PROGS .. "/system/MyKey/trunk/MyKey"}, |
||
426 | {"PCIDEV", VAR_PROGS .. "/testing/pcidev/trunk/PCIDEV"}, |
||
427 | {"RDSAVE", VAR_PROGS .. "/system/rdsave/trunk/rdsave"}, |
||
428 | {"RTFREAD", VAR_PROGS .. "/other/rtfread/trunk/rtfread"}, |
||
429 | {"SEARCHAP", VAR_PROGS .. "/system/searchap/searchap"}, |
||
430 | {"SCRSHOOT", VAR_PROGS .. "/media/scrshoot/scrshoot"}, |
||
431 | {"SETUP", VAR_PROGS .. "/system/setup/trunk/setup"}, |
||
432 | {"SKINCFG", VAR_PROGS .. "/system/skincfg/trunk/skincfg"}, |
||
433 | {"TERMINAL", VAR_PROGS .. "/system/terminal/terminal"}, |
||
434 | {"TEST", VAR_PROGS .. "/testing/protection/trunk/test"}, |
||
435 | {"TINYPAD", VAR_PROGS .. "/develop/tinypad/trunk/tinypad"}, |
||
436 | {"UNZ", VAR_PROGS .. "/fs/unz/unz"}, |
||
437 | {"ZKEY", VAR_PROGS .. "/system/zkey/trunk/ZKEY"}, |
||
438 | {"3D/3DWAV", VAR_PROGS .. "/demos/3dwav/trunk/3dwav"}, |
||
439 | {"3D/CROWNSCR", VAR_PROGS .. "/demos/crownscr/trunk/crownscr"}, |
||
440 | {"3D/3DCUBE2", VAR_PROGS .. "/demos/3dcube2/trunk/3DCUBE2"}, |
||
441 | {"3D/FREE3D04", VAR_PROGS .. "/demos/free3d04/trunk/free3d04"}, |
||
442 | {"3D/GEARS", VAR_PROGS .. "/develop/libraries/TinyGL/asm_fork/examples/gears"}, |
||
443 | {"3D/RAY", VAR_PROGS .. "/demos/ray/ray"}, |
||
444 | {"3D/VIEW3DS", VAR_PROGS .. "/demos/view3ds/view3ds"}, |
||
445 | {"DEMOS/BCDCLK", VAR_PROGS .. "/demos/bcdclk/trunk/bcdclk"}, |
||
446 | {"DEMOS/BUDHBROT", VAR_PROGS .. "/demos/buddhabrot/trunk/buddhabrot"}, |
||
447 | {"DEMOS/EYES", VAR_PROGS .. "/demos/eyes/trunk/eyes"}, |
||
448 | {"DEMOS/FIREWORK", VAR_PROGS .. "/demos/firework/trunk/firework"}, |
||
449 | {"DEMOS/MOVBACK", VAR_PROGS .. "/demos/movback/trunk/movback"}, |
||
450 | {"DEMOS/PLASMA", VAR_PROGS .. "/demos/plasma/trunk/plasma"}, |
||
451 | {"DEMOS/SPIRAL", VAR_PROGS .. "/demos/spiral/spiral"}, |
||
452 | {"DEMOS/TINYFRAC", VAR_PROGS .. "/demos/tinyfrac/trunk/tinyfrac"}, |
||
453 | {"DEMOS/TRANTEST", VAR_PROGS .. "/demos/trantest/trunk/trantest"}, |
||
454 | {"DEMOS/TUBE", VAR_PROGS .. "/demos/tube/trunk/tube"}, |
||
455 | {"DEMOS/UNVWATER", VAR_PROGS .. "/demos/unvwater/trunk/unvwater"}, |
||
456 | {"DEMOS/WEB", VAR_PROGS .. "/demos/web/trunk/web"}, |
||
457 | {"DEMOS/ZEROLINE", VAR_PROGS .. "/demos/zeroline/trunk/zeroline"}, |
||
458 | {"DEVELOP/ASCIIVJU", VAR_PROGS .. "/develop/asciivju/trunk/asciivju"}, |
||
459 | {"DEVELOP/BOARD", VAR_PROGS .. "/system/board/trunk/board"}, |
||
460 | {"DEVELOP/CEDIT", SRC_PROGS .. "/develop/cedit/CEDIT"}, |
||
461 | {"DEVELOP/COBJ", VAR_PROGS .. "/develop/cObj/trunk/cObj"}, |
||
462 | {"DEVELOP/ENTROPYV", VAR_PROGS .. "/develop/entropyview/entropyview"}, |
||
463 | {"DEVELOP/FASM", VAR_PROGS .. "/develop/fasm/1.73/fasm"}, |
||
464 | {"DEVELOP/H2D2B", VAR_PROGS .. "/develop/h2d2b/trunk/h2d2b"}, |
||
465 | {"DEVELOP/HEED", VAR_PROGS .. "/develop/heed/trunk/heed"}, |
||
466 | {"DEVELOP/KEYASCII", VAR_PROGS .. "/develop/keyascii/trunk/keyascii"}, |
||
467 | {"DEVELOP/MTDBG", VAR_PROGS .. "/develop/mtdbg/mtdbg"}, |
||
468 | {"DEVELOP/SCANCODE", VAR_PROGS .. "/develop/scancode/trunk/scancode"}, |
||
469 | {"DEVELOP/EXAMPLES/CIRCLE", VAR_PROGS .. "/develop/examples/circle/trunk/circle"}, |
||
470 | {"DEVELOP/EXAMPLES/COLORREF", VAR_PROGS .. "/demos/colorref/trunk/colorref"}, |
||
471 | {"DEVELOP/EXAMPLES/CONGET", VAR_PROGS .. "/develop/libraries/console_coff/examples/test_gets"}, |
||
472 | {"DEVELOP/EXAMPLES/CSLIDE", VAR_PROGS .. "/demos/cslide/trunk/cslide"}, |
||
473 | {"DEVELOP/EXAMPLES/THREAD", VAR_PROGS .. "/develop/examples/thread/trunk/thread"}, |
||
474 | {"DEVELOP/EXAMPLES/USE_MB", VAR_PROGS .. "/demos/use_mb/use_mb"}, |
||
475 | {"File Managers/KFAR", VAR_PROGS .. "/fs/kfar/trunk/kfar"}, |
||
476 | {"File Managers/OPENDIAL", VAR_PROGS .. "/fs/opendial/opendial"}, |
||
477 | {"GAMES/15", VAR_PROGS .. "/games/15/trunk/15"}, |
||
478 | {"GAMES/FREECELL", VAR_PROGS .. "/games/freecell/freecell"}, |
||
479 | {"GAMES/GOMOKU", VAR_PROGS .. "/games/gomoku/trunk/gomoku"}, |
||
480 | {"GAMES/LIGHTS", VAR_PROGS .. "/games/sq_game/trunk/SQ_GAME"}, |
||
481 | {"GAMES/LINES", VAR_PROGS .. "/games/lines/lines"}, |
||
482 | {"GAMES/MSQUARE", VAR_PROGS .. "/games/MSquare/trunk/MSquare"}, |
||
483 | {"GAMES/PIPES", VAR_PROGS .. "/games/pipes/pipes"}, |
||
484 | {"GAMES/PONG", VAR_PROGS .. "/games/pong/trunk/pong"}, |
||
485 | {"GAMES/PONG3", VAR_PROGS .. "/games/pong3/trunk/pong3"}, |
||
486 | {"GAMES/RSQUARE", VAR_PROGS .. "/games/rsquare/trunk/rsquare"}, |
||
487 | {"GAMES/SNAKE", VAR_PROGS .. "/games/snake/trunk/snake"}, |
||
488 | {"GAMES/SUDOKU", VAR_PROGS .. "/games/sudoku/trunk/sudoku"}, |
||
489 | {"GAMES/SW", VAR_PROGS .. "/games/sw/trunk/sw"}, |
||
490 | {"GAMES/TANKS", VAR_PROGS .. "/games/tanks/trunk/tanks"}, |
||
491 | {"GAMES/TETRIS", VAR_PROGS .. "/games/tetris/trunk/tetris"}, |
||
492 | {"LIB/ARCHIVER.OBJ", VAR_PROGS .. "/fs/kfar/trunk/kfar_arc/kfar_arc.obj"}, |
||
493 | {"LIB/BOX_LIB.OBJ", VAR_PROGS .. "/develop/libraries/box_lib/trunk/box_lib.obj"}, |
||
494 | {"LIB/BUF2D.OBJ", VAR_PROGS .. "/develop/libraries/buf2d/trunk/buf2d.obj"}, |
||
495 | {"LIB/CONSOLE.OBJ", VAR_PROGS .. "/develop/libraries/console_coff/console.obj"}, |
||
496 | {"LIB/CNV_PNG.OBJ", VAR_PROGS .. "/media/zsea/plugins/png/cnv_png.obj"}, |
||
497 | {"LIB/DLL.OBJ", VAR_PROGS .. "/develop/libraries/dll/dll.obj"}, |
||
498 | {"LIB/HTTP.OBJ", VAR_PROGS .. "/develop/libraries/http/http.obj"}, |
||
499 | {"LIB/LIBCRASH.OBJ", VAR_PROGS .. "/develop/libraries/libcrash/libcrash.obj"}, |
||
500 | {"LIB/LIBGFX.OBJ", VAR_PROGS .. "/develop/libraries/libs-dev/libgfx/libgfx.obj"}, |
||
501 | {"LIB/LIBIMG.OBJ", VAR_PROGS .. "/develop/libraries/libs-dev/libimg/libimg.obj"}, |
||
502 | {"LIB/LIBINI.OBJ", VAR_PROGS .. "/develop/libraries/libs-dev/libini/libini.obj"}, |
||
503 | {"LIB/LIBIO.OBJ", VAR_PROGS .. "/develop/libraries/libs-dev/libio/libio.obj"}, |
||
504 | {"LIB/MSGBOX.OBJ", VAR_PROGS .. "/develop/libraries/msgbox/msgbox.obj"}, |
||
505 | {"LIB/NETWORK.OBJ", VAR_PROGS .. "/develop/libraries/network/network.obj"}, |
||
506 | {"LIB/PROC_LIB.OBJ", VAR_PROGS .. "/develop/libraries/proc_lib/trunk/proc_lib.obj"}, |
||
507 | {"LIB/RASTERWORKS.OBJ", VAR_PROGS .. "/develop/libraries/fontRasterWorks_unicode/RasterWorks.obj"}, |
||
508 | {"LIB/SORT.OBJ", VAR_PROGS .. "/develop/libraries/sorter/sort.obj"}, |
||
509 | {"LIB/TINYGL.OBJ", VAR_PROGS .. "/develop/libraries/TinyGL/asm_fork/tinygl.obj"}, |
||
510 | {"MEDIA/ANIMAGE", VAR_PROGS .. "/media/animage/trunk/animage"}, |
||
511 | {"MEDIA/KIV", VAR_PROGS .. "/media/kiv/trunk/kiv"}, |
||
512 | {"MEDIA/LISTPLAY", VAR_PROGS .. "/media/listplay/trunk/listplay"}, |
||
513 | {"MEDIA/MIDAMP", VAR_PROGS .. "/media/midamp/trunk/midamp"}, |
||
514 | {"MEDIA/MP3INFO", VAR_PROGS .. "/media/mp3info/mp3info"}, |
||
515 | {"MEDIA/PALITRA", VAR_PROGS .. "/media/palitra/trunk/palitra"}, |
||
516 | {"MEDIA/PIANO", VAR_PROGS .. "/media/piano/piano"}, |
||
517 | {"MEDIA/STARTMUS", VAR_PROGS .. "/media/startmus/trunk/STARTMUS"}, |
||
518 | {"NETWORK/PING", VAR_PROGS .. "/network/ping/ping"}, |
||
519 | {"NETWORK/NETCFG", VAR_PROGS .. "/network/netcfg/netcfg"}, |
||
520 | {"NETWORK/NETSTAT", VAR_PROGS .. "/network/netstat/netstat"}, |
||
521 | {"NETWORK/NSINST", VAR_PROGS .. "/network/netsurf/nsinstall"}, |
||
522 | {"NETWORK/NSLOOKUP", VAR_PROGS .. "/network/nslookup/nslookup"}, |
||
523 | {"NETWORK/PASTA", VAR_PROGS .. "/network/pasta/pasta"}, |
||
524 | {"NETWORK/SYNERGYC", VAR_PROGS .. "/network/synergyc/synergyc"}, |
||
525 | {"NETWORK/SNTP", VAR_PROGS .. "/network/sntp/sntp"}, |
||
526 | {"NETWORK/TELNET", VAR_PROGS .. "/network/telnet/telnet"}, |
||
527 | {"NETWORK/@ZEROCONF", VAR_PROGS .. "/network/zeroconf/zeroconf"}, |
||
528 | {"NETWORK/FTPC", VAR_PROGS .. "/network/ftpc/ftpc"}, |
||
529 | {"NETWORK/FTPD", VAR_PROGS .. "/network/ftpd/ftpd"}, |
||
530 | {"NETWORK/TFTPC", VAR_PROGS .. "/network/tftpc/tftpc"}, |
||
531 | {"NETWORK/IRCC", VAR_PROGS .. "/network/ircc/ircc"}, |
||
532 | {"NETWORK/DOWNLOADER", VAR_PROGS .. "/network/downloader/downloader"}, |
||
533 | {"NETWORK/VNCC", VAR_PROGS .. "/network/vncc/vncc"}, |
||
534 | {"DRIVERS/VIDINTEL.SYS", VAR_DRVS .. "/video/vidintel.sys"}, |
||
535 | {"DRIVERS/3C59X.SYS", VAR_DRVS .. "/ethernet/3c59x.sys"}, |
||
536 | {"DRIVERS/AR81XX.SYS", VAR_DRVS .. "/ethernet/ar81xx.sys"}, |
||
537 | {"DRIVERS/DEC21X4X.SYS", VAR_DRVS .. "/ethernet/dec21x4x.sys"}, |
||
538 | {"DRIVERS/FORCEDETH.SYS", VAR_DRVS .. "/ethernet/forcedeth.sys"}, |
||
539 | {"DRIVERS/I8254X.SYS", VAR_DRVS .. "/ethernet/i8254x.sys"}, |
||
540 | {"DRIVERS/I8255X.SYS", VAR_DRVS .. "/ethernet/i8255x.sys"}, |
||
541 | {"DRIVERS/MTD80X.SYS", VAR_DRVS .. "/ethernet/mtd80x.sys"}, |
||
542 | {"DRIVERS/PCNET32.SYS", VAR_DRVS .. "/ethernet/pcnet32.sys"}, |
||
543 | {"DRIVERS/R6040.SYS", VAR_DRVS .. "/ethernet/R6040.sys"}, |
||
544 | {"DRIVERS/RHINE.SYS", VAR_DRVS .. "/ethernet/rhine.sys"}, |
||
545 | {"DRIVERS/RTL8029.SYS", VAR_DRVS .. "/ethernet/RTL8029.sys"}, |
||
546 | {"DRIVERS/RTL8139.SYS", VAR_DRVS .. "/ethernet/RTL8139.sys"}, |
||
547 | {"DRIVERS/RTL8169.SYS", VAR_DRVS .. "/ethernet/RTL8169.sys"}, |
||
548 | {"DRIVERS/SIS900.SYS", VAR_DRVS .. "/ethernet/sis900.sys"}, |
||
549 | {"DRIVERS/UHCI.SYS", VAR_DRVS .. "/usb/uhci.sys"}, |
||
550 | {"DRIVERS/OHCI.SYS", VAR_DRVS .. "/usb/ohci.sys"}, |
||
551 | {"DRIVERS/EHCI.SYS", VAR_DRVS .. "/usb/ehci.sys"}, |
||
552 | {"DRIVERS/USBHID.SYS", VAR_DRVS .. "/usb/usbhid/usbhid.sys"}, |
||
553 | {"DRIVERS/USBSTOR.SYS", VAR_DRVS .. "/usb/usbstor.sys"}, |
||
554 | {"DRIVERS/RDC.SYS", VAR_DRVS .. "/video/rdc.sys"}, |
||
555 | {"DRIVERS/COMMOUSE.SYS", VAR_DRVS .. "/mouse/commouse.sys"}, |
||
556 | {"DRIVERS/PS2MOUSE.SYS", VAR_DRVS .. "/mouse/ps2mouse4d/trunk/ps2mouse.sys"}, |
||
557 | {"DRIVERS/TMPDISK.SYS", VAR_DRVS .. "/disk/tmpdisk.sys"}, |
||
558 | {"DRIVERS/HDAUDIO.SYS", VAR_DRVS .. "/audio/intel_hda/hdaudio.sys"}, |
||
559 | {"DRIVERS/SB16.SYS", VAR_DRVS .. "/audio/sb16/sb16.sys"}, |
||
560 | {"DRIVERS/SOUND.SYS", VAR_DRVS .. "/audio/sound.sys"}, |
||
561 | {"DRIVERS/INFINITY.SYS", VAR_DRVS .. "/audio/infinity/infinity.sys"}, |
||
562 | {"DRIVERS/AC97.SYS", VAR_DRVS .. "/audio/ac97.sys"}, |
||
563 | {"DRIVERS/EMU10K1X.SYS", VAR_DRVS .. "/audio/emu10k1x.sys"}, |
||
564 | {"DRIVERS/FM801.SYS", VAR_DRVS .. "/audio/fm801.sys"}, |
||
565 | {"DRIVERS/VT823X.SYS", VAR_DRVS .. "/audio/vt823x.sys"}, |
||
566 | {"DRIVERS/SIS.SYS", VAR_DRVS .. "/audio/sis.sys"}, |
||
9924 | Doczom | 567 | {"DRIVERS/SDHCI.SYS", "../drivers/sdhci/sdhci.sys"}, |
5098 | clevermous | 568 | }) |
569 | tup.append_table(extra_files, { |
||
10042 | dunkaist | 570 | {"HD_Load/9x2klbr/", VAR_PROGS .. "/hd_load/9x2klbr/9x2klbr.exe"}, |
571 | {"HD_Load/MeOSLoad/", VAR_PROGS .. "/hd_load/meosload/MeOSload.com"}, |
||
572 | {"HD_Load/mtldr/", VAR_PROGS .. "/hd_load/mtldr/mtldr"}, |
||
573 | {"HD_Load/", VAR_PROGS .. "/hd_load/mtldr_install/mtldr_install.exe"}, |
||
574 | {"HD_Load/USB_Boot/", VAR_PROGS .. "/hd_load/usb_boot/BOOT_F32.BIN"}, |
||
575 | {"HD_Load/USB_Boot/", VAR_PROGS .. "/hd_load/usb_boot/MTLD_F32"}, |
||
576 | {"HD_Load/USB_Boot/", VAR_PROGS .. "/hd_load/usb_boot/inst.exe"}, |
||
577 | {"HD_Load/USB_Boot/", VAR_PROGS .. "/hd_load/usb_boot/setmbr.exe"}, |
||
578 | {"HD_Load/USB_boot_old/", VAR_PROGS .. "/hd_load/usb_boot_old/MeOSload.com"}, |
||
579 | {"HD_Load/USB_boot_old/", VAR_PROGS .. "/hd_load/usb_boot_old/enable.exe"}, |
||
580 | {"kolibrios/3D/3dsheart", VAR_PROGS .. "/demos/3dsheart/trunk/3dsheart"}, |
||
581 | {"kolibrios/3D/flatwav", VAR_PROGS .. "/demos/flatwav/trunk/flatwav"}, |
||
582 | {"kolibrios/3D/mos3de", VAR_PROGS .. "/demos/mos3de/mos3de"}, |
||
583 | {"kolibrios/3D/info3ds/INFO3DS", VAR_PROGS .. "/develop/info3ds/info3ds"}, |
||
584 | {"kolibrios/3D/textures1", VAR_PROGS .. "/develop/libraries/TinyGL/asm_fork/examples/textures1"}, |
||
585 | {"kolibrios/3D/info3ds/INFO3DS_U", VAR_PROGS .. "/develop/info3ds/info3ds_u"}, |
||
586 | {"kolibrios/3D/voxel_editor/VOXEL_EDITOR", VAR_PROGS .. "/media/voxel_editor/trunk/voxel_editor"}, |
||
587 | {"kolibrios/3D/voxel_utilites/VOX_CREATOR" , VAR_PROGS .. "/media/voxel_editor/utilites/vox_creator"}, |
||
588 | {"kolibrios/3D/voxel_utilites/VOX_MOVER" , VAR_PROGS .. "/media/voxel_editor/utilites/vox_mover"}, |
||
589 | {"kolibrios/3D/voxel_utilites/VOX_TGL" , VAR_PROGS .. "/media/voxel_editor/utilites/vox_tgl"}, |
||
590 | {"kolibrios/demos/life3", VAR_PROGS .. "/games/life3/trunk/life3"}, |
||
591 | {"kolibrios/demos/qjulia", VAR_PROGS .. "/demos/qjulia/trunk/qjulia"}, |
||
592 | {"kolibrios/develop/utils/koldbg", VAR_PROGS .. "/develop/koldbg/koldbg"}, |
||
593 | {"kolibrios/games/Almaz", VAR_PROGS .. "/games/almaz/almaz"}, |
||
594 | {"kolibrios/games/arcanii", VAR_PROGS .. "/games/arcanii/trunk/arcanii"}, |
||
595 | {"kolibrios/games/bomber/bomber", VAR_PROGS .. "/games/bomber/bomber"}, |
||
596 | {"kolibrios/games/bomber/bomberdata.bin", VAR_PROGS .. "/games/bomber/sounds/bomberdata.bin"}, |
||
597 | {"kolibrios/games/codemaster/binary_master", VAR_PROGS .. "/games/codemaster/binary_master"}, |
||
598 | {"kolibrios/games/codemaster/hang_programmer", VAR_PROGS .. "/games/codemaster/hang_programmer"}, |
||
599 | {"kolibrios/games/codemaster/kolibri_puzzle", VAR_PROGS .. "/games/codemaster/kolibri_puzzle"}, |
||
600 | {"kolibrios/games/megamaze", VAR_PROGS .. "/games/megamaze/trunk/megamaze"}, |
||
601 | {"kolibrios/games/invaders", VAR_PROGS .. "/games/invaders/invaders"}, |
||
602 | {"kolibrios/games/phenix", VAR_PROGS .. "/games/phenix/trunk/phenix"}, |
||
603 | {"kolibrios/games/soko/soko", VAR_PROGS .. "/games/soko/trunk/SOKO"}, |
||
604 | {"kolibrios/media/img_transform", VAR_PROGS .. "/media/img_transform/img_transform"}, |
||
605 | {"kolibrios/media/zsea/zsea", VAR_PROGS .. "/media/zsea/zSea"}, |
||
606 | {"kolibrios/media/zsea/plugins/cnv_bmp.obj", VAR_PROGS .. "/media/zsea/plugins/bmp/cnv_bmp.obj"}, |
||
607 | {"kolibrios/media/zsea/plugins/cnv_gif.obj", VAR_PROGS .. "/media/zsea/plugins/gif/cnv_gif.obj"}, |
||
608 | {"kolibrios/media/zsea/plugins/cnv_jpeg.obj", VAR_PROGS .. "/media/zsea/plugins/jpeg/cnv_jpeg.obj"}, |
||
609 | {"kolibrios/media/zsea/plugins/convert.obj", VAR_PROGS .. "/media/zsea/plugins/convert/convert.obj"}, |
||
610 | {"kolibrios/media/zsea/plugins/rotate.obj", VAR_PROGS .. "/media/zsea/plugins/rotate/rotate.obj"}, |
||
611 | {"kolibrios/media/zsea/plugins/scaling.obj", VAR_PROGS .. "/media/zsea/plugins/scaling/scaling.obj"}, |
||
612 | {"kolibrios/utils/AMDtemp", VAR_PROGS .. "/system/amd_temp_view/AMDtemp"}, |
||
613 | {"kolibrios/utils/calcplus", VAR_PROGS .. "/other/calcplus/calcplus"}, |
||
614 | {"kolibrios/utils/kfm/kfm", VAR_PROGS .. "/fs/kfm/trunk/kfm"}, |
||
615 | {"kolibrios/utils/tedit/t_edit", VAR_PROGS .. "/other/t_edit/t_edit"}, |
||
5098 | clevermous | 616 | }) |
617 | -- For russian build, add russian-only programs. |
||
618 | if build_type == "rus" then tup.append_table(img_files, { |
||
10042 | dunkaist | 619 | {"PERIOD", VAR_PROGS .. "/other/period/trunk/period"}, |
620 | {"GAMES/KLAVISHA", VAR_PROGS .. "/games/klavisha/trunk/klavisha"}, |
||
621 | {"DEVELOP/EXAMPLES/TESTCON2", VAR_PROGS .. "/develop/libraries/console_coff/examples/testcon2_rus"}, |
||
5098 | clevermous | 622 | }) else tup.append_table(img_files, { |
10042 | dunkaist | 623 | {"DEVELOP/TESTCON2", VAR_PROGS .. "/develop/libraries/console_coff/examples/testcon2_eng"}, |
5098 | clevermous | 624 | }) end |
625 | |||
5334 | Anton_K | 626 | if build_type == "rus" then tup.append_table(extra_files, { |
10042 | dunkaist | 627 | {"kolibrios/games/Dungeons/Dungeons", VAR_PROGS .. "/games/Dungeons/Dungeons"}, |
5334 | Anton_K | 628 | }) end |
629 | |||
5098 | clevermous | 630 | end -- tup.getconfig('NO_FASM') ~= 'full' |
631 | |||
632 | -- Programs that require NASM to compile. |
||
633 | if tup.getconfig('NO_NASM') ~= 'full' then |
||
634 | tup.append_table(img_files, { |
||
10042 | dunkaist | 635 | {"ACLOCK", VAR_PROGS .. "/demos/aclock/trunk/aclock"}, |
636 | {"LOD", VAR_PROGS .. "/fs/lod/lod"}, |
||
637 | {"TIMER", VAR_PROGS .. "/other/Timer/timer"}, |
||
638 | {"TINFO", VAR_PROGS .. "/system/tinfo/tinfo"}, |
||
639 | {"DEVELOP/MSTATE", VAR_PROGS .. "/develop/mstate/mstate"}, |
||
640 | {"DEVELOP/GENFILES", VAR_PROGS .. "/testing/genfiles/GenFiles"}, |
||
641 | {"GAMES/C4", VAR_PROGS .. "/games/c4/trunk/c4"}, |
||
642 | {"MEDIA/FILLSCR", VAR_PROGS .. "/media/FillScr/fillscr"}, |
||
5098 | clevermous | 643 | }) |
7664 | dunkaist | 644 | tup.append_table(extra_files, { |
645 | }) |
||
5098 | clevermous | 646 | end -- tup.getconfig('NO_NASM') ~= 'full' |
647 | |||
7081 | 0CodErr | 648 | -- Programs that require JWASM to compile. |
649 | if tup.getconfig('NO_JWASM') ~= 'full' then |
||
650 | tup.append_table(img_files, { |
||
10042 | dunkaist | 651 | {"LIB/INPUTBOX.OBJ", VAR_PROGS .. "/develop/libraries/InputBox/INPUTBOX.OBJ"}, |
7081 | 0CodErr | 652 | }) |
9797 | dunkaist | 653 | if tup.getconfig('NO_GCC') ~= 'full' then |
654 | tup.append_table(img_files, { |
||
10042 | dunkaist | 655 | {"RUN", VAR_PROGS .. "/system/RunOD/1/RUN"}, |
9797 | dunkaist | 656 | }) |
657 | end |
||
7081 | 0CodErr | 658 | end -- tup.getconfig('NO_JWASM') ~= 'full' |
659 | |||
5098 | clevermous | 660 | -- Programs that require C-- to compile. |
661 | if tup.getconfig('NO_CMM') ~= 'full' then |
||
662 | tup.append_table(img_files, { |
||
10042 | dunkaist | 663 | {"@RESHARE", VAR_PROGS .. "/cmm/misc/reshare.com"}, |
664 | {"APP_PLUS", VAR_PROGS .. "/cmm/app_plus/app_plus.com"}, |
||
665 | {"EASYSHOT", VAR_PROGS .. "/cmm/misc/easyshot.com"}, |
||
666 | {"MOUSECFG", VAR_PROGS .. "/cmm/mousecfg/mousecfg.com"}, |
||
667 | {"BARSCFG", VAR_PROGS .. "/cmm/barscfg/barscfg.com"}, |
||
668 | {"SYSPANEL", VAR_PROGS .. "/cmm/misc/software_widget.com"}, |
||
669 | {"SYSMON", VAR_PROGS .. "/cmm/sysmon/sysmon.com"}, |
||
670 | {"TMPDISK", VAR_PROGS .. "/cmm/tmpdisk/tmpdisk.com"}, |
||
671 | {"DEVELOP/CLIPVIEW", VAR_PROGS .. "/cmm/clipview/clipview.com"}, |
||
672 | {"DEVELOP/MENU", VAR_PROGS .. "/cmm/menu/menu.com"}, |
||
673 | {"DEVELOP/PIPET", VAR_PROGS .. "/cmm/misc/pipet.com"}, |
||
674 | {"File Managers/EOLITE", VAR_PROGS .. "/cmm/eolite/Eolite.com"}, |
||
675 | {"File Managers/KFM2", VAR_PROGS .. "/cmm/misc/kfm2.com"}, |
||
676 | {"KF_VIEW", VAR_PROGS .. "/cmm/kf_font_viewer/font_viewer.com"}, |
||
677 | {"DEVELOP/DIFF", VAR_PROGS .. "/cmm/diff/diff.com"}, |
||
678 | {"GAMES/CLICKS", VAR_PROGS .. "/games/clicks/trunk/clicks.com"}, |
||
679 | {"GAMES/MBLOCKS", VAR_PROGS .. "/cmm/misc/mblocks.com"}, |
||
680 | {"GAMES/FLOOD-IT", VAR_PROGS .. "/games/flood-it/trunk/flood-it.com"}, |
||
681 | {"GAMES/MINE", VAR_PROGS .. "/games/mine/trunk/mine"}, |
||
682 | {"GAMES/NUMBERS", VAR_PROGS .. "/games/FindNumbers/trunk/FindNumbers"}, |
||
683 | {"MEDIA/PIXIE", VAR_PROGS .. "/cmm/pixie2/pixie.com"}, |
||
684 | {"MEDIA/ICONEDIT", VAR_PROGS .. "/cmm/iconedit/iconedit.com"}, |
||
685 | {"NETWORK/DL", VAR_PROGS .. "/cmm/downloader/dl.com"}, |
||
686 | {"NETWORK/WEBVIEW", VAR_PROGS .. "/cmm/browser/WebView.com"}, |
||
5098 | clevermous | 687 | }) |
6776 | leency | 688 | tup.append_table(extra_files, { |
10042 | dunkaist | 689 | {"kolibrios/drivers/drvinst.kex", VAR_PROGS .. "/cmm/drvinst/drvinst.com"}, |
690 | {"kolibrios/drivers/acpi/install.kex", VAR_PROGS .. "/cmm/misc/acpi_install.com"}, |
||
691 | {"kolibrios/games/pig/pigex", VAR_PROGS .. "/cmm/examples/pigex.com"}, |
||
692 | {"kolibrios/games/the_bus/the_bus", VAR_PROGS .. "/cmm/the_bus/the_bus.com"}, |
||
693 | {"kolibrios/KolibriNext/install.kex", VAR_PROGS .. "/cmm/misc/install.com"}, |
||
694 | {"kolibrios/utils/appearance", VAR_PROGS .. "/cmm/appearance/appearance.com"}, |
||
695 | {"kolibrios/utils/dicty.kex", VAR_PROGS .. "/cmm/dicty/dicty.com"}, |
||
696 | {"kolibrios/utils/notes", VAR_PROGS .. "/cmm/notes/notes.com"}, |
||
697 | {"kolibrios/utils/osupdate", VAR_PROGS .. "/cmm/misc/osupdate.com"}, |
||
698 | {"kolibrios/utils/quark", VAR_PROGS .. "/cmm/quark/quark.com"}, |
||
6776 | leency | 699 | }) |
5098 | clevermous | 700 | end -- tup.getconfig('NO_CMM') ~= 'full' |
701 | |||
702 | -- Programs that require MSVC to compile. |
||
703 | if tup.getconfig('NO_MSVC') ~= 'full' then |
||
704 | tup.append_table(img_files, { |
||
10042 | dunkaist | 705 | {"GRAPH", VAR_PROGS .. "/other/graph/graph"}, |
706 | {"TABLE", VAR_PROGS .. "/other/table/table"}, |
||
707 | {"MEDIA/AC97SND", VAR_PROGS .. "/media/ac97snd/ac97snd.bin"}, |
||
708 | {"GAMES/KOSILKA", VAR_PROGS .. "/games/kosilka/kosilka"}, |
||
709 | {"GAMES/RFORCES", VAR_PROGS .. "/games/rforces/trunk/rforces"}, |
||
710 | {"GAMES/XONIX", VAR_PROGS .. "/games/xonix/trunk/xonix"}, |
||
5098 | clevermous | 711 | }) |
5110 | clevermous | 712 | tup.append_table(extra_files, { |
10042 | dunkaist | 713 | {"kolibrios/games/fara/fara", VAR_PROGS .. "/games/fara/trunk/fara"}, |
714 | {"kolibrios/games/LaserTank/LaserTank", VAR_PROGS .. "/games/LaserTank/trunk/LaserTank"}, |
||
5109 | clevermous | 715 | }) |
5098 | clevermous | 716 | end -- tup.getconfig('NO_MSVC') ~= 'full' |
717 | |||
8460 | superturbo | 718 | -- Programs that require TCC to compile. |
719 | if tup.getconfig('NO_TCC') ~= 'full' then |
||
8516 | superturbo | 720 | tup.append_table(img_files, { |
10042 | dunkaist | 721 | {"NETWORK/WHOIS", VAR_PROGS .. "/network/whois/whois"}, |
722 | {"SHELL", VAR_PROGS .. "/system/shell/shell"}, |
||
8516 | superturbo | 723 | }) |
8460 | superturbo | 724 | tup.append_table(extra_files, { |
10042 | dunkaist | 725 | {"kolibrios/utils/thashview", VAR_PROGS .. "/other/TinyHashView/thashview"}, |
726 | {"kolibrios/demos/kmatrix", VAR_PROGS .. "/demos/kmatrix/trunk/kmatrix"}, |
||
727 | {"kolibrios/utils/graph", VAR_PROGS .. "/other/graph/branches/tcc_current/graph"}, |
||
728 | {"kolibrios/develop/TinyBasic/TinyBasic", VAR_PROGS .. "/develop/tinybasic-1.0.4/tinybasic"}, |
||
729 | {"kolibrios/develop/TinyBasic/bas/", SRC_PROGS .. "/develop/tinybasic-1.0.4/bas/*"}, |
||
730 | {"kolibrios/develop/TinyBasic/TinyBasic.man", SRC_PROGS .. "/develop/tinybasic-1.0.4/doc/tinybasic.man"}, |
||
731 | -- {"kolibrios/utils/teatool", VAR_PROGS .. "/other/TEAtool/teatool"}, |
||
732 | {"kolibrios/utils/passwordgen", VAR_PROGS .. "/other/PasswordGen/passwordgen"}, |
||
733 | {"kolibrios/utils/kruler", VAR_PROGS .. "/other/kruler/kruler"}, |
||
734 | {"kolibrios/media/qr_tool", SRC_PROGS .. "/media/qr_tool/qr_tool"}, |
||
735 | {"kolibrios/utils/weather", VAR_PROGS .. "/other/Weather/weather"}, |
||
736 | {"kolibrios/settings/weather.json", SRC_PROGS .. "/other/Weather/weather.json"}, |
||
737 | {"kolibrios/utils/man2html", VAR_PROGS .."/other/man2html/man2html"}, |
||
8460 | superturbo | 738 | }) |
8870 | leency | 739 | end -- tup.getconfig('NO_TCC') ~= 'full' |
8460 | superturbo | 740 | |
5098 | clevermous | 741 | -- Programs that require GCC to compile. |
742 | if tup.getconfig('NO_GCC') ~= 'full' then |
||
743 | tup.append_table(img_files, { |
||
10042 | dunkaist | 744 | {"GAMES/REVERSI", VAR_PROGS .. "/games/reversi/trunk/reversi"}, |
745 | {"LIB/BASE64.OBJ", VAR_PROGS .. "/develop/libraries/base64/base64.obj"}, |
||
746 | {"LIB/LIBC.OBJ", VAR_PROGS .. "/develop/ktcc/trunk/libc.obj/source/libc.obj"}, |
||
747 | {"LIB/ICONV.OBJ", VAR_PROGS .. "/develop/libraries/iconv/iconv.obj"}, |
||
748 | -- {"LIB/MTAR.OBJ", VAR_PROGS .. "/develop/libraries/microtar/mtar.obj"}, |
||
5098 | clevermous | 749 | }) |
750 | tup.append_table(extra_files, { |
||
10042 | dunkaist | 751 | -- {"kolibrios/3D/cubeline", VAR_PROGS .. "/demos/cubeline/trunk/cubeline"}, |
752 | {"kolibrios/3D/gears", VAR_PROGS .. "/demos/gears/gears"}, |
||
753 | {"kolibrios/emul/e80/e80", VAR_PROGS .. "/emulator/e80/trunk/e80"}, |
||
754 | {"kolibrios/emul/uarm/", VAR_CONTRIB .. "/other/uarm/uARM"}, |
||
755 | {"kolibrios/games/2048", VAR_PROGS .. "/games/2048/2048"}, |
||
756 | {"kolibrios/games/checkers", VAR_PROGS .. "/games/checkers/trunk/checkers"}, |
||
757 | {"kolibrios/games/donkey", VAR_PROGS .. "/games/donkey/donkey"}, |
||
758 | {"kolibrios/games/heliothryx", VAR_PROGS .. "/games/heliothryx/heliothryx"}, |
||
759 | {"kolibrios/games/marblematch3", VAR_PROGS .. "/games/marblematch3/marblematch3"}, |
||
760 | {"kolibrios/games/nsider", VAR_PROGS .. "/games/nsider/nsider"}, |
||
761 | {"kolibrios/games/fridge/", VAR_PROGS .. "/games/fridge/fridge"}, |
||
762 | {"kolibrios/develop/lua/lua", VAR_CONTRIB .. "/other/lua-5.2.0/lua"}, |
||
8748 | dunkaist | 763 | {"kolibrios/develop/lua/calc.lua", "../contrib/other/lua-5.2.0/calc.lua"}, |
764 | {"kolibrios/develop/lua/console.lua", "../contrib/other/lua-5.2.0/console.lua"}, |
||
10042 | dunkaist | 765 | {"kolibrios/lib/libc.dll", VAR_PROGS .. "/../contrib/sdk/bin/libc.dll", group = "../contrib/sdk/lib/ |
766 | {"kolibrios/lib/dr_flac.obj", VAR_CONTRIB .. "/media/dr_flac/dr_flac.obj"}, |
||
767 | {"kolibrios/lib/minimp3.obj", VAR_CONTRIB .. "/media/minimp3/minimp3.obj"}, |
||
768 | {"kolibrios/lib/sqlite3.dll", VAR_CONTRIB .. "/sdk/bin/sqlite3.dll", group = "../contrib/sdk/lib/ |
||
769 | {"kolibrios/lib/stb_vorbis.obj", VAR_CONTRIB .. "/media/stb_vorbis/stb_vorbis.obj"}, |
||
770 | {"kolibrios/utils/minizip/minizip", VAR_PROGS .. "/fs/minizip/minizip"}, |
||
771 | {"kolibrios/utils/minizip/miniunz", VAR_PROGS .. "/fs/minizip/miniunz"}, |
||
772 | {"kolibrios/develop/c--/c--", VAR_PROGS .. "/develop/cmm/cmm"}, |
||
773 | {"kolibrios/develop/tcc/tcc", VAR_PROGS .. "/develop/ktcc/trunk/source/tcc"}, |
||
774 | {"kolibrios/develop/sqlite3/sqlite3", VAR_CONTRIB .. "/sdk/sources/sqlite3/shell/sqlite3"}, |
||
775 | {"kolibrios/develop/utils/objconv", VAR_PROGS .. "/develop/objconv/objconv"}, |
||
776 | {"kolibrios/drivers/sensors/k10temp.sys", VAR_DRVS .. "/sensors/k10temp/k10temp.sys"}, |
||
777 | {"kolibrios/drivers/acpi/acpi.sys", VAR_DRVS .. "/devman/acpi.sys"}, |
||
778 | {"kolibrios/drivers/acpi/acpi", VAR_DRVS .. "/devman/acpi"}, |
||
9688 | leency | 779 | {"kolibrios/drivers/geode/geode.sys", "common/drivers/geode/geode.sys"}, -- there is also an autobuid version that is not working |
10042 | dunkaist | 780 | {"kolibrios/drivers/geode/geode", VAR_DRVS .. "/audio/a5536/geode"}, |
5098 | clevermous | 781 | }) |
9797 | dunkaist | 782 | if tup.getconfig('NO_NASM') ~= 'full' then |
783 | tup.append_table(extra_files, { |
||
10042 | dunkaist | 784 | {"kolibrios/games/tyrian/", VAR_CONTRIB .. "/games/opentyrian/opentyrian"}, |
9797 | dunkaist | 785 | {"kolibrios/games/tyrian/data/", "common/games/tyrian/data/*"}, |
786 | {"kolibrios/games/quake/", "common/games/quake/*"}, -- not really gcc, but no sense without sdlquake |
||
10042 | dunkaist | 787 | {"kolibrios/games/quake/", VAR_CONTRIB .. "/other/sdlquake-1.0.9/sdlquake"}, |
788 | {"kolibrios/games/wolf3d/", VAR_CONTRIB .. "/games/wolf3d/wolf3d"}, |
||
9797 | dunkaist | 789 | {"kolibrios/games/wolf3d/", "common/games/wolf3d/*"}, |
10042 | dunkaist | 790 | {"kolibrios/emul/dgen/dgen", VAR_PROGS .. "/emulator/dgen-sdl-1.33/dgen"}, |
791 | {"kolibrios/emul/dgen/dgen.html", SRC_PROGS .. "/emulator/dgen-sdl-1.33/dgen.html"}, |
||
792 | {"kolibrios/emul/dgen/dgenrc.html", SRC_PROGS .. "/emulator/dgen-sdl-1.33/dgenrc.html"}, |
||
9797 | dunkaist | 793 | }) |
794 | end |
||
5327 | igevorse | 795 | -- For russian build, add russian-only programs. |
5329 | igevorse | 796 | if build_type == "rus" then tup.append_table(extra_files, { |
10042 | dunkaist | 797 | {"kolibrios/games/21days", VAR_PROGS .. "/games/21days/21days"}, |
5328 | igevorse | 798 | }) end |
5098 | clevermous | 799 | end -- tup.getconfig('NO_GCC') ~= 'full' |
800 | |||
801 | -- Skins. |
||
802 | tup.include("../skins/skinlist.lua") |
||
803 | |||
804 | --[================================[ CODE ]================================]-- |
||
805 | -- expand extra_files and similar |
||
806 | function expand_extra_files(files) |
||
807 | local result = {} |
||
808 | for i,v in ipairs(files) do |
||
809 | if string.match(v[2], "%*") |
||
810 | then |
||
811 | local g = tup.glob(v[2]) |
||
812 | for j,x in ipairs(g) do |
||
5132 | clevermous | 813 | table.insert(result, {v[1], x, group=v.group}) |
5098 | clevermous | 814 | end |
815 | else |
||
816 | if v.cp1251_from then |
||
817 | tup.definerule{inputs = {v.cp1251_from}, command = 'iconv -f cp866 -t cp1251 "%f" > "%o"', outputs = {v[2]}} |
||
818 | end |
||
5132 | clevermous | 819 | table.insert(result, {v[1], v[2], group=v.group}) |
5098 | clevermous | 820 | end |
821 | end |
||
822 | return result |
||
823 | end |
||
824 | |||
825 | -- append skins to extra_files |
||
826 | for i,v in ipairs(skinlist) do |
||
10042 | dunkaist | 827 | table.insert(extra_files, {"kolibrios/res/skins/", VAR_SKINS .. "/" .. v}) |
5098 | clevermous | 828 | end |
829 | |||
830 | -- prepare distr_extra_files and iso_extra_files: expand and append common part |
||
831 | extra_files = expand_extra_files(extra_files) |
||
832 | distr_extra_files = expand_extra_files(distr_extra_files) |
||
833 | iso_extra_files = expand_extra_files(iso_extra_files) |
||
834 | tup.append_table(distr_extra_files, extra_files) |
||
835 | tup.append_table(iso_extra_files, extra_files) |
||
836 | |||
837 | -- generate list of directories to be created inside kolibri.img |
||
838 | img_dirs = {} |
||
839 | input_deps = {} |
||
840 | for i,v in ipairs(img_files) do |
||
841 | img_file = v[1] |
||
842 | local_file = v[2] |
||
843 | |||
844 | slash_pos = 0 |
||
845 | while true do |
||
846 | slash_pos = string.find(img_file, '/', slash_pos + 1) |
||
847 | if not slash_pos then break end |
||
848 | table.insert(img_dirs, string.sub(img_file, 1, slash_pos - 1)) |
||
849 | end |
||
850 | |||
851 | -- tup does not want to see hidden files as dependencies |
||
852 | if not string.match(local_file, "/%.") then |
||
5132 | clevermous | 853 | table.insert(input_deps, v.group or local_file) |
5098 | clevermous | 854 | end |
855 | end |
||
856 | |||
857 | -- create empty 1.44M file |
||
10042 | dunkaist | 858 | make_img_command1 = '^ MKIMG kolibri.img^ ' -- for tup: don't write full command to logs |
859 | make_img_command1 += "dd status=none if=/dev/zero of=%o count=2880 bs=512" |
||
5098 | clevermous | 860 | -- format it as a standard 1.44M floppy |
10042 | dunkaist | 861 | make_img_command1 += " && mformat -f 1440 -i %o ::" |
5098 | clevermous | 862 | -- copy bootloader |
863 | if tup.getconfig("NO_FASM") ~= "full" then |
||
10042 | dunkaist | 864 | bootloader = VAR_KERNEL .. "/bootloader/boot_fat12.bin" |
865 | make_img_command1 += " && dd status=none if=" .. bootloader .. " of=%o count=1 bs=512 conv=notrunc" |
||
5098 | clevermous | 866 | table.insert(input_deps, bootloader) |
867 | end |
||
868 | -- make folders |
||
869 | table.sort(img_dirs) |
||
870 | for i,v in ipairs(img_dirs) do |
||
871 | if v ~= img_dirs[i-1] then |
||
10042 | dunkaist | 872 | make_img_command1 += ' && mmd -i %o "::' .. v .. '"' |
5098 | clevermous | 873 | end |
874 | end |
||
875 | -- copy files |
||
876 | for i,v in ipairs(img_files) do |
||
877 | local_file = v[2] |
||
10042 | dunkaist | 878 | if v[1] == "KERNEL.MNT" |
5098 | clevermous | 879 | then |
880 | -- for kernel.mnt, insert autobuild revision identifier |
||
881 | -- from .revision to .kernel.mnt |
||
882 | -- note that .revision and .kernel.mnt must begin with . |
||
883 | -- to prevent tup from tracking them |
||
10042 | dunkaist | 884 | cmd = "cp %f %o" |
885 | if tup.getconfig("INSERT_REVISION_ID") ~= "" |
||
886 | then |
||
887 | if build_type == "rus" |
||
888 | then str='$(LANG=ru_RU.utf8 date -u +"[автосборка %d %b %Y %R, r$(get-current-revision)]"|iconv -f utf8 -t cp866)' |
||
889 | else str='$(date -u +"[auto-build %d %b %Y %R, r$(get-current-revision)]")' |
||
890 | end |
||
891 | str = string.gsub(str, "%$", "\\$") -- escape $ as \$ |
||
892 | str = string.gsub(str, "%%", "%%%%") -- escape % as %% |
||
893 | cmd += " && str=" .. str |
||
894 | cmd += ' && echo -n $str | dd status=none of=%o bs=1 seek=`expr 274 - length "$str"` conv=notrunc' |
||
5098 | clevermous | 895 | end |
10042 | dunkaist | 896 | local_file = VAR_KERNEL .. "/.kernel.mnt" |
897 | tup.definerule{inputs = {v[2]}, command = cmd, outputs = {local_file}} |
||
5098 | clevermous | 898 | end |
10042 | dunkaist | 899 | table.insert(input_deps, local_file) |
900 | make_img_command1 += ' && mcopy -moi %o "' .. local_file .. '" "::' .. v[1] .. '"' |
||
5098 | clevermous | 901 | end |
902 | |||
903 | -- generate tup rule for kolibri.img |
||
10042 | dunkaist | 904 | tup.definerule{inputs = input_deps, command = make_img_command1, outputs = {"kolibri.img"}} |
5098 | clevermous | 905 | |
906 | -- generate command and dependencies for mkisofs |
||
10042 | dunkaist | 907 | input_deps = {VAR_DATA .. "/kolibri.img"} |
5098 | clevermous | 908 | iso_files_list = "" |
909 | for i,v in ipairs(iso_extra_files) do |
||
910 | iso_files_list = iso_files_list .. ' "' .. v[1] .. '=' .. v[2] .. '"' |
||
5132 | clevermous | 911 | table.insert(input_deps, v.group or v[2]) |
5098 | clevermous | 912 | end |
913 | |||
914 | -- generate tup rule for kolibri.iso |
||
915 | if tup.getconfig("INSERT_REVISION_ID") ~= "" |
||
9300 | leency | 916 | then volume_id = "KolibriOS r`get-current-revision`" |
5098 | clevermous | 917 | else volume_id = "KolibriOS" |
918 | end |
||
919 | tup.definerule{inputs = input_deps, command = |
||
5118 | clevermous | 920 | '^ MKISOFS kolibri.iso^ ' .. -- for tup: don't write full command to logs |
5098 | clevermous | 921 | 'mkisofs -U -J -pad -b kolibri.img -c boot.catalog -hide-joliet boot.catalog -graft-points ' .. |
922 | '-A "KolibriOS AutoBuilder" -p "CleverMouse" -publisher "KolibriOS Team" -V "' .. volume_id .. '" -sysid "KOLIBRI" ' .. |
||
10042 | dunkaist | 923 | '-iso-level 3 -o %o ' .. VAR_DATA .. '/kolibri.img' .. iso_files_list .. ' 2>&1', |
5098 | clevermous | 924 | outputs = {"kolibri.iso"}} |
925 | |||
926 | -- generate command and dependencies for distribution kit |
||
5104 | clevermous | 927 | cp = 'cp "%f" "%o"' |
10042 | dunkaist | 928 | tup.definerule{inputs = {VAR_DATA .. "/kolibri.img"}, command = cp, outputs = {"distribution_kit/kolibri.img"}} |
5098 | clevermous | 929 | for i,v in ipairs(distr_extra_files) do |
10042 | dunkaist | 930 | cmd = cp:gsub("%%f", string.gsub(v[2], "%%", "%%%%")) -- input can be a group, we can't rely on tup's expansion of %f in this case |
5098 | clevermous | 931 | if string.sub(v[1], -1) == "/" |
5132 | clevermous | 932 | then tup.definerule{inputs = {v.group or v[2]}, command = cmd, outputs = {"distribution_kit/" .. v[1] .. tup.file(v[2])}} |
933 | else tup.definerule{inputs = {v.group or v[2]}, command = cmd, outputs = {"distribution_kit/" .. v[1]}} |
||
5098 | clevermous | 934 | end |
935 | end |
||
8091 | dunkaist | 936 | |
8150 | dunkaist | 937 | -- build kolibri.raw |
10042 | dunkaist | 938 | VAR_KOLIBRI_RAW = VAR_DATA .. "/kolibri.raw" |
939 | raw_mbr = SRC_PROGS .. "/hd_load/usb_boot/mbr" |
||
940 | raw_bootsector = VAR_KERNEL .. "/bootloader/extended_primary_loader/fat32/bootsect.bin" |
||
8148 | dunkaist | 941 | raw_files = { |
10042 | dunkaist | 942 | {"KOLIBRI.IMG", VAR_DATA .. "/kolibri.img"}, |
943 | {"KORDLDR.F32", VAR_KERNEL .. "/bootloader/extended_primary_loader/fat32/kordldr.f32"}, |
||
944 | {"KERNEL.MNT", VAR_KERNEL .. "/kernel.mnt.ext_loader"}, |
||
945 | {"CONFIG.INI", SRC_KERNEL .. "/bootloader/extended_primary_loader/config.ini"}, |
||
946 | {"EFI/BOOT/BOOTX64.EFI", VAR_KERNEL .. "/bootloader/uefi4kos/bootx64.efi"}, |
||
947 | {"EFI/BOOT/BOOTIA32.EFI", VAR_KERNEL .. "/bootloader/uefi4kos/bootia32.efi"}, |
||
948 | {"EFI/KOLIBRIOS/KOLIBRI.IMG", VAR_DATA .. "/kolibri.img"}, |
||
949 | {"EFI/KOLIBRIOS/KOLIBRI.INI", SRC_KERNEL .. "/bootloader/uefi4kos/kolibri.ini"}, |
||
950 | {"EFI/KOLIBRIOS/KOLIBRI.KRN", VAR_KERNEL .. "/kernel.mnt.ext_loader"} |
||
8148 | dunkaist | 951 | } |
952 | |||
953 | for i,v in ipairs(img_files) do |
||
954 | raw_file = "KOLIBRIOS/" .. string.upper(v[1]) |
||
955 | local_file = v[2] |
||
956 | tup.append_table(raw_files, {{raw_file, local_file}}) |
||
957 | end |
||
958 | |||
959 | tup.append_table(raw_files, extra_files) |
||
960 | |||
10042 | dunkaist | 961 | make_raw_command1 = '^ MKRAW kolibri.raw^ ' -- for tup: don't write full command to logs |
962 | make_raw_command1 += "dd status=none if=/dev/zero of=" .. VAR_KOLIBRI_RAW .. " bs=1MiB count=128 2>&1" |
||
963 | make_raw_command1 += " && parted --script " .. VAR_KOLIBRI_RAW .. " mktable gpt" |
||
964 | make_raw_command1 += " && parted --script " .. VAR_KOLIBRI_RAW .. " unit MiB mkpart primary fat32 1 127" |
||
965 | make_raw_command1 += " && parted --script " .. VAR_KOLIBRI_RAW .. " set 1 esp on" |
||
966 | make_raw_command1 += " && sgdisk " .. VAR_KOLIBRI_RAW .. " --hybrid 1:EE" |
||
967 | make_raw_command1 += " && dd status=none if=" .. raw_mbr .. " of=" .. VAR_KOLIBRI_RAW .. " bs=1 count=\\$((0x1b8)) conv=notrunc" |
||
968 | make_raw_command1 += " && dd status=none if=" .. raw_mbr .. " of=" .. VAR_KOLIBRI_RAW .. " bs=1 count=1 skip=\\$((0x5a)) seek=\\$((0x1be)) conv=notrunc" |
||
969 | make_raw_command1 += " && mformat -i " .. VAR_KOLIBRI_RAW .. "@@1M -v KOLIBRIOS -T \\$(((128-1-1)*1024*1024/512)) -h 16 -s 32 -H 2048 -c 1 -F -B " .. raw_bootsector .. " ::" |
||
8091 | dunkaist | 970 | |
8148 | dunkaist | 971 | -- generate list of directories to be created inside kolibri.raw |
972 | raw_dirs = {} |
||
973 | input_deps = {raw_mbr, raw_bootsector} |
||
974 | for i,v in ipairs(raw_files) do |
||
975 | raw_file = v[1] |
||
976 | local_file = v[2] |
||
8091 | dunkaist | 977 | |
9427 | dunkaist | 978 | cur_dir = "" |
979 | for dir in string.gmatch(raw_file, "([^/]+)/") do |
||
980 | cur_dir = cur_dir .. "/" .. string.upper(dir) |
||
981 | raw_dirs[cur_dir] = true |
||
8148 | dunkaist | 982 | end |
983 | |||
984 | -- tup does not want to see hidden files as dependencies |
||
985 | if not string.match(local_file, "/%.") then |
||
986 | table.insert(input_deps, v.group or local_file) |
||
987 | end |
||
988 | end |
||
989 | |||
9427 | dunkaist | 990 | -- Sorting is needed to mkdir /one before /one/two |
991 | raw_dirs_sorted = {} |
||
992 | for k in pairs(raw_dirs) do table.insert(raw_dirs_sorted, k) end |
||
993 | table.sort(raw_dirs_sorted) |
||
994 | raw_dirs = raw_dirs_sorted |
||
8148 | dunkaist | 995 | |
8091 | dunkaist | 996 | -- make folders |
8148 | dunkaist | 997 | table.sort(raw_dirs) |
9427 | dunkaist | 998 | for _, dir in pairs(raw_dirs) do |
10042 | dunkaist | 999 | make_raw_command1 += ' && mmd -i ' .. VAR_KOLIBRI_RAW .. '@@1M "::' .. dir .. '"' |
8091 | dunkaist | 1000 | end |
1001 | |||
9795 | dunkaist | 1002 | -- Put copying of raw_files into separate scripts to avoid 'execl: Argument list too long' |
9429 | dunkaist | 1003 | make_raw_command2 = "true" |
9795 | dunkaist | 1004 | make_raw_command3 = "true" |
8148 | dunkaist | 1005 | -- copy files |
1006 | for i,v in ipairs(raw_files) do |
||
8091 | dunkaist | 1007 | local_file = v[2] |
10042 | dunkaist | 1008 | cmd = ' && mcopy -moi ' .. VAR_KOLIBRI_RAW .. '@@1M "' .. local_file .. '" "::' .. v[1] .. '"' |
1009 | if i < 900 then -- 900 commands require ~100kiB which is below 128kiB with some margin |
||
1010 | make_raw_command2 += cmd |
||
9795 | dunkaist | 1011 | else |
10042 | dunkaist | 1012 | make_raw_command3 += cmd |
9795 | dunkaist | 1013 | end |
10042 | dunkaist | 1014 | table.insert(input_deps, v.group or local_file) |
8091 | dunkaist | 1015 | end |
1016 | |||
10042 | dunkaist | 1017 | tup.definerule{inputs = {}, command = "echo '" .. make_raw_command1 .. "' > %o", outputs = {'make_raw_command1_file'}} |
1018 | tup.definerule{inputs = {}, command = "echo '" .. make_raw_command2 .. "' > %o", outputs = {'make_raw_command2_file'}} |
||
1019 | tup.definerule{inputs = {}, command = "echo '" .. make_raw_command3 .. "' > %o", outputs = {'make_raw_command3_file'}} |
||
9429 | dunkaist | 1020 | |
10042 | dunkaist | 1021 | table.insert(input_deps, 'make_raw_command1_file') |
1022 | table.insert(input_deps, 'make_raw_command2_file') |
||
1023 | table.insert(input_deps, 'make_raw_command3_file') |
||
8091 | dunkaist | 1024 | -- generate tup rule for kolibri.raw |
10042 | dunkaist | 1025 | tup.definerule{inputs = input_deps, command = make_raw_command1 .. " && bash " .. VAR_DATA .. "/make_raw_command2_file && bash " .. VAR_DATA .. "/make_raw_command3_file", outputs = {"kolibri.raw"}}> |