Rev 6699 | Rev 6729 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
6310 | akron1 | 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 | |||
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"}, |
||
5827 | leency | 18 | {"TOOLBAR.PNG", PROGS .. "/cmm/textreader/toolbar.png"}, |
5098 | clevermous | 19 | {"DEVELOP/TE_ICON.PNG", PROGS .. "/other/t_edit/te_icon.png"}, |
20 | {"DEVELOP/TL_NOD_16.PNG", PROGS .. "/other/t_edit/tl_nod_16.png"}, |
||
21 | {"DEVELOP/TL_SYS_16.PNG", PROGS .. "/media/log_el/trunk/tl_sys_16.png"}, |
||
22 | {"DEVELOP/T_EDIT.INI", PROGS .. "/other/t_edit/t_edit.ini"}, |
||
6063 | leency | 23 | {"FB2READ", "common/fb2read"}, |
5098 | clevermous | 24 | {"File Managers/Z_ICONS.PNG", PROGS .. "/fs/opendial/z_icons.png"}, |
25 | {"File Managers/BUTTONS.BMP", PROGS .. "/fs/kfm/trunk/buttons.bmp"}, |
||
26 | {"File Managers/ICONS.BMP", PROGS .. "/fs/kfm/trunk/icons.bmp"}, |
||
27 | {"FONTS/LITT.CHR", PROGS .. "/demos/bgitest/trunk/FONTS/LITT.CHR"}, |
||
5764 | leency | 28 | {"FONTS/TAHOMA.KF", "common/fonts/tahoma.kf"}, |
5098 | clevermous | 29 | {"GAMES/SNAKE.INI", PROGS .. "/games/snake/trunk/snake.ini"}, |
30 | {"MEDIA/KIV.INI", PROGS .. "/media/kiv/trunk/kiv.ini"}, |
||
5468 | leency | 31 | {"MEDIA/PIXIE/PIXIE.INI", PROGS .. "/cmm/pixie/pixie.ini"}, |
32 | {"MEDIA/PIXIE/S_DARK.PNG", PROGS .. "/cmm/pixie/s_dark.png"}, |
||
33 | {"MEDIA/PIXIE/S_LIGHT.PNG", PROGS .. "/cmm/pixie/s_light.png"}, |
||
34 | {"MEDIA/PIXIE/MINIMP3", PROGS .. "/cmm/pixie/minimp3"}, |
||
5098 | clevermous | 35 | {"NETWORK/WV_SKIN.PNG", PROGS .. "/cmm/browser/wv_skin.png"}, |
5873 | pathoswith | 36 | {"SETTINGS/AUTORUN.DAT", "common/settings/AUTORUN.DAT"}, |
5098 | clevermous | 37 | {"SETTINGS/ICON.INI", build_type .. "/settings/icon.ini"}, |
5425 | leency | 38 | {"ICONS32.PNG", "common/icons32.png"}, |
5762 | leency | 39 | {"INDEX.HTM", "common/index_htm"}, |
5098 | clevermous | 40 | {"KERPACK", "common/kerpack"}, |
5873 | pathoswith | 41 | {"SETTINGS/KEYMAP.KEY", PROGS .. "/system/taskbar/trunk/KEYMAP.KEY"}, |
5098 | clevermous | 42 | {"SETTINGS/LANG.INI", build_type .. "/settings/lang.ini"}, |
43 | {"KUZKINA.MID", "common/kuzkina.mid"}, |
||
44 | {"LANG.INC", build_type .. "/lang.inc"}, |
||
45 | {"SETTINGS/MENU.DAT", build_type .. "/settings/menu.dat"}, |
||
46 | {"SETTINGS/KOLIBRI.LBL", build_type .. "/settings/kolibri.lbl"}, |
||
5453 | leency | 47 | {"SETTINGS/TASKBAR.INI", build_type .. "/settings/taskbar.ini"}, |
5863 | punk_joker | 48 | {"SETTINGS/ESKIN.INI", "common/settings/eskin.ini"}, |
5098 | clevermous | 49 | {"SETTINGS/DOCKY.INI", "common/settings/docky.ini"}, |
5394 | eAndrew | 50 | {"SETTINGS/ASSOC.INI", "common/settings/assoc.ini"}, |
6065 | leency | 51 | {"SETTINGS/SYSPANEL.INI", "common/settings/syspanel.ini"}, |
6310 | akron1 | 52 | {"SETTINGS/FB2READ.INI", "common/settings/fb2read.ini"}, |
5098 | clevermous | 53 | {"NOTIFY3.PNG", "common/notify3.png"}, |
5972 | leency | 54 | {"SETTINGS/SYSTEM.INI", "common/settings/system.ini"}, |
5098 | clevermous | 55 | {"VMODE", "common/vmode"}, |
56 | {"3D/HOUSE.3DS", "common/3d/house.3ds"}, |
||
57 | {"File Managers/EOLITE.INI", "common/File Managers/eolite.ini"}, |
||
58 | {"File Managers/ICONS.INI", "common/File Managers/icons.ini"}, |
||
59 | {"File Managers/KFM.INI", "common/File Managers/kfm.ini"}, |
||
60 | {"LIB/PIXLIB.OBJ", "common/lib/pixlib.obj"}, |
||
5882 | pavelyakov | 61 | {"LIB/FS.OBJ", "common/lib/fs.obj"}, |
62 | {"LIB/ARRAY.OBJ", "common/lib/array.obj"}, |
||
63 | {"LIB/LIBRARY.OBJ", "common/lib/library.obj"}, |
||
5098 | clevermous | 64 | {"LIB/ICONV.OBJ", "common/lib/iconv.obj"}, |
65 | {"LIB/NETCODE.OBJ", "common/lib/netcode.obj"}, |
||
5647 | leency | 66 | {"LIB/KMENU.OBJ", "common/lib/kmenu.obj"}, |
67 | {"MEDIA/IMGF/IMGF", "common/media/ImgF/ImgF"}, |
||
68 | {"MEDIA/IMGF/CEDG.OBJ", "common/media/ImgF/cEdg.obj"}, |
||
69 | {"MEDIA/IMGF/DITHER.OBJ", "common/media/ImgF/dither.obj"}, |
||
70 | {"MEDIA/IMGF/INVSOL.OBJ", "common/media/ImgF/invSol.obj"}, |
||
5098 | clevermous | 71 | {"SETTINGS/NETWORK.INI", build_type .. "/settings/network.ini"}, |
72 | {"NETWORK/FTPD.INI", "common/network/ftpd.ini"}, |
||
73 | {"NETWORK/USERS.INI", "common/network/users.ini"}, |
||
74 | } |
||
75 | -- For russian build, add russian-only files. |
||
76 | if build_type == "rus" then tup.append_table(img_files, { |
||
77 | {"File Managers/KFM_KEYS.TXT", PROGS .. "/fs/kfm/trunk/docs/russian/dos_kolibri/kfm_keys.txt"}, |
||
78 | {"SETTINGS/.shell", PROGS .. "/system/shell/bin/rus/.shell"}, |
||
5502 | punk_joker | 79 | {"SETTINGS/GAME_CENTER.INI", "rus/settings/game_center.ini"}, |
5098 | clevermous | 80 | {"SETTINGS/MYKEY.INI", PROGS .. "/system/MyKey/trunk/mykey.ini"}, |
81 | {"EXAMPLE.ASM", PROGS .. "/develop/examples/example/trunk/rus/example.asm"}, |
||
82 | {"PIPETKA", build_type .. "/pipetka"}, |
||
83 | {"File Managers/KFAR.INI", build_type .. "/File Managers/kfar.ini"}, |
||
84 | {"GAMES/APPDATA.DAT", build_type .. "/games/appdata.dat"}, |
||
85 | {"GAMES/ATAKA", build_type .. "/games/ataka"}, |
||
86 | {"GAMES/BASEKURS.KLA", build_type .. "/games/basekurs.kla"}, |
||
87 | {"GAMES/PADENIE", build_type .. "/games/padenie"}, |
||
88 | {"GAMES/WHOWTBAM", build_type .. "/games/whowtbam"}, |
||
89 | }) else tup.append_table(img_files, { |
||
90 | {"File Managers/KFM_KEYS.TXT", PROGS .. "/fs/kfm/trunk/docs/english/kfm_keys.txt"}, |
||
5502 | punk_joker | 91 | {"SETTINGS/GAME_CENTER.INI", "common/settings/game_center.ini"}, |
5098 | clevermous | 92 | {"SETTINGS/.shell", PROGS .. "/system/shell/bin/eng/.shell"}, |
93 | {"EXAMPLE.ASM", PROGS .. "/develop/examples/example/trunk/example.asm"}, |
||
94 | {"File Managers/KFAR.INI", "common/File Managers/kfar.ini"}, |
||
95 | }) end |
||
96 | if build_type == "it" then tup.append_table(img_files, { |
||
97 | {"SETTINGS/MYKEY.INI", PROGS .. "/system/MyKey/trunk/mykey_it.ini"}, |
||
98 | }) else tup.append_table(img_files, { |
||
99 | {"SETTINGS/MYKEY.INI", PROGS .. "/system/MyKey/trunk/mykey.ini"}, |
||
100 | }) end |
||
101 | |||
102 | --[[ |
||
103 | Files to be included in kolibri.iso and distribution kit outside of kolibri.img. |
||
5132 | clevermous | 104 | |
5098 | clevermous | 105 | The first subitem of every item is name relative to the root of ISO or distribution kit, |
106 | the second is name of local file. |
||
5132 | clevermous | 107 | |
5098 | clevermous | 108 | If the first subitem ends in /, the last component of local file name is appended. |
109 | The last component of the second subitem may contain '*'; if so, it will be expanded |
||
110 | according to usual rules, but without matching directories. |
||
5132 | clevermous | 111 | |
112 | Tup does not allow a direct dependency on a file that is generated in a directory |
||
113 | other than where Tupfile.lua is and its children. Most files are generated |
||
114 | in the directory with Tupfile.lua; for other files, the item should contain |
||
115 | a named subitem "group=path/ |
||
5098 | clevermous | 116 | --]] |
117 | extra_files = { |
||
118 | {"/", build_type .. "/distr_data/autorun.inf"}, |
||
119 | {"/", build_type .. "/distr_data/KolibriOS_icon.ico"}, |
||
120 | {"/", build_type .. "/settings/kolibri.lbl"}, |
||
121 | {"Docs/stack.txt", build_type .. "/docs/STACK.TXT"}, |
||
122 | {"HD_Load/9x2klbr/", "common/HD_load/9x2klbr/LDKLBR.VXD"}, |
||
123 | {"HD_Load/MeOSLoad/", PROGS .. "/hd_load/meosload/AUTOEXEC.BAT"}, |
||
124 | {"HD_Load/MeOSLoad/", PROGS .. "/hd_load/meosload/CONFIG.SYS"}, |
||
125 | {"HD_Load/MeOSLoad/", PROGS .. "/hd_load/meosload/L_readme.txt"}, |
||
126 | {"HD_Load/MeOSLoad/", PROGS .. "/hd_load/meosload/L_readme_Win.txt"}, |
||
127 | {"HD_Load/mtldr/", PROGS .. "/hd_load/mtldr/vista_install.bat"}, |
||
128 | {"HD_Load/mtldr/", PROGS .. "/hd_load/mtldr/vista_remove.bat"}, |
||
129 | {"HD_Load/", "common/HD_load/memdisk"}, |
||
130 | {"HD_Load/USB_boot_old/", PROGS .. "/hd_load/usb_boot_old/usb_boot.rtf"}, |
||
131 | {"HD_Load/USB_boot_old/", PROGS .. "/hd_load/usb_boot_old/usb_boot_866.txt"}, |
||
132 | {"HD_Load/USB_boot_old/", PROGS .. "/hd_load/usb_boot_old/usb_boot_1251.txt"}, |
||
6226 | leency | 133 | {"kolibrios/3D/3dsheart", PROGS .. "/demos/3dsheart/trunk/3dsheart"}, |
134 | {"kolibrios/3D/info3ds/INFO3DS", PROGS .. "/develop/info3ds/info3ds"}, |
||
135 | {"kolibrios/3D/info3ds/INFO3DS_U", PROGS .. "/develop/info3ds/info3ds_u"}, |
||
136 | {"kolibrios/3D/info3ds/INFO3DS.INI", PROGS .. "/develop/info3ds/info3ds.ini"}, |
||
137 | {"kolibrios/3D/info3ds/OBJECTS.PNG", PROGS .. "/develop/info3ds/objects.png"}, |
||
138 | {"kolibrios/3D/info3ds/TL_SYS_16.PNG", PROGS .. "/develop/info3ds/tl_sys_16.png"}, |
||
139 | {"kolibrios/3D/info3ds/TOOLBAR.PNG", PROGS .. "/develop/info3ds/toolbar.png"}, |
||
6237 | IgorA | 140 | {"kolibrios/3D/info3ds/FONT8X9.BMP", PROGS .. "/fs/kfar/trunk/font8x9.bmp"}, |
6583 | leency | 141 | {"kolibrios/3D/md2view/", "common/3d/md2view/*"}, |
6584 | leency | 142 | {"kolibrios/3D/md2view/md2_model/", "common/3d/md2view/md2_model/*"}, |
6247 | IgorA | 143 | {"kolibrios/3D/voxel_editor/VOXEL_EDITOR", PROGS .. "/media/voxel_editor/trunk/voxel_editor"}, |
144 | {"kolibrios/3D/voxel_editor/CURSORS.PNG", PROGS .. "/media/voxel_editor/trunk/cursors.png"}, |
||
145 | {"kolibrios/3D/voxel_editor/CURSORS_GR.PNG", PROGS .. "/media/voxel_editor/trunk/cursors_gr.png"}, |
||
146 | {"kolibrios/3D/voxel_editor/TOOLBAR.PNG", PROGS .. "/media/voxel_editor/trunk/toolbar.png"}, |
||
6248 | IgorA | 147 | {"kolibrios/3D/voxel_editor/VOX_EDITOR.INI", PROGS .. "/media/voxel_editor/trunk/vox_editor.ini"}, |
6247 | IgorA | 148 | {"kolibrios/3D/voxel_editor/HOUSE1.VOX", PROGS .. "/media/voxel_editor/trunk/house1.vox"}, |
149 | {"kolibrios/3D/voxel_editor/HOUSE2.VOX", PROGS .. "/media/voxel_editor/trunk/house2.vox"}, |
||
6279 | IgorA | 150 | {"kolibrios/3D/voxel_editor/SQUIRREL.VOX", PROGS .. "/media/voxel_editor/trunk/squirrel.vox"}, |
151 | {"kolibrios/3D/voxel_utilites/VOX_CREATOR" , PROGS .. "/media/voxel_editor/utilites/vox_creator"}, |
||
152 | {"kolibrios/3D/voxel_utilites/VOX_MOVER" , PROGS .. "/media/voxel_editor/utilites/vox_mover"}, |
||
153 | {"kolibrios/3D/voxel_utilites/VOX_TGL" , PROGS .. "/media/voxel_editor/utilites/vox_tgl"}, |
||
154 | {"kolibrios/3D/voxel_utilites/VOX_MOVER.INI" , PROGS .. "/media/voxel_editor/utilites/vox_mover.ini"}, |
||
155 | {"kolibrios/3D/voxel_utilites/TOOLBAR.PNG" , PROGS .. "/media/voxel_editor/utilites/toolbar.png"}, |
||
156 | {"kolibrios/3D/voxel_utilites/TOOLBAR_M.PNG" , PROGS .. "/media/voxel_editor/utilites/toolbar_m.png"}, |
||
157 | {"kolibrios/3D/voxel_utilites/TOOLBAR_T.PNG" , PROGS .. "/media/voxel_editor/utilites/toolbar_t.png"}, |
||
6287 | IgorA | 158 | {"kolibrios/3D/FONT8X9.BMP", PROGS .. "/fs/kfar/trunk/font8x9.bmp"}, |
159 | {"kolibrios/3D/TOOLB_1.PNG", PROGS .. "/develop/libraries/TinyGL/asm_fork/examples/toolb_1.png"}, |
||
160 | {"kolibrios/3D/GEARS", PROGS .. "/develop/libraries/TinyGL/asm_fork/examples/gears"}, |
||
161 | {"kolibrios/3D/TEST_GLU1", PROGS .. "/develop/libraries/TinyGL/asm_fork/examples/test_glu1"}, |
||
162 | {"kolibrios/3D/TEST_GLU2", PROGS .. "/develop/libraries/TinyGL/asm_fork/examples/test_glu2"}, |
||
163 | {"kolibrios/3D/TEXT_2.PNG", PROGS .. "/develop/libraries/TinyGL/asm_fork/examples/text_2.png"}, |
||
164 | {"kolibrios/3D/TEXTURES1", PROGS .. "/develop/libraries/TinyGL/asm_fork/examples/textures1"}, |
||
6613 | leency | 165 | {"kolibrios/develop/oberon07/", PROGS .. "/develop/oberon07/*"}, |
166 | {"kolibrios/develop/oberon07/Docs/", PROGS .. "/develop/oberon07/Docs/*"}, |
||
167 | {"kolibrios/develop/oberon07/Lib/KolibriOS/", PROGS .. "/develop/oberon07/Lib/KolibriOS/*"}, |
||
168 | {"kolibrios/develop/oberon07/Samples/", PROGS .. "/develop/oberon07/Samples/*"}, |
||
5098 | clevermous | 169 | {"kolibrios/emul/dosbox/", "common/emul/DosBox/*"}, |
6225 | leency | 170 | {"kolibrios/emul/e80/readme.txt", PROGS .. "/emulator/e80/trunk/readme.txt"}, |
171 | {"kolibrios/emul/fceu/fceu", PROGS .. "/emulator/fceu/fceu"}, |
||
172 | {"kolibrios/emul/fceu/FCEU ReadMe.txt", PROGS .. "/emulator/fceu/FCEU ReadMe.txt"}, |
||
5098 | clevermous | 173 | {"kolibrios/emul/", "common/emul/gameboy"}, |
6578 | leency | 174 | {"kolibrios/emul/", "common/emul/pokemini"}, |
5098 | clevermous | 175 | {"kolibrios/emul/", "common/emul/scummvm"}, |
176 | {"kolibrios/emul/", "common/emul/zsnes"}, |
||
5827 | leency | 177 | {"kolibrios/demos/ak47.lif", "common/demos/ak47.lif"}, |
178 | {"kolibrios/demos/life2", "common/demos/life2"}, |
||
179 | {"kolibrios/demos/relay.lif", "common/demos/relay.lif"}, |
||
180 | {"kolibrios/demos/rpento.lif", "common/demos/rpento.lif"}, |
||
6579 | leency | 181 | {"kolibrios/demos/buddhabrot", PROGS .. "/demos/buddhabrot/trunk/buddhabrot"}, |
182 | {"kolibrios/demos/qjulia", PROGS .. "/demos/qjulia/trunk/qjulia"}, |
||
6276 | leency | 183 | {"kolibrios/games/Almaz", PROGS .. "/games/almaz/almaz"}, |
6179 | leency | 184 | {"kolibrios/games/BabyPainter", "common/games/BabyPainter"}, |
185 | {"kolibrios/games/bomber/ackack.bmp", PROGS .. "/games/bomber/ackack.bmp"}, |
||
186 | {"kolibrios/games/bomber/bomb.bmp", PROGS .. "/games/bomber/bomb.bmp"}, |
||
187 | {"kolibrios/games/bomber/plane.bmp", PROGS .. "/games/bomber/plane.bmp"}, |
||
188 | {"kolibrios/games/bomber/tile.bmp", PROGS .. "/games/bomber/tile.bmp"}, |
||
189 | {"kolibrios/games/doom1/", "common/games/doom/*"}, |
||
5500 | punk_joker | 190 | {"kolibrios/games/pig/", "common/games/pig/*"}, |
5098 | clevermous | 191 | {"kolibrios/games/fara/fara.gfx", "common/games/fara.gfx"}, |
5647 | leency | 192 | {"kolibrios/games/jumpbump/", "common/games/jumpbump/*"}, |
6179 | leency | 193 | {"kolibrios/games/knight", "common/games/knight"}, |
5296 | ZblCoder | 194 | {"kolibrios/games/LaserTank/", "common/games/LaserTank/*"}, |
5098 | clevermous | 195 | {"kolibrios/games/lrl/", "common/games/lrl/*"}, |