mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2024-12-27 10:03:31 +01:00
24c2f2fa38
- CefURLRequest::Create is no longer supported in the renderer process (see https://crbug.com/891872). Use CefFrame::CreateURLRequest instead. - Mac platform definitions have been changed from `MACOSX` to `MAC` (see https://crbug.com/1105907) and related CMake macro names have been updated. The old `OS_MACOSX` define is still set in code and CMake for backwards compatibility. - Linux ARM build is currently broken (see https://crbug.com/1123214).
51 lines
1.7 KiB
CMake
51 lines
1.7 KiB
CMake
# Copyright (c) 2014 The Chromium Embedded Framework Authors. All rights
|
|
# reserved. Use of this source code is governed by a BSD-style license that
|
|
# can be found in the LICENSE file.
|
|
|
|
# Append platform specific sources to a list of sources.
|
|
macro(LIBCEF_APPEND_PLATFORM_SOURCES name_of_list)
|
|
if("${CMAKE_SYSTEM_NAME}" STREQUAL "Darwin" AND ${name_of_list}_MAC)
|
|
list(APPEND ${name_of_list} ${${name_of_list}_MAC})
|
|
endif()
|
|
if("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux" AND ${name_of_list}_LINUX)
|
|
list(APPEND ${name_of_list} ${${name_of_list}_LINUX})
|
|
endif()
|
|
if("${CMAKE_SYSTEM_NAME}" STREQUAL "Windows" AND ${name_of_list}_WINDOWS)
|
|
list(APPEND ${name_of_list} ${${name_of_list}_WINDOWS})
|
|
endif()
|
|
endmacro()
|
|
|
|
set(CEF_TARGET libcef_dll_wrapper)
|
|
|
|
{{
|
|
'prefix': 'libcef',
|
|
'library': '${CEF_TARGET}',
|
|
'append_macro': 'LIBCEF_APPEND_PLATFORM_SOURCES',
|
|
'includes': [
|
|
'includes_common',
|
|
'includes_common_capi',
|
|
'autogen_cpp_includes',
|
|
'includes_capi',
|
|
'autogen_capi_includes',
|
|
'includes_wrapper',
|
|
'includes_wrapper_mac:MAC',
|
|
'includes_win:WINDOWS',
|
|
'includes_win_capi:WINDOWS',
|
|
'includes_mac:MAC',
|
|
'includes_mac_capi:MAC',
|
|
'includes_linux:LINUX',
|
|
'includes_linux_capi:LINUX',
|
|
'libcef_dll_wrapper_sources_base',
|
|
'libcef_dll_wrapper_sources_common',
|
|
'libcef_dll_wrapper_sources_mac:MAC',
|
|
'autogen_client_side',
|
|
],
|
|
}}
|
|
SET_LIBRARY_TARGET_PROPERTIES(${CEF_TARGET})
|
|
|
|
# Creating the CEF wrapper library. Do not define this for dependent targets.
|
|
target_compile_definitions(${CEF_TARGET} PRIVATE -DWRAPPING_CEF_SHARED)
|
|
|
|
# Remove the default "lib" prefix from the resulting library.
|
|
set_target_properties(${CEF_TARGET} PROPERTIES PREFIX "")
|