mirror of
https://github.com/darlinghq/darling-cocotron.git
synced 2024-11-30 15:30:31 +00:00
94 lines
2.1 KiB
CMake
94 lines
2.1 KiB
CMake
project(CoreGraphics)
|
|
|
|
include(darling_framework)
|
|
|
|
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 \
|
|
-mmacosx-version-min=10.10"
|
|
)
|
|
|
|
find_package(PkgConfig REQUIRED)
|
|
pkg_check_modules(PC_CAIRO cairo)
|
|
|
|
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}
|
|
${CMAKE_CURRENT_SOURCE_DIR}/..
|
|
${CMAKE_CURRENT_SOURCE_DIR}/../CoreText
|
|
|
|
${PC_CAIRO_INCLUDE_DIRS}
|
|
)
|
|
|
|
set(CoreGraphics_sources
|
|
CGAffineTransform.m
|
|
CGBitmapContext.m
|
|
CGColor.m
|
|
CGColorSpace.m
|
|
CGContext.m
|
|
CGDataConsumer.m
|
|
CGDataProvider.m
|
|
CGDirectDisplay.m
|
|
CGEvent.m
|
|
CGFont.m
|
|
CGFunction.m
|
|
CGGeometry.m
|
|
CGGradient.m
|
|
CGImageDestination.m
|
|
CGImage.m
|
|
CGImageProperties.m
|
|
CGImageSource.m
|
|
CGLayer.m
|
|
CGLPixelSurface.m
|
|
CGPath.m
|
|
CGPattern.m
|
|
CGPDFContext.m
|
|
CGPDFDocument.m
|
|
CGPDFPage.m
|
|
CGShading.m
|
|
CGWindow.m
|
|
# KTFont+PDF.m 'KGPDFArray.h' file not found
|
|
)
|
|
|
|
set_source_files_properties(${CoreGraphics_sources} LANGUAGE C)
|
|
|
|
set(DYLIB_COMPAT_VERSION "64.0.0")
|
|
set(DYLIB_CURRENT_VERSION "1070.22.0")
|
|
|
|
add_framework(CoreGraphics
|
|
FAT
|
|
CURRENT_VERSION
|
|
SOURCES
|
|
${CoreGraphics_sources}
|
|
VERSION "A"
|
|
DEPENDENCIES
|
|
objc
|
|
system
|
|
${CoreFoundation}
|
|
Foundation
|
|
Onyx2D
|
|
GL
|
|
CIRCULAR_DEPENDENCIES
|
|
AppKit
|
|
OpenGL
|
|
)
|