Permalink
Browse files

Some changes to make the project build faster

Enable hidden visibility by default, which I think makes C++ compile faster.
Also disable preprocessing headers for targets with only one source file.

git-svn-id: https://svn.perian.org/trunk@1499 621663c8-3916-0410-8f58-edc14a8543d5
  • Loading branch information...
astrange
astrange committed Mar 5, 2012
1 parent 755cc28 commit 11e93661ddeae77ee943d7e324e42f649549d3bc
@@ -21,6 +21,7 @@
#import <Cocoa/Cocoa.h>
#import <PreferencePanes/NSPreferencePane.h>
#import <Security/Security.h>
#import "CommonUtils.h"
#define ComponentInfoPlist @"ComponentInfo.plist"
#define ObsoletesKey @"obsoletes"
@@ -69,6 +70,7 @@ typedef enum
ComponentTypeFramework
} ComponentType;
PERIAN_EXPORTED
@interface CPFPerianPrefPaneController : NSPreferencePane
{
//General Pane
View
@@ -76,7 +76,8 @@ void *fast_realloc_with_padding(void *ptr, unsigned int *size, unsigned int min_
void ConvertImageToQDTransparent(Ptr baseAddr, OSType pixelFormat, int rowBytes, int width, int height);
#define PERIAN_PREF_DOMAIN CFSTR("org.perian.Perian")
#define PERIAN_EXPORTED __attribute__((visibility("default")))
#ifdef __cplusplus
}
#endif
View
@@ -248,6 +248,8 @@ UInt32 CompressAudioCodec::ProduceOutputPackets(void* outOutputData, UInt32& ioO
return status;
}
#pragma GCC visibility push(default)
#include "ACPlugInDispatch.h"
#define CompressAudioCodecEntry CompressAudioDecoderEntry
View
@@ -59,7 +59,9 @@ typedef struct {
#include <CoreServices/Components.k.h>
#include <QuickTime/ImageCodec.k.h>
#pragma GCC visibility push(default)
#include <QuickTime/ComponentDispatchHelper.c>
#pragma GCC visibility pop
static int componentSkipCount = 0;
@@ -740,6 +740,8 @@ void FFissionVBRDecoder::GetProperty(AudioCodecPropertyID inPropertyID, UInt32&
}
}
#pragma GCC visibility push(default)
#include "ACPlugInDispatch.h"
AUDIOCOMPONENT_ENTRY(AudioCodecFactory, FFissionDecoder)
View
@@ -174,7 +174,10 @@ extern CFMutableStringRef CopyHomeDirectory();
#define GET_DELEGATE_COMPONENT() (storage->delegateComponent)
#include <QuickTime/ImageCodec.k.h>
#pragma GCC visibility push(default)
#include <QuickTime/ComponentDispatchHelper.c>
#pragma GCC visibility pop
static void *launchUpdateChecker(void *args)
{
View
@@ -54,15 +54,11 @@ using namespace libmatroska;
#define COMPONENT_UPP_SELECT_ROOT() MovieImport
extern "C" {
#if __MACH__
#include <CoreServices/Components.k.h>
#include <QuickTime/QuickTimeComponents.k.h>
#include <QuickTime/ComponentDispatchHelper.c>
#else
#include <Components.k.h>
#include <QuickTimeComponents.k.h>
#include <ComponentDispatchHelper.c>
#endif
#include <CoreServices/Components.k.h>
#include <QuickTime/QuickTimeComponents.k.h>
#pragma GCC visibility push(default)
#include <QuickTime/ComponentDispatchHelper.c>
#pragma GCC visibility pop
}
#pragma mark-
@@ -596,8 +596,6 @@
/* Begin PBXFileReference section */
089C167EFE841241C02AAC07 /* InfoPlist.strings */ = {isa = PBXFileReference; fileEncoding = 10; lastKnownFileType = text.plist.strings; name = InfoPlist.strings; path = Plists/InfoPlist.strings; sourceTree = "<group>"; };
11207C720C2F4A4E002A0FF0 /* ComponentInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist; name = ComponentInfo.plist; path = Plists/ComponentInfo.plist; sourceTree = "<group>"; };
113077FD0D50139500ECDECC /* ECQTComponent.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ECQTComponent.m; sourceTree = "<group>"; };
113077FE0D50139500ECDECC /* ECQTComponent.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ECQTComponent.h; sourceTree = "<group>"; };
113F58980A6B091600509987 /* Codecprintf.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Codecprintf.h; sourceTree = "<group>"; };
113F58990A6B091600509987 /* Codecprintf.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = Codecprintf.c; sourceTree = "<group>"; };
1156DBD80A3CE9F500963B0E /* libz.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libz.dylib; path = /usr/lib/libz.dylib; sourceTree = "<absolute>"; };
@@ -1427,8 +1425,6 @@
83D1D6DF0B4C81E000E09EC9 /* PrefPane */ = {
isa = PBXGroup;
children = (
113077FD0D50139500ECDECC /* ECQTComponent.m */,
113077FE0D50139500ECDECC /* ECQTComponent.h */,
83D1D6E00B4C81F200E09EC9 /* CPFPerianPrefPaneController.h */,
83D1D6E10B4C81F200E09EC9 /* CPFPerianPrefPaneController.m */,
F5CFD1BD0B5000CE00616865 /* GBPerianPanePListGenerator.m */,
@@ -2338,15 +2334,15 @@
isa = XCBuildConfiguration;
buildSettings = {
ARCHS = "$(ARCHS_STANDARD_32_BIT)";
EXPORTED_SYMBOLS_FILE = "$(SOURCE_ROOT)/exportedSymbols";
EXPORTED_SYMBOLS_FILE = Resources/PerianExportedSymbols.txt;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
"\"$(SYSTEM_LIBRARY_DIR)/Frameworks/ApplicationServices.framework/Frameworks\"",
);
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_FORCE_CPU_SUBTYPE_ALL = YES;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = Prefix.h;
GCC_SYMBOLS_PRIVATE_EXTERN = YES;
HEADER_SEARCH_PATHS = (
/Developer/Extras/CoreAudio/AudioCodecs/ACPublic,
"\"$(BUILT_PRODUCTS_DIR)\"/$(arch)",
@@ -2377,15 +2373,15 @@
isa = XCBuildConfiguration;
buildSettings = {
ARCHS = "$(ARCHS_STANDARD_32_BIT)";
EXPORTED_SYMBOLS_FILE = "$(SOURCE_ROOT)/exportedSymbols";
EXPORTED_SYMBOLS_FILE = Resources/PerianExportedSymbols.txt;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
"\"$(SYSTEM_LIBRARY_DIR)/Frameworks/ApplicationServices.framework/Frameworks\"",
);
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_FORCE_CPU_SUBTYPE_ALL = YES;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = Prefix.h;
GCC_SYMBOLS_PRIVATE_EXTERN = YES;
HEADER_SEARCH_PATHS = (
/Developer/Extras/CoreAudio/AudioCodecs/ACPublic,
"\"$(BUILT_PRODUCTS_DIR)\"/$(arch)",
@@ -2463,7 +2459,6 @@
MACOSX_DEPLOYMENT_TARGET = 10.6;
ONLY_ACTIVE_ARCH = YES;
OTHER_CFLAGS = "-fstack-protector";
PRESERVE_DEAD_CODE_INITS_AND_TERMS = YES;
SCAN_ALL_SOURCE_FILES_FOR_INCLUDES = YES;
SDKROOT = macosx;
STRIP_INSTALLED_PRODUCT = NO;
@@ -2476,7 +2471,7 @@
isa = XCBuildConfiguration;
buildSettings = {
ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
COPY_PHASE_STRIP = NO;
COPY_PHASE_STRIP = YES;
DEAD_CODE_STRIPPING = YES;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
DEPLOYMENT_POSTPROCESSING = YES;
@@ -2502,7 +2497,6 @@
LIBRARY_SEARCH_PATHS = "$(BUILT_PRODUCTS_DIR)/Universal";
MACOSX_DEPLOYMENT_TARGET = 10.6;
OTHER_CFLAGS = "-fstack-protector";
PRESERVE_DEAD_CODE_INITS_AND_TERMS = YES;
SCAN_ALL_SOURCE_FILES_FOR_INCLUDES = YES;
SDKROOT = macosx;
STRIP_INSTALLED_PRODUCT = YES;
@@ -2523,7 +2517,7 @@
isa = XCBuildConfiguration;
buildSettings = {
ARCHS = "$(ARCHS_STANDARD_32_BIT)";
GCC_INLINES_ARE_PRIVATE_EXTERN = YES;
GCC_SYMBOLS_PRIVATE_EXTERN = YES;
INSTALL_PATH = /usr/local/lib;
PRODUCT_NAME = ebml;
USER_HEADER_SEARCH_PATHS = "$(SRCROOT)/libebml";
@@ -2534,7 +2528,7 @@
isa = XCBuildConfiguration;
buildSettings = {
ARCHS = "$(ARCHS_STANDARD_32_BIT)";
GCC_INLINES_ARE_PRIVATE_EXTERN = YES;
GCC_SYMBOLS_PRIVATE_EXTERN = YES;
INSTALL_PATH = /usr/local/lib;
PRODUCT_NAME = matroska;
USER_HEADER_SEARCH_PATHS = "$(SRCROOT)/libmatroska $(SRCROOT)/libebml";
@@ -2545,15 +2539,15 @@
isa = XCBuildConfiguration;
buildSettings = {
ARCHS = "$(ARCHS_STANDARD_32_BIT)";
EXPORTED_SYMBOLS_FILE = "$(SOURCE_ROOT)/exportedSymbols";
EXPORTED_SYMBOLS_FILE = Resources/PerianExportedSymbols.txt;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
"\"$(SYSTEM_LIBRARY_DIR)/Frameworks/ApplicationServices.framework/Frameworks\"",
);
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_FORCE_CPU_SUBTYPE_ALL = YES;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = Prefix.h;
GCC_SYMBOLS_PRIVATE_EXTERN = YES;
HEADER_SEARCH_PATHS = (
"\"$(BUILT_PRODUCTS_DIR)\"/$(arch)",
libmatroska,
@@ -2605,6 +2599,7 @@
buildSettings = {
ARCHS = "$(NATIVE_ARCH_ACTUAL)";
GCC_GENERATE_DEBUGGING_SYMBOLS = NO;
GCC_PRECOMPILE_PREFIX_HEADER = NO;
INSTALL_PATH = "$(HOME)/bin";
MACOSX_DEPLOYMENT_TARGET = "";
PRODUCT_NAME = PerianPanePListGenerator;
@@ -2623,6 +2618,8 @@
isa = XCBuildConfiguration;
buildSettings = {
GCC_DYNAMIC_NO_PIC = NO;
GCC_PRECOMPILE_PREFIX_HEADER = NO;
GCC_SYMBOLS_PRIVATE_EXTERN = YES;
INFOPLIST_FILE = "Plists/PerianPaneReal-Info.plist";
INFOPLIST_OTHER_PREPROCESSOR_FLAGS = "-C";
INFOPLIST_PREFIX_HEADER = "$(TARGET_BUILD_DIR)/include/SVNRevision.h";
@@ -2667,7 +2664,6 @@
LIBRARY_SEARCH_PATHS = "$(BUILT_PRODUCTS_DIR)/Universal";
MACOSX_DEPLOYMENT_TARGET = 10.6;
OTHER_CFLAGS = "-fstack-protector";
PRESERVE_DEAD_CODE_INITS_AND_TERMS = YES;
SCAN_ALL_SOURCE_FILES_FOR_INCLUDES = YES;
SDKROOT = macosx;
STRIP_INSTALLED_PRODUCT = NO;
@@ -2681,6 +2677,7 @@
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
ARCHS = "$(ARCHS_STANDARD_32_BIT)";
GCC_PRECOMPILE_PREFIX_HEADER = NO;
GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
INSTALL_PATH = /usr/local/bin;
PRODUCT_NAME = ssa2pdf;
@@ -2693,6 +2690,7 @@
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
ARCHS = "$(ARCHS_STANDARD_32_BIT)";
GCC_PRECOMPILE_PREFIX_HEADER = NO;
GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
INSTALL_PATH = /usr/local/bin;
PRODUCT_NAME = ssa2pdf;
@@ -2705,6 +2703,7 @@
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
ARCHS = "$(ARCHS_STANDARD_32_BIT)";
GCC_PRECOMPILE_PREFIX_HEADER = NO;
GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
INSTALL_PATH = /usr/local/bin;
PRODUCT_NAME = ssa2pdf;
@@ -2717,6 +2716,7 @@
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
COPY_PHASE_STRIP = NO;
GCC_PRECOMPILE_PREFIX_HEADER = NO;
INSTALL_PATH = /usr/local/bin;
PRODUCT_NAME = ssa2html;
};
@@ -2727,6 +2727,7 @@
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
COPY_PHASE_STRIP = YES;
GCC_PRECOMPILE_PREFIX_HEADER = NO;
INSTALL_PATH = /usr/local/bin;
PRODUCT_NAME = ssa2html;
};
@@ -2736,6 +2737,7 @@
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
GCC_PRECOMPILE_PREFIX_HEADER = NO;
INSTALL_PATH = /usr/local/bin;
PRODUCT_NAME = ssa2html;
};
@@ -2745,6 +2747,7 @@
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
GCC_PRECOMPILE_PREFIX_HEADER = NO;
INSTALL_PATH = /usr/local/bin;
PRODUCT_NAME = "detect-encoding";
SDKROOT = "";
@@ -2755,6 +2758,7 @@
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
GCC_PRECOMPILE_PREFIX_HEADER = NO;
INSTALL_PATH = /usr/local/bin;
PRODUCT_NAME = "detect-encoding";
SDKROOT = "";
@@ -2765,6 +2769,7 @@
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
GCC_PRECOMPILE_PREFIX_HEADER = NO;
INSTALL_PATH = /usr/local/bin;
PRODUCT_NAME = "detect-encoding";
SDKROOT = "";
@@ -2776,6 +2781,7 @@
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
ARCHS = "$(ARCHS_STANDARD_32_BIT)";
GCC_PRECOMPILE_PREFIX_HEADER = NO;
INFOPLIST_FILE = "Plists/PerianOpener-Info.plist";
INFOPLIST_OTHER_PREPROCESSOR_FLAGS = "-C";
INFOPLIST_OUTPUT_FORMAT = "same-as-input";
@@ -2792,6 +2798,7 @@
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
ARCHS = "$(ARCHS_STANDARD_32_BIT)";
GCC_PRECOMPILE_PREFIX_HEADER = NO;
INFOPLIST_FILE = "Plists/PerianOpener-Info.plist";
INFOPLIST_OTHER_PREPROCESSOR_FLAGS = "-C";
INFOPLIST_OUTPUT_FORMAT = "same-as-input";
@@ -2808,6 +2815,7 @@
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
ARCHS = "$(ARCHS_STANDARD_32_BIT)";
GCC_PRECOMPILE_PREFIX_HEADER = NO;
INFOPLIST_FILE = "Plists/PerianOpener-Info.plist";
INFOPLIST_OTHER_PREPROCESSOR_FLAGS = "-C";
INFOPLIST_OUTPUT_FORMAT = "same-as-input";
@@ -2823,7 +2831,7 @@
isa = XCBuildConfiguration;
buildSettings = {
ARCHS = "$(ARCHS_STANDARD_32_BIT)";
GCC_INLINES_ARE_PRIVATE_EXTERN = YES;
GCC_SYMBOLS_PRIVATE_EXTERN = YES;
INSTALL_PATH = /usr/local/lib;
ONLY_ACTIVE_ARCH = NO;
PRODUCT_NAME = ebml;
@@ -2835,7 +2843,7 @@
isa = XCBuildConfiguration;
buildSettings = {
ARCHS = "$(ARCHS_STANDARD_32_BIT)";
GCC_INLINES_ARE_PRIVATE_EXTERN = YES;
GCC_SYMBOLS_PRIVATE_EXTERN = YES;
INSTALL_PATH = /usr/local/lib;
PRODUCT_NAME = ebml;
USER_HEADER_SEARCH_PATHS = "$(SRCROOT)/libebml";
@@ -2846,7 +2854,7 @@
isa = XCBuildConfiguration;
buildSettings = {
ARCHS = "$(ARCHS_STANDARD_32_BIT)";
GCC_INLINES_ARE_PRIVATE_EXTERN = YES;
GCC_SYMBOLS_PRIVATE_EXTERN = YES;
INSTALL_PATH = /usr/local/lib;
ONLY_ACTIVE_ARCH = NO;
PRODUCT_NAME = matroska;
@@ -2858,7 +2866,7 @@
isa = XCBuildConfiguration;
buildSettings = {
ARCHS = "$(ARCHS_STANDARD_32_BIT)";
GCC_INLINES_ARE_PRIVATE_EXTERN = YES;
GCC_SYMBOLS_PRIVATE_EXTERN = YES;
INSTALL_PATH = /usr/local/lib;
PRODUCT_NAME = matroska;
USER_HEADER_SEARCH_PATHS = "$(SRCROOT)/libmatroska $(SRCROOT)/libebml";
@@ -2869,6 +2877,8 @@
isa = XCBuildConfiguration;
buildSettings = {
GCC_DYNAMIC_NO_PIC = NO;
GCC_PRECOMPILE_PREFIX_HEADER = NO;
GCC_SYMBOLS_PRIVATE_EXTERN = YES;
INFOPLIST_FILE = "Plists/PerianPaneReal-Info.plist";
INFOPLIST_OTHER_PREPROCESSOR_FLAGS = "-C";
INFOPLIST_PREFIX_HEADER = "$(TARGET_BUILD_DIR)/include/SVNRevision.h";
@@ -2884,6 +2894,8 @@
isa = XCBuildConfiguration;
buildSettings = {
GCC_DYNAMIC_NO_PIC = NO;
GCC_PRECOMPILE_PREFIX_HEADER = NO;
GCC_SYMBOLS_PRIVATE_EXTERN = YES;
INFOPLIST_FILE = "Plists/PerianPaneReal-Info.plist";
INFOPLIST_OTHER_PREPROCESSOR_FLAGS = "-C";
INFOPLIST_PREFIX_HEADER = "$(TARGET_BUILD_DIR)/include/SVNRevision.h";
@@ -2934,6 +2946,7 @@
buildSettings = {
ARCHS = "$(NATIVE_ARCH_ACTUAL)";
GCC_GENERATE_DEBUGGING_SYMBOLS = NO;
GCC_PRECOMPILE_PREFIX_HEADER = NO;
INSTALL_PATH = "$(HOME)/bin";
MACOSX_DEPLOYMENT_TARGET = "";
PRODUCT_NAME = PerianPanePListGenerator;
@@ -2946,6 +2959,7 @@
buildSettings = {
ARCHS = "$(NATIVE_ARCH_ACTUAL)";
GCC_GENERATE_DEBUGGING_SYMBOLS = NO;
GCC_PRECOMPILE_PREFIX_HEADER = NO;
INSTALL_PATH = "$(HOME)/bin";
MACOSX_DEPLOYMENT_TARGET = "";
PRODUCT_NAME = PerianPanePListGenerator;
File renamed without changes.
Oops, something went wrong.

0 comments on commit 11e9366

Please sign in to comment.