darling-cocotron/CoreGraphics/CMakeLists.txt

136 lines
2.6 KiB
CMake
Raw Normal View History

2017-04-24 18:59:36 +00:00
project(CoreGraphics)
include(darling_framework)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} \
-include math.h \
-include stdlib.h \
-include CoreFoundation/CoreFoundation.h \
2017-04-29 17:00:49 +00:00
-Wno-nonportable-include-path \
-mmacosx-version-min=10.10"
2017-04-24 18:59:36 +00:00
)
2017-07-13 21:35:47 +00:00
find_package(PkgConfig REQUIRED)
pkg_check_modules(PC_CAIRO cairo)
set_property(SOURCE
CGAffineTransform.m
CGBitmapContext.m
CGColor.m
CGColorSpace.m
CGContext.m
CGDataConsumer.m
CGDataProvider.m
CGDirectDisplay.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
CGSubWindow.m
2020-04-19 17:44:49 +00:00
CGS.m
CGSConnection.m
CGSWindow.m
CGSSurface.m
CGSRegion.m
APPEND PROPERTY COMPILE_FLAGS "-include Foundation/Foundation.h"
)
2017-04-24 18:59:36 +00:00
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
2017-07-13 21:35:47 +00:00
${PC_CAIRO_INCLUDE_DIRS}
2017-04-24 18:59:36 +00:00
)
set(CoreGraphics_sources
CGAffineTransform.m
CGBitmapContext.m
CGColor.m
CGColorSpace.m
CGContext.m
CGDataConsumer.m
CGDataProvider.m
CGDirectDisplay.m
src/CGEvent.c
src/stubs.c
2017-04-24 18:59:36 +00:00
CGFont.m
CGFunction.m
CGGeometry.m
CGGradient.m
CGImage.m
CGLayer.m
2017-07-13 21:35:47 +00:00
CGLPixelSurface.m
2017-04-24 18:59:36 +00:00
CGPath.m
CGPattern.m
CGPDFContext.m
CGPDFDocument.m
CGPDFPage.m
CGShading.m
CGWindow.m
CGSubWindow.m
CGDisplayFade.m
2020-04-19 17:44:49 +00:00
CGS.m
CGSConnection.m
CGSWindow.m
CGSSurface.m
CGSRegion.m
2020-05-12 20:09:19 +00:00
CGEvent.m
CGEventSource.m
CGEventTap.m
CGEventObjC.m
2017-07-13 21:32:51 +00:00
# KTFont+PDF.m 'KGPDFArray.h' file not found
2017-04-24 18:59:36 +00:00
)
set_source_files_properties(${CoreGraphics_sources} LANGUAGE C)
set(DYLIB_COMPAT_VERSION "64.0.0")
set(DYLIB_CURRENT_VERSION "1070.22.0")
2017-04-24 18:59:36 +00:00
add_framework(CoreGraphics
FAT
CURRENT_VERSION
SOURCES
${CoreGraphics_sources}
VERSION "A"
DEPENDENCIES
objc
system
CoreFoundation
2017-04-29 17:00:49 +00:00
Foundation
2017-04-25 09:13:21 +00:00
Onyx2D
GL
2020-02-10 20:59:34 +00:00
IOKit
2017-04-24 18:59:36 +00:00
)