Revert "Build QuartzCore"

This reverts commit ac81f937b51bb371bdc3b4e77147b379ded394d6.
This commit is contained in:
Andrew Hyatt 2017-12-28 22:28:15 -08:00
parent 26f2df326f
commit bffdf45663
5 changed files with 60 additions and 42 deletions

View File

@ -2,9 +2,6 @@
#import <QuartzCore/CALayer.h>
#import <QuartzCore/CARenderer.h>
#import <Foundation/NSString.h>
#include <OpenGL/OpenGL.h>
#include <OpenGL/gl.h>
#include <OpenGL/glext.h>
@interface CALayer(private)
-(void)_setContext:(CALayerContext *)context;
@ -35,8 +32,7 @@
GLint backingOrigin[2]={rect.origin.x,rect.origin.y};
GLint backingSize[2]={width,height};
#warning disabled because it isn't standard
//CGLSetParameter(_glContext,kCGLCPSurfaceBackingOrigin,backingOrigin);
CGLSetParameter(_glContext,kCGLCPSurfaceBackingOrigin,backingOrigin);
CGLSetParameter(_glContext,kCGLCPSurfaceBackingSize,backingSize);
GLint opacity=0;
@ -62,8 +58,7 @@
GLint backingOrigin[2]={rect.origin.x,rect.origin.y};
GLint backingSize[2]={width,height};
#warning disabled because it isn't standard
// CGLSetParameter(_glContext,kCGLCPSurfaceBackingOrigin,backingOrigin);
CGLSetParameter(_glContext,kCGLCPSurfaceBackingOrigin,backingOrigin);
CGLSetParameter(_glContext,kCGLCPSurfaceBackingSize,backingSize);
}

View File

@ -3,12 +3,9 @@
#import <QuartzCore/CAAnimation.h>
#import <QuartzCore/CAMediaTimingFunction.h>
#import <CoreVideo/CoreVideo.h>
#import <OpenGL/OpenGL.h>
#import <Onyx2D/O2Surface.h>
#include <OpenGL/OpenGL.h>
#include <OpenGL/gl.h>
#include <OpenGL/glext.h>
@interface CALayer(private)
-(void)_setContext:(CALayerContext *)context;
-(void)_setTextureId:(NSNumber *)value;

View File

@ -1,6 +1,8 @@
#import <QuartzCore/CATransaction.h>
#import <QuartzCore/CALayerContext.h>
#import <Foundation/Foundation.h>
#import <Foundation/NSString.h>
#import <Foundation/NSNumber.h>
#import <Foundation/NSArray.h>
#import "CATransactionGroup.h"
NSString * const kCATransactionAnimationDuration=@"kCATransactionAnimationDuration";

View File

@ -1,7 +1,5 @@
#import <QuartzCore/CAWindowOpenGLContext.h>
#include <OpenGL/OpenGL.h>
#include <OpenGL/gl.h>
#include <OpenGL/glext.h>
#import <OpenGL/OpenGL.h>
#import <Onyx2D/O2Surface.h>
@implementation CAWindowOpenGLContext

View File

@ -1,14 +1,39 @@
project(QuartzCore)
set(DYLIB_COMPAT_VERSION "1.2.0")
set(DYLIB_CURRENT_VERSION "1.11.0")
include(darling_framework)
add_framework(QuartzCore
FAT
CURRENT_VERSION
VERSION "A"
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} \
-include math.h \
-include stdlib.h \
-include CoreFoundation/CoreFoundation.h \
-include Foundation/Foundation.h \
-Wno-nonportable-include-path \
-Wno-deprecated-objc-isa-usage \
-mmacosx-version-min=10.10"
)
SOURCES
include_directories(
${CMAKE_SOURCE_DIR}/src/external/foundation/include
${CMAKE_SOURCE_DIR}/src/external/foundation/include/Foundation
${CMAKE_SOURCE_DIR}/src/external/corefoundation
${CMAKE_SOURCE_DIR}/src/external/objc4/runtime
${CMAKE_SOURCE_DIR}/src/external/libclosure
${CMAKE_SOURCE_DIR}/src/external/security/include
${CMAKE_SOURCE_DIR}/src/external/cfnetwork/include
${CMAKE_SOURCE_DIR}/src/external/cfnetwork/private_include
${CMAKE_SOURCE_DIR}/src/launchd/liblaunch
${CMAKE_SOURCE_DIR}/src/libmalloc/include
${CMAKE_SOURCE_DIR}/src/copyfile
${CMAKE_SOURCE_DIR}/src/libc/gen
${CMAKE_SOURCE_DIR}/src/external/icu/icuSources/i18n
${CMAKE_SOURCE_DIR}/src/external/icu/icuSources/common
${CMAKE_SOURCE_DIR}/src/external/libxml2/include
${CMAKE_BINARY_DIR}/src/external/libxml2/include
${CMAKE_CURRENT_SOURCE_DIR}
)
set(QuartzCore_sources
CAAnimationGroup.m
CAAnimation.m
CABase.m
@ -27,30 +52,31 @@ add_framework(QuartzCore
CIAffineTransform.m
CIBloom.m
CIBoxBlur.m
CAAnimationGroup.m
CIColor.m
CIContext.m
CIFilter.m
CIImage.m
CILinearGradient.m
CIVector.m
DEPENDENCIES
CoreImage
CoreVideo
objc
Accelerate
CoreGraphics
CoreText
ImageIO
IOSurface
Metal
OpenGL
Security
xml2
cxx
system
CoreFoundation
Foundation
Onyx2D
)
set_source_files_properties(${QuartzCore_sources} LANGUAGE C)
add_framework(QuartzCore
FAT
CURRENT_VERSION
SOURCES
${QuartzCore_sources}
VERSION "A"
DEPENDENCIES
objc
system
CoreFoundation
Foundation
Onyx2D
# native libraries
GL
CIRCULAR_DEPENDENCIES
OpenGL
CoreGraphics
)