2009-06-18 04:28:57 -07:00
|
|
|
#ifndef TOOLPATH_H
|
|
|
|
#define TOOLPATH_H
|
|
|
|
|
2008-09-22 14:19:53 -07:00
|
|
|
#include <windows.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <process.h>
|
|
|
|
|
2009-07-08 16:34:01 -07:00
|
|
|
#define OGLES_SDK_INC OGLES_SDK_PATH "inc"
|
|
|
|
#define OGLES_SDK_LIB OGLES_SDK_PATH "lib\\wince\\nvap\\release"
|
2009-01-28 10:13:56 -08:00
|
|
|
#define WCE_BIN VC_PATH "ce\\bin\\x86_arm\\"
|
|
|
|
#define WCE_RC_BIN WIN_SDK_PATH "bin\\"
|
|
|
|
#define WCE_CRT VC_PATH "ce\\lib\\armv4i"
|
|
|
|
#define WM_SDK_INC WM_SDK_PATH "Include/Armv4i"
|
|
|
|
#define WCE_LIB WM_SDK_PATH "Lib/Armv4i"
|
|
|
|
#define WCE_RC_INC VC_PATH "ce\\atlmfc\\include"
|
|
|
|
#define WCE_INC VC_PATH "ce\\include"
|
2009-07-08 16:34:01 -07:00
|
|
|
#define ATL_INC VC_PATH "ce\\atlmfc\\include"
|
|
|
|
#define ATL_LIB VC_PATH "ce\\atlmfc\\lib\\armv4i"
|
2009-01-28 10:13:56 -08:00
|
|
|
|
|
|
|
#ifndef SHUNT_LIB
|
2009-03-21 11:59:51 -07:00
|
|
|
#define SHUNT_LIB ""
|
2008-09-22 14:19:53 -07:00
|
|
|
#endif
|
|
|
|
|
2009-01-28 10:13:56 -08:00
|
|
|
#ifndef SHUNT_INC
|
2008-09-22 14:19:53 -07:00
|
|
|
#define SHUNT_INC TOPSRCDIR "/build/wince/shunt/include/"
|
2009-01-28 10:13:56 -08:00
|
|
|
#endif
|
2008-09-22 14:19:53 -07:00
|
|
|
|
2009-09-10 14:32:32 -07:00
|
|
|
#define ASM_PATH "\"" WCE_BIN "armasm.exe\""
|
|
|
|
#define CL_PATH "\"" WCE_BIN "cl.exe\""
|
|
|
|
#define LIB_PATH "\"" WCE_BIN "lib.exe\""
|
|
|
|
#define LINK_PATH "\"" WCE_BIN "link.exe\""
|
|
|
|
#define RC_PATH "\"" WCE_RC_BIN "rc.exe\""
|
2008-09-22 14:19:53 -07:00
|
|
|
|
2008-09-25 14:42:17 -07:00
|
|
|
#define MAX_NOLEAK_BUFFERS 1000
|
2008-09-22 14:19:53 -07:00
|
|
|
char noleak_buffers[MAX_NOLEAK_BUFFERS][1024];
|
|
|
|
static int next_buffer = 0;
|
2009-06-18 04:28:57 -07:00
|
|
|
int argpath_conv(char **args_in, char **args_out);
|
|
|
|
void dumpargs(char** args);
|
|
|
|
DWORD run(char** args);
|
2008-09-22 14:19:53 -07:00
|
|
|
|
2009-06-18 04:28:57 -07:00
|
|
|
#endif
|