2005-04-29 07:33:42 +00:00
|
|
|
// Berkeley Open Infrastructure for Network Computing
|
|
|
|
// http://boinc.berkeley.edu
|
|
|
|
// Copyright (C) 2005 University of California
|
|
|
|
//
|
|
|
|
// This is free software; you can redistribute it and/or
|
|
|
|
// modify it under the terms of the GNU Lesser General Public
|
|
|
|
// License as published by the Free Software Foundation;
|
|
|
|
// either version 2.1 of the License, or (at your option) any later version.
|
|
|
|
//
|
|
|
|
// This software is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
// See the GNU Lesser General Public License for more details.
|
|
|
|
//
|
|
|
|
// To view the GNU Lesser General Public License visit
|
|
|
|
// http://www.gnu.org/copyleft/lesser.html
|
|
|
|
// or write to the Free Software Foundation, Inc.,
|
2007-10-09 11:35:47 +00:00
|
|
|
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
2005-04-29 07:33:42 +00:00
|
|
|
|
|
|
|
// HTTP_OP represents an HTTP operation.
|
|
|
|
// There are variants for GET and POST,
|
|
|
|
// and for the data source/sink (see below).
|
|
|
|
|
|
|
|
#ifndef _MACGUI_H_
|
|
|
|
#define _MACGUI_H_
|
|
|
|
/*
|
|
|
|
* MacGUI.pch
|
|
|
|
* BOINCManager precompiled headers file for Mac
|
|
|
|
*/
|
2007-01-22 03:57:34 +00:00
|
|
|
|
|
|
|
// To use the Development (Debug) build of wxMac (allows stepping into wxMac
|
|
|
|
// source code, enables debug, trace, Asserts, etc.):
|
2008-05-09 07:00:36 +00:00
|
|
|
// (1) Set USE_DEBUG_WXMAC to 1 in this source file
|
|
|
|
// (2) In the Project menu, set the Active Build Configuration to "Development"
|
|
|
|
// (3) In the Project menu, set the Active Target to "mgr_boinc"
|
|
|
|
// (4) In Xcode's main project window, control-click on the title "Groups & Files" at the
|
|
|
|
// top of the left-hand pane and select "Target Membership" from the contextual menu.
|
2007-01-22 03:57:34 +00:00
|
|
|
// (5) In the XCode project's Groups and Files column:
|
|
|
|
// uncheck "External Frameworks and Libraries/libwx_mac_static.a"
|
|
|
|
// (6) In the XCode project's Groups and Files column:
|
|
|
|
// check "External Frameworks and Libraries/wxMac-BOINC.xcodeproj/libwx_mac_static.a"
|
|
|
|
//
|
|
|
|
// This will have no effect on the BOINC Manager Deployment build, which will still
|
|
|
|
// use the wxMac Deployment build.
|
|
|
|
//
|
|
|
|
// To use the wxMac Deployment build even in BOINC Manager Development builds, reverse
|
|
|
|
// the above steps (setting USE_DEBUG_WXMAC to 0, etc.)
|
|
|
|
|
|
|
|
#define USE_DEBUG_WXMAC 0
|
2005-04-29 07:33:42 +00:00
|
|
|
|
|
|
|
#define WX_PRECOMP
|
|
|
|
|
2006-02-01 10:58:26 +00:00
|
|
|
#define HAVE_SSIZE_T
|
|
|
|
|
2007-08-15 10:50:59 +00:00
|
|
|
#include <wx/version.h> // For wxCHECK_VERSION
|
|
|
|
|
2007-10-24 00:44:42 +00:00
|
|
|
#if ((defined(__i386__) || defined(__x86_64__)) && wxCHECK_VERSION(2,8,2))
|
2007-08-15 10:50:59 +00:00
|
|
|
// platform.h erroneously #defines __POWERPC__, so we include platform.h first
|
|
|
|
// and then #undef __POWERPC__ before including the other wxMac header files.
|
2007-10-24 00:44:42 +00:00
|
|
|
// It's unclear if this affects non-CodeWarrior builds, but do it to be safe.
|
2007-08-15 10:50:59 +00:00
|
|
|
#include <wx/platform.h>
|
|
|
|
#ifdef __POWERPC__
|
|
|
|
#undef __POWERPC__
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
2007-01-22 03:57:34 +00:00
|
|
|
#if (defined(_DEBUG) && (! USE_DEBUG_WXMAC))
|
2005-04-29 07:33:42 +00:00
|
|
|
|
2007-01-22 03:57:34 +00:00
|
|
|
#undef _DEBUG // so we can link with Deployment Wx libs
|
2006-06-15 11:11:41 +00:00
|
|
|
#undef __WXDEBUG__
|
|
|
|
|
|
|
|
#include "stdwx.h"
|
2005-04-29 07:33:42 +00:00
|
|
|
|
2006-06-15 11:11:41 +00:00
|
|
|
#define _DEBUG // Redefine _DEBUG for the rest of the code
|
2005-07-29 23:29:05 +00:00
|
|
|
#define __WXDEBUG__
|
2006-06-15 11:11:41 +00:00
|
|
|
|
2007-01-22 03:57:34 +00:00
|
|
|
#else // ! (defined(_DEBUG) && (! USE_DEBUG_WXMAC))
|
2006-06-15 11:11:41 +00:00
|
|
|
|
|
|
|
#include "stdwx.h"
|
|
|
|
|
2007-01-22 03:57:34 +00:00
|
|
|
#endif // ! (defined(_DEBUG) && (! USE_DEBUG_WXMAC))
|
2006-06-15 11:11:41 +00:00
|
|
|
|
|
|
|
#include "config.h"
|
2005-07-29 23:29:05 +00:00
|
|
|
|
2005-11-02 08:02:16 +00:00
|
|
|
// Prototypes for Mac_GUI.cpp
|
|
|
|
Boolean Mac_Authorize(void);
|
2005-07-29 23:29:05 +00:00
|
|
|
|
2005-04-29 07:33:42 +00:00
|
|
|
#endif
|