photon.framework now supports static and dynamic builds

This commit is contained in:
Max Wash
2020-11-24 14:46:24 +00:00
parent 8991e21636
commit 439a18535f
2 changed files with 9 additions and 2 deletions

View File

@@ -79,7 +79,7 @@ file(GLOB platform_headers
set(photon_libc_sources ${photon_libc_sources} ${malloc_sources} ${platform_sources})
set(photon_libc_headers ${photon_libc_headers} ${platform_headers})
add_framework(photon SHARED
add_framework(photon STATIC SHARED
BUNDLE_ID net.doorstuck.photon
SOURCES ${photon_libc_sources} ${photon_libc_headers}
HEADERS ${CMAKE_CURRENT_BINARY_DIR}/sysroot/usr/include/*)