Changeset 658
- Timestamp:
- Mar 8, 2010, 4:45:44 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/configure.cmd
r618 r658 256 256 G.CFG_DECLARATIVE = "auto" 257 257 G.CFG_WEBKIT = "auto" 258 G.CFG_JAVASCRIPTCORE_JIT = "auto" 259 258 260 G.CFG_GFX_AVAILABLE = "" 259 261 G.CFG_GFX_ON = "" … … 270 272 G.CFG_MOUSE_OFF = "" 271 273 G.CFG_USE_GNUMAKE = "no" 272 CFG_DECORATION_AVAILABLE = "styled windows default"273 CFG_DECORATION_ON = "${CFG_DECORATION_AVAILABLE}"/* all on by default */274 G.CFG_DECORATION_AVAILABLE = "styled windows default" 275 G.CFG_DECORATION_ON = G.CFG_DECORATION_AVAILABLE /* all on by default */ 274 276 G.CFG_DECORATION_PLUGIN_AVAILABLE = "" 275 277 G.CFG_DECORATION_PLUGIN = "" … … 949 951 end 950 952 951 if (G.CFG_WEBKIT == "auto") then952 G.CFG_WEBKIT = "no" /* WebKit seems to require G++ >= 3.4.x */953 954 953 /*-------------------------------------------------------------------------- 955 954 ask for all that hasn't been auto-detected or specified in the arguments 956 955 --------------------------------------------------------------------------*/ 957 956 958 /* We don't ask anything so far. Just apply "yes" to "auto" options */ 959 960 /* enable all image formats and ZLIB by default */ 957 if (G.CFG_WEBKIT == "auto") then do 958 if (G.OfficialBuild) then 959 G.CFG_WEBKIT = "yes" 960 else do 961 G.CFG_WEBKIT = "no" 962 call SaySay G.EOL||, 963 'Qt comes with the webkit module that provides a powerful framework for web-'G.EOL||, 964 'based applications and may be required by some of them but it takes a very 'G.EOL||, 965 'long time to compile and build (it will double the overall compilation time).' 966 if (GetYesNo('Do you want to enable the webkit module?', 'N')) then do 967 G.CFG_WEBKIT = "yes" 968 end 969 end 970 end 971 972 /* For everything else, simply apply "yes" to "auto" options */ 973 961 974 if (G.CFG_GIF == "auto") then G.CFG_GIF = "yes" 962 975 if (G.CFG_TIFF == "auto") then G.CFG_TIFF = "yes" … … 1214 1227 G.QCONFIG_FLAGS = Join(G.QCONFIG_FLAGS, "QT_NO_DECLARATIVE") 1215 1228 1216 if (G.CFG_WEBKIT == "yes") then 1229 if (G.CFG_WEBKIT == "yes") then do 1217 1230 G.QT_CONFIG = Join(G.QT_CONFIG, "webkit") 1231 if (G.CFG_JAVASCRIPTCORE_JIT == "yes") then 1232 call QMakeVar "set", "JAVASCRIPTCORE_JIT", "yes" 1233 else if (G.CFG_JAVASCRIPTCORE_JIT == "no") then 1234 call QMakeVar "set", "JAVASCRIPTCORE_JIT", "no" 1235 end 1218 1236 else do 1219 1237 /* The reason we set CFG_WEBKIT, is such that the printed overview of … … 1816 1834 call SayLog "SVG module .......... "G.CFG_SVG 1817 1835 call SayLog "WebKit module ....... "G.CFG_WEBKIT 1836 if (G.CFG_WEBKIT == "yes") then do 1837 if (G.CFG_JAVASCRIPTCORE_JIT == "auto") then 1838 call SayLog "JavaScriptCore JIT .. To be decided by JavaScriptCore" 1839 else 1840 call SayLog "JavaScriptCore JIT .. "G.CFG_JAVASCRIPTCORE_JIT 1841 end 1818 1842 /* declarative sources are not in the tree at all 1819 1843 call SayLog "Declarative module .. "G.CFG_DECLARATIVE … … 2495 2519 2496 2520 /** 2521 * Shows a Yes/No choice. 2522 * 2523 * @param prompt prompt to show (specify '' to suppress the prompt) 2524 * @param default default choice: 2525 * '' - no default choice 2526 * 'Y' or 1 - default is yes 2527 * other - default is no 2528 * @return 2529 * 1 if Yes is selected, otherwise 0 2530 */ 2531 GetYesNo: procedure expose (Globals) 2532 parse arg prompt, default 2533 default = translate(default) 2534 if (default == 1) then default = 'Y' 2535 else if (default \== '' & default \== 'Y') then default = 'N' 2536 if (prompt \= '') then call SaySay prompt 2537 say 2538 call SayPrompt '[YN] ', 1 2539 yn = ReadChoice('YN',, default, 'I') 2540 say 2541 say 2542 return (yn == 'Y') 2543 2544 /** 2545 * Reads a one-key choice from the keyboard. 2546 * user. Letters in the mode argument have the following meanings: 2547 * 2548 * E -- allow to press Enter w/o a choice (will return '') 2549 * C -- ESC can be pressed to cancel selection (will return '1B'x) 2550 * I -- ignore case of pressed letters 2551 * 2552 * @param choices string of allowed one-key choices 2553 * @param extChoices string of allowed one-extended-key choices 2554 * @param default default choice (can be a key from choices) 2555 * @param mode input mode string consisting of letters as described above 2556 * @return 2557 * entered key (prefixed with 'E0'x if from extChoices) 2558 */ 2559 ReadChoice: procedure expose (Globals) 2560 parse arg choices, extChoices, default, mode 2561 mode = translate(mode) 2562 ignoreCase = pos('I', mode) > 0 2563 allowEnter = pos('E', mode) > 0 2564 allowCancel = pos('C', mode) > 0 2565 choice = default 2566 call charout, choice 2567 if (ignoreCase) then choice = translate(choice) 2568 extended = 0 2569 do forever 2570 key = SysGetKey('NOECHO') 2571 if (key == 'E0'x) then do 2572 extended = 1 2573 iterate 2574 end 2575 if (\extended & ignoreCase) then key = translate(key) 2576 select 2577 when (allowCancel & \extended & key == '1B'x) then do 2578 choice = key 2579 leave 2580 end 2581 when (choice == '' & \extended & verify(key, choices) == 0) then do 2582 choice = key 2583 end 2584 when (extended & verify(key, extChoices) == 0) then do 2585 choice = '0E'x||key 2586 leave 2587 end 2588 when (\extended & key == '08'x & choice \== '') then do 2589 /* backspace pressed */ 2590 call charout, key' ' 2591 choice = '' 2592 end 2593 when (\extended & key == '0D'x & (choice \== '' | allowEnter)) then do 2594 leave 2595 end 2596 otherwise do 2597 extended = 0 2598 iterate 2599 end 2600 end 2601 call charout, key 2602 extended = 0 2603 end 2604 return choice 2605 2606 /** 2497 2607 * Encloses the given path with quotes if it contains 2498 2608 * space characters, otherwise returns it w/o changes.
Note:
See TracChangeset
for help on using the changeset viewer.