switch precomp hdrs to composite file build

This commit is contained in:
cxgeorge 2001-07-02 01:57:22 +00:00
parent 54cc3b7c62
commit dfbf81a53e
20 changed files with 47 additions and 163 deletions

View File

@ -7,22 +7,35 @@
#begin lib_target
#define TARGET downloader
#define COMBINED_SOURCES $[TARGET]_composite1.cxx $[TARGET]_composite2.cxx
#define SOURCES \
config_downloader.cxx \
config_downloader.h \
asyncUtility.I asyncUtility.cxx asyncUtility.h \
extractor.cxx extractor.h \
multiplexStream.I multiplexStream.cxx multiplexStream.h \
multiplexStreamBuf.I multiplexStreamBuf.cxx multiplexStreamBuf.h
#define SOURCES \
config_downloader.h asyncUtility.I asyncUtility.h \
extractor.h multiplexStream.I multiplexStream.h \
multiplexStreamBuf.I multiplexStreamBuf.h
#define INCLUDED_SOURCES \
config_downloader.cxx asyncUtility.cxx \
extractor.cxx multiplexStream.cxx multiplexStreamBuf.cxx
#define IF_NET_SOURCES \
downloadDb.I downloadDb.cxx downloadDb.h \
downloader.I downloader.cxx downloader.h
downloadDb.I downloadDb.h downloader.I downloader.h
#define IF_NET_INCLUDED_SOURCES \
downloadDb.cxx downloader.cxx
#define IF_NET_COMBINED_SOURCES \
$[TARGET]_composite4.cxx
#define IF_ZLIB_SOURCES \
decompressor.cxx decompressor.h zcompressor.I zcompressor.cxx \
zcompressor.h download_utils.cxx download_utils.h
#define IF_ZLIB_SOURCES \
decompressor.h zcompressor.I zcompressor.h download_utils.h
#define IF_ZLIB_COMBINED_SOURCES \
$[TARGET]_composite3.cxx
#define IF_ZLIB_INCLUDED_SOURCES \
decompressor.cxx zcompressor.cxx download_utils.cxx
#define IF_CRYPTO_SOURCES \
patcher.cxx \
@ -40,8 +53,6 @@
patcher.h patcher.I \
zcompressor.I zcompressor.h
#define PRECOMPILED_HEADER downloader_headers.h
#define IGATESCAN all
#end lib_target

View File

@ -21,13 +21,7 @@
////////////////////////////////////////////////////////////////////
// Includes
////////////////////////////////////////////////////////////////////
#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>
@ -36,7 +30,6 @@
#include <eventParameter.h>
#include <filename.h>
#include <stdio.h>
#endif
#include "asyncDecompressor.h"

View File

@ -15,13 +15,7 @@
// panda3d@yahoogroups.com .
//
////////////////////////////////////////////////////////////////////
#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>
@ -31,7 +25,6 @@
#include <filename.h>
#include <errno.h>
#include <math.h>
#endif
#include "asyncDownloader.h"
#include <circBuffer.h>

View File

@ -15,13 +15,7 @@
// panda3d@yahoogroups.com .
//
////////////////////////////////////////////////////////////////////
#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>
@ -29,7 +23,6 @@
#include <throw_event.h>
#include <eventParameter.h>
#include <filename.h>
#endif
#include "asyncExtractor.h"

View File

@ -15,19 +15,15 @@
// panda3d@yahoogroups.com .
//
////////////////////////////////////////////////////////////////////
#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 "asyncUtility.h"
#if !defined(WIN32)
#if defined(WIN32)
#define WINDOWS_LEAN_AND_MEAN
#include <wtypes.h>
#undef WINDOWS_LEAN_AND_MEAN
#else
#include <sys/time.h>
#endif

View File

@ -16,18 +16,9 @@
//
////////////////////////////////////////////////////////////////////
#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);

View File

@ -21,13 +21,7 @@
////////////////////////////////////////////////////////////////////
// Includes
////////////////////////////////////////////////////////////////////
#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 <stdio.h>
@ -35,7 +29,6 @@
#include <error_utils.h>
#include <filename.h>
#endif
#include "decompressor.h"

View File

@ -15,16 +15,8 @@
// panda3d@yahoogroups.com .
//
////////////////////////////////////////////////////////////////////
#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>

View File

@ -18,17 +18,9 @@
// 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) {

View File

@ -15,13 +15,7 @@
// panda3d@yahoogroups.com .
//
////////////////////////////////////////////////////////////////////
#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>
@ -29,7 +23,6 @@
#include <errno.h>
#include <math.h>
#endif
#include "downloader.h"

View File

@ -0,0 +1,4 @@
#include "config_downloader.cxx"
#include "asyncUtility.cxx"
#include "extractor.cxx"

View File

@ -0,0 +1,3 @@
#include "multiplexStream.cxx"
#include "multiplexStreamBuf.cxx"

View File

@ -0,0 +1,3 @@
#include "downloader.cxx"
#include "downloadDb.cxx"

View File

@ -0,0 +1,4 @@
#include "download_utils.cxx"
#include "decompressor.cxx"
#include "zcompressor.cxx"

View File

@ -1,40 +0,0 @@
// 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 .
//
////////////////////////////////////////////////////////////////////
#ifdef WIN32_VC
#define WINDOWS_LEAN_AND_MEAN
#include <windows.h>
#undef WINDOWS_LEAN_AND_MEAN
#endif
#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"
#include "download_utils.h"
#pragma hdrstop

View File

@ -15,21 +15,13 @@
// panda3d@yahoogroups.com .
//
////////////////////////////////////////////////////////////////////
#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"
////////////////////////////////////////////////////////////////////

View File

@ -16,11 +16,5 @@
//
////////////////////////////////////////////////////////////////////
#if defined(WIN32_VC) && !defined(NO_PCH)
#include "downloader_headers.h"
#endif
#pragma hdrstop
#include "multiplexStream.h"

View File

@ -16,20 +16,14 @@
//
////////////////////////////////////////////////////////////////////
#if defined(WIN32_VC) && !defined(NO_PCH)
#include "downloader_headers.h"
#endif
#include "multiplexStreamBuf.h"
#pragma hdrstop
#if defined(WIN32_VC) && defined(NO_PCH)
#if defined(WIN32_VC)
#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
// to be invoked directly by notify here, and we don't want to
// risk infinite recursion.

View File

@ -15,18 +15,9 @@
// panda3d@yahoogroups.com .
//
////////////////////////////////////////////////////////////////////
#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"
////////////////////////////////////////////////////////////////////

View File

@ -21,17 +21,9 @@
////////////////////////////////////////////////////////////////////
// Includes
////////////////////////////////////////////////////////////////////
#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"
////////////////////////////////////////////////////////////////////