|  | Home · All Namespaces · All Classes · Main Classes · Grouped Classes · Modules · Functions |

# Windows CE - Working with Custom SDKs

When working with a custom SDK for Windows CE, Qt provides an easy way to add support for it to your development environment. The following is a tutorial that covers how to create a specification for Qt on Windows CE platforms.

- Creating a Custom Build Specification
- Fine-Tuning Options

## Creating a Custom Build Specification

Create a subdirectory in the `mkspecs` folder of the Qt directory. New specifications for Qt for Windows CE following this naming convention:

Using this convention makes it possible for qmake to identify that you are building Qt for Windows CE, and will customize the compilation process accordingly.

Create the files `qmake.conf` and `qplatformdefs.h` inside the new specification directory. Take a look at the implementation of the other Windows CE specifications included in the `mkspecs` directory to see what is required to build Qt for Windows CE successfully.

## Fine-Tuning Options

Compared to the desktop versions, Qt for Windows CE needs two additional options:

- CE_SDK specifies the name of the SDK.
- CE_ARCH specifies information about the target architecture.

Following is an example configuration for the Windows Mobile 5 for Pocket PC SDK:

Note: qmake uses this information to build a valid Visual Studio project file. You need to ensure that they are identical to the configuration of the custom SDK, otherwise you might not be able to compile or debug your project with Visual Studio.

Additionally, most Windows CE SDKs use extra compiler options. These can be specified by expanding the `DEFINES` value.

For example, with Windows Mobile 5 for Pocket PC, the `DEFINES` variable is expanded in the following way: