use precomp hdrs
This commit is contained in:
parent
a7c2653a8a
commit
e552144af2
|
|
@ -8,11 +8,11 @@
|
|||
#begin lib_target
|
||||
#define TARGET downloader
|
||||
|
||||
#define SOURCES \
|
||||
config_downloader.cxx \
|
||||
#define SOURCES \
|
||||
config_downloader.cxx \
|
||||
config_downloader.h \
|
||||
asyncUtility.I asyncUtility.cxx asyncUtility.h \
|
||||
extractor.cxx extractor.h \
|
||||
asyncUtility.I asyncUtility.cxx asyncUtility.h \
|
||||
extractor.cxx extractor.h \
|
||||
multiplexStream.I multiplexStream.cxx multiplexStream.h \
|
||||
multiplexStreamBuf.I multiplexStreamBuf.cxx multiplexStreamBuf.h
|
||||
|
||||
|
|
@ -20,12 +20,12 @@
|
|||
downloadDb.I downloadDb.cxx downloadDb.h \
|
||||
downloader.I downloader.cxx downloader.h
|
||||
|
||||
#define IF_ZLIB_SOURCES \
|
||||
decompressor.cxx decompressor.h zcompressor.I zcompressor.cxx \
|
||||
#define IF_ZLIB_SOURCES \
|
||||
decompressor.cxx decompressor.h zcompressor.I zcompressor.cxx \
|
||||
zcompressor.h download_utils.cxx download_utils.h
|
||||
|
||||
#define IF_CRYPTO_SOURCES \
|
||||
patcher.cxx \
|
||||
patcher.cxx \
|
||||
patcher.h patcher.I
|
||||
|
||||
#define INSTALL_HEADERS \
|
||||
|
|
@ -39,6 +39,8 @@
|
|||
multiplexStreamBuf.I multiplexStreamBuf.I \
|
||||
patcher.h patcher.I \
|
||||
zcompressor.I zcompressor.h
|
||||
|
||||
#define PRECOMPILED_HEADER downloader_headers.h
|
||||
|
||||
#define IGATESCAN all
|
||||
|
||||
|
|
|
|||
|
|
@ -21,7 +21,13 @@
|
|||
////////////////////////////////////////////////////////////////////
|
||||
// Includes
|
||||
////////////////////////////////////////////////////////////////////
|
||||
#include "asyncDecompressor.h"
|
||||
#if defined(WIN32_VC) && !defined(NO_PCH)
|
||||
#include "downloader_headers.h"
|
||||
#endif
|
||||
|
||||
#pragma hdrstop
|
||||
|
||||
#if !defined(WIN32_VC) || defined(NO_PCH)
|
||||
#include "config_downloader.h"
|
||||
|
||||
#include <event.h>
|
||||
|
|
@ -30,6 +36,9 @@
|
|||
#include <eventParameter.h>
|
||||
#include <filename.h>
|
||||
#include <stdio.h>
|
||||
#endif
|
||||
|
||||
#include "asyncDecompressor.h"
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Defines
|
||||
|
|
|
|||
|
|
@ -15,18 +15,27 @@
|
|||
// panda3d@yahoogroups.com .
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////
|
||||
#include "asyncDownloader.h"
|
||||
#if defined(WIN32_VC) && !defined(NO_PCH)
|
||||
#include "downloader_headers.h"
|
||||
#endif
|
||||
|
||||
#pragma hdrstop
|
||||
|
||||
#if !defined(WIN32_VC) || defined(NO_PCH)
|
||||
#include "config_downloader.h"
|
||||
|
||||
#include <event.h>
|
||||
#include <pt_Event.h>
|
||||
#include <throw_event.h>
|
||||
#include <eventParameter.h>
|
||||
#include <circBuffer.h>
|
||||
#include <filename.h>
|
||||
#include <list>
|
||||
#include <errno.h>
|
||||
#include <math.h>
|
||||
#endif
|
||||
|
||||
#include "asyncDownloader.h"
|
||||
#include <circBuffer.h>
|
||||
#include <list>
|
||||
|
||||
#if !defined(WIN32_VC)
|
||||
// #define errno wsaGetLastError()
|
||||
|
|
|
|||
|
|
@ -15,7 +15,13 @@
|
|||
// panda3d@yahoogroups.com .
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////
|
||||
#include "asyncExtractor.h"
|
||||
#if defined(WIN32_VC) && !defined(NO_PCH)
|
||||
#include "downloader_headers.h"
|
||||
#endif
|
||||
|
||||
#pragma hdrstop
|
||||
|
||||
#if !defined(WIN32_VC) || defined(NO_PCH)
|
||||
#include "config_downloader.h"
|
||||
|
||||
#include <event.h>
|
||||
|
|
@ -23,6 +29,9 @@
|
|||
#include <throw_event.h>
|
||||
#include <eventParameter.h>
|
||||
#include <filename.h>
|
||||
#endif
|
||||
|
||||
#include "asyncExtractor.h"
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Defines
|
||||
|
|
|
|||
|
|
@ -15,14 +15,19 @@
|
|||
// panda3d@yahoogroups.com .
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////
|
||||
#include "asyncUtility.h"
|
||||
#if defined(WIN32_VC) && !defined(NO_PCH)
|
||||
#include "downloader_headers.h"
|
||||
#endif
|
||||
|
||||
#pragma hdrstop
|
||||
|
||||
#if !defined(WIN32_VC) || defined(NO_PCH)
|
||||
#include "config_downloader.h"
|
||||
#if defined(WIN32)
|
||||
#define WINDOWS_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
#include <winbase.h>
|
||||
#undef WINDOWS_LEAN_AND_MEAN
|
||||
#else
|
||||
#endif
|
||||
|
||||
#include "asyncUtility.h"
|
||||
|
||||
#if !defined(WIN32)
|
||||
#include <sys/time.h>
|
||||
#endif
|
||||
|
||||
|
|
|
|||
|
|
@ -16,11 +16,20 @@
|
|||
//
|
||||
////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "config_downloader.h"
|
||||
#if defined(WIN32_VC) && !defined(NO_PCH)
|
||||
#include "downloader_headers.h"
|
||||
#endif
|
||||
|
||||
#pragma hdrstop
|
||||
|
||||
#include <dconfig.h>
|
||||
#include <get_config_path.h>
|
||||
|
||||
#if !defined(WIN32_VC) || defined(NO_PCH)
|
||||
#include "config_downloader.h"
|
||||
#endif
|
||||
|
||||
|
||||
Configure(config_downloader);
|
||||
NotifyCategoryDef(downloader, "");
|
||||
|
||||
|
|
|
|||
|
|
@ -21,15 +21,25 @@
|
|||
////////////////////////////////////////////////////////////////////
|
||||
// Includes
|
||||
////////////////////////////////////////////////////////////////////
|
||||
#include "decompressor.h"
|
||||
#if defined(WIN32_VC) && !defined(NO_PCH)
|
||||
#include "downloader_headers.h"
|
||||
#endif
|
||||
|
||||
#pragma hdrstop
|
||||
|
||||
#if !defined(WIN32_VC) || defined(NO_PCH)
|
||||
#include "config_downloader.h"
|
||||
|
||||
#include <filename.h>
|
||||
#include <stdio.h>
|
||||
#include <error_utils.h>
|
||||
|
||||
#include <errno.h>
|
||||
|
||||
#include <error_utils.h>
|
||||
#include <filename.h>
|
||||
#endif
|
||||
|
||||
#include "decompressor.h"
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Defines
|
||||
////////////////////////////////////////////////////////////////////
|
||||
|
|
|
|||
|
|
@ -15,8 +15,17 @@
|
|||
// panda3d@yahoogroups.com .
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////
|
||||
#include "downloadDb.h"
|
||||
#if defined(WIN32_VC) && !defined(NO_PCH)
|
||||
#include "downloader_headers.h"
|
||||
#endif
|
||||
|
||||
#pragma hdrstop
|
||||
|
||||
#if !defined(WIN32_VC) || defined(NO_PCH)
|
||||
#include "config_downloader.h"
|
||||
#endif
|
||||
|
||||
#include "downloadDb.h"
|
||||
#include <algorithm>
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
|
|
|
|||
|
|
@ -18,9 +18,17 @@
|
|||
|
||||
// This file is compiled only if we have zlib installed.
|
||||
|
||||
#if defined(WIN32_VC) && !defined(NO_PCH)
|
||||
#include "downloader_headers.h"
|
||||
#endif
|
||||
|
||||
#pragma hdrstop
|
||||
|
||||
#if !defined(WIN32_VC) || defined(NO_PCH)
|
||||
#include "download_utils.h"
|
||||
#include "config_downloader.h"
|
||||
#include <zlib.h>
|
||||
#endif
|
||||
|
||||
ulong
|
||||
check_crc(Filename name) {
|
||||
|
|
|
|||
|
|
@ -15,7 +15,13 @@
|
|||
// panda3d@yahoogroups.com .
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////
|
||||
#include "downloader.h"
|
||||
#if defined(WIN32_VC) && !defined(NO_PCH)
|
||||
#include "downloader_headers.h"
|
||||
#endif
|
||||
|
||||
#pragma hdrstop
|
||||
|
||||
#if !defined(WIN32_VC) || defined(NO_PCH)
|
||||
#include "config_downloader.h"
|
||||
|
||||
#include <error_utils.h>
|
||||
|
|
@ -23,6 +29,9 @@
|
|||
|
||||
#include <errno.h>
|
||||
#include <math.h>
|
||||
#endif
|
||||
|
||||
#include "downloader.h"
|
||||
|
||||
#if !defined(WIN32_VC)
|
||||
#include <sys/time.h>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,37 @@
|
|||
// Filename: downloader_headers.h
|
||||
// Created by: georges (30May01)
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// PANDA 3D SOFTWARE
|
||||
// Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved
|
||||
//
|
||||
// All use of this software is subject to the terms of the Panda 3d
|
||||
// Software license. You should have received a copy of this license
|
||||
// along with this source code; you will also find a current copy of
|
||||
// the license at http://www.panda3d.org/license.txt .
|
||||
//
|
||||
// To contact the maintainers of this program write to
|
||||
// panda3d@yahoogroups.com .
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////
|
||||
|
||||
#define WINDOWS_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
#undef WINDOWS_LEAN_AND_MEAN
|
||||
|
||||
#include <errno.h>
|
||||
#include <error_utils.h>
|
||||
#include <math.h>
|
||||
#include <stdio.h>
|
||||
#include <zlib.h>
|
||||
|
||||
#include <filename.h>
|
||||
#include <event.h>
|
||||
#include <pt_Event.h>
|
||||
#include <eventParameter.h>
|
||||
#include <throw_event.h>
|
||||
|
||||
#include "config_downloader.h"
|
||||
#pragma hdrstop
|
||||
|
||||
|
|
@ -15,13 +15,22 @@
|
|||
// panda3d@yahoogroups.com .
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////
|
||||
#include "extractor.h"
|
||||
#if defined(WIN32_VC) && !defined(NO_PCH)
|
||||
#include "downloader_headers.h"
|
||||
#endif
|
||||
|
||||
#pragma hdrstop
|
||||
|
||||
#if !defined(WIN32_VC) || defined(NO_PCH)
|
||||
#include "config_downloader.h"
|
||||
|
||||
#include <filename.h>
|
||||
#include <error_utils.h>
|
||||
|
||||
#include <errno.h>
|
||||
#endif
|
||||
|
||||
#include "extractor.h"
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Defines
|
||||
|
|
|
|||
|
|
@ -16,4 +16,11 @@
|
|||
//
|
||||
////////////////////////////////////////////////////////////////////
|
||||
|
||||
#if defined(WIN32_VC) && !defined(NO_PCH)
|
||||
#include "downloader_headers.h"
|
||||
#endif
|
||||
|
||||
#pragma hdrstop
|
||||
|
||||
#include "multiplexStream.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -16,6 +16,18 @@
|
|||
//
|
||||
////////////////////////////////////////////////////////////////////
|
||||
|
||||
#if defined(WIN32_VC) && !defined(NO_PCH)
|
||||
#include "downloader_headers.h"
|
||||
#endif
|
||||
|
||||
#pragma hdrstop
|
||||
|
||||
#if defined(WIN32_VC) && defined(NO_PCH)
|
||||
#define WINDOWS_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
#undef WINDOWS_LEAN_AND_MEAN
|
||||
#endif
|
||||
|
||||
#include "multiplexStreamBuf.h"
|
||||
|
||||
// We use real assert() instead of nassert(), because we're likely
|
||||
|
|
@ -23,12 +35,6 @@
|
|||
// risk infinite recursion.
|
||||
#include <assert.h>
|
||||
|
||||
#if defined(WIN32_VC)
|
||||
#define WINDOWS_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
#undef WINDOWS_LEAN_AND_MEAN
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_STREAMSIZE
|
||||
// Some compilers--notably SGI--don't define this for us.
|
||||
typedef int streamsize;
|
||||
|
|
|
|||
|
|
@ -15,10 +15,19 @@
|
|||
// panda3d@yahoogroups.com .
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////
|
||||
#include "patcher.h"
|
||||
#if defined(WIN32_VC) && !defined(NO_PCH)
|
||||
#include "downloader_headers.h"
|
||||
#endif
|
||||
|
||||
#pragma hdrstop
|
||||
|
||||
#if !defined(WIN32_VC) || defined(NO_PCH)
|
||||
#include "config_downloader.h"
|
||||
|
||||
#include <filename.h>
|
||||
#endif
|
||||
|
||||
#include "patcher.h"
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Defines
|
||||
|
|
|
|||
|
|
@ -21,9 +21,18 @@
|
|||
////////////////////////////////////////////////////////////////////
|
||||
// Includes
|
||||
////////////////////////////////////////////////////////////////////
|
||||
#include "zcompressor.h"
|
||||
#if defined(WIN32_VC) && !defined(NO_PCH)
|
||||
#include "downloader_headers.h"
|
||||
#endif
|
||||
|
||||
#pragma hdrstop
|
||||
|
||||
#if !defined(WIN32_VC) || defined(NO_PCH)
|
||||
#include "config_downloader.h"
|
||||
#include <zlib.h>
|
||||
#endif
|
||||
|
||||
#include "zcompressor.h"
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Defines
|
||||
|
|
|
|||
Loading…
Reference in New Issue