Command Line Build
来源:互联网 发布:php 获取数组元素下标 编辑:程序博客网 时间:2024/05/17 23:58
This post will show you how to create a batch file that will build your Windows CE OS without using the Visual Studio/Platform Builder IDE.
Often the question is asked how to setup an environment which automatically extracts all information from version control and then builds your code. There are a lot of tools that can help you do that: an open source alternative can be found at http://cruisecontrol.sourceforge.net.
To build your kernel without having to use the IDE create a batch file with the following content:
SET _WINCEROOT=C:/WINCE500
SET _OSDESIGNDIR=%_WINCEROOT%/PBWorkspaces/YOUR_WORKSPACE_FOLDER
SET _OSDESIGN=%_OSDESIGNDIR%/YOUR_WORKSPACE_FILE.pbxml
SET _OSDESIGNCONFIG=YOUR_OSDESIGN_CONFIG_NAME
"%ProgramFiles%/Windows CE Platform Builder/5.00/CEPB/BIN/pbxmlutils" /getbuildenv /workspace "%_OSDESIGN%" /config "%_OSDESIGNCONFIG%" > SetEnv.bat
cd "%_OSDESIGNDIR%"
call SetEnv.bat
delete SetEnv.bat
cd "%_OSDESIGNDIR%"
blddemo clean -q
Note that for CE 6.0 pbxmlutils is located in "%ProgramFiles%/Microsoft Platform Builder/6.00/cepb/IdeVS/
" and you use SET _WINCEROOT=C:/WINCE600
You need to replace the first 3 SET variables to match your specific project:
YOUR_WORKSPACE_FOLDER
: Workspace folder which is located under the PBWorkspaces (CE 5.0) or OSDesigns (CE 6.0) folder. This is the folder that contains YOUR_WORKSPACE_FILE
.
YOUR_WORKSPACE_FILE
: The name of your OS Design workspace; the file with extension .pbxml. This file is located in YOUR_WORKSPACE_FOLDER
.
YOUR_OSDESIGN_CONFIG_NAME
: This is the configuration name you select in the IDE of Platform Builder, eg Emulator: x86_Release. You can also open your .pbxml file with notepad to find out what the configuration name is (search for Configuration Name).
Happy building!
- Command Line Build
- build event command line
- build event command line
- Post-Build Event command line
- Post-Build Event command line
- Post-Build Event Command Line
- Post-Build Event command line
- Post-BUILD Event Command Line
- Visual Studio build event command line 使用方法
- Visual Studio build event command line 使用方法
- unknown command-line argument or argument value build错误
- command line
- command line
- command line
- Command-line
- Command Line
- cl : Command line warning D9028 : minimal rebuild failure, reverting to normal build stdafx.cpp :
- This warning can be disabled by using the command line flag -Dcom.android.build.gradle.overridePath
- 开心
- 虚拟机网络连接模式 bridged, host-only, NAT
- A template for debug messages
- ubuntu 8.10 下 opera 10.10 无法调出 scim 输入中文
- 用正则表达式处理日志文件的小程序
- Command Line Build
- VC最常用操作程序20项列举
- 手机软件开发了解(一)
- 设置MFC窗口透明
- What to build when...
- MFC中消息机制
- Longest Increasing Subsequence(LIS)
- 积分?
- 关于C++类库KYLib: 压缩/解压缩类