Rev 8739 | Rev 8748 | Go to most recent revision | 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 | |||
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"}, |
7425 | leency | 19 | {"ALLGAMES", "common/allgames"}, |
7653 | leency | 20 | {"HOME.PNG", "common/wallpapers/home.png"}, |
6958 | leency | 21 | {"ICONS32.PNG", "common/icons32.png"}, |
7052 | leency | 22 | {"ICONS16.PNG", "common/icons16.png"}, |
6958 | leency | 23 | {"INDEX.HTM", "common/index_htm"}, |
24 | {"KUZKINA.MID", "common/kuzkina.mid"}, |
||
8131 | dunkaist | 25 | {"SINE.MP3", "common/sine.mp3"}, |
6958 | leency | 26 | {"LANG.INC", build_type .. "/lang.inc"}, |
27 | {"NOTIFY3.PNG", "common/notify3.png"}, |
||
7864 | leency | 28 | {"UNIMG", PROGS .. "/fs/unimg/unimg"}, |
6958 | leency | 29 | {"3D/HOUSE.3DS", "common/3d/house.3ds"}, |
30 | {"File Managers/ICONS.INI", "common/File Managers/icons.ini"}, |
||
31 | {"File Managers/KFM.INI", "common/File Managers/kfm.ini"}, |
||
7053 | leency | 32 | {"File Managers/FNAV/ABOUT.TXT", "common/File Managers/fNav/About.txt"}, |
7029 | 0CodErr | 33 | {"File Managers/FNAV/FNAV", "common/File Managers/fNav/fNav.kex"}, |
34 | {"File Managers/FNAV/FNAV.EXT", "common/File Managers/fNav/fnav.ext"}, |
||
35 | {"File Managers/FNAV/FNAV.SET", "common/File Managers/fNav/fnav.set"}, |
||
36 | {"File Managers/FNAV/FNAV_CUR.PNG", "common/File Managers/fNav/fnav_cur.png"}, |
||
37 | {"File Managers/FNAV/FNAV_FNT.PNG", "common/File Managers/fNav/fnav_fnt.png"}, |
||
7053 | leency | 38 | {"File Managers/FNAV/FNAV_ICN.PNG", "common/File Managers/fNav/fnav_icn.png"}, |
5764 | leency | 39 | {"FONTS/TAHOMA.KF", "common/fonts/tahoma.kf"}, |
6958 | leency | 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"}, |
||
7633 | leency | 48 | {"MEDIA/PIXIESKN.PNG", PROGS .. "/cmm/pixie2/pixieskn.png"}, |
7211 | nisargshah | 49 | {"NETWORK/FTPC.INI", PROGS .. "/network/ftpc/ftpc.ini"}, |
6958 | leency | 50 | {"NETWORK/FTPD.INI", "common/network/ftpd.ini"}, |
51 | {"NETWORK/USERS.INI", "common/network/users.ini"}, |
||
7632 | leency | 52 | {"NETWORK/FTPC_SYS.PNG", PROGS .. "/network/ftpc/ftpc_sys.png"}, |
53 | {"NETWORK/FTPC_NOD.PNG", PROGS .. "/network/ftpc/ftpc_nod.png"}, |
||
7429 | leency | 54 | {"SETTINGS/APP.INI", "common/settings/app.ini"}, |
7519 | leency | 55 | {"SETTINGS/APP_PLUS.INI", "common/settings/app_plus.ini"}, |
7429 | leency | 56 | {"SETTINGS/ASSOC.INI", "common/settings/assoc.ini"}, |
5873 | pathoswith | 57 | {"SETTINGS/AUTORUN.DAT", "common/settings/AUTORUN.DAT"}, |
8738 | leency | 58 | {"SETTINGS/CEDIT.INI", PROGS .. "/develop/cedit/CEDIT.INI"}, |
6958 | leency | 59 | {"SETTINGS/DOCKY.INI", "common/settings/docky.ini"}, |
60 | {"SETTINGS/FB2READ.INI", "common/settings/fb2read.ini"}, |
||
7429 | leency | 61 | {"SETTINGS/HOTANGLES.CFG", PROGS .. "/other/ha/SETTINGS/HOTANGLES.CFG"}, |
5098 | clevermous | 62 | {"SETTINGS/ICON.INI", build_type .. "/settings/icon.ini"}, |
5873 | pathoswith | 63 | {"SETTINGS/KEYMAP.KEY", PROGS .. "/system/taskbar/trunk/KEYMAP.KEY"}, |
6958 | leency | 64 | {"SETTINGS/KOLIBRI.LBL", build_type .. "/settings/kolibri.lbl"}, |
5098 | clevermous | 65 | {"SETTINGS/LANG.INI", build_type .. "/settings/lang.ini"}, |
66 | {"SETTINGS/MENU.DAT", build_type .. "/settings/menu.dat"}, |
||
7137 | dunkaist | 67 | {"SETTINGS/NETWORK.INI", "common/settings/network.ini"}, |
5972 | leency | 68 | {"SETTINGS/SYSTEM.INI", "common/settings/system.ini"}, |
7429 | leency | 69 | {"SETTINGS/TASKBAR.INI", "common/settings/taskbar.ini"}, |
8589 | turbocat | 70 | {"SETTINGS/weather.json", PROGS .. "/other/Weather/weather.json"}, |
5098 | clevermous | 71 | } |
7010 | 0CodErr | 72 | |
5098 | clevermous | 73 | -- For russian build, add russian-only files. |
74 | if build_type == "rus" then tup.append_table(img_files, { |
||
7769 | leency | 75 | {"EXAMPLE.ASM", PROGS .. "/develop/examples/example/trunk/rus/example.asm"}, |
7994 | leency | 76 | {"DEVELOP/BACKY", PROGS .. "/develop/backy/Backy_ru"}, |
7769 | leency | 77 | {"GAMES/BASEKURS.KLA", build_type .. "/games/basekurs.kla"}, |
78 | {"File Managers/KFAR.INI", build_type .. "/File Managers/kfar.ini"}, |
||
5098 | clevermous | 79 | {"File Managers/KFM_KEYS.TXT", PROGS .. "/fs/kfm/trunk/docs/russian/dos_kolibri/kfm_keys.txt"}, |
8512 | leency | 80 | {"GAMES/DESCENT", build_type .. "/games/descent"}, |
5098 | clevermous | 81 | {"SETTINGS/.shell", PROGS .. "/system/shell/bin/rus/.shell"}, |
7426 | leency | 82 | {"SETTINGS/GAMES.INI", "rus/settings/games.ini"}, |
5098 | clevermous | 83 | {"SETTINGS/MYKEY.INI", PROGS .. "/system/MyKey/trunk/mykey.ini"}, |
7769 | leency | 84 | {"SETTINGS/SYSPANEL.INI", "rus/settings/syspanel.ini"}, |
7010 | 0CodErr | 85 | }) elseif build_type == "eng" then tup.append_table(img_files, { |
7769 | leency | 86 | {"EXAMPLE.ASM", PROGS .. "/develop/examples/example/trunk/example.asm"}, |
7994 | leency | 87 | {"DEVELOP/BACKY", PROGS .. "/develop/backy/Backy"}, |
7769 | leency | 88 | {"File Managers/KFAR.INI", "common/File Managers/kfar.ini"}, |
7015 | 0CodErr | 89 | {"File Managers/KFM_KEYS.TXT", PROGS .. "/fs/kfm/trunk/docs/english/kfm_keys.txt"}, |
8512 | leency | 90 | {"GAMES/DESCENT", "common/games/descent"}, |
7769 | leency | 91 | {"SETTINGS/.shell", PROGS .. "/system/shell/bin/eng/.shell"}, |
7426 | leency | 92 | {"SETTINGS/GAMES.INI", "common/settings/games.ini"}, |
7769 | leency | 93 | {"SETTINGS/MYKEY.INI", PROGS .. "/system/MyKey/trunk/mykey.ini"}, |
94 | {"SETTINGS/SYSPANEL.INI", "common/settings/syspanel.ini"}, |
||
95 | }) elseif build_type == "sp" then tup.append_table(img_files, { |
||
7015 | 0CodErr | 96 | {"EXAMPLE.ASM", PROGS .. "/develop/examples/example/trunk/example.asm"}, |
7994 | leency | 97 | {"DEVELOP/BACKY", PROGS .. "/develop/backy/Backy"}, |
7015 | 0CodErr | 98 | {"File Managers/KFAR.INI", "common/File Managers/kfar.ini"}, |
99 | {"File Managers/KFM_KEYS.TXT", PROGS .. "/fs/kfm/trunk/docs/english/kfm_keys.txt"}, |
||
8512 | leency | 100 | {"GAMES/DESCENT", "common/games/descent"}, |
7769 | leency | 101 | {"SETTINGS/.shell", PROGS .. "/system/shell/bin/eng/.shell"}, |
7426 | leency | 102 | {"SETTINGS/GAMES.INI", "common/settings/games.ini"}, |
7015 | 0CodErr | 103 | {"SETTINGS/MYKEY.INI", 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, { |
7769 | leency | 106 | {"EXAMPLE.ASM", PROGS .. "/develop/examples/example/trunk/example.asm"}, |
7994 | leency | 107 | {"DEVELOP/BACKY", PROGS .. "/develop/backy/Backy"}, |
7769 | leency | 108 | {"File Managers/KFAR.INI", "common/File Managers/kfar.ini"}, |
7015 | 0CodErr | 109 | {"File Managers/KFM_KEYS.TXT", PROGS .. "/fs/kfm/trunk/docs/english/kfm_keys.txt"}, |
8512 | leency | 110 | {"GAMES/DESCENT", "common/games/descent"}, |
7015 | 0CodErr | 111 | {"SETTINGS/.shell", PROGS .. "/system/shell/bin/eng/.shell"}, |
7010 | 0CodErr | 112 | {"SETTINGS/MYKEY.INI", PROGS .. "/system/MyKey/trunk/mykey_it.ini"}, |
7769 | leency | 113 | {"SETTINGS/GAMES.INI", "common/settings/games.ini"}, |
114 | {"SETTINGS/SYSPANEL.INI", "common/settings/syspanel.ini"}, |
||
5098 | clevermous | 115 | }) else tup.append_table(img_files, { |
7769 | leency | 116 | {"EXAMPLE.ASM", PROGS .. "/develop/examples/example/trunk/example.asm"}, |
7994 | leency | 117 | {"DEVELOP/BACKY", PROGS .. "/develop/backy/Backy"}, |
5098 | clevermous | 118 | {"File Managers/KFM_KEYS.TXT", PROGS .. "/fs/kfm/trunk/docs/english/kfm_keys.txt"}, |
7769 | leency | 119 | {"File Managers/KFAR.INI", "common/File Managers/kfar.ini"}, |
8512 | leency | 120 | {"GAMES/DESCENT", "common/games/descent"}, |
7769 | leency | 121 | {"SETTINGS/.shell", PROGS .. "/system/shell/bin/eng/.shell"}, |
7426 | leency | 122 | {"SETTINGS/GAMES.INI", "common/settings/games.ini"}, |
7010 | 0CodErr | 123 | {"SETTINGS/MYKEY.INI", PROGS .. "/system/MyKey/trunk/mykey.ini"}, |
7769 | leency | 124 | {"SETTINGS/SYSPANEL.INI", "common/settings/syspanel.ini"}, |
5098 | clevermous | 125 | }) end |
126 | |||
127 | --[[ |
||
128 | Files to be included in kolibri.iso and distribution kit outside of kolibri.img. |
||
5132 | clevermous | 129 | |
5098 | clevermous | 130 | The first subitem of every item is name relative to the root of ISO or distribution kit, |
131 | the second is name of local file. |
||
5132 | clevermous | 132 | |
5098 | clevermous | 133 | If the first subitem ends in /, the last component of local file name is appended. |
134 | The last component of the second subitem may contain '*'; if so, it will be expanded |
||
135 | according to usual rules, but without matching directories. |
||
5132 | clevermous | 136 | |
137 | Tup does not allow a direct dependency on a file that is generated in a directory |
||
138 | other than where Tupfile.lua is and its children. Most files are generated |
||
139 | in the directory with Tupfile.lua; for other files, the item should contain |
||
140 | a named subitem "group=path/ |
||
5098 | clevermous | 141 | --]] |
142 | extra_files = { |
||
7137 | dunkaist | 143 | {"/", "common/distr_data/autorun.inf"}, |
144 | {"/", "common/distr_data/KolibriOS_icon.ico"}, |
||
7715 | leency | 145 | {"Docs/stack.txt", "../kernel/trunk/docs/stack.txt"}, |
5098 | clevermous | 146 | {"HD_Load/9x2klbr/", "common/HD_load/9x2klbr/LDKLBR.VXD"}, |
147 | {"HD_Load/MeOSLoad/", PROGS .. "/hd_load/meosload/AUTOEXEC.BAT"}, |
||
148 | {"HD_Load/MeOSLoad/", PROGS .. "/hd_load/meosload/CONFIG.SYS"}, |
||
149 | {"HD_Load/MeOSLoad/", PROGS .. "/hd_load/meosload/L_readme.txt"}, |
||
150 | {"HD_Load/MeOSLoad/", PROGS .. "/hd_load/meosload/L_readme_Win.txt"}, |
||
151 | {"HD_Load/mtldr/", PROGS .. "/hd_load/mtldr/vista_install.bat"}, |
||
152 | {"HD_Load/mtldr/", PROGS .. "/hd_load/mtldr/vista_remove.bat"}, |
||
153 | {"HD_Load/", "common/HD_load/memdisk"}, |
||
154 | {"HD_Load/USB_boot_old/", PROGS .. "/hd_load/usb_boot_old/usb_boot.rtf"}, |
||
155 | {"HD_Load/USB_boot_old/", PROGS .. "/hd_load/usb_boot_old/usb_boot_866.txt"}, |
||
156 | {"HD_Load/USB_boot_old/", PROGS .. "/hd_load/usb_boot_old/usb_boot_1251.txt"}, |
||
6226 | leency | 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/TOOLBAR.PNG", PROGS .. "/develop/info3ds/toolbar.png"}, |
||
6237 | IgorA | 160 | {"kolibrios/3D/info3ds/FONT8X9.BMP", PROGS .. "/fs/kfar/trunk/font8x9.bmp"}, |
6583 | leency | 161 | {"kolibrios/3D/md2view/", "common/3d/md2view/*"}, |
6584 | leency | 162 | {"kolibrios/3D/md2view/md2_model/", "common/3d/md2view/md2_model/*"}, |
6248 | IgorA | 163 | {"kolibrios/3D/voxel_editor/VOX_EDITOR.INI", PROGS .. "/media/voxel_editor/trunk/vox_editor.ini"}, |
6247 | IgorA | 164 | {"kolibrios/3D/voxel_editor/HOUSE1.VOX", PROGS .. "/media/voxel_editor/trunk/house1.vox"}, |
165 | {"kolibrios/3D/voxel_editor/HOUSE2.VOX", PROGS .. "/media/voxel_editor/trunk/house2.vox"}, |
||
6279 | IgorA | 166 | {"kolibrios/3D/voxel_editor/SQUIRREL.VOX", PROGS .. "/media/voxel_editor/trunk/squirrel.vox"}, |
167 | {"kolibrios/3D/voxel_utilites/VOX_MOVER.INI" , PROGS .. "/media/voxel_editor/utilites/vox_mover.ini"}, |
||
6287 | IgorA | 168 | {"kolibrios/3D/FONT8X9.BMP", PROGS .. "/fs/kfar/trunk/font8x9.bmp"}, |
169 | {"kolibrios/3D/TOOLB_1.PNG", PROGS .. "/develop/libraries/TinyGL/asm_fork/examples/toolb_1.png"}, |
||
170 | {"kolibrios/3D/TEST_GLU1", PROGS .. "/develop/libraries/TinyGL/asm_fork/examples/test_glu1"}, |
||
171 | {"kolibrios/3D/TEST_GLU2", PROGS .. "/develop/libraries/TinyGL/asm_fork/examples/test_glu2"}, |
||
172 | {"kolibrios/3D/TEXT_2.PNG", PROGS .. "/develop/libraries/TinyGL/asm_fork/examples/text_2.png"}, |
||
8242 | leency | 173 | {"kolibrios/develop/c--/", PROGS .. "/cmm/c--/*"}, |
174 | {"kolibrios/develop/fpc/", "common/devel |