mirror of
https://github.com/darlinghq/darling-cocotron.git
synced 2024-11-23 04:00:00 +00:00
Generate Headers for AppKit, Cocoa, CoreData, CoreGraphics, CoreText, Onyx2D, and QuartzCore
This commit is contained in:
parent
d18eb37843
commit
19b47b890d
@ -2,6 +2,8 @@ project(AppKit)
|
||||
|
||||
include(darling_framework)
|
||||
|
||||
remove_sdk_framework(AppKit)
|
||||
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} \
|
||||
-include math.h \
|
||||
-include stdlib.h \
|
||||
@ -444,6 +446,8 @@ set_source_files_properties(${AppKit_sources} LANGUAGE C)
|
||||
set(DYLIB_COMPAT_VERSION "45.0.0")
|
||||
set(DYLIB_CURRENT_VERSION "1499.11.0")
|
||||
|
||||
set(FRAMEWORK_VERSION "C")
|
||||
|
||||
set(AppKit_resources
|
||||
Info.plist Info.plist
|
||||
|
||||
@ -504,6 +508,11 @@ set(AppKit_resources
|
||||
en.lproj/NSOpenPanel.nib en.lproj/NSOpenPanel.nib
|
||||
)
|
||||
|
||||
generate_sdk_framework(AppKit
|
||||
VERSION ${FRAMEWORK_VERSION}
|
||||
HEADER "include/AppKit"
|
||||
)
|
||||
|
||||
add_framework(AppKit
|
||||
FAT
|
||||
CURRENT_VERSION
|
||||
@ -511,7 +520,7 @@ add_framework(AppKit
|
||||
${AppKit_sources}
|
||||
RESOURCES
|
||||
${AppKit_resources}
|
||||
VERSION "C"
|
||||
VERSION ${FRAMEWORK_VERSION}
|
||||
DEPENDENCIES
|
||||
objc
|
||||
system
|
||||
|
@ -1,5 +1,7 @@
|
||||
project(Cocoa)
|
||||
|
||||
remove_sdk_framework(Cocoa)
|
||||
|
||||
set(Cocoa_sources
|
||||
Cocoa.m
|
||||
)
|
||||
@ -9,12 +11,19 @@ set_source_files_properties(${Cocoa_sources} LANGUAGE C)
|
||||
set(DYLIB_COMPAT_VERSION "1.0.0")
|
||||
set(DYLIB_CURRENT_VERSION "22.0.0")
|
||||
|
||||
set(FRAMEWORK_VERSION "A")
|
||||
|
||||
generate_sdk_framework(Cocoa
|
||||
VERSION ${FRAMEWORK_VERSION}
|
||||
HEADER "include/Cocoa"
|
||||
)
|
||||
|
||||
add_framework(Cocoa
|
||||
FAT
|
||||
CURRENT_VERSION
|
||||
SOURCES
|
||||
${Cocoa_sources}
|
||||
VERSION "A"
|
||||
VERSION ${FRAMEWORK_VERSION}
|
||||
DEPENDENCIES
|
||||
objc
|
||||
system
|
||||
|
@ -2,6 +2,8 @@ project(CoreData)
|
||||
|
||||
include(darling_framework)
|
||||
|
||||
remove_sdk_framework(CoreData)
|
||||
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} \
|
||||
-include math.h \
|
||||
-include stdlib.h \
|
||||
@ -50,12 +52,19 @@ set_source_files_properties(${CoreData_sources} LANGUAGE C)
|
||||
set(DYLIB_COMPAT_VERSION "1.0.0")
|
||||
set(DYLIB_CURRENT_VERSION "752.0.0")
|
||||
|
||||
set(FRAMEWORK_VERSION "A")
|
||||
|
||||
generate_sdk_framework(CoreData
|
||||
VERSION ${FRAMEWORK_VERSION}
|
||||
HEADER "include/CoreData"
|
||||
)
|
||||
|
||||
add_framework(CoreData
|
||||
FAT
|
||||
CURRENT_VERSION
|
||||
SOURCES
|
||||
${CoreData_sources}
|
||||
VERSION "A"
|
||||
VERSION ${FRAMEWORK_VERSION}
|
||||
DEPENDENCIES
|
||||
objc
|
||||
system
|
||||
|
@ -2,6 +2,8 @@ project(CoreGraphics)
|
||||
|
||||
include(darling_framework)
|
||||
|
||||
remove_sdk_framework(CoreGraphics)
|
||||
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} \
|
||||
-include math.h \
|
||||
-include stdlib.h \
|
||||
@ -106,12 +108,19 @@ set_source_files_properties(${CoreGraphics_sources} LANGUAGE C)
|
||||
set(DYLIB_COMPAT_VERSION "64.0.0")
|
||||
set(DYLIB_CURRENT_VERSION "1070.22.0")
|
||||
|
||||
set(FRAMEWORK_VERSION "A")
|
||||
|
||||
generate_sdk_framework(CoreGraphics
|
||||
VERSION ${FRAMEWORK_VERSION}
|
||||
HEADER "include/CoreGraphics"
|
||||
)
|
||||
|
||||
add_framework(CoreGraphics
|
||||
FAT
|
||||
CURRENT_VERSION
|
||||
SOURCES
|
||||
${CoreGraphics_sources}
|
||||
VERSION "A"
|
||||
VERSION ${FRAMEWORK_VERSION}
|
||||
DEPENDENCIES
|
||||
objc
|
||||
system
|
||||
|
@ -1,5 +1,7 @@
|
||||
project(CoreText)
|
||||
|
||||
remove_sdk_framework(CoreText)
|
||||
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} \
|
||||
-Wno-deprecated-objc-isa-usage \
|
||||
-mmacosx-version-min=10.10"
|
||||
@ -25,12 +27,19 @@ set_source_files_properties(${CoreText_sources} LANGUAGE C)
|
||||
set(DYLIB_COMPAT_VERSION "1.0.0")
|
||||
set(DYLIB_CURRENT_VERSION "1.0.0")
|
||||
|
||||
set(FRAMEWORK_VERSION "A")
|
||||
|
||||
generate_sdk_framework(CoreText
|
||||
VERSION ${FRAMEWORK_VERSION}
|
||||
HEADER "include/CoreText"
|
||||
)
|
||||
|
||||
add_framework(CoreText
|
||||
FAT
|
||||
CURRENT_VERSION
|
||||
SOURCES
|
||||
${CoreText_sources}
|
||||
VERSION "A"
|
||||
VERSION ${FRAMEWORK_VERSION}
|
||||
DEPENDENCIES
|
||||
objc
|
||||
system
|
||||
|
@ -2,6 +2,8 @@ project(Onyx2D)
|
||||
|
||||
include(darling_framework)
|
||||
|
||||
remove_sdk_framework(Onyx2D)
|
||||
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} \
|
||||
-include math.h \
|
||||
-include stdlib.h \
|
||||
@ -134,13 +136,21 @@ set(Onyx2D_sources
|
||||
|
||||
set_source_files_properties(${Onyx2D_sources} LANGUAGE C)
|
||||
|
||||
|
||||
set(FRAMEWORK_VERSION "A")
|
||||
|
||||
generate_sdk_framework(Onyx2D
|
||||
VERSION ${FRAMEWORK_VERSION}
|
||||
HEADER "include/Onyx2D"
|
||||
)
|
||||
|
||||
add_framework(Onyx2D
|
||||
FAT
|
||||
CURRENT_VERSION
|
||||
PRIVATE
|
||||
SOURCES
|
||||
${Onyx2D_sources}
|
||||
VERSION "A"
|
||||
VERSION ${FRAMEWORK_VERSION}
|
||||
DEPENDENCIES
|
||||
objc
|
||||
system
|
||||
|
@ -2,6 +2,8 @@ project(QuartzCore)
|
||||
|
||||
include(darling_framework)
|
||||
|
||||
remove_sdk_framework(QuartzCore)
|
||||
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} \
|
||||
-include math.h \
|
||||
-include stdlib.h \
|
||||
@ -65,12 +67,19 @@ set_source_files_properties(${QuartzCore_sources} LANGUAGE C)
|
||||
set(DYLIB_COMPAT_VERSION "1.2.0")
|
||||
set(DYLIB_CURRENT_VERSION "1.11.0")
|
||||
|
||||
set(FRAMEWORK_VERSION "A")
|
||||
|
||||
generate_sdk_framework(QuartzCore
|
||||
VERSION ${FRAMEWORK_VERSION}
|
||||
HEADER "include/QuartzCore"
|
||||
)
|
||||
|
||||
add_framework(QuartzCore
|
||||
FAT
|
||||
CURRENT_VERSION
|
||||
SOURCES
|
||||
${QuartzCore_sources}
|
||||
VERSION "A"
|
||||
VERSION ${FRAMEWORK_VERSION}
|
||||
DEPENDENCIES
|
||||
objc
|
||||
system
|
||||
|
Loading…
Reference in New Issue
Block a user