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