diff --git a/doc/org.eclipse.cdt.doc.user/contexts_CDT.xml b/doc/org.eclipse.cdt.doc.user/contexts_CDT.xml index e8f9cc1317f..a268c5144de 100644 --- a/doc/org.eclipse.cdt.doc.user/contexts_CDT.xml +++ b/doc/org.eclipse.cdt.doc.user/contexts_CDT.xml @@ -371,6 +371,7 @@ + diff --git a/doc/org.eclipse.cdt.doc.user/images/cdt_dlg_define_build_var.png b/doc/org.eclipse.cdt.doc.user/images/cdt_dlg_define_build_var.png new file mode 100755 index 00000000000..9190d6ea25a Binary files /dev/null and b/doc/org.eclipse.cdt.doc.user/images/cdt_dlg_define_build_var.png differ diff --git a/doc/org.eclipse.cdt.doc.user/images/cdt_dlg_edit_build_var.png b/doc/org.eclipse.cdt.doc.user/images/cdt_dlg_edit_build_var.png new file mode 100755 index 00000000000..049a6e3cc52 Binary files /dev/null and b/doc/org.eclipse.cdt.doc.user/images/cdt_dlg_edit_build_var.png differ diff --git a/doc/org.eclipse.cdt.doc.user/images/cdt_pref_build_vars.png b/doc/org.eclipse.cdt.doc.user/images/cdt_pref_build_vars.png new file mode 100755 index 00000000000..850d2eb2de2 Binary files /dev/null and b/doc/org.eclipse.cdt.doc.user/images/cdt_pref_build_vars.png differ diff --git a/doc/org.eclipse.cdt.doc.user/reference/cdt_u_pref_build_vars.htm b/doc/org.eclipse.cdt.doc.user/reference/cdt_u_pref_build_vars.htm new file mode 100644 index 00000000000..3b4b51c74ea --- /dev/null +++ b/doc/org.eclipse.cdt.doc.user/reference/cdt_u_pref_build_vars.htm @@ -0,0 +1,60 @@ + + + + + + + Build Variables preferences + + + + + + +

Build Variables preferences

+ +

Use the Build Variables preference panel to add, edit, or remove local build variables. Local build variables are displayed in bold text.

+

Build Variables Preferences Page

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Build Variables Preference Options
OptionDescription
Add...Click to add a new build variable in the Define a New Build Variable dialog box.
Edit...Click to edit the selected build variable.
RemoveClick to remove the select build variable.

+ NOTE: System variables cannot be removed.
Show system variablesEnable to display system variables in the variables list.
+ + +

Related reference
+Build preferences

+
+Nokia Copyright Statement + + + + \ No newline at end of file diff --git a/doc/org.eclipse.cdt.doc.user/tasks/cdt_o_build_task.htm b/doc/org.eclipse.cdt.doc.user/tasks/cdt_o_build_task.htm index 2b10b9aa823..b45a29deff9 100644 --- a/doc/org.eclipse.cdt.doc.user/tasks/cdt_o_build_task.htm +++ b/doc/org.eclipse.cdt.doc.user/tasks/cdt_o_build_task.htm @@ -13,6 +13,7 @@

The following topics explain how to build a project, and to manage compile errors:

Renaming a project
Defining Project Build settings
+ Adding and Editing Build Variables
Filtering errors
Selecting a binary parser
Adding include paths and symbols
diff --git a/doc/org.eclipse.cdt.doc.user/tasks/cdt_t_add_build_var.htm b/doc/org.eclipse.cdt.doc.user/tasks/cdt_t_add_build_var.htm new file mode 100644 index 00000000000..8b6e1bf43a9 --- /dev/null +++ b/doc/org.eclipse.cdt.doc.user/tasks/cdt_t_add_build_var.htm @@ -0,0 +1,81 @@ + + + + + + + + +Adding and Editing Build Variables + + + + + + +

Adding and Editing Build Variables

+ +

Use the Define a New Build Variable dialog box to add local build variables or the Edit Existing Build Variable +dialog box to edit a previously defined variable. Both are accessible from the Build Variables preference panel.

+ +

Define a New Build Variable

+

    +
  1. Click Window > Preferences > C/C++ > Build > Build Variables
  2. +
  3. Click Add... in the Build Variables preference panel to open the Define a New Build Variables dialog box
  4. +
  5. Enter the variable name
  6. +
  7. Choose a variable type
  8. +
  9. Enter the variables value
  10. +
  11. Click OK
  12. +

+ +

Define a New Build Variable dialog box

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
Define a New Build Variable/Edit Existing Build Variable Dialog Box Options
OptionDescription
Variable nameEnter the variable name.
TypeChoose the variable type from the available list.
ValueEnter or edit the value of the variable.
+ +

Edit Existing Build Variable

+

    +
  1. Click Window > Preferences > C/C++ > Build > Build Variables
  2. +
  3. Select the local build variable to edit in the Build Variables preference panel
  4. +
  5. Click Edit... to open the Edit Existing Build Variable dialog box
  6. +
  7. Change the variable type (optional)
  8. +
  9. Edit the variables value (optional)
  10. +
  11. Click OK
  12. +

+ +

Define a New Build Variable dialog box

+ +

Related reference
+Build Variables preferences

+ +
+Nokia Copyright Statement + + + + \ No newline at end of file diff --git a/doc/org.eclipse.cdt.doc.user/topics_Reference.xml b/doc/org.eclipse.cdt.doc.user/topics_Reference.xml index 75d7c499953..de13b4db9ae 100644 --- a/doc/org.eclipse.cdt.doc.user/topics_Reference.xml +++ b/doc/org.eclipse.cdt.doc.user/topics_Reference.xml @@ -55,6 +55,8 @@ + + diff --git a/doc/org.eclipse.cdt.doc.user/topics_Tasks.xml b/doc/org.eclipse.cdt.doc.user/topics_Tasks.xml index 47526ca8ebb..abe4d54139b 100644 --- a/doc/org.eclipse.cdt.doc.user/topics_Tasks.xml +++ b/doc/org.eclipse.cdt.doc.user/topics_Tasks.xml @@ -30,6 +30,8 @@ + +