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)
|
include(darling_framework)
|
||||||
|
|
||||||
|
remove_sdk_framework(AppKit)
|
||||||
|
|
||||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} \
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} \
|
||||||
-include math.h \
|
-include math.h \
|
||||||
-include stdlib.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_COMPAT_VERSION "45.0.0")
|
||||||
set(DYLIB_CURRENT_VERSION "1499.11.0")
|
set(DYLIB_CURRENT_VERSION "1499.11.0")
|
||||||
|
|
||||||
|
set(FRAMEWORK_VERSION "C")
|
||||||
|
|
||||||
set(AppKit_resources
|
set(AppKit_resources
|
||||||
Info.plist Info.plist
|
Info.plist Info.plist
|
||||||
|
|
||||||
@ -504,6 +508,11 @@ set(AppKit_resources
|
|||||||
en.lproj/NSOpenPanel.nib en.lproj/NSOpenPanel.nib
|
en.lproj/NSOpenPanel.nib en.lproj/NSOpenPanel.nib
|
||||||
)
|
)
|
||||||
|
|
||||||
|
generate_sdk_framework(AppKit
|
||||||
|
VERSION ${FRAMEWORK_VERSION}
|
||||||
|
HEADER "include/AppKit"
|
||||||
|
)
|
||||||
|
|
||||||
add_framework(AppKit
|
add_framework(AppKit
|
||||||
FAT
|
FAT
|
||||||
CURRENT_VERSION
|
CURRENT_VERSION
|
||||||
@ -511,7 +520,7 @@ add_framework(AppKit
|
|||||||
${AppKit_sources}
|
${AppKit_sources}
|
||||||
RESOURCES
|
RESOURCES
|
||||||
${AppKit_resources}
|
${AppKit_resources}
|
||||||
VERSION "C"
|
VERSION ${FRAMEWORK_VERSION}
|
||||||
DEPENDENCIES
|
DEPENDENCIES
|
||||||
objc
|
objc
|
||||||
system
|
system
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
project(Cocoa)
|
project(Cocoa)
|
||||||
|
|
||||||
|
remove_sdk_framework(Cocoa)
|
||||||
|
|
||||||
set(Cocoa_sources
|
set(Cocoa_sources
|
||||||
Cocoa.m
|
Cocoa.m
|
||||||
)
|
)
|
||||||
@ -9,12 +11,19 @@ set_source_files_properties(${Cocoa_sources} LANGUAGE C)
|
|||||||
set(DYLIB_COMPAT_VERSION "1.0.0")
|
set(DYLIB_COMPAT_VERSION "1.0.0")
|
||||||
set(DYLIB_CURRENT_VERSION "22.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
|
add_framework(Cocoa
|
||||||
FAT
|
FAT
|
||||||
CURRENT_VERSION
|
CURRENT_VERSION
|
||||||
SOURCES
|
SOURCES
|
||||||
${Cocoa_sources}
|
${Cocoa_sources}
|
||||||
VERSION "A"
|
VERSION ${FRAMEWORK_VERSION}
|
||||||
DEPENDENCIES
|
DEPENDENCIES
|
||||||
objc
|
objc
|
||||||
system
|
system
|
||||||
|
@ -2,6 +2,8 @@ project(CoreData)
|
|||||||
|
|
||||||
include(darling_framework)
|
include(darling_framework)
|
||||||
|
|
||||||
|
remove_sdk_framework(CoreData)
|
||||||
|
|
||||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} \
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} \
|
||||||
-include math.h \
|
-include math.h \
|
||||||
-include stdlib.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_COMPAT_VERSION "1.0.0")
|
||||||
set(DYLIB_CURRENT_VERSION "752.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
|
add_framework(CoreData
|
||||||
FAT
|
FAT
|
||||||
CURRENT_VERSION
|
CURRENT_VERSION
|
||||||
SOURCES
|
SOURCES
|
||||||
${CoreData_sources}
|
${CoreData_sources}
|
||||||
VERSION "A"
|
VERSION ${FRAMEWORK_VERSION}
|
||||||
DEPENDENCIES
|
DEPENDENCIES
|
||||||
objc
|
objc
|
||||||
system
|
system
|
||||||
|
@ -2,6 +2,8 @@ project(CoreGraphics)
|
|||||||
|
|
||||||
include(darling_framework)
|
include(darling_framework)
|
||||||
|
|
||||||
|
remove_sdk_framework(CoreGraphics)
|
||||||
|
|
||||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} \
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} \
|
||||||
-include math.h \
|
-include math.h \
|
||||||
-include stdlib.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_COMPAT_VERSION "64.0.0")
|
||||||
set(DYLIB_CURRENT_VERSION "1070.22.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
|
add_framework(CoreGraphics
|
||||||
FAT
|
FAT
|
||||||
CURRENT_VERSION
|
CURRENT_VERSION
|
||||||
SOURCES
|
SOURCES
|
||||||
${CoreGraphics_sources}
|
${CoreGraphics_sources}
|
||||||
VERSION "A"
|
VERSION ${FRAMEWORK_VERSION}
|
||||||
DEPENDENCIES
|
DEPENDENCIES
|
||||||
objc
|
objc
|
||||||
system
|
system
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
project(CoreText)
|
project(CoreText)
|
||||||
|
|
||||||
|
remove_sdk_framework(CoreText)
|
||||||
|
|
||||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} \
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} \
|
||||||
-Wno-deprecated-objc-isa-usage \
|
-Wno-deprecated-objc-isa-usage \
|
||||||
-mmacosx-version-min=10.10"
|
-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_COMPAT_VERSION "1.0.0")
|
||||||
set(DYLIB_CURRENT_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
|
add_framework(CoreText
|
||||||
FAT
|
FAT
|
||||||
CURRENT_VERSION
|
CURRENT_VERSION
|
||||||
SOURCES
|
SOURCES
|
||||||
${CoreText_sources}
|
${CoreText_sources}
|
||||||
VERSION "A"
|
VERSION ${FRAMEWORK_VERSION}
|
||||||
DEPENDENCIES
|
DEPENDENCIES
|
||||||
objc
|
objc
|
||||||
system
|
system
|
||||||
|
@ -2,6 +2,8 @@ project(Onyx2D)
|
|||||||
|
|
||||||
include(darling_framework)
|
include(darling_framework)
|
||||||
|
|
||||||
|
remove_sdk_framework(Onyx2D)
|
||||||
|
|
||||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} \
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} \
|
||||||
-include math.h \
|
-include math.h \
|
||||||
-include stdlib.h \
|
-include stdlib.h \
|
||||||
@ -134,13 +136,21 @@ set(Onyx2D_sources
|
|||||||
|
|
||||||
set_source_files_properties(${Onyx2D_sources} LANGUAGE C)
|
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
|
add_framework(Onyx2D
|
||||||
FAT
|
FAT
|
||||||
CURRENT_VERSION
|
CURRENT_VERSION
|
||||||
PRIVATE
|
PRIVATE
|
||||||
SOURCES
|
SOURCES
|
||||||
${Onyx2D_sources}
|
${Onyx2D_sources}
|
||||||
VERSION "A"
|
VERSION ${FRAMEWORK_VERSION}
|
||||||
DEPENDENCIES
|
DEPENDENCIES
|
||||||
objc
|
objc
|
||||||
system
|
system
|
||||||
|
@ -2,6 +2,8 @@ project(QuartzCore)
|
|||||||
|
|
||||||
include(darling_framework)
|
include(darling_framework)
|
||||||
|
|
||||||
|
remove_sdk_framework(QuartzCore)
|
||||||
|
|
||||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} \
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} \
|
||||||
-include math.h \
|
-include math.h \
|
||||||
-include stdlib.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_COMPAT_VERSION "1.2.0")
|
||||||
set(DYLIB_CURRENT_VERSION "1.11.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
|
add_framework(QuartzCore
|
||||||
FAT
|
FAT
|
||||||
CURRENT_VERSION
|
CURRENT_VERSION
|
||||||
SOURCES
|
SOURCES
|
||||||
${QuartzCore_sources}
|
${QuartzCore_sources}
|
||||||
VERSION "A"
|
VERSION ${FRAMEWORK_VERSION}
|
||||||
DEPENDENCIES
|
DEPENDENCIES
|
||||||
objc
|
objc
|
||||||
system
|
system
|
||||||
|
Loading…
Reference in New Issue
Block a user