| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- function(build_boxing_module build_static_flag build_shared_flag module_name module_name_core source_files)
- if (${build_static_flag})
- add_library("${${module_name}}" STATIC ${${source_files}})
- set_target_properties("${${module_name}}" PROPERTIES DEBUG_POSTFIX "-d")
- endif ()
- if (${build_shared_flag})
- add_library("${${module_name}}" SHARED ${${source_files}})
- target_link_libraries("${${module_name}}" ${module_name_core})
- set_target_properties("${${module_name}}" PROPERTIES DEBUG_POSTFIX "-d")
- endif ()
- endfunction()
- function(build_core_module build_static_flag build_shared_flag build_jni_flag module_name source_files jni_source_files)
- if (${build_static_flag})
- add_library("${${module_name}}" STATIC ${${source_files}})
- set_target_properties("${${module_name}}" PROPERTIES DEBUG_POSTFIX "-d")
- endif ()
- if (${build_shared_flag})
- if (${build_jni_flag})
- message("${${module_name}}: building with JNI...")
- add_library("${${module_name}}" SHARED ${${source_files}} ${${jni_source_files}})
- set_target_properties("${${module_name}}" PROPERTIES DEBUG_POSTFIX "-d")
- else ()
- add_library("${${module_name}}" SHARED ${${source_files}})
- set_target_properties("${${module_name}}" PROPERTIES DEBUG_POSTFIX "-d")
- endif ()
- endif ()
- endfunction()
- function(build_encoding_module build_static_flag build_shared_flag module_name module_name_core source_files)
- if (${build_static_flag})
- add_library("${${module_name}}" STATIC ${${source_files}})
- set_target_properties("${${module_name}}" PROPERTIES DEBUG_POSTFIX "-d")
- endif ()
- if (${build_shared_flag})
- add_library("${${module_name}}" SHARED ${${source_files}})
- target_link_libraries("${${module_name}}" ${module_name_core})
- set_target_properties("${${module_name}}" PROPERTIES DEBUG_POSTFIX "-d")
- endif ()
- endfunction()
- function(build_event_module build_static_flag build_shared_flag module_name module_name_core source_files)
- if (${build_static_flag})
- add_library("${${module_name}}" STATIC ${${source_files}})
- set_target_properties("${${module_name}}" PROPERTIES DEBUG_POSTFIX "-d")
- endif ()
- if (${build_shared_flag})
- add_library("${${module_name}}" SHARED ${${source_files}})
- target_link_libraries("${${module_name}}" ${module_name_core})
- set_target_properties("${${module_name}}" PROPERTIES DEBUG_POSTFIX "-d")
- endif ()
- endfunction()
- function(build_io_module build_static_flag build_shared_flag module_name module_name_core source_files)
- if (${build_static_flag})
- add_library("${${module_name}}" STATIC ${${source_files}})
- set_target_properties("${${module_name}}" PROPERTIES DEBUG_POSTFIX "-d")
- endif ()
- if (${build_shared_flag})
- add_library("${${module_name}}" SHARED ${${source_files}})
- target_link_libraries("${${module_name}}" ${module_name_core})
- set_target_properties("${${module_name}}" PROPERTIES DEBUG_POSTFIX "-d")
- endif ()
- endfunction()
- function(build_time_module build_static_flag build_shared_flag build_jni_flag module_name module_name_core source_files source_files_linux source_files_windows source_files_jni)
- if (${build_static_flag})
- add_library("${${module_name}}" STATIC ${${source_files}} ${${source_files_linux}} ${${source_files_windows}})
- set_target_properties("${${module_name}}" PROPERTIES DEBUG_POSTFIX "-d")
- endif ()
- if (${build_shared_flag})
- if (${build_jni_flag})
- message("${${module_name}}: building with JNI...")
- add_library("${${module_name}}" SHARED ${${source_files}} ${${source_files_linux}} ${${source_files_windows}} ${${source_files_jni}})
- target_link_libraries("${${module_name}}" ${module_name_core})
- set_target_properties("${${module_name}}" PROPERTIES DEBUG_POSTFIX "-d")
- else ()
- add_library("${${module_name}}" SHARED ${${source_files}} ${${source_files_linux}} ${${source_files_windows}})
- target_link_libraries("${${module_name}}" ${module_name_core})
- set_target_properties("${${module_name}}" PROPERTIES DEBUG_POSTFIX "-d")
- endif ()
- endif ()
- endfunction()
|