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