C and Cpp - Prepare and deliver the source code

This documentation is not maintained. Please refer to doc.castsoftware.com/technologies to find the latest updates.

Summary: This section describes how to prepare and deliver the source code of your C/C++ application.

Information about discovery

Discovery is a process that is actioned during the packaging process whereby CAST will attempt to automatically identify projects within your application using a set of predefined rules. This discovery process also allows CAST to set the initial analysis configuration settings explained in C and Cpp - Analysis configuration.

Discovery for C/C++ is explained in more detail in C and Cpp - Project discovery - you should read this to understand how the source code will be handled and the choices that are available to you.

Source code delivery using CAST Console

Prepare the application source code

AIP Console expects the application source code to be delivered either via a ZIP file or via a source code located in a folder configured in AIP Console. Whichever option you chose, you should include in the ZIP/source code folder all of your C/C++ application source code. CAST highly recommends placing all the relevant files in a folder and using sub-folders where necessary. You can deliver other technologies at the same time (for example, database DDL). If you are using a ZIP/archive file, zip the folders in the "temp" folder as shown in the image below - but do not zip the "temp" folder itself, nor create any intermediary folders:

D:\temp
	|-----C-Cpp
	|-----OtherTechno1
	|-----OtherTechno2

Source code delivery using legacy CAST Delivery Manager Tool

Click here to expand...

How do I add a source code package to my delivery

See How do I add a source code package to my delivery.

What you should package?

Please see C and Cpp - Application qualification specifics for additional hints.

When creating packages to discover and extract your C / C++ application you should create them as follows:

Package

Package name/type

Mandatory?

Location/path

Notes

1

Source code

(tick)

Source code root folder

Use the "Files on your file system" / SVN / TFS options in the CAST Delivery Manager Tool:

Click to enlarge

How do I fine-tune my Version ?

See How do I fine-tune my Version for more information.

How do I deliver the Version for analysis?

See How do I deliver the Version for analysis for more information.

Delivery acceptance

See Validate and Accept the Delivery for more information.