Changeset 391:3327e78ca8ea in SMSSender
- Timestamp:
- Apr 30, 2014 2:26:47 PM (7 years ago)
- Branch:
- separation-frontend-backend
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
additional_installs.pri
r350 r391 9 9 10 10 for(header, ADDITIONAL_INSTALLS) { 11 path = $${ADDITIONAL_INSTALLS_BASE}/$$ {dirname(header)}11 path = $${ADDITIONAL_INSTALLS_BASE}/$$dirname(header) 12 12 eval(install_$${path}.files += $$header) 13 13 eval(install_$${path}.path = $$path) 14 14 eval(INSTALLS *= install_$${path}) 15 16 unset(path) 15 17 } 18 19 # Workaround for lupdate that keeps the values of a variable around and appends 20 # new values to it even in the case of an assignment (foo = "" becomes foo += "") 21 unset(ADDITIONAL_INSTALLS) 22 unset(ADDITIONAL_INSTALLS_BASE) -
smssender-gui.pri
r368 r391 1 # TODO: check for any FRONTEND_ definition 2 contains(DEFINES, FRONTEND_CLI) { 3 error("FRONTEND_CLI is defined in FRONTEND_GUI environment.") 1 # Checks for any FRONTEND_xxx definitions. 2 definedFrontends = $$find(DEFINES, FRONTEND_.*) 3 !isEmpty(definedFrontends) { 4 error("The following frontends are defined but must not: " $$definedFrontends) 4 5 } 5 6 -
smssender.prf
r364 r391 12 12 export($$var) 13 13 export(IMPORT_BASE_BACKUP_$${var}) 14 15 clear(value) 14 16 } 15 17 } … … 17 19 # Changes the path in the file-variables and applies the backup from before. 18 20 variables = $$fileVariables() 21 19 22 for(var, variables) { 23 # Reads the backup and the actual value into variables. 24 eval(value = $$join($$var, " ../", ../)) 20 25 eval(value_bak = $$join(IMPORT_BASE_BACKUP_$${var}, " ")) 21 eval(value = $$join($$var, " ../", ../) $$value_bak) 22 eval($$var = $$value) 23 eval($${var}_BASE = $$value) 26 27 !isLupdate { 28 # Combines them. 29 eval($$var = $$value $$value_bak) 30 eval($${var}_BASE = $$value) 31 export($${var}_BASE) 32 } else { 33 # lupdate runs through all conditional scopes. 34 # Removes any value set to variables in the previous scope. 35 unset($$var) 36 unset($${var}_BASE) 37 38 # Reverts the include by setting the variables to the old values. 39 eval($$var = $$value_bak) 40 } 41 24 42 export($$var) 25 export($${var}_BASE) 43 44 # Workaround for lupdate that keeps the values of a variable around and 45 # appends new values to it even in the case of an assignment (foo = "" 46 # becomes foo += "") 47 unset(value) 48 unset(value_bak) 26 49 } 50 51 unset(variables) 27 52 }
Note: See TracChangeset
for help on using the changeset viewer.