photon.framework now supports static and dynamic builds
This commit is contained in:
@@ -79,7 +79,7 @@ file(GLOB platform_headers
|
|||||||
set(photon_libc_sources ${photon_libc_sources} ${malloc_sources} ${platform_sources})
|
set(photon_libc_sources ${photon_libc_sources} ${malloc_sources} ${platform_sources})
|
||||||
set(photon_libc_headers ${photon_libc_headers} ${platform_headers})
|
set(photon_libc_headers ${photon_libc_headers} ${platform_headers})
|
||||||
|
|
||||||
add_framework(photon SHARED
|
add_framework(photon STATIC SHARED
|
||||||
BUNDLE_ID net.doorstuck.photon
|
BUNDLE_ID net.doorstuck.photon
|
||||||
SOURCES ${photon_libc_sources} ${photon_libc_headers}
|
SOURCES ${photon_libc_sources} ${photon_libc_headers}
|
||||||
HEADERS ${CMAKE_CURRENT_BINARY_DIR}/sysroot/usr/include/*)
|
HEADERS ${CMAKE_CURRENT_BINARY_DIR}/sysroot/usr/include/*)
|
||||||
|
|||||||
@@ -6,4 +6,11 @@ binary_dir=$3
|
|||||||
|
|
||||||
crt_files=$(find $binary_dir -name "crt*.o")
|
crt_files=$(find $binary_dir -name "crt*.o")
|
||||||
|
|
||||||
$bundle_prog framework add-binaries -f $framework_path $crt_files
|
$bundle_prog framework add-binaries \
|
||||||
|
-f $framework_path \
|
||||||
|
-m static \
|
||||||
|
$crt_files
|
||||||
|
|
||||||
|
$bundle_prog framework add-binaries \
|
||||||
|
-f $framework_path \
|
||||||
|
$crt_files
|
||||||
|
|||||||
Reference in New Issue
Block a user