Table of Contents
Importing sources to the project
WinGDB provides a way to recursively add multiple local files to project,
additional to standard Add option. The Import sources... option
accessible from WinGDB menu on a project node in Solution Explorer opens
the following dialog:
Here you can specify:
-
Source directory: where the files are located. It is recommended that the directory
already exists within the project directory structure. Import sources does not
copy files itself, it only adds them to the project.
-
Project folder: the folder visible in Solution Explorer being the destination
place of added files. If left empty, the files will be added at project root level.
-
Filter: a wildcard filter for added file names. Can also be multiple filters
separated by a semicolon.
-
Preserve structure: whether to create additional Solution Explorer folders
corresponding to physical subdirectories.
-
Group files by types: whether to create additional Solution Explorer folders
corresponding to types of files recognized by extension.
- Configure group folders: allows to configure folders and file name patterns
for the grouping option. It displays a dialog, where you can enter folder names
and patterns in "Folder name" = "pattern" format. Use the "/" pattern
to specify a pattern for nested disk directories (so they will be grouped into
separate logical folder).
There is also an alternate way to import sources to new project, described in
this section. Both methods work similar,
the main difference is the project they operate on: a new project or existing one.
The new project method also has an option to import sources residing on a remote
machine (adding a mapping in the process). For existing project variant, perform the
following steps:
- Create a mapping between your remote sources directory and a target local directory
inside your project.
See this section for more detail.
-
If you have a Samba shared mapping, the sources should be already visible in the
target directory. Otherwise use Download directory option to download them.
See this section for more detail.
-
Execute the Import sources option to add files to the project.
-
Optionally, configure makefile generation options and generate the makefile.
This section describes the procedure.
Table of Contents
Copyright (C) 2008-2019 SOFT-ERG. All rights reserved.