Debian Codegraph @

util/buildscripts/profiles/webkitMobile.profile.js

raw symbols SCIP
1 // Profile for mobile builds on WebKit.
2 //
3 // Use when:
4 // - target to webkit platforms (iOS and Android)
5 // - document is in standards mode (i.e., with <!DOCTYPE html>)
6 // Usage:
7 // ./build.sh releaseDir=... action=release optimize=closure profile=webkitMobile
8
9 var profile = {
10 // relative to this file
11 basePath: "../../..",
12
13 // relative to base path
14 releaseDir: "../webkitMobile",
15
16 stripConsole: "normal",
17
18 // Use closure to optimize, to remove code branches for has("ie") etc.
19 optimize: "closure",
20 layerOptimize: "closure",
21
22 packages: [
23 {
24 name: "dojo",
25 location: "./dojo"
26 },
27 {
28 name: "dijit",
29 location: "./dijit"
30 },
31 {
32 name: "dojox",
33 location: "./dojox"
34 },
35 {
36 name: "themes",
37 location: "./themes"
38 }
39 ],
40
41 // this is a "new-version" profile since is sets the variable "profile" rather than "dependencies"; therefore
42 // the layers property is a map from AMD module id to layer properties...
43 layers: {
44 "dojo/dojo": {
45 // the module dojo/dojo is the default loader (you can make multiple bootstraps with the new builder)
46 include: [
47 // the include vector gives the modules to include in this layer
48 // note: unless the dojo/dojo layer has the property "customBase" set to truthy, then module
49 // dojo/main will be automatically added...and conversely
50 "dijit/_WidgetBase",
51 "dijit/_Container",
52 "dijit/_Contained",
53 "dijit/registry"
54 ],
55 customBase: true
56 },
57 "dojo/main": {
58 include: ["dojo/selector/lite"]
59 },
60 "dojox/mobile": {
61 include: [
62 "dojox/mobile"
63 ],
64 exclude: [
65 // exclude gives a dependency forrest to exclude; i tend to put is second since the algorithm is...
66 //
67 // The modules to include in a particular layer are computed as follows:
68 //
69 // 1. The layer module itself.
70 //
71 // 2. Plus the dependency graph implied by the AMD dependencies of the layer module. This is given
72 // by the dependency vector found in the define application associated with the target module,
73 // the modules found in the dependency vectors of those modules, and so on until all modules in
74 // the graph have been found (remember, though not desirable, there may be cycles, so the graph
75 // is not necessarily a tree).
76 //
77 // 3. Plus all modules given in the include array, along with all of those modules' dependency graphs.
78 //
79 // 4. Less all modules given in the exclude array, along with all of those modules' dependency graphs.
80
81 "dojo/dojo"
82 ]
83 },
84 "dojox/mobile/app": {
85 include: [
86 "dojox/mobile/app"
87 ],
88 exclude: [
89 "dojo/dojo",
90 "dojox/mobile"
91 ]
92
93
94 }
95 },
96
97 staticHasFeatures: {
98 // Default settings for a browser, from dojo.js; apparently these get modified in special cases
99 // like when running under node, or against RequireJS, but nothing we need to worry about.
100 "host-browser": true,
101 "host-node": false,
102 "host-rhino": false,
103 "dom": true,
104 "dojo-amd-factory-scan": true,
105 "dojo-loader": true,
106 "dojo-has-api": true,
107 "dojo-inject-api": true,
108 "dojo-timeout-api": true,
109 "dojo-trace-api": true,
110 "dojo-log-api": true,
111 "dojo-dom-ready-api": true,
112 "dojo-publish-privates": true,
113 "dojo-config-api": true,
114 "dojo-sniff": true,
115 "dojo-sync-loader": true,
116 "dojo-test-sniff": true,
117 "config-tlmSiblingOfDojo": true,
118
119 // Other configuration switches that are hardcoded in the source.
120 // Setting some of these to false may reduce code size, but unclear what they all mean.
121 "config-publishRequireResult": true,
122 "dojo-config-addOnLoad": 1, // hardcoded to 1 in the source
123 "dojo-config-require": true,
124 "dojo-debug-messages": true,
125 "dojo-gettext-api": true, // apparently unused
126 "dojo-guarantee-console": true,
127 "dojo-loader-eval-hint-url": true,
128 "dojo-modulePaths": true,
129 "dojo-moduleUrl": true,
130 "dojo-v1x-i18n-Api": true,
131 "dojo-xhr-factory": true, // if require.getXhr() exists (true for dojo's AMD loader, false for requireJS?)
132 "extend-dojo": true, // add functions to global dojo object
133
134 // Browser flags
135 "webkit": true, // this is actually a number like 525 but I don't think anyone is using it
136 "air": false,
137 "ff": undefined,
138 "mozilla": undefined,
139 "ie": undefined,
140
141 // Configuration settings
142 "config-selectorEngine": "lite",
143 "dijit-legacy-requires": false, // don't load unrequested modules for back-compat
144 "dom-quirks": false, // we assume/require that the app is in strict mode
145 "quirks": false, // we assume/require that the app is in strict mode
146
147 // Flags for old IE browser bugs / non-standard behavior
148 "array-extensible": true, // false for old IE
149 "bug-for-in-skips-shadowed": 0, // false for old IE
150 "dom-attributes-explicit": true, // everyone except IE6, 7
151 "dom-attributes-specified-flag": true, //everyone except IE6-8
152 "dom-addeventlistener": true, // everyone except IE
153 "native-xhr": true, // has XMLHTTPRequest
154 "ie-event-behavior": undefined,
155 "dojo-force-activex-xhr": false, // true is for IE path
156
157 // Flags for features
158 "dom-matches-selector": true,
159 "dom-qsa": true,
160 "dom-qsa2.1": true,
161 "dom-qsa3": true,
162 "dom-contains": true,
163 "json-parse": true,
164 "json-stringify": true,
165
166 // Behavior that varies by browser, but is constant across webkit mobile browsers
167 "events-keypress-typed": true, // whether printable characters generate keypress event?
168 "events-mouseenter": false, // this is set by mouse.html but never used
169 "touch": true,
170 "highcontrast": false, // safari always displays background images, even when device in high-contrast mode
171 "textarea-needs-help-shrinking": true,
172 "css-user-select": "'WebkitUserSelect'"
173
174 // Values which can be different across mobile devices, so intentionally not specified in this list.
175 // "event-orientationchange": true,
176 // "safari": true,
177 // "android": true
178 // "wii": true
179 },
180
181 selectorEngine: "lite",
182
183 defaultConfig: {
184 hasCache: {
185 // default
186 "config-selectorEngine": "lite"
187 },
188 async: true
189 }
190 };